/* ========== 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, 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;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
*::before, *::after {
  box-sizing: inherit;
}

/* ========== VARIABLES (with Fallbacks) ========== */
:root {
  --color-primary: #153e62;
  --color-secondary: #3cb4c1;
  --color-accent: #f2f5fa;
  --color-dark: #283227;
  --color-earth-light: #ebe7e2;
  --color-forest-green: #396a3e;
  --color-sand: #e8dac0;
  --color-green-accent: #6bbf59;
  --color-warning: #e1ad01;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-md: 0 4px 24px 0 rgba(44, 59, 60, 0.12);
  --shadow-soft: 0 2px 8px 0 rgba(39, 50, 42, .10);
}

body {
  font-family: var(--font-body);
  background: var(--color-accent);
  color: var(--color-dark);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}


/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.5rem;
  }
}
p, li {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-forest-green);
  margin-bottom: 20px;
}
strong {
  font-weight: bold;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* ========== FLEXBOX LAYOUTS ========== */
.features-grid, .services-grid, .membership-grid, .team-list, .event-list, .event-highlights, .faq-list, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
}
.content-grid {
  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;
  margin-bottom: 20px;
  background: var(--color-earth-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid #dbe2da;
  max-width: 520px;
}
.feature-item, .service-item, .membership-type, .team-member, .faq-item, .event-item, .highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-width: 240px;
  flex: 1 1 calc(33% - 24px);
  margin-bottom: 20px;
}
.team-member { min-width: 200px; }
.membership-type { min-width: 200px; }

@media (max-width: 900px) {
  .features-grid, .services-grid, .membership-grid, .team-list, .event-list, .event-highlights, .faq-list, .content-grid, .card-container {
    gap: 16px;
  }
  .feature-item, .service-item, .membership-type, .team-member, .faq-item, .event-item, .highlight-item {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .features-grid, .services-grid, .membership-grid, .team-list, .event-list, .event-highlights, .faq-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-item, .membership-type, .team-member, .faq-item, .event-item, .highlight-item {
    flex: 1 1 100%;
    margin-bottom: 14px;
    min-width: 0;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--color-earth-light);
  box-shadow: 0 2px 8px rgba(44, 59, 60, 0.06);
  padding: 0 0 2px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-green-accent);
  color: #fff;
}
.main-nav .cta-btn {
  background: var(--color-green-accent);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  margin-left: 10px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green-accent);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 12px 2px 12px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

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

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(235, 231, 226, 0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.75,0,.25,1);
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-green-accent);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 4px 22px 24px 0;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin-left: 32px;
  margin-bottom: 22px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 12px 9px 4px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green-accent);
  color: #fff;
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  color: var(--color-green-accent);
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

/* ========== HERO ========== */
section:first-of-type {
  background: linear-gradient(120deg, #e8dac0 40%, #f2f5fa 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 32px rgba(44, 59, 60, 0.03);
}

/* ========== CTA BUTTON ========== */
.cta-btn {
  display: inline-block;
  background: var(--color-green-accent);
  color: #fff;
  border-radius: 24px;
  padding: 14px 32px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 14px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}

/* ========== CARD & GRID VARIANTS ========== */
.card {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  border: 1px solid #dde7df;
}

ul, .timeline ul {
  list-style: disc inside;
  margin-top: 8px;
  margin-bottom: 16px;
  padding-left: 18px;
}
.timeline ul {
  padding-left: 0;
  list-style: none;
}
.timeline ul li {
  border-left: 3px solid var(--color-green-accent);
  padding-left: 16px;
  margin-bottom: 9px;
  position: relative;
  font-size: 1rem;
  color: var(--color-dark);
}
.timeline ul li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-green-accent);
  border-radius: 50%;
  position: absolute;
  left: -8px; top: 8px;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
