/* ==== CSS RESET & NORMALIZATION ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;  padding: 0;  border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
html {  scroll-behavior: smooth; }
body {  line-height: 1.5;  font-size: 16px;  background: #FFFFFF; color: #254E32; }
ol, ul {  list-style: none; }
table {  border-collapse: collapse;  border-spacing: 0; }
a {  color: inherit; text-decoration: none; transition: color 0.2s; }
img {  max-width: 100%; display: block; height: auto; border: none; }
button {  font-family: inherit; font-size: 1rem; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #B44C02; outline-offset: 2px; }

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lora:700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFF;
  color: #254E32;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 16px;
  font-weight: 700;
  color: #254E32;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; }
p, ul, li, blockquote { font-size: 1rem; }
strong { font-weight: 700; }

/* ==== COLORS (brand + corporate palette) ==== */
:root {
  --color-primary: #254E32;
  --color-secondary: #EDE4D9;
  --color-accent: #B44C02;
  --color-highlight: #CA6724;
  --color-light: #FFF;
  --color-dark: #203A43;
  --color-gray: #7F8B98;
  --color-bg: #F7F8FA;
  --color-footer: #2A3136;
  --color-bg-card: #FFF;
  --color-shadow: rgba(36,46,53,0.08);
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--color-shadow);
}

.text-section {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 32px 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 24px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.21s cubic-bezier(.4,0,.2,1);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-3px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 650px;
  flex: 1 1 320px;
}
.testimonial-card blockquote {
  color: #254E32;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin: 0;
  font-style: italic;
}
.testimonial-card cite {
  color: var(--color-accent);
  font-size: 1rem;
  font-style: normal;
  margin-left: 10px;
  opacity: 0.95;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-secondary);
  box-shadow: 0 1px 8px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo img { height: 44px; }
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.16s, background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav .cta.primary {
  background: var(--color-primary);
  color: #FFF;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 10px 22px;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--color-highlight);
  color: #FFF;
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 102;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37, 78, 50, 0.96);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 0 0 0;
  transition: transform 0.44s cubic-bezier(.79,0,.35,1), opacity 0.25s;
  transform: translateX(-100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 28px 16px 0;
  font-size: 2.2rem;
  color: #FFF;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.15s;
  z-index: 1000;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: rgba(255,255,255,0.08); }
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 38px;
}
.mobile-nav a {
  display: block;
  color: #FFF;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 0;
  margin-bottom: 6px;
  width: 100%;
  border-radius: 6px;
  transition: background 0.18s, color 0.14s, padding 0.14s, font-weight 0.23s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-highlight);
  color: #FFF;
  font-weight: 700;
  padding-left: 10px;
}

