/* --- CSS RESET & 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  line-height: 1.5;
  background: #fafafa;
  color: #1A2820;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #387E5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #25914c;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
}

/* --- BRAND COLORS & VARIABLES --- */
:root {
  --primary: #387E5A;
  --primary-dark: #236b47;
  --secondary: #1A2820;
  --accent: #E7E5D6;
  --yellow: #FFD93B;
  --blue: #57B3FF;
  --red: #FF6987;
  --offwhite: #FFFDF9;
  --shadow-main: 0 4px 24px rgba(56,126,90,0.10), 0 1.5px 5px rgba(87,179,255,0.07);
  --shadow-fun: 0 6px 24px rgba(255,215,59,0.17);
  --radius-lg: 24px;
  --radius: 14px;
  --radius-sm: 7px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 768px) {
  html {
    font-size: 94%;
  }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  text-shadow: 1px 2px 0 var(--yellow), 1px 1px 0 var(--offwhite);
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 13px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 9px;
  color: var(--secondary);
}

p, li, span {
  font-family: var(--font-body);
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
  color: var(--blue);
}
.text-section h3 {
  color: var(--blue);
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.12rem; }
}

/* --- CONTAINER --- */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 10vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 1024px) {
  .container { padding: 0 2vw; }
}
@media (max-width: 768px) {
  .container { padding: 0 4vw; }
}

/* --- HEADER --- */
header {
  background: var(--accent);
  box-shadow: var(--shadow-main);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 22px;
  min-height: 84px;
}
header img {
  height: 59px;
  width: auto;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  transition: background 0.27s, transform 0.15s, color 0.2s;
  position: relative;
  letter-spacing: 0.8px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--yellow);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.08) rotate(-1deg);
  box-shadow: 0 2px 8px rgba(255,215,59,0.17);
  outline: none;
}
header .cta-button {
  margin-left: auto;
  margin-right: 8px;
}
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .main-nav a { padding: 7px 8px; font-size: .97rem; }
}
@media (max-width: 900px) {
  header .container {
    gap: 11px;
  }
  .main-nav {
    gap: 11px;
  }
}
/* HIDE NAV ON MOBILE */
@media (max-width: 768px) {
  .main-nav { display: none!important; }
  .mobile-menu-toggle {
    display: flex;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 0 7px rgba(56, 126, 90, 0.11);
    transition: background .21s, transform .11s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--yellow);
    color: var(--primary);
    outline: 2px solid var(--blue);
  }
  header .cta-button {
    display: none;
  }
}

/* --- CTA BUTTON --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  background: var(--yellow);
  color: var(--secondary);
  font-weight: 800;
  border: none;
  padding: 13px 31px;
  border-radius: var(--radius-lg);
  font-size: 1.12rem;
  box-shadow: 0 6px 28px rgba(255,215,59,0.17);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s, color 0.20s, box-shadow .29s, transform .13s;
  margin: 17px 0 0 0;
}
.cta-button:hover, .cta-button:focus {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px) scale(1.04) rotate(-2deg);
  box-shadow: 0 14px 32px rgba(87,179,255,0.15);
  outline: none;
}
.cta-button:active { background: var(--red); }


/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  z-index: 199;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.64,.09,.34,1.35);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  box-shadow: 0 16px 42px rgba(30,89,60,.12);
}
.mobile-menu.open {
  transform: translateX(0%);
  animation: mobile-slide-in 0.42s cubic-bezier(.64,.09,.34,1.35);
}
@keyframes mobile-slide-in {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}
.mobile-menu-close {
  background: var(--yellow);
  border: none;
  font-size: 2.1rem;
  font-family: var(--font-display);
  position: absolute;
  top: 20px; right: 22px;
  padding: 4px 17px;
  border-radius: var(--radius);
  color: var(--primary);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 14px rgba(255,215,59,0.07);
  transition: background .17s, transform .11s, color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--red);
  color: #fff;
  outline: 2px solid var(--blue);
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 72px 26px 24px 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  background: none;
  padding: 11px 0 6px 0;
  width: 100%;
  border-radius: 0 22px 22px 0;
  letter-spacing: 1px;
  transition: background .24s, transform .13s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--yellow);
  color: var(--secondary);
  font-size: 1.20rem;
  padding-left: 16px;
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu { display: none!important; }
}


/* --- MAIN/SECTION LAYOUTS --- */
main {
  width: 100%;
  min-height: 65vh;
  background: var(--offwhite);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-lg);
  position: relative;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.text-section {
  background: var(--accent);
  padding: 26px 26px 17px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0 0 0;
  align-items: flex-start;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(56,126,90,0.11);
  padding: 26px 23px 19px 23px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 350px;
  min-height: 182px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: transform .19s, box-shadow .18s;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  transform: translateY(-4px) scale(1.02) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(87,179,255,0.14);
}
.feature-grid img {
  height: 47px;
  width: 47px;
  margin-bottom: 6px;
}
@media (max-width: 1024px) {
  .feature-grid > div {
    flex-basis: 45%;
    max-width: 90vw;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 15px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 5px 18px rgba(56, 126, 90, 0.10);
  position: relative;
  transition: box-shadow .19s, transform .17s;
}
.testimonial-card p {
  color: #192215;
  font-size: 1.10rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-right: 14px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary);
  margin-left: auto;
}
.testimonial-card::after {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--yellow);
  opacity: 0.21;
  position: absolute;
  left: 12px; top: -22px;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: 0 15px 34px rgba(255,215,59,0.12), 0 8px 28px rgba(87,179,255,0.13);
  transform: scale(1.01) rotate(-1deg);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 18px 10px;
    font-size: .97rem;
  }
  .testimonial-card p {
    font-size: 1rem;
    margin-right: 0;
  }
}