thead tr {
  background: var(--color-sand);
}
th, td {
  font-size: 1rem;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e1e7df;
  color: var(--color-primary);
}
th {
  font-weight: 700;
  font-family: var(--font-display);
}
tr:last-child td {
  border-bottom: none;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card p,
.testimonial-card span {
  font-size: 1.05rem;
  color: var(--color-dark);
}
.testimonial-card .person {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.testimonial-card .stars {
  color: var(--color-green-accent);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

/* ========== SPECIAL SECTIONS ========== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.08rem;
  margin-top: 7px;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-forest-green);
  background: var(--color-accent);
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.contact-info img {
  width: 24px; height: 24px;
}

.event-item .cta-btn {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
  padding: 10px 22px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-earth-light);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: 54px;
  box-shadow: 0 0 12px rgba(44,59,60,0.03);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 28px 42px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 20px 17px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-dark);
  font-size: .97rem;
}
.footer-copy {
  width: 100%;
  text-align: right;
  color: var(--color-primary);
  font-size: 0.95rem;
  opacity: 0.67;
  margin-top: 12px;
}
footer img {
  height: 44px;
  width: auto;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-copy {
    text-align: left;
  }
}

/* ========== RESPONSIVE HELPER RULES ========== */
@media (max-width: 600px) {
  h1, h2, h3, h4 {
    margin-bottom: 13px;
  }
  .footer-copy {
    font-size: 0.92rem;
  }
  .footer-info {
    font-size: 0.95rem;
  }
}

/* ========== INTERACTIVE STATES & MICRO-ANIMATIONS ========== */
.card, .feature-item, .service-item, .membership-type, .team-member, .faq-item, .event-item, .highlight-item {
  transition: box-shadow 0.18s, transform 0.18s, border 0.18s;
}
.card:hover, .feature-item:hover, .service-item:hover, .membership-type:hover, .team-member:hover, .faq-item:hover, .event-item:hover, .highlight-item:hover {
  box-shadow: 0 8px 32px 0 rgba(57, 122, 86, 0.09);
  border: 1.5px solid var(--color-green-accent);
  transform: translateY(-3px) scale(1.012);
}

.cta-btn:active, .main-nav .cta-btn:active {
  background: var(--color-warning);
}

/* ========== FORM ELEMENTS ========== */
input, textarea, select {
  border: 1.3px solid #d3dace;
  border-radius: 8px;
  padding: 12px 11px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  margin-bottom: 16px;
  background: var(--color-accent);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-green-accent);
  background: #f7f9f4;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #f8f6f1;
  color: var(--color-dark);
  border-top: 2px solid var(--color-green-accent);
  box-shadow: 0 -2px 24px rgba(44, 59, 60, 0.08);
  padding: 22px 11px 20px 20px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: center;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.7,0,.3,1);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 8px 18px 8px;
    gap: 10px;
  }
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
}

.cookie-btn,
.cookie-settings-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 25px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.17s;
}
.cookie-btn.accept {
  background: var(--color-green-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-green-accent);
  border: 1px solid var(--color-green-accent);
}
.cookie-settings-btn {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f9f2e9;
  color: var(--color-forest-green);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-green-accent);
  color: #fff;
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,34,21,0.33);
  z-index: 2100;
  align-items: center;
  justify-content: center;
  animation: fadeinbg 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeinbg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 12px 42px 0 rgba(35,50,42,.14);
  max-width: 360px;
  width: 92vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUpModal 0.32s cubic-bezier(.72,0,.28,1);
}
@keyframes slideUpModal {
  0% { transform: translateY(48px) scale(0.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  font-size: 1.3rem;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-category input[type="checkbox"]:disabled {
  accent-color: var(--color-green-accent);
  background: #e8dac0;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 19px;
  right: 17px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-green-accent);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .close-cookie-modal:hover {
  color: var(--color-secondary);
}

/* ========== A11Y: FOCUS STATES ========== */
a:focus, button:focus, .cta-btn:focus, .main-nav a:focus, .mobile-nav a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ========== ORGANIC DECOR SHAPES & BACKGROUND ========== */
section, .feature-item, .testimonial-card, .service-item {
  /* subtle organic curves using border radius */
  border-radius: var(--radius-lg);
}
.feature-item, .service-item {
  border-bottom-left-radius: 64px 36px;
  border-top-right-radius: 48px 96px;
}

/* Soft subtle textures (SVG patterns recommended in production) */
section {
  background-image: url('assets/textures/leaves.svg'), url('assets/textures/paper-fiber.png');
  background-repeat: no-repeat, repeat;
  background-position: top left, center;
  background-size: 320px, auto;
  /* fallback for no texture */
}

/* Remove patterns for mobile for perf */
@media (max-width: 600px) {
  section {
    background-image: none;
  }
}

/* ========== MISC UI COMPONENTS ========== */
.faq-item h3 { font-size: 1.03rem; margin-bottom: 6px; color: var(--color-primary); }
.faq-list { gap: 16px; }
.event-item h3, .highlight-item h3 { color: var(--color-forest-green); font-size: 1.11rem;}
.event-highlights, .event-list { gap: 18px; }
.membership-type strong { color: var(--color-green-accent); font-weight: bold; }

/* ========== VISUAL DIVIDERS (Optional) ========== */
hr {
  border: none;
  border-bottom: 1.5px solid #e2ece9;
  margin: 30px 0;
}

/* ========== ACCESSIBILITY & PRINT ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, main, .container { background: #fff !important; box-shadow: none !important; }
}
