/* ========== CSS RESET & BASE 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;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--accent, #F7F7F2);
  color: var(--primary, #31597C);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: var(--secondary, #85B369);
  text-decoration: none;
  transition: color .2s;
  outline: none;
}
a:hover, a:focus {
  color: #51c628;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --primary: #31597C;
  --primary-rgb: 49,89,124;
  --secondary: #85B369;
  --accent: #F7F7F2;
  --accent2: #fffab8;
  --highlight: #ff5a47;
  --info: #53bfff;
  --electric: #47ffe2;
  --electric2: #ff47b0;
  --danger: #ff4747;
  --border: #e6e8ea;
  --shadow: 0 2px 12px 0 rgba(49, 89, 124, 0.10);
  --radius: 18px;
  --btn-shadow: 0 3px 14px 0 rgba(49, 89, 124, 0.15);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
.subheadline {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
p, ul, ol, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
}
blockquote {
  font-style: italic;
  color: var(--electric2);
  background: rgba(255, 85, 176, 0.08);
  padding: 18px 24px;
  border-radius: 14px;
  border-left: 4px solid var(--electric2);
  margin-bottom: 18px;
  margin-left: 0;
}
.bold, b, strong {
  font-weight: 800;
  color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #fff;
  background: linear-gradient(90deg, var(--secondary), var(--electric2));
  border-radius: var(--radius);
  box-shadow: var(--btn-shadow);
  border: none;
  transition: background .22s, box-shadow .2s, transform .13s;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 15px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #48c252 10%, var(--electric) 90%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px 0 rgba(49, 89, 124, 0.15);
  outline: none;
}
.btn-secondary {
  background: var(--highlight);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--btn-shadow);
  transition: background .20s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ff8b7b;
}
.btn-tertiary {
  background: var(--primary);
  color: var(--accent);
  border-radius: 11px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  box-shadow: var(--btn-shadow);
  border: none;
  transition: background .20s;
  text-transform: none;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ========== LAYOUT & CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 26px 32px;
  transition: box-shadow .18s, transform .13s;
  min-width: 230px;
  flex: 1 1 275px;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px 0 rgba(49,89,124,0.17);
  transform: translateY(-2px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 28px 18px 28px;
  margin-bottom: 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #23252c;
  font-size: 1.08rem;
  line-height: 1.6;
  border-left: 6px solid var(--secondary);
  transition: box-shadow .18s, border-color .18s;
}
.testimonial-card:hover, .testimonial-card:focus {
  border-color: var(--highlight);
  box-shadow: 0 10px 36px 0 rgba(133,179,105,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.founder-note {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Layout helpers for min spacing between all cards/sections */
section + section {
  margin-top: 20px;
}
.content-wrapper > * {
  margin-bottom: 11px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* ========== NAVIGATION & HEADER ========== */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 22;
  box-shadow: 0 1px 10px 0 rgba(49,89,124,0.07);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  width: 100%;
  justify-content: flex-start;
}
.main-nav > a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background .13s, color .15s;
}
.main-nav > a.btn-primary {
  margin-left: auto;
  margin-right: 0;
}
.main-nav > a:not(.btn-primary):hover, .main-nav > a:not(.btn-primary):focus {
  background: rgba(133,179,105,0.12);
  color: var(--secondary);
}
.main-nav img {
  height: 38px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--highlight);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-shadow: 0 2px 10px -1px rgba(49,89,124,0.10);
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 50;
  transition: background .15s, color .13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
/* Hide on desktop, show on mobile */
@media (max-width: 996px) {
  .main-nav > a:not(:first-child), .main-nav > a.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,89,124,0.95);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform .34s cubic-bezier(.68,-0.55,.27,1.55);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 20px 25px 12px 0;
  transition: color .15s;
  border-radius: 9px;
  padding: 2px 10px;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--electric2);
  background: rgba(255,255,255,0.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
  margin-top: 30px;
  padding-left: 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 9px 0 9px 10px;
  border-radius: 7px 22px 22px 7px;
  width: 85%;
  display: flex;
  align-items: center;
  transition: background .15s, color .14s, padding .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--electric2);
  color: var(--primary);
  padding-left: 19px;
}

@media (max-width: 996px) {
  header { position: relative; }
}

/* ========== HERO SECTION ========== */
.hero {
  width: 100vw;
  min-height: 270px;
  background: linear-gradient(90deg, var(--primary) 50%, var(--electric2) 120%);
  color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 22px 0 40px 0;
  border-bottom-left-radius: 55px;
  border-bottom-right-radius: 35px;
  box-shadow: 0 2px 18px -1px rgba(133,179,105,0.07);
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 254px;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 23px;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(49,89,124,0.17);
}
.hero .subheadline {
  color: #ffe;
}
.hero .btn-primary {
  margin-top: 15px;
  background: linear-gradient(90deg, var(--electric2) 10%, var(--electric) 100%);
  color: var(--primary);
}
.hero .btn-primary:hover {
  background: linear-gradient(90deg, var(--secondary) 10%, var(--highlight) 100%);
  color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  border-top: 3px solid var(--secondary);
  padding: 36px 0 18px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 13px;
  justify-content: flex-start;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .94rem;
  padding: 7px 11px;
  border-radius: 4px;
  transition: background .15s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
  font-size: .97rem;
}
.footer-brand img {
  height: 32px;
}

