/* =============================================================
   CSS RESET & BASELINE 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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #FAF9F6;
  color: #2e3a22;
}
ol, ul {
  list-style: disc inside;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #14A098;
  outline-offset: 2px;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
  border: none;
  background: none;
}

/* =============================================================
   CUSTOM PROPERTIES FOR COLOR TOKENS (with safe fallback)
   ============================================================= */
:root {
  --color-primary: #1A3365;
  --color-secondary: #14A098;
  --color-accent: #F7F7F7;
  --color-earth: #70815b;
  --color-leaf: #4b9153;
  --color-bark: #876b45;
  --color-cream: #FAF9F6;
  --color-soil: #BCAF98;
  --color-focus: #bee5ae;
  --color-shadow: rgba(112,129,91,0.08);
  --brand-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --brand-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =============================================================
   TYPOGRAPHY: NATURE ORGANIC + BRAND MIX
   ============================================================= */
html {
  font-size: 16px;
}
body {
  font-family: var(--brand-body);
  background: var(--color-cream);
  color: #2e3a22;
  font-weight: 400;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-display);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol {
  font-size: 1.1rem;
  color: #3b4622;
  line-height: 1.7;
  margin-bottom: 15px;
  font-family: var(--brand-body);
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* =============================================================
   GLOBAL LAYOUTS & FLEX SPACING PATTERNS (Mobile-first)
   ============================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (min-width: 768px) {
  .section {
    padding: 60px 0 60px 0;
    margin-bottom: 80px;
  }
}
.content-wrapper, .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .content-wrapper, .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* Only for decorative pseudo-elements */
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 24px;
}
.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;
  flex-direction: column;
}
@media (min-width: 768px) {
  .text-image-section {
    flex-direction: row;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: 18px 32px 18px 32px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-secondary);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Additional layout margin for all sections/cards */
section + section, .card + .card, .feature + .feature {
  margin-top: 24px;
}

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: var(--color-accent);
  box-shadow: 0 1px 14px rgba(112,129,91,0.06);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px 16px 20px;
}
header img[alt="Fuzona Drive Insights"] {
  height: 38px;
  width: auto;
  margin-right: 14px;
}
.main-nav {
  display: none;
  gap: 26px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--brand-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-focus);
  color: var(--color-leaf);
}
.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--brand-display);
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: 28px 12px 28px 12px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s, transform 0.16s;
  margin-left: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #338e61;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px rgba(112,129,91,0.15);
  outline: none;
}
/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  background: var(--color-leaf);
  border: none;
  color: #fff;
  font-size: 1.85rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: background 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #376c36;
}
/* DESKTOP: Show main nav, hide burger */
@media (min-width: 968px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: none;
  }
}
/* MOBILE SLIDE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,52,30, 0.93);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.5,1.7,.3,.7), opacity 0.28s;
  z-index: 3000;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-soil);
  border-radius: 50%;
  font-size: 1.85rem;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  margin: 20px 24px 0 18px;
  align-self: flex-end;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
  z-index: 3500;
}
.mobile-menu-close:hover {
  background: var(--color-bark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--brand-display);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 968px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none;
  }
}

/* =============================================================
   HERO SECTION & ORGANIC SHAPES
   ============================================================= */
section:first-of-type {
  background: var(--color-leaf);
  border-radius: 0 0 60px 30px;
  color: #fff;
  box-shadow: 0 16px 48px -24px var(--color-shadow);
  margin-bottom: 60px;
}
section:first-of-type h1, section:first-of-type p, section:first-of-type a {
  color: #fff;
}
section:first-of-type .cta-btn {
  background: var(--color-soil);
  color: var(--color-primary);
}
section:first-of-type .cta-btn:hover {
  background: var(--color-accent);
  color: var(--color-leaf);
}
@media (min-width: 768px) {
  section:first-of-type {
    border-radius: 0 0 100px 50px;
    padding-bottom: 60px;
  }
}
/* Organic background blobs (decoration) */
section:before {
  content: "";
  display: none;
}

/* =============================================================
   FEATURES (ICON CARDS, ETC.)
   ============================================================= */
.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: 28px 10px 22px 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 30px 24px 28px 24px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.21s, transform 0.19s;
  margin-bottom: 8px;
  border-left: 6px solid var(--color-leaf);
}
.feature img {
  height: 41px;
  width: 41px;
  margin-bottom: 5px;
}
.feature h3 {
  margin-bottom: 5px;
  font-family: var(--brand-display);
  color: var(--color-leaf);
  font-size: 1.12rem;
}
.feature p {
  font-size: 1rem;
  color: #3b4622;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 30px var(--color-shadow);
  transform: translateY(-2px) scale(1.025);
  border-left: 6px solid var(--color-secondary);
}

/* =============================================================
   TESTIMONIALS & REVIEW CARDS
   ============================================================= */
.testimonials {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: var(--color-accent);
  color: #222;
  border-radius: 18px 32px 18px 32px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-left: 6px solid var(--color-leaf);
  min-width: 0;
}
.testimonial-card p {
  color: #234b20;
  font-family: var(--brand-body);
  font-size: 1.09rem;
  margin-bottom: 8px;
}
.testimonial-name {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-family: var(--brand-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .testimonials, .content-wrapper.testimonials {
    flex-direction: row;
    gap: 32px;
  }
}

/* =============================================================
   CONTACT DETAILS
   ============================================================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  font-size: 1.04rem;
  color: var(--color-earth);
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* =============================================================
   PARTNERSHIP LOGOS
   ============================================================= */
.partnership-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--color-earth);
  color: #fff;
  padding: 32px 0 22px 0;
  border-radius: 40px 40px 0 0 / 34px 34px 0 0;
  box-shadow: 0 -6px 40px -12px var(--color-shadow);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--brand-display);
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.94;
  font-weight: 500;
  margin: 0 7px;
  padding: 1px 6px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-focus);
  background: rgba(255,255,255,0.11);
}
.footer-info {
  text-align: center;
  font-size: 0.97rem;
  color: #cfdbcc;
}
@media (min-width: 768px) {
  .footer-nav {
    flex-direction: row;
    justify-content: center;
  }
}

