/* ------------------ 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F6F9F6;
  color: #203A4A;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #4CBB6A;
  outline-offset: 2px;
}

/* -------------------- CSS VARIABLES (COLORS/FONTS) -------------------- */
:root {
  --color-primary: #203A4A;
  --color-secondary: #D3E2EA;
  --color-accent: #EF9640;
  --color-green: #448D54;
  --color-earth: #B8A87D;
  --color-bg: #F6F9F6;
  --color-text: #203A4A;
  --color-muted: #8CA69B;
  --color-light: #FFFFFF;
  --shadow-card: 0px 4px 16px rgba(34, 50, 30, 0.07);
}

/* Fallbacks for older browsers */
.main-header, .main-footer {
  background: #203A4A;
  color: #F6F9F6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-green); }
h4, h5, h6 { font-size: 1rem; }
p, li, a, span {
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-text);
}
@media (min-width: 600px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
}

.subheadline {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* ------------------- LAYOUT & CONTAINERS ------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 32px 16px 32px 16px;
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px 10px 20px 10px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  min-width: 240px;
}

.content-grid, .feature-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: 20px 10px 20px 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px rgba(34,50,30,0.11);
  border: 1px solid #E5EBE0;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.1rem;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--color-green);
  font-weight: bold;
  letter-spacing: 0.01em;
}
.testimonial-meta span {
  color: var(--color-accent);
  font-size: 1.15em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  background: var(--color-light);
  border-radius: 24px 12px 24px 12px;
  box-shadow: 0 1px 6px rgba(68,141,84,0.10);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  min-width: 210px;
  transition: transform 0.18s;
}
.feature-item img { width: 36px; height: 36px; }
.feature-item:hover, .feature-item:focus {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 20px rgba(68, 141, 84, 0.12);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Map & Contact block */
.contact-block, .map-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.contact-block > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-block {
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
}

/* Cards (generic) */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Section & List Spacing */
ul, ol {
  margin-bottom: 12px;
  margin-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Responsive Flex-direction for .text-image-section */
@media (max-width: 900px) {
  .content-grid, .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .section, .hero, .features, .about, .cta, .testimonials, .services, .contact {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* -------------------- HEADER & NAVIGATION -------------------- */
.main-header {
  background: var(--color-primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(32,58,74,0.08);
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 72px;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  filter: drop-shadow(0 1px 4px #B8A87D33);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 1.04rem;
  padding: 8px 0 6px 0;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.main-nav .btn-primary {
  margin-left: 18px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  background: var(--color-light);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  padding: 4px 18px 2px 10px;
  border-radius: 12px 8px 12px 8px;
  display: none;
  align-items: center;
  transition: background 0.18s;
  z-index: 1201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E8F3E8;
  color: var(--color-green);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,58,74, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.72,-0.1,.33,1.2);
  z-index: 2001;
  width: 100vw;
  min-height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-menu .mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.19s, background 0.2s;
  border-radius: 14px 6px 14px 6px;
  width: 100%;
  display: block;
  font-weight: 600;
}
.mobile-menu .mobile-nav a:hover, .mobile-menu .mobile-nav a:focus {
  background: #E7EBE5;
  color: var(--color-green);
}
.mobile-menu .mobile-menu-close {
  background: #fff;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  border-radius: 12px 8px 12px 8px;
  margin-left: 18px;
  margin-top: 6px;
  transition: background 0.15s, color 0.13s;
  align-self: flex-end;
  z-index: 2111;
  padding: 4px 16px;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 1050px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1051px) {
  .mobile-menu { display: none !important; }
}

/* -------------------- HERO SECTIONS -------------------- */
.hero {
  margin-bottom: 60px;
  padding: 48px 0 40px 0;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(115deg, #D3E2EA 60%, #F6F9F6 100%);
  box-shadow: 0 10px 16px -14px #203A4A33;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  max-width: 720px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 26px 0;
    margin-bottom: 36px;
  }
}

/* -------------------- BUTTONS -------------------- */
.btn-primary, a.btn-primary, input[type="submit"].btn-primary {
  background: linear-gradient(94deg, var(--color-green) 90%, var(--color-accent) 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 14px 30px 12px 30px;
  border-radius: 32px 16px 32px 16px;
  border: none;
  box-shadow: 0 4px 12px rgba(68,141,84,0.12);
  text-align: center;
  display: inline-block;
  margin-top: 6px;
  transition: background 0.2s, box-shadow 0.15s, transform 0.14s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(94deg, var(--color-accent) 80%, var(--color-green) 100%);
  color: #FFF !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(139,193,151,0.19);
}

.btn-secondary, a.btn-secondary {
  background: #fff;
  color: var(--color-green)!important;
  border: 2px solid var(--color-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 24px 9px 24px;
  border-radius: 24px 11px 24px 11px;
  box-shadow: 0 2px 8px rgba(68, 141, 84, 0.08);
  transition: background 0.17s, color 0.2s, border 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-green);
  color: #fff !important;
  border: 2px solid var(--color-green);
}

/* -------------------- FOOTER -------------------- */
.main-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 36px 0 20px 0;
  border-radius: 30px 30px 0 0;
  margin-top: 46px;
  font-size: 1rem;
}
.main-footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-nav a {
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.17s, border-color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.footer-contact {
  color: #e4ebea;
  font-size: 0.97em;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .main-footer .container {
    gap: 14px;
    align-items: stretch;
  }
  .footer-nav {
    gap: 12px;
    margin-bottom: 4px;
    flex-direction: column;
  }
}

/* -------------------- COOKIE CONSENT BANNER -------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe9;
  color: var(--color-primary);
  box-shadow: 0 -3px 24px rgba(68,141,84,0.20);
  padding: 26px 16px 20px 16px;
  z-index: 5006;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  border-radius: 32px 32px 0 0;
  width: 100vw;
  max-width: 100vw;
  transition: transform 0.4s cubic-bezier(.62,-0.1,.43,1.23), opacity 0.3s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  font-size: 1rem;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 12px 30px 10px 30px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 24px 10px 24px 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px #B8A87D11;
  background: var(--color-green);
  color: #fff;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.cookie-btn.cookie-btn-secondary {
  background: #fff;
  border: 2px solid var(--color-green);
  color: var(--color-green);
}
.cookie-btn.cookie-btn-secondary:hover, .cookie-btn.cookie-btn-secondary:focus {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  z-index: 6000;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(38, 68, 38, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  min-width: 300px;
  max-width: 94vw;
  width: 430px;
  background: #fff;
  border-radius: 32px 16px 32px 16px;
  box-shadow: 0 6px 30px #88A48F44;
  padding: 30px 24px 20px 24px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal .34s cubic-bezier(.42,.2,.42,1.4);
}
@keyframes fadeInModal {
  from { transform: translateY(34px) scale(0.98); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 14px;
  color: var(--color-green);
}
.cookie-category {
  background: #F6F9F6;
  border-radius: 16px 8px 16px 8px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-green);
  width: 22px;
  height: 22px;
}
.cookie-modal-close {
  background: #fff;
  font-size: 1.5rem;
  border: none;
  color: var(--color-primary);
  border-radius: 18px 9px 18px 9px;
  align-self: flex-end;
  margin-top: -16px;
  margin-bottom: 6px;
  transition: background 0.14s;
  padding: 5px 10px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-accent);
  color: #fff;
}


/* -------------------- UTILITY CLASSES -------------------- */
.hide {
  display: none !important;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--color-muted); }
.mb-0 { margin-bottom: 0 !important; }

/* Spacing utility classes */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Round images/icons for organic style */
.organic-round {
  border-radius: 48% 52% 60% 40% / 42% 65% 39% 61%;
  box-shadow: 0 1px 8px #B8A87D22;
}

/* Organic section overlays (decorative only, not content) */
.section::before, .section::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  border-radius: 64% 36% 48% 52%/45% 60% 40% 55%;
}
.section::before {
  width: 120px; height: 120px;
  left: -36px; top: -38px;
  background: var(--color-accent);
}
.section::after {
  width: 90px; height: 90px;
  right: -38px; bottom: -38px;
  background: var(--color-green);
}

/* Hide section overlays on mobile for clarity */
@media (max-width: 480px) {
  .section::before, .section::after { display: none !important; }
}

/* -------------------- RESPONSIVENESS -------------------- */
@media (max-width: 650px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.07rem; }
  .container { padding-left: 6px; padding-right: 6px; }
  .main-header .container { padding: 4px 6px; }
  .card, .feature-item { min-width: 90%; }
}
@media (max-width: 455px) {
  .testimonial-card, .feature-item, .card {
    padding: 14px 6px;
    font-size: 0.95em;
  }
  .btn-primary, .cookie-btn {
    font-size: 0.98em;
    padding: 12px 14px;
  }
  .cookie-modal-content { padding: 14px 4px 6px 4px; }
}

/* -------------------- MISC/ORGANIC/NATURE TOUCHES -------------------- */
.section, .hero, .feature-item, .testimonial-card, .card, .cookie-modal-content {
  border-radius: 32px 16px 32px 16px;
  box-shadow: var(--shadow-card);
}
.feature-item, .testimonial-card, .card {
  background: #fffebb11;
  border: 1px solid #E0E3D2;
}

body, .main-header, .main-footer {
  background: var(--color-bg);
}

/* Subtle organic waves/borders (SVG background if desired)
.section.nature-bg {
  background: url('../assets/bg-organic.svg') no-repeat 98% 8% / 200px auto, var(--color-bg);
}
*/

/* Focus visible for accessibility */
:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
  border-radius: 8px;
}

/*-------------------- PRINT STYLE -------------------*/
@media print {
  .main-header, .main-footer, .btn-primary, .btn-secondary, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { background: #fff; color: #111; }
}
