/* -------------------------------
 CSS RESET & NORMALIZATION
------------------------------- */
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 {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F9FAFB;
  color: #374151;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  html { font-size: 15px; }
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

ul, ol { margin-left: 1.2em; margin-bottom: 1em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

*:focus {
  outline: 2px solid #6EE7B7;
  outline-offset: 2px;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover, a:focus { color: #6EE7B7; text-decoration: underline; }

strong { font-weight: 600; }

/* -------------------------------
  BRAND TYPOGRAPHY & SCALE
------------------------------- */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
}
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1.1rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
.subtitle {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #374151;
  opacity: 0.8;
  margin-bottom: 32px;
  letter-spacing: 0;
}

small { font-size: 0.9rem; color: #8C939C; }

/* -------------------------------
  LAYOUT CONTAINERS & SECTIONS
------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

@media (max-width: 768px) {
  .section { padding: 32px 8px; margin-bottom: 36px; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 18px; }
}

/* -------------------------------
  HEADER & NAVIGATION
------------------------------- */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #ECECEC;
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}
header img {
  height: 40px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  padding: 6px 0;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  color: #6EE7B7;
  background: #F3F4F6;
}

/* Button in header nav */
header .btn {
  margin-left: 16px;
}

/* Remove nav on mobile, use burger */
@media (max-width: 1024px) {
  header nav { display: none; }
  header .btn { display: none; }
}

/* -------------------------------
  MOBILE BURGER MENU
------------------------------- */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: #6EE7B7;
  color: #374151;
  font-size: 2rem;
  padding: 6px 18px 6px 12px;
  border-radius: 20px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(55,65,81,0.08);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #51CEAB;
  color: #222;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.99);
  z-index: 100;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.86,0,.07,1);
  box-shadow: -6px 0 48px rgba(55,65,81,0.05);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #374151;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin: 22px 24px 12px 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F3F4F6;
  color: #6EE7B7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #222;
  padding: 10px 0;
  border-radius: 5px;
  transition: background 0.14s, color 0.16s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6EE7B7;
  color: #222;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none; }
}

/* -------------------------------
  FOOTER
------------------------------- */
footer {
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #ECECEC;
  padding: 32px 0 24px 0;
  margin-top: 48px;
  flex-shrink: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a {
  color: #666;
  font-size: 0.96rem;
  padding: 2px 4px;
  border-radius: 2px;
}
footer nav a:hover, footer nav a:focus {
  background: #F3F4F6;
  color: #374151;
}
footer small {
  color: #A1A1AA;
  font-size: 0.93rem;
}

@media (max-width: 640px) {
  footer .container { padding: 0 10px; }
  footer nav { gap: 10px; font-size: 0.89rem; }
}

/* -------------------------------
  BUTTONS
------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 26px;
  padding: 10px 28px;
  min-width: 48px;
  background: #6EE7B7;
  color: #222;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 3px 12px rgba(55,65,81,0.06);
  outline: none;
  text-decoration: none;
}
.btn-primary {
  background: #6EE7B7;
  color: #222;
  box-shadow: 0 2px 8px rgba(110,231,183,0.12);
}
.btn-primary:hover, .btn-primary:focus {
  background: #51CEAB;
  color: #222;
  box-shadow: 0 4px 18px rgba(55,65,81,0.08);
}
.btn-secondary {
  background: #FFFFFF;
  color: #374151;
  border: 1px solid #6EE7B7;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F9FAFB;
  color: #51CEAB;
}

/* -------------------------------
  FLEXBOX LAYOUT HELPERS
------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55,65,81,0.09);
  margin-bottom: 20px;
  padding: 24px 24px 20px 24px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 6px 26px rgba(55,65,81,0.14);
  transform: translateY(-6px) scale(1.015);
}

.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: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 16px rgba(55,65,81,0.08);
  margin-bottom: 24px;
  max-width: 480px;
  margin-right: 24px;
  border-left: 4px solid #6EE7B7;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(55,65,81,0.13);
  border-left-color: #51CEAB;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
  margin: 0 0 4px 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #6B7280;
  font-weight: 500;
}
.testimonial-card > div {
  font-size: 1.1rem;
  color: #FAB005;
}

.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
}

.feature-item, .feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(55,65,81,0.07);
  padding: 24px 20px 16px 20px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, background 0.16s;
}
.feature-item img, .feature-grid img { height: 40px; width: 40px; margin-bottom: 10px; }
.feature-item:hover, .feature-grid > div:hover {
  background: #F6FFFB;
  box-shadow: 0 7px 22px rgba(110,231,183,0.09);
}

/* Cards always have spacing */
.card, .card-container > * { margin-bottom: 20px; }

@media (max-width: 1024px) {
  .card-container, .content-grid, .features, .feature-grid {
    gap: 16px;
  }
  .card, .feature-item, .feature-grid > div {
    min-width: 140px;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .card-container, .content-grid, .features, .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .feature-grid > div {
    margin-bottom: 12px;
    padding: 18px 8px 12px 12px;
  }
  .testimonial-card {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 18px;
    padding: 15px 8px 15px 14px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* -------------------------------
  MAP PLACEHOLDER
------------------------------- */
.map-placeholder {
  background: #E5E7EB;
  color: #68737d;
  border-radius: 11px;
  padding: 44px 14px;
  text-align: center;
  font-size: 1.12rem;
  margin: 18px 0 0 0;
  box-shadow: 0 3px 14px rgba(55,65,81,0.11);
}

/* -------------------------------
  COOKIE CONSENT BANNER & MODAL
------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #ffffff;
  box-shadow: 0 -5px 36px rgba(55,65,81,0.13);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid #E3E4E4;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(160px);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  color: #374151;
  max-width: 700px;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn {
  padding: 7px 22px;
  font-size: 1rem;
  border-radius: 20px;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 7px 24px 7px;
    gap: 18px;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-start;
    gap: 10px;
  }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,41,54,0.23);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  max-width: 430px;
  width: 97vw;
  padding: 34px 28px 21px 28px;
  box-shadow: 0 10px 40px rgba(55,65,81,0.19);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  color: #6B7280;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50px;
  transition: background 0.15s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F3F4F6;
  color: #374151;
}
.cookie-modal h3 {
  font-size: 1.17rem;
  margin-bottom: 7px;
  font-weight: 600;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #374151;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #F3F4F6;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
  border: 1px solid #E6E6E6;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #CFD8DC;
  border-radius: 50%;
  transition: left 0.19s, background 0.19s;
}
.cookie-toggle input:checked + .toggle-slider {
  left: 22px;
  background: #6EE7B7;
}
.cookie-category[aria-disabled="true"], .cookie-category.disabled {
  opacity: 0.7;
}
.cookie-category[aria-disabled="true"] .cookie-toggle,
.cookie-category.disabled .cookie-toggle {
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .cookie-modal { padding: 18px 5px; }
}

/* -------------------------------
  FORMS, INPUTS, ET AL.
------------------------------- */
input[type="text"], input[type="email"], textarea {
  padding: 8px 12px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  background: #F9FAFB;
  width: 100%;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.13s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #6EE7B7;
}

label { font-weight: 500; display: block; margin-bottom: 4px; }

/* -------------------------------
  GENERAL UTILITIES
------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }

/* White card for emphasis on minimal pages */
.white-card {
  background: #FFF;
  border-radius: 11px;
  box-shadow: 0 2px 11px rgba(55,65,81,0.07);
  padding: 32px 22px;
  margin-bottom: 24px;
}

/* -------------------------------
  MEDIA QUERIES — RESPONSIVENESS
------------------------------- */
@media (max-width: 850px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .container { max-width: 100vw; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 450px) {
  .section { padding-left: 3px; padding-right: 3px; }
  .btn { width: 100%; padding: 10px 12px; font-size: 1.01rem; }
}

/* -------------------------------
  ANIMATIONS & TRANSITIONS
------------------------------- */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(.86,0,.07,1) 1 both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.5s cubic-bezier(.84,.07,.07,1) 1 both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* -------------------------------
  MINIMALIST EXTRAS
------------------------------- */
hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 0;
}

/* Subtle box shadows for minimalist feel:
   Only on non-primary cards/sections */
.minimal-shadow {
  box-shadow: 0 3px 14px rgba(55,65,81,0.07);
}

/* -------------------------------
  OVERRIDES FOR ACCESSIBILITY
------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Light backgrounds preferred for testimonials/reviews for contrast */
  body { background: #F9FAFB; color: #222; }
  .testimonial-card { background: #fff; color: #222; }
}

/* -------------------------------
  PRINT STYLES
------------------------------- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body, main { background: #fff !important; color: #222 !important; }
  section { box-shadow: none !important; border: none !important; }
}