/* =============================================================
   COOKIE CONSENT BANNER
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: #fffbe9;
  color: #272414;
  padding: 20px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  box-shadow: 0 -2px 20px var(--color-shadow);
  border-top: 3px solid var(--color-leaf);
  font-family: var(--brand-body);
  font-size: 1.05rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.7,1.6,.3,.7), opacity 0.35s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-btn, .cookie-settings-btn {
  font-size: 0.98rem;
  font-family: var(--brand-display);
  font-weight: 700;
  padding: 8px 26px;
  border-radius: 16px 7px 16px 7px;
  background: var(--color-leaf);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.15s, box-shadow 0.18s, transform 0.14s;
  margin-right: 8px;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.035);
}
.cookie-btn.reject {
  background: #d9b28c;
  color: #663c13;
}
.cookie-btn.reject:hover {
  background: #c6894b;
  color: #fff;
}
/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(31,44,16, 0.62);
  z-index: 3300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fffbe9;
  border-radius: 30px 12px 30px 12px;
  padding: 38px 30px 28px 30px;
  max-width: 96vw;
  min-width: 270px;
  box-shadow: 0 4px 40px #cfd9cc33;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--color-leaf);
  font-family: var(--brand-display);
  font-size: 1.26rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  display: block;
  font-size: 1.02rem;
  font-family: var(--brand-body);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.cookie-category.essential label {
  color: #666;
  font-style: italic;
}
.cookie-modal-actions {
  margin-top: 9px;
  display: flex;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 20px;
  background: #e0d1b5;
  color: #503108;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.17rem;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #d0b58a;
}

/* =============================================================
   TABLES, FORMS, AND MISCELLANEOUS ELEMENTS
   ============================================================= */
table th, table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--color-soil);
  font-size: 1.01rem;
}
table tr:nth-child(even) {
  background: #f1edda;
}
input, textarea, select {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-soil);
  padding: 9px 12px;
  font-size: 1.02rem;
  margin-bottom: 16px;
  outline: none;
  resize: vertical;
  transition: border 0.17s;
  font-family: var(--brand-body);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-focus);
}
label {
  font-family: var(--brand-body);
  color: #2e3a22;
  margin-bottom: 4px;
  font-weight: 500;
}
button[type="submit"] {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 10px 24px 10px 24px;
  padding: 11px 33px;
  font-family: var(--brand-display);
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.2s, transform 0.14s;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--color-leaf);
  color: #fff;
  transform: translateY(-1.5px);
}

/* =============================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ============================================================= */
@media (max-width: 768px) {
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .content-wrapper, .feature-grid, .content-grid, .testimonials {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    min-width: 100%;
    padding: 22px 13px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 13px;
    padding: 11px 9px 11px 9px;
  }
  .footer-info {
    font-size: 0.93rem;
  }
}

/* Ensure all cards/sections have at least 20px vertical/horizontal margin */
.card, .feature, .testimonial-card {
  margin-bottom: 20px;
}
/* Ensure no overlap: extra gap for main content containers */
.content-wrapper, .feature-grid, .content-grid, .testimonials {
  gap: 24px;
}

/* =============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================= */
.cta-btn, .cookie-btn, .cookie-settings-btn, .feature, .feature-grid, .mobile-menu-toggle {
  transition: background 0.22s, color 0.21s, box-shadow 0.21s, transform 0.17s;
}
.card:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 12px 32px var(--color-shadow), 0 4px 18px #a1c18e22;
}
input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
  cursor: pointer;
}

/* =============================================================
   TEXT SECTIONS & PAGE-TYPOGRAPHY
   ============================================================= */
.text-section {
  font-size: 1.08rem;
  color: #373c24;
  max-width: 930px;
}
.text-section ul, .text-section ol {
  margin-left: 19px;
}
.text-section li {
  margin-bottom: 8px;
}
.text-section h3 {
  font-size: 1.18rem;
  color: var(--color-leaf);
  margin-top: 16px;
}
.outcome-highlights ul li {
  color: var(--color-leaf);
  font-weight: 600;
  margin-bottom: 7px;
}

/* Accessibility: focus ring for keyboard users */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =============================================================
   MISC ELEMENTS (success, error messages, etc.)
   ============================================================= */
.success {
  color: var(--color-leaf);
  background: #f2f8f2;
  font-weight: 600;
  border-left: 5px solid var(--color-secondary);
  padding: 12px 18px;
  margin-bottom: 22px;
  border-radius: 8px;
}
.error {
  color: #b04838;
  background: #f9ece7;
  font-weight: 500;
  border-left: 5px solid #be695e;
  padding: 12px 18px;
  margin-bottom: 22px;
  border-radius: 8px;
}

/* =============================================================
   PRINT FRIENDLY
   ============================================================= */
@media print {
  body, html {
    background: #fff;
    color: #222;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .section, .card, .feature, .testimonial-card, .content-wrapper, .feature-grid, .text-section { box-shadow: none !important; background: #fff !important; }
}