/* --- VISUAL CARD CONTAINER FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-fun);
  margin-bottom: 20px;
  position: relative;
  transition: transform .19s, box-shadow .18s;
  min-width: 205px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 21px 18px 10px 18px;
  gap: 16px;
}
.card:hover {
  transform: scale(1.02) rotate(-2deg);
  box-shadow: 0 10px 32px rgba(87,179,255,0.10);
}

.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) {
  .content-grid { flex-direction: column; }
  .text-image-section { flex-direction: column; gap: 16px; align-items: flex-start; }
}

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

/* --- SPACING CONSISTENCY --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section { margin-bottom: 31px; padding: 24px 5px; }
  .text-section { padding: 15px 10px 10px 10px; }
}

/* --- WHITE SPACE --- */
.content-wrapper > *, section > * {
  margin-bottom: 20px;
  /* Ensures min 20px vertical spacing between all direct children */
}

/* --- LIST STYLES --- */
ul, ol {
  margin: 6px 0 14px 0;
  padding-left: 22px;
}
.text-section ul li, .feature-grid ul li {
  position: relative;
  margin-bottom: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.text-section ul li:before, .feature-grid ul li:before {
  content: '⟡ ';
  color: var(--primary);
  font-size: 1.1rem;
  margin-right: 2px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 35px 0 23px 0;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}
footer .container {
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.16s;
  text-shadow: 1px 2px 0 #fff6, 0 1px 0 var(--primary); 
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--yellow);
  color: var(--primary);
  outline: none;
}
.footer-contact {
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.96;
  color: #fff;
  letter-spacing: 0.2px;
}
@media (max-width: 860px) {
  footer .container { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-nav { gap: 11px; }
}
@media (max-width: 600px) {
  footer { padding: 20px 0 14px 0; }
}

/* --- FORMS (if present later) --- */
input, textarea, select {
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  background: var(--offwhite);
  color: var(--secondary);
  transition: border-color .17s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #57b3ff21;
  outline: none;
}

button {
  font-family: var(--font-display);
  background: var(--yellow);
  color: var(--primary);
  border: none;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background 0.17s, color 0.19s, transform .13s;
}
button:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
button:active {
  background: var(--red);
  color: #fff;
}

/* --- MICRO-ANIMATIONS --- */
.cta-button, .feature-grid > div, .card, .testimonial-card, .main-nav a, .mobile-nav a {
  will-change: transform, box-shadow;
}
.cta-button, .main-nav a, .mobile-nav a, .feature-grid > div, .testimonial-card {
  transition: 
    background 0.17s, 
    color 0.19s, 
    box-shadow 0.23s,
    transform 0.19s;
}

.feature-grid img {
  transition: transform 0.23s cubic-bezier(.68,-0.6,.32,1.6);
}
.feature-grid > div:hover img {
  transform: rotate(-11deg) scale(1.18);
}

/* Fun hover wiggle for playful feel */
.cta-button:hover, .feature-grid > div:hover, .main-nav a:hover, .card:hover {
  animation: wiggle 0.30s ease-in-out 1;
}
@keyframes wiggle {
  0%   { transform: scale(1) rotate(-1deg) }
  30%  { transform: scale(1.07) rotate(2deg) }
  60%  { transform: scale(1.02) rotate(-1.2deg) }
  100% { transform: scale(1.01) rotate(0deg) }
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 9999;
  width: 100vw;
  background: var(--yellow);
  color: var(--secondary);
  font-family: var(--font-body);
  box-shadow: 0 -3px 17px rgba(56, 126, 90, 0.14);
  padding: 22px 12vw 18px 12vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  animation: cookie-slide-up .42s cubic-bezier(.57,.16,.32,1.31);
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  min-width: 128px;
  padding: 10px 0;
}
.cookie-banner .cookie-settings {
  background: var(--blue);
  color: #fff;
}
.cookie-banner .cookie-settings:hover {
  background: var(--primary);
}
.cookie-banner .cookie-reject {
  background: var(--red);
}
@media (max-width: 900px){ .cookie-banner { padding-left: 7vw; padding-right: 5vw; flex-direction: column; gap: 15px; } }
@media (max-width: 600px){ .cookie-banner { padding-left: 8px; padding-right: 8px; } }

@keyframes cookie-slide-up {
  0%  { transform: translateY(100%); opacity: 0.3; }
  70% { transform: translateY(-10px); opacity: 1; }
  100%{ transform: translateY(0px); opacity: 1; }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,30,22,0.36);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(56,126,90,0.11);
  max-width: 455px; width: 91vw;
  padding: 40px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  animation: cookie-modal-pop 0.32s cubic-bezier(.56,.14,.52,1.34);
}
@keyframes cookie-modal-pop {
  0% { transform: scale(0.86) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 10px 0 27px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--secondary);
  cursor: pointer;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--primary);
  margin-right: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.8rem;
  background: var(--yellow);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 2px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .modal-close:hover {
  background: var(--red); color: #fff;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 22px;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  min-width: 116px;
  padding: 9px 0;
}
/* Always enabled (greyed out, cannot toggle) */
.cookie-category input[disabled] + label {
  color: #bbb;
}

