/* === CSS Reset and Normalize === */
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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F1EA;
  color: #374B3C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
sup, sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup { top: -0.5em; }
sub { bottom: -0.25em; }
a { text-decoration: none; color: inherit; }

:root {
  --primary: #374B3C;
  --secondary: #A5C8B2;
  --accent: #F6F1EA;
  --body-bg: #F6F1EA;
  --card-bg: #fff;
  --shadow: 0 4px 20px 0 rgba(55,75,60,0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --heading-font: 'Montserrat', 'Arial', sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
}

/* === Global Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-family: var(--body-font);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}
ul, ol { padding-left: 20px; }
ul li, ol li { margin-bottom: 8px; }

strong, b { font-weight: bold; }

/* Geometric / Structured Fonts */
body, .main-nav a, .footer-nav a, .cta-primary {
  letter-spacing: 0.01em;
}
h1, h2, h3, .cta-primary {
  font-family: var(--heading-font);
}

/* === Layout & Container === */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-xl);
}
@media (max-width: 900px) {
  section, .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Flex containers as required --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(55,75,60,0.06);
  color: #232f26;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 14px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Hero Section --- */
.hero {
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  border-radius: var(--radius-xl);
  margin-bottom: 60px;
}
.hero h1, .hero p {
  color: var(--accent);
}
.hero .cta-primary {
  background: var(--secondary);
  color: var(--primary);
}

/* --- Features Section --- */
.features {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid > div {
  flex: 1 1 180px;
  min-width: 220px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.feature-grid img {
  width: 48px;
  height: 48px;
}

/* --- Cards Generic --- */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--secondary);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  transition: box-shadow .17s, transform .16s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(55,75,60,0.16);
  transform: translateY(-2px) scale(1.01);
}

/* Geometric Button & Link Style */
.cta-primary {
  font-family: var(--heading-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 40px;
  padding: 14px 38px;
  margin-top: 12px;
  box-shadow: 0 2px 16px 0 rgba(55,75,60,0.09);
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background .19s, color .19s, transform .17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* --- Navigation Header --- */
header {
  background: var(--accent);
  border-bottom: 2px solid #e8e7df;
  box-shadow: 0 2px 16px 0 rgba(55,75,60,0.02);
  position: relative;
  z-index: 1000;
  padding-top: 4px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--heading-font);
  color: var(--primary);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .13s, color .13s;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 3px solid var(--secondary);
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 12px;
  z-index: 1100;
  transition: color .15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 8px 32px rgba(55,75,60,.18);
  z-index: 2000;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform .32s cubic-bezier(0.59,0.05,0.11,1.06), opacity .23s;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 22px 0 0;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  padding: 8px 15px;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(55,75,60,0.08);
  transition: background .18s, color .18s;
}
.mobile-menu-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 54px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  color: var(--primary);
  background: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  padding: 16px 0;
  min-width: 180px;
  text-align: center;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Only show mobile nav on small screens */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 16px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  font-family: var(--heading-font);
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: border .12s, color .1s;
}
.footer-nav a:hover {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.footer-contact {
  font-family: var(--body-font);
  font-size: 0.97rem;
  color: var(--accent);
  opacity: 0.88;
  text-align: center;
  margin-bottom: 6px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1rem;
}
.footer-brand img {
  width: 36px;
  height: 36px;
}

/* === CTA Section === */
.cta {
  background: var(--secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  text-align: center;
}
.cta h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* === Contact Section === */
.contact ul {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact ul img {
  width: 20px;
  height: 20px;
}

/* === Legal/Info Sections === */
.legal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.legal h2 {
  margin-top: 24px;
}
.legal ul {
  margin-bottom: 18px;
}

/* === About/Text-Sections === */
.text-section {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
@media (max-width: 600px) {
  .text-section {
    padding: 18px 8px;
  }
}

/* --- Blog Style --- */
.features .text-section ul li strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 600;
}

/* --- Confirmation Page --- */
.confirmation .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}
.confirmation .cta-primary {
  margin-top: 28px;
}

/* --- Utility Classes & Elements --- */
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Icon List Style Utility (for about/features) */
ul {
  list-style: disc inside;
}
.text-section ul, .legal ul, .features ul {
  list-style: disc outside;
  padding-left: 18px;
}

/* --- Animation, Micro-interactions --- */
.card, .feature-grid > div, .testimonial-card, .cta-primary {
  transition: box-shadow .17s, transform .16s, background .16s, color .16s;
}
.card:hover, .feature-grid > div:hover, .cta-primary:hover {
  box-shadow: 0 8px 32px 0 rgba(55,75,60,0.14);
  transform: translateY(-3px) scale(1.02);
}

/* --- Spacing & Gaps --- */
section + section, .section + .section {
  margin-top: 60px;
}
.card-container > * {
  min-width: 260px;
  flex: 1 1 340px;
}
@media (max-width: 900px) {
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Responsive Typography & Layout --- */
@media (max-width: 768px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .main-nav, .footer-nav {
    gap: 10px;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 12px 18px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  section, .section {
    padding: 18px 2px;
    margin-bottom: 28px;
  }
  .card {
    padding: 14px 6px;
  }
  footer {
    padding: 18px 0 8px 0;
  }
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 24px 0 rgba(55,75,60,0.11);
  padding: 20px 16px 16px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: banner-slide-in .5s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes banner-slide-in {
  from { transform: translateY(120%); opacity:0; } to { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-consent-banner button {
  font-family: var(--heading-font);
  padding: 10px 28px;
  border: none;
  border-radius: 32px;
  background: var(--primary);
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  transition: background .17s, color .15s;
}
.cookie-consent-banner button.cookie-settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner button.cookie-settings:hover {
  background: var(--primary);
  color: var(--accent);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(55,75,60,0.18);
  z-index: 4000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadein-modal .26s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadein-modal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px 0 rgba(55,75,60,0.14);
  max-width: 360px;
  width: 94vw;
  padding: 34px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-in .36s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes modal-in {
  from {transform: scale(0.82) translateY(40px); opacity: 0; }
  to {transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-header {
  font-size: 1.18rem;
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  width: 36px; height:36px;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal .modal-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.05rem;
}
.cookie-modal input[type=checkbox] {
  width: 28px; height: 28px;
  accent-color: var(--secondary);
}
.cookie-modal .category-row .always-on {
  background: var(--secondary);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 22px;
  font-size: .98rem;
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .cookie-modal-actions button {
  font-family: var(--heading-font);
  padding: 10px 24px;
  border: none;
  border-radius: 32px;
  background: var(--primary);
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .cookie-modal-actions button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions button:hover,
.cookie-modal .cookie-modal-actions button:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions button.secondary:hover {
  background: var(--primary);
  color: var(--accent);
}

/* --- Focus Accessible Outline --- */
a:active, a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === END STYLE === */