/* ========== LISTS & UTILITY STYLE ========== */
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}
.text-section ul, .text-section ol {
  padding-left: 16px;
  margin-left: 0;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px;
}
.text-section {
  padding: 18px 0;
}

/* ========== SPECIAL BLOCKS & MAP CARDS ========== */
.embedded-map-placeholder {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(133,179,105,0.08);
  font-family: var(--font-display);
  color: #a9abb2;
  background: #f2f4f8;
}

/* ========== ANIMATION & MICRO-INTERACTIONS ========== */
section, .card, .testimonial-card, .btn-primary, .btn-secondary, .founder-note, .mobile-menu, .cookie-banner, .cookie-modal {
  transition: box-shadow .14s, background .14s, color .13s, transform .14s;
}

/* ========== RESPONSIVE DESIGN (MOBILE-FIRST) ========== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container { padding-left: 7px; padding-right: 7px; }
  .hero h1 { font-size: 2rem; }
  .hero { min-height: 170px; border-bottom-left-radius: 30px; border-bottom-right-radius: 18px; }
  .main-nav {
    flex-direction: row;
    gap: 10px;
    padding: 10px 0;
  }
  .content-wrapper, .text-section, .card, .feature-item {
    padding-left: 0;
    padding-right: 0;
  }
  .testimonial-card { font-size: 0.98rem; padding: 17px 12px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section { padding: 26px 7px; margin-bottom: 32px; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  .founder-note { flex-direction: column; gap: 13px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .container { max-width: 100vw; }
  .hero .container { min-height: 170px; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2200;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 14px 0 rgba(49,89,124,0.14);
  border-top: 4px solid var(--secondary);
  padding: 22px 16px 15px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1.01rem;
  animation: bannerAppear .38s cubic-bezier(.66,-0.35,.5,1.5);
}
@keyframes bannerAppear {
  0% { transform: translateY(30px); opacity: 0; }
  99% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 2px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 1rem;
  padding: 9px 22px;
}
.cookie-banner .btn-tertiary {
  background: #f2f4f8;
  color: var(--primary);
  border: 1px solid var(--secondary);
  font-weight: 600;
  box-shadow: none;
  font-size: .97rem;
}
.cookie-banner .btn-tertiary:hover, .cookie-banner .btn-tertiary:focus {
  background: var(--secondary);
  color: #fff;
}

/* ========== COOKIE SETTINGS MODAL ========== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3000;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: var(--primary);
  border-radius: 21px;
  box-shadow: 0 18px 60px rgba(49,89,124,0.28);
  width: 90vw;
  max-width: 400px;
  padding: 36px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modalAppear .23s;
}
@keyframes modalAppear {
  0% { transform: translate(-50%,-40%) scale(.87); opacity:0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity:1; }
}
.cookie-modal h3 {
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px; height: 21px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary,
.cookie-modal .btn-tertiary {
  font-size: .99rem;
  padding: 8px 20px;
}

@media (max-width: 650px) {
  .cookie-modal {
    width: 95vw;
    max-width: 98vw;
    padding: 22px 8vw 18px 8vw;
  }
}

/* ========== UTILITIES / ELECTRIC ENERGETIC DETAILS ========== */
.electric-bg {
  background: var(--electric);
  color: var(--primary);
}
.electric-text {
  color: var(--electric2)!important;
  font-weight: 900;
  font-family: var(--font-display);
}
.highlight-text {
  color: var(--highlight);
}
.bg-accent {
  background: var(--accent);
}
.bg-secondary {
  background: var(--secondary);
  color: #fff;
}

/* ========== CARD / VISUALS ========== */
.card img {
  max-width: 64px;
  margin-bottom: 10px;
}

/* SHADOWS & HOVER ENERGIZE */
.card, .testimonial-card, .btn-primary, .btn-secondary {
  will-change: transform, box-shadow;
}
.card:active, .btn-primary:active {
  transform: scale(.98);
  box-shadow: 0 1px 3px rgba(49,89,124,0.09);
}

/* Icon lists for energetic UX */
ul li img {
  width: 27px;
  height: 27px;
  vertical-align: middle;
  margin-right: 11px;
  display: inline-block;
}

/* ========== ACCESSIBILITY & FOCUS ========== */
a, button, .btn-primary, .btn-secondary, .btn-tertiary {
  outline: none;
}
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px var(--electric2);
}

/* ========== PRINT (OPTIONAL - HIDE INTERACTIVE) ========== */
@media print {
  .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, .footer-nav { display:none !important; }
  body, .container { background: #fff !important; }
}
