/* --- 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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #FFF;
  color: #26354A;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #26354A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #EBB72B;
  outline-offset: 2px;
}

/* --- BRANDING COLORS & TOKENS --- */
:root {
  --primary: #26354A;
  --secondary: #EBB72B;
  --accent: #F7F4ED;
  --pastel-pink: #F9EAF3;
  --pastel-blue: #E4F0FE;
  --pastel-yellow: #FFF8E5;
  --pastel-green: #EAF6F2;
  --pastel-lavender: #F4F2FB;
  --soft-shadow: 0 8px 24px 0 rgba(76,95,153,0.10), 0 1.5px 4px 0 rgba(70,70,70,0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
  line-height: 1.12;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  line-height: 1.17;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  line-height: 1.12;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, ul, ol, .lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0;
}
.lead {
  font-size: 1.1rem;
  color: #444;
  font-weight: 500;
}
strong { color: var(--primary); font-weight: 700; }

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.content-wrapper {
  margin-top: 5px;
  padding: 0;
}

/* Mandatory Spacing & Pattern Overrides */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SOFT PASTEL DESIGN ATMOSPHERE --- */
body {
  background: var(--pastel-lavender);
}
main > section {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  margin-bottom: 40px;
  padding: 32px 0 32px 0;
}
section:nth-child(2n) {
  background: var(--pastel-blue);
}
section:nth-child(3n) {
  background: var(--pastel-green);
}
@media (max-width: 768px) {
  main > section {
    padding: 18px 0;
    border-radius: var(--radius-md);
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  box-shadow: 0 2px 16px -4px rgba(38,53,74,0.08);
  z-index: 30;
  position: relative;
}
.header-flex {
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img {
  height: 46px;
  margin-right: 24px;
}
nav.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .cta {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  margin-left: 11px;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}
.main-nav .cta:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 16px -4px var(--secondary, #EBB72B);
}

/* --- MOBILE NAVIGATION (HAM MENU) --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--secondary);
  cursor: pointer;
  margin-left: 8px;
  z-index: 101;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover {
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(236, 237, 250, 0.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 22px 0 22px 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(110%);
  transition: opacity 0.35s cubic-bezier(.72,.15,.42,1.08), transform 0.45s cubic-bezier(.84,.04,.28,1.03);
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  padding: 8px 20px;
  margin-right: 18px;
  margin-bottom: 22px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding: 32px 24px;
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--soft-shadow);
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 8px 12px 12px;
  border-radius: var(--radius-md);
  width: 100%;
  color: var(--primary);
  font-family: var(--font-display);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- HERO & CTA Styling --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.cta, .cta.primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 34px;
  font-size: 1.07rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  margin-top: 10px;
  transition: background 0.21s, color 0.21s, box-shadow 0.25s;
  text-align: center;
}
.cta.primary {
  background: linear-gradient(90deg, #FCEABB 0%, #E4F0FE 100%);
  color: var(--primary);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 3px 9px 0 rgba(38,53,74,0.11);
}

.cta-block {
  background: var(--pastel-yellow);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 36px 24px;
}
.cta-block h2 { font-size: 1.5rem; text-align: center; }
.cta-block p { text-align: center; max-width: 600px; }
.cta-block .faq-snippet {
  margin-top: 32px;
}

/* --- FEATURES & CARD-LIKE ELEMENTS --- */
.features-grid, .team-grid, .awards-grid, .events-list, .about {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.features-grid > div, .team-grid > div, .events-list > div {
  min-width: 0;
  flex: 1 1 220px;
  background: var(--pastel-pink);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.11s, box-shadow 0.20s;
}
.features-grid > div:hover, .team-grid > div:hover, .events-list > div:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 16px 36px rgba(236,170,255,0.10), 0 2px 8px rgba(38,53,74,0.12);
}

.benefits-list, .membership-tiers, .comparison-table {
  background: var(--pastel-lavender);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  padding: 26px 20px;
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 220px;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: none;
  margin-top: 17px;
  font-size: 1rem;
}
.comparison-table th, .comparison-table td {
  border-bottom: 1px solid #ececec;
  text-align: center;
  padding: 11px 5px;
  background: none;
  font-family: var(--font-body);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table th { background: var(--pastel-blue); font-weight: 600; }

/* --- TESTIMONIALS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: var(--pastel-pink);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  min-width: 250px;
  flex: 1 1 280px;
  color: var(--primary);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.1s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(186,204,255,0.13), 0 2px 10px rgba(38,53,74,0.12);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card p {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #222;
  font-weight: 500;
  font-family: var(--font-body);
}
.testimonial-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #6b6d82;
  flex-wrap: wrap;
}
.star-rating {
  color: var(--secondary);
  font-weight: 700;
}

/* --- FAQ, LISTS, BLOCKS --- */
ul, ol {
  margin-bottom: 12px;
  padding-left: 22px;
}
li {
  margin-bottom: 7px;
  line-height: 1.7;
}
.faq-list, .faq-snippet {
  background: var(--pastel-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  padding: 21px 17px;
}

/* --- EVENTS & SUCCESS / AWARDS --- */
.events-list > div {
  background: var(--pastel-green);
}
.success-stories-snippet, .milestones, .ranking-list, .event-format-info {
  background: var(--pastel-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  margin-top: 22px;
  padding: 17px 16px;
}
.awards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.awards-grid > ul {
  flex: 2 1 320px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  background: var(--pastel-pink);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  padding: 20px 16px;
}
.awards-grid .milestones, .awards-grid .ranking-list {
  flex: 1 1 180px;
}
.ranking-list ol {
  padding-left: 21px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 40px 0 20px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 40px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.footer-flex img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0.87;
  transition: opacity 0.13s, color 0.15s;
}
.footer-nav a:hover {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  color: var(--accent);
  font-size: 0.98rem;
  opacity: 0.86;
  font-family: var(--font-body);
}
.footer-contact a { color: var(--secondary); }

/* --- LEGAL SECTION (GDPR, PRIVACY) --- */
.legal {
  background: var(--pastel-pink);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  padding: 32px 22px;
  margin-top: 15px;
}
.legal a {
  color: var(--secondary);
  text-decoration: underline;
}

/* --- ADDRESS, CONTACT INFO --- */
.address-details, .phone-email-list, .opening-hours {
  flex: 1 1 210px;
  background: var(--pastel-lavender);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  margin-bottom: 22px;
  padding: 20px 16px;
}
.phone-email-list img {
  height: 19px;
  width: 19px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: -2px;
}

/* --- GALLERY / TEXT-SECTION BLOCKS --- */
.text-section {
  background: var(--pastel-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  padding: 18px 16px 12px 16px;
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 240px;
}

/* --- BUTTONS GENERAL STYLES --- */
button, input[type=submit], .cta {
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
  outline: none;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s;
}
button:active, .cta:active { transform: scale(0.96); }

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .cta, .features-grid > div, .testimonial-card, .text-section {
  transition: box-shadow 0.20s, transform 0.15s;
}
.card:hover, .features-grid > div:hover, .testimonial-card:hover, .text-section:hover {
  box-shadow: 0 12px 28px rgba(185, 195, 255, 0.12), 0 2px 9px var(--primary, #26354A)22;
  transform: translateY(-5px) scale(1.01);
}

/* --- RESPONSIVE FLEXBOX RULES --- */
@media (max-width: 900px) {
  .features-grid, .events-list, .team-grid, .about, .awards-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .features-grid > div, .team-grid > div, .events-list > div, .about > div, .awards-grid > * {
    min-width: 0;
    width: 100%;
    max-width: 96vw;
  }
}
@media (max-width: 768px) {
  .content-grid, .about, .features-grid, .team-grid, .awards-grid, .events-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .header-flex, .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}

/* --- SPACING AND CONSISTENT GAPS --- */
main,
section,
.container,
.content-wrapper,
.card-container,
.features-grid,
.events-list,
.testimonial-card,
.about,
.awards-grid,
.team-grid {
  gap: 20px;
}
.card, .features-grid > div, .events-list > div, .team-grid > div, .testimonial-card, .text-section {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
}

/* --- COOKIE CONSENT STYLES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--pastel-yellow) 40%, var(--pastel-pink) 100%);
  color: var(--primary);
  padding: 24px 16px;
  box-shadow: 0 -4px 16px rgba(38,53,74,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  line-height: 1.45;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: opacity 0.28s, transform 0.42s;
}
.cookie-banner[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-left: 28px;
}
.cookie-banner .cookie-btn {
  padding: 8px 19px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  color: var(--primary);
  border: none;
  cursor: pointer;
  background: var(--secondary);
  font-weight: 600;
  box-shadow: var(--soft-shadow);
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .cookie-btn:focus {
  outline: 2px dashed var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover {
  background: var(--primary);
  color: var(--accent);
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 11000;
  top: 0;
  left: 0; right: 0; bottom: 0;
  background: rgba(38,53,74,0.26);
  justify-content: center;
  align-items: center;
  animation: fadeInCookieModal 0.3s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--pastel-lavender);
  color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 38px 28px 28px 28px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 8px 36px rgba(62,69,106,0.14);
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: showCookiePanel 0.37s cubic-bezier(.8,-0.01,.35,1.18);
  position: relative;
}
@keyframes showCookiePanel {
  from {transform: translateY(95px) scale(0.92); opacity: 0;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  background: var(--pastel-blue);
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-body);
  color: var(--primary);
}
.cookie-category .toggle {
  appearance: none;
  background: var(--pastel-green);
  width: 38px;
  height: 20px;
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  outline: none;
  border: 1px solid #ccc;
  transition: background 0.13s;
}
.cookie-category .toggle:checked {
  background: var(--secondary);
}
.cookie-category .toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.cookie-modal-content button {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-content button.secondary {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-modal-content button:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal-content .close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* --- ACCESSIBILITY HIGHLIGHTS --- */
:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #828A98; }
::-moz-placeholder { color: #828A98; }
:-ms-input-placeholder { color: #828A98; }
::placeholder { color: #828A98; }

/* Ensure min margins between all cards and sections */
.card-container > *, .features-grid > *, .events-list > *, .team-grid > *, .awards-grid > * {
  margin-bottom: 20px;
}
section + section {
  margin-top: 24px;
}

/* --- HIDE UNWANTED SCROLL WHEN MODALS/MENU OPEN --- */
body.modal-open, body.menu-open {
  overflow: hidden;
}

/* --- PRINT --- */
@media print {
  header, nav, footer, .cookie-banner, #cookie-modal { display: none !important; }
}