@media (max-width: 500px){
  .cookie-modal{
    padding: 22px 7px 13px 7px;
    max-width: 99vw;
  }
  .cookie-modal .modal-close {
    top: 7px; right: 8px;
  }
}

/* --- PLAYFUL DECORATIVE ELEMENTS (decorative only, non-essential) --- */
section:before {
  content: '';
  display: block;
  position: absolute;
  left: -32px; top: -22px;
  width: 88px; height: 88px;
  background: radial-gradient(circle, var(--yellow) 20%, transparent 72%);
  opacity: 0.16;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  right: -48px; bottom: -28px;
  width: 57px; height: 57px;
  background: radial-gradient(circle, var(--blue) 19%, transparent 80%);
  opacity: 0.14;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* --- MAKE DECOR NON-INTRUSIVE ON MOBILE --- */
@media (max-width: 600px) {
  section:before, section:after { display: none; }
}

/* --- Thank-You Text Styling --- */
.text-section p {
  font-size: 1.09rem;
  margin-top: 10px;
  color: var(--primary-dark);
}

/* --- HIGH CONTRAST FOR TESTIMONIALS & READABILITY --- */
.testimonial-card, .text-section, .feature-grid > div, .card {
  background: #fff;
  color: var(--secondary);
}
.testimonial-card p, .testimonial-card span {
  color: var(--secondary);
}

/* --- MISC/ACCESSIBILITY --- */
:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius);
}
::-webkit-scrollbar-track {
  background: #fafafa;
}

/* --- PRINT --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  html { background: #fff; }
}

/* --- END OF FILE --- */
