/* ============ Tokens ============ */
:root {
  --color-primary: #A85535;
  --color-primary-light: #C1673E;
  --color-secondary: #5F7350;
  --color-accent: #E0A438;
  --color-background: #FBF6EE;
  --color-surface: #FFFFFF;
  --color-foreground: #3A2B22;
  --color-muted: #F1E7D8;
  --color-muted-foreground: #6B5D4F;
  --color-border: #E6D8C3;

  --font-heading: 'Varela Round', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 32px rgba(58, 43, 34, 0.10);
  --shadow-soft-sm: 0 4px 14px rgba(58, 43, 34, 0.08);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  color: var(--color-foreground);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-primary); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft-sm); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: #8f4527; }
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-secondary:hover { background: #4d5f41; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container { max-width: 1320px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.brand-mark { color: var(--color-primary); display: inline-flex; }
.brand-text strong { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  color: var(--color-foreground);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.primary-nav a {
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-color: var(--color-accent); }
.nav-cta { display: none; white-space: nowrap; padding: 12px 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3);
    display: none;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: var(--shadow-soft);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: var(--space-1); }
  .nav-cta { display: inline-flex; align-self: flex-start; }
}
@media (min-width: 1081px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .nav-cta { display: inline-flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-7);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
}
.hero-blob-1 { width: 420px; height: 420px; background: var(--color-muted); top: -180px; right: -140px; }
.hero-blob-2 { width: 260px; height: 260px; background: #E8D9C3; bottom: -120px; left: -100px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--color-muted-foreground);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-3) var(--space-4);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  max-width: 16ch;
}
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  z-index: 1;
}
.hero-photo {
  width: 100%;
  height: auto;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--color-surface);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 340px; margin-inline: auto; }
}

/* ============ Gallery strip ============ */
.gallery-strip {
  padding-block: var(--space-4);
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}
.gallery-grid li {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft-sm);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery-grid li:hover img { transform: scale(1.06); }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Sections ============ */
.section { padding-block: var(--space-7); }
.section-alt { background: var(--color-muted); }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-lead { color: var(--color-muted-foreground); font-size: 1.05rem; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.about-text p { color: var(--color-muted-foreground); }
.about-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-sm);
  margin-bottom: var(--space-3);
}
.about-board {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft-sm);
}
.board-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-2); }
.board-list li { display: flex; align-items: center; gap: var(--space-2); }
.board-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-foreground);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============ Cards / activities ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(58, 43, 34, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-adult { border-top-color: var(--color-secondary); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-muted);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--space-3);
}
.card-age {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(95,115,80,0.12);
  padding: 3px 10px;
  border-radius: 999px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-foreground);
}
.card-title-sm {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-foreground);
}
.card-teaser {
  color: var(--color-muted-foreground);
  font-size: 0.95rem;
}
.card-more {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
}
.card:hover .card-more { text-decoration: underline; }

.subgroup-title {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
}
.card-grid-adult { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============ News ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  border-top: 4px solid var(--color-accent);
}
.news-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--color-muted);
  display: block;
}
.news-card-body {
  padding: var(--space-4);
}
.news-date {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.news-card p { color: var(--color-muted-foreground); margin-bottom: var(--space-2); }
.news-card p:last-child { margin-bottom: 0; }
.news-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--space-2);
  padding: var(--space-2);
  background: var(--color-muted);
  border-radius: var(--radius-md);
}
.news-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.9rem;
}
.news-list li span:first-child { font-weight: 700; color: var(--color-foreground); }
.news-list li span:last-child { color: var(--color-muted-foreground); white-space: nowrap; }

/* ============ Documents ============ */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.doc-item {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-sm);
  border-color: var(--color-primary);
}
.doc-type {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--color-secondary);
  border-radius: 8px;
  padding: 6px 4px;
}
.doc-info { flex: 1; min-width: 0; }
.doc-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.doc-item p { color: var(--color-muted-foreground); font-size: 0.92rem; margin-bottom: 0; }
.doc-download {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-primary);
}
.doc-size {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-muted-foreground);
  white-space: nowrap;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--color-muted-foreground); padding-bottom: 8px; margin-bottom: 0; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.info-list { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0 var(--space-4); }
.info-list li { display: flex; align-items: center; gap: 12px; }
.info-icon { color: var(--color-primary); flex-shrink: 0; }
.info-list a { color: var(--color-foreground); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--color-primary); }
.hours-note {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-muted);
  border-radius: var(--radius-md);
  color: var(--color-muted-foreground);
}
.hours-note a { color: var(--color-primary); font-weight: 600; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft-sm);
}
.form-row { margin-bottom: var(--space-2); display: flex; flex-direction: column; gap: 6px; }
.bot-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-row label { font-weight: 700; font-size: 0.92rem; }
.optional { font-weight: 400; color: var(--color-muted-foreground); }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-foreground);
  min-height: 48px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 1px;
  border-color: var(--color-secondary);
}
.form-status { min-height: 1.2em; font-weight: 700; color: var(--color-secondary); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-foreground);
  color: #EFE6DA;
  padding-top: var(--space-5);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { display: flex; gap: 12px; }
.footer-brand .brand-mark { color: var(--color-accent); }
.footer-brand p { color: #D9CBBA; margin: 0; font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a {
  color: #EFE6DA;
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-block: var(--space-3);
  font-size: 0.85rem;
  color: #C6B7A4;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============ Activity modal ============ */
.activity-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--color-surface);
  color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
  position: fixed;
  inset: 0;
  margin: auto;
}
.activity-modal::backdrop {
  background: rgba(58, 43, 34, 0.55);
  backdrop-filter: blur(2px);
}
.activity-modal[open] {
  animation: modal-in 220ms ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .activity-modal[open] { animation: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft-sm);
}
.modal-close:hover { background: #fff; }

.modal-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: var(--space-4);
}
.modal-body h3 {
  font-size: 1.5rem;
  margin-top: 6px;
}
.modal-body > p {
  color: var(--color-muted-foreground);
}

.modal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px var(--space-2);
  margin: var(--space-3) 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.modal-meta dt {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-secondary);
  white-space: nowrap;
}
.modal-meta dd {
  margin: 0;
  color: var(--color-foreground);
}


@media (max-width: 480px) {
  .activity-modal { width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
}