/* ==== HERO, SECTIONS, CARDS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child { margin-bottom: 0; }

ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #254E32;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
ul li img {
  width: 28px; height: 28px;
  flex-shrink: 0;
}

blockquote {
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
cite {
  font-style: normal;
  color: var(--color-accent);
  opacity: 0.95;
  font-size: 1rem;
}

/* ==== BUTTONS, CTAs, LINKS ==== */
.cta, a.cta, button.cta {
  display: inline-block;
  background: var(--color-primary);
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.13rem;
  border: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.19s, transform 0.16s;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cta.primary:hover, .cta.primary:focus,
.cta:hover, .cta:focus {
  background: var(--color-highlight);
  color: #FFF;
  box-shadow: 0 5px 22px var(--color-shadow);
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent);
  color: #FFF;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-footer);
  color: #FFF;
  padding: 37px 0 23px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer a img { height: 38px; }
footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer .footer-nav a {
  color: #EDE4D9;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.2s;
  margin-bottom: 4px;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: var(--color-highlight);
}
.footer-contact p {
  color: #BFC6CE;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

/* ==== FORMS & CONTACT ==== */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.contact-details a {
  color: var(--color-highlight);
}
.contact-details a:hover {
  text-decoration: underline;
}

/* ==== COOKIES BANNER ==== */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #FFF;
  color: #254E32;
  box-shadow: 0 -2px 14px var(--color-shadow);
  z-index: 2000;
  padding: 16px 32px 18px 18px;
  transition: transform 0.41s cubic-bezier(.79,0,.35,1), opacity 0.18s;
  font-size: 1rem;
  gap: 18px;
  border-top: 2px solid var(--color-primary);
}
.cookie-banner.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-buttons {
  display: flex; gap: 12px; align-items: center;
}
.cookie-banner .cookie-settings-btn,
.cookie-banner .accept-btn,
.cookie-banner .reject-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.cookie-banner .accept-btn { background: var(--color-primary); color: #FFF; font-weight: 700; }
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus { background: var(--color-highlight); }
.cookie-banner .reject-btn { background: #EDE4D9; color: var(--color-primary); }
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus { background: var(--color-accent); color: #FFF; }
.cookie-banner .cookie-settings-btn { background: transparent; color: var(--color-primary); text-decoration: underline; box-shadow: none; }
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus { color: var(--color-accent); }

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37,78,50,0.81);
  z-index: 2200;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 6px 36px var(--color-shadow);
  padding: 32px 26px 18px 26px;
  max-width: 370px;
  width: 94vw;
  color: #254E32;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.41s cubic-bezier(.79,0,.35,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);      }
}
.cookie-modal h3 {
  margin: 0 0 9px 0;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-modal-category label {
  font-weight: 500;
  cursor: pointer;
  color: #254E32;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: var(--color-primary);
  width: 1rem; height: 1rem;
}
.cookie-modal-category[disabled] label, .cookie-modal-category input[disabled] + label {
  color: #BFC6CE;
}
.cookie-modal .modal-actions {
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 6px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-weight: 600;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal .modal-actions .btn-accept { background: var(--color-primary); color: #FFF; }
.cookie-modal .modal-actions .btn-accept:hover, .cookie-modal .modal-actions .btn-accept:focus { background: var(--color-accent); color: #FFF; }
.cookie-modal .modal-actions .btn-cancel:hover, .cookie-modal .modal-actions .btn-cancel:focus { background: var(--color-highlight); color: #FFF; }

/* ==== RESPONSIVE DESIGN (Mobile First) ==== */
@media (max-width: 1060px) {
  .container { max-width: 900px; }
  .card-container, .content-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .container { max-width: 740px; }
  .footer-nav { flex-direction: column; gap: 13px; }
  footer .container { flex-direction: column; gap: 32px; align-items: flex-start; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { max-width: 96vw; padding: 0 10px; }
  section, .section { padding: 28px 6px; }
  .text-section, .card { padding: 20px 12px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  header .container { padding: 12px 10px; }
  .logo img { height: 38px; }
  .testimonial-card { padding: 13px 8px; min-width: 0; }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-item { gap: 9px; }
  ul { gap: 10px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px 12px; font-size: 0.96rem; }
  .cookie-banner-buttons { gap: 9px; margin-top: 5px; }
  .cookie-modal { padding: 17px 7px 13px 7px; min-width: 0; }
}
@media (max-width: 520px) {
  h1, h2 { font-size: 1.1rem; }
  .footer-nav a, .footer-contact p { font-size: 0.89rem; }
  .testimonial-card,
  .card { font-size: 0.99rem; }
}

/* ==== ANIMATIONS ==== */
.card, .section, .cta, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.21s, color 0.15s, background 0.16s, transform 0.14s;
}
.mobile-menu, .mobile-menu.open { transition: transform 0.38s cubic-bezier(.79,0,.35,1), opacity 0.23s; }

/* ---- MISC ---- */
::-webkit-scrollbar { width: 8px; background: #EDE4D9; }
::-webkit-scrollbar-thumb { background: #BFC6CE; border-radius: 6px; }

/* ==== CRITICAL: Prevent Content Overlap/Overflow ==== */
.card, .testimonial-card, .section, .content-wrapper, .text-section, .cookie-banner, .cookie-modal {
  box-sizing: border-box;
}
section, .section, .card, .testimonial-card { min-width: 0; }

/* === PRINT (optional professional touch) === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .container { box-shadow: none !important; background: #FFF !important; color: #111 !important; }
}
