/*--------------------
 RESET & BASICS 
---------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root {
  --color-primary: #28416A;
  --color-secondary: #E9E7EF;
  --color-accent: #A1B784;
  --color-bg: #fff;
  --color-text: #222;
  --color-link: #28416A;
  --color-border: #e4e4e4;
  --color-shadow: rgba(41,50,65,0.07);
  --radius-lg: 16px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 20px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: var(--radius-sm);
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--color-accent);
}
ul, ol {
  margin-left: 1.1em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.5em;
}

/*--------------------
 TYPOGRAPHY 
---------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.7em;
}
h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
p, blockquote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.1em;
}
blockquote {
  font-style: italic;
  background: var(--color-secondary);
  padding: 18px 24px;
  border-radius: var(--radius);
  margin: 0 0 10px 0;
  border-left: 4px solid var(--color-accent);
  color: var(--color-primary);
}
.subheadline {
  font-size: 1.06rem;
  color: #555;
  letter-spacing: 0.01em;
  margin-bottom: 1.15em;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}

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

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(41,50,65,0.11);
  transform: translateY(-2px) scale(1.01);
}
.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: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(41,50,65,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/*---------------------
 HERO
---------------------- */
.hero {
  background: var(--color-secondary);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: center;
  min-height: 320px;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 14px;
}

/*------------------------
 SPECIFIC FLEX LAYOUTS
------------------------*/
.feature-grid,
.event-teasers,
.event-list,
.membership-tiers,
.icon-highlights,
.feature-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.feature-grid > div,
.event-teasers > div,
.event-list > div,
.membership-tiers > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-grid > div:hover,
.event-teasers > div:hover,
.event-list > div:hover,
.membership-tiers > div:hover {
  box-shadow: 0 6px 24px rgba(41,50,65,0.10);
  transform: translateY(-3px) scale(1.015);
}
.icon-highlights img, .feature-icons img {
  width: 38px;
  height: 38px;
  margin-right: 8px;
}

/*-----------------------------
 CTA BUTTONS
------------------------------*/
.cta-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 32px;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(41,65,90,0.06);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, transform 0.16s;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 3px 14px 3px rgba(161,183,132,0.08);
  transform: translateY(-2px) scale(1.01);
}

/*---------------------
 NAVIGATION
---------------------*/
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.13s, color 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
header img {
  height: 38px;
  width: auto;
}

/* Burger menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus {
  outline: none;
  background: var(--color-secondary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,65,106,0.97);
  box-shadow: 0 2px 24px rgba(41,50,65,0.11);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  transform: translateX(-110vw);
  transition: transform 0.38s cubic-bezier(.79,.14,.15,.86);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 32px 24px 0 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 3010;
  transition: color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 70px 24px 24px 24px;
  gap: 18px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  background: transparent;
  padding: 13px 10px 13px 0;
  border-radius: var(--radius);
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/*--------------------------
 MEMBERSHIP CALLOUT
--------------------------*/
.membership-callout {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 30px 2px rgba(161,183,132,0.09);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.membership-callout h2, .membership-callout ul li {
  color: var(--color-primary);
}

/*---------------------
 FOOTER
---------------------*/
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 38px 0 20px 0;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-primary);
  font-size: .98rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
footer p {
  font-size: .92rem;
  color: #8a8a8a;
  text-align: center;
}

/*------------------
 COOKIE BANNER
------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: #fff;
  box-shadow: 0 -4px 28px 2px rgba(40,65,106,0.13);
  border-top: 1px solid var(--color-border);
  padding: 22px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  transition: transform 0.34s cubic-bezier(.79,.14,.15,.86), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--color-primary);
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .99rem;
  border-radius: var(--radius);
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.13s, color 0.13s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eee;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,65,106,0.82);
  z-index: 5050;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.26s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  padding: 40px 24px 28px 24px;
  border-radius: var(--radius-lg);
  max-width: 370px;
  min-width: 0;
  width: 90vw;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  position: relative;
  animation: bounceIn 0.29s;
}
@keyframes bounceIn {
  from { transform: scale(0.89); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-secondary);
  padding: 14px;
  border-radius: var(--radius);
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
}
.cookie-category.essential label {
  opacity: 0.7;
}

/*--------------------
 OTHER UI ELEMENTS
---------------------*/
.event-teasers, .event-list {
  width: 100%;
}
.comparison-table {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 18px 14px;
  margin: 15px 0 22px 0;
}
.filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  font-size: .98rem;
  color: #555;
}
.filters label {
  color: var(--color-primary);
  font-weight: 500;
}
.filters span {
  color: #7b7b7b;
}

/*-------------------------------
 GENERIC RESPONSIVE LAYOUTS
-------------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .event-teasers > div, .event-list > div, .membership-tiers > div {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 54px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .section, .membership-callout {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .feature-grid, .event-teasers, .event-list, .membership-tiers, .icon-highlights, .feature-icons, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  h1 {font-size: 1.42rem;}
  h2 {font-size: 1.13rem;}
  .container { padding: 0 6px; }
  .section, .membership-callout { padding: 14px 3px; }
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/*------------------------
 FORM ELEMENTS
------------------------*/
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  margin-bottom: 16px;
  color: var(--color-text);
  background: #fafbfc;
  transition: border-color 0.12s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
button {
  font-family: var(--font-display);
}

/*------------------------
 ACCESSIBILITY
------------------------*/
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Hide visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/*--------------------------
 TABLE (if used)
--------------------------*/
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 30px;
}
th, td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-secondary);
  font-family: var(--font-display);
}

/*--------------------------
 MICRO-ANIMATIONS
--------------------------*/
.card, .testimonial-card, .feature-grid > div, .membership-tiers > div {
  transition: box-shadow 0.18s, transform 0.17s;
}
.cta-btn, .cookie-btn {
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.13s;
}

/*--------------------------
 Z-INDEX LAYERS
--------------------------*/
header { z-index: 5; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 5000; }
.cookie-modal { z-index: 5050; }

/*------------------------
 CUSTOM UTILITY CLASSES
------------------------*/
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/*---------------------------
 BRAND FONT LOADING
---------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Roboto:wght@400;500&display=swap');
