/* RESET & UNIVERSAL STYLES */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #18261B;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* BRAND COLORS & FONTS */
:root {
  --color-primary: #274C3D;
  --color-secondary: #B5E2B6;
  --color-accent: #F4E9E1;
  --color-dark: #18261B;
  --color-white: #fff;
  --color-grey: #F6F7F6;
  --color-text: #18261B;
  --color-highlight: #F27C38;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 20px 0 rgba(39,76,61,0.06), 0 1.5px 6px 0 rgba(39,76,61,0.03);
  --radius-card: 22px;
  --radius-btn: 14px;
}

body {
  background: var(--color-grey);
}


/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* CARD & FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 260px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  color: var(--color-dark);
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 20px 24px 20px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .18s cubic-bezier(.62,.28,.23,.99), box-shadow .18s cubic-bezier(.62,.28,.23,.99);
}
.feature-grid > div:hover,
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(39,76,61,0.12), 0 2.5px 8px 0 rgba(39,76,61,0.04);
}

@media (max-width: 991px) {
  .feature-grid {
    justify-content: center;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 360px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .content-wrapper {
    align-items: flex-start;
  }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  line-height: 1.12;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -.5px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, li, blockquote {
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-dark);
}
p {
  margin-bottom: 16px;
}
b, strong {
  font-weight: bold;
}
.subheadline {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .1px;
}
blockquote {
  font-style: italic;
  margin-bottom: 6px;
  font-size: 1.08em;
  color: var(--color-dark);
  position: relative;
  padding-left: 18px;
}
blockquote:before {
  content: '“';
  font-size: 1.8em;
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: -14px;
}
.testimonial-author {
  font-size: 0.97em;
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 5px;
}
ul, ol {
  margin-left: 26px;
  margin-bottom: 16px;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 32px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(39,76,61,0.08);
  transition: background .18s cubic-bezier(.62,.28,.23,.99), box-shadow .18s cubic-bezier(.62,.28,.23,.99), transform .14s cubic-bezier(.62,.28,.23,.99);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px 0 rgba(39,76,61,0.14);
  outline: none;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  padding: 0;
  background: var(--color-white);
  box-shadow: 0 2px 12px 0 rgba(39,76,61,0.07);
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
  min-width: 130px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-right: auto;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  transition: background .16s, color .12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

header .btn-primary {
  margin: 0 0 0 22px;
  min-width: 150px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 22px;
  transition: background .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform .32s cubic-bezier(.65,.05,.36,1), opacity .24s cubic-bezier(.65,.05,.36,1);
  will-change: transform, opacity;
  box-shadow: 2px 0 18px 0 rgba(39,76,61,0.14);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 18px 0 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 0 0 32px;
}
.mobile-nav a {
  padding: 18px 0 14px 10px;
  font-size: 1.24rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 10px;
  min-width: 180px;
  margin-bottom: 4px;
  transition: background .14s, color .12s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* HERO SECTIONS */
.hero-section {
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: none;
  margin-bottom: 62px;
}
.hero-section .container {
  min-height: 320px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero-section h1 {
  color: var(--color-primary);
  font-size: 2.8rem;
  letter-spacing: -2px;
  margin-bottom: 14px;
  font-weight: 700;
}
.hero-section .subheadline {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1.17rem;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-section .btn-primary {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero-section {
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .hero-section .container {
    min-height: 180px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hero-section h1 {
    font-size: 1.7rem;
    margin-bottom: 8px;
  }
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 62px 0 20px 0;
  font-family: var(--font-body);
  letter-spacing: 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
  padding: 0 16px;
  max-width: 1200px;
}
.footer-brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  margin-right: 24px;
  gap: 12px;
}
.footer-brand-info img {
  width: 96px;
  margin-bottom: 10px;
}
.footer-brand-info p {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 400;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--color-white);
  opacity: .94;
  font-size: 1rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 10px;
  transition: background .14s, color .10s;
}
.footer-nav a:hover { background: var(--color-secondary); color: var(--color-primary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-right: 26px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--color-white);
  font-weight: 500;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: opacity .14s, filter .13s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: brightness(1.25);
}
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-social {
    margin-bottom: 12px;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 38px 0 14px 0;
  }
  .footer-brand-info img {
    width: 70px;
  }
}

/* SPECIFIC ELEMENTS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact {
  margin-top: 10px;
  margin-bottom: 12px;
}

/* CARD STYLING */
.card {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}

/* CTA SECTION */
.section .btn-primary {
  margin-top: 15px;
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .feature-grid > div, .testimonial-card, .card {
    transition: box-shadow .22s cubic-bezier(.62,.28,.23,.99), transform .18s cubic-bezier(.62,.28,.23,.99), background .18s cubic-bezier(.62,.28,.23,.99), color .17s, border .13s;
  }
  .mobile-menu, .mobile-menu-close {
    transition: transform .33s cubic-bezier(.62,.28,.23,.99), opacity .22s cubic-bezier(.62,.28,.23,.99);
  }
}

/* RESPONSIVE: FLEX, SPACING, IMAGE/TEXT SECTIONS */
@media (max-width: 991px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
  }
  .feature-grid {
    flex-direction: column;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 15000;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 -2px 24px 0 rgba(39,76,61,0.09);
  padding: 28px 32px 22px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform .28s cubic-bezier(.62,.28,.23,.99), opacity .21s cubic-bezier(.62,.28,.23,.99);
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
}
.cookie-banner .cookie-text {
  max-width: 650px;
  margin-right: 30px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s, color .12s, box-shadow .13s;
  box-shadow: 0 2px 8px 0 rgba(39,76,61,0.06);
}
.cookie-btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn-tertiary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn-tertiary:hover {
  background: var(--color-accent);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 14px 12px;
    gap: 14px;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
  }
  .cookie-banner-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39, 76, 61, 0.22);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s cubic-bezier(.62,.28,.23,.99);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 12px 32px 0 rgba(39,76,61,0.23);
  max-width: 420px;
  width: 90vw;
  padding: 38px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  color: var(--color-dark);
}
.cookie-modal h2 {
  font-size: 1.26rem;
  margin-bottom: 15px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 0;
  list-style: none;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .essential {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--color-secondary);
  border-radius: 14px;
  cursor: pointer;
  margin-left: auto;
  transition: background .14s;
}
.cookie-switch input {
  display: none;
}
.cookie-switch:after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1.5px 5px rgba(39,76,61,0.12);
  transition: left .19s cubic-bezier(.62,.28,.23,.99);
}
.cookie-switch input:checked + .cookie-switch:after {
  left: 27px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-direction: row;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}

@media (max-width: 480px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 20px 7px 16px 7px;
  }
}

/* FOCUS & ACCESSIBILITY */
:focus-visible {
  outline: 2.5px solid var(--color-highlight);
  outline-offset: 2px;
}

@media (max-width: 480px){
  h1 {font-size: 1.22rem;}
  h2 {font-size: 1.1rem;}
}

/* VISUAL GEOMETRIC ACCENTS */
.feature-grid > div::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* MICROINTERACTIONS FOR BUTTONS */
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(39,76,61,0.11);
}

/* SPACING BETWEEN ALL CARDS/SECTIONS */
section + section,
.section + .section,
.feature-grid > div + div,
.card-container > .card + .card,
.card + .card,
.card-container > * + * {
  margin-top: 20px !important;
}

/* PREVENT OVERLAP - Ensure bottom space before footer */
main {
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CLEARING FLOATS AND AFFIXING LAYOUT */
.clearfix::after { content: ''; display: table; clear: both; }

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