/* ==========================================================================
   ATA public website (index.php, 'site' shell). Builds on ata-design-system.css
   tokens + components; parent-facing, so generous radii and playful type.
   ========================================================================== */

html { scroll-behavior: smooth; }
.ata-shell-site { background: var(--ata-white); }
.ata-shell-site section[id] { scroll-margin-top: 84px; }
.ata-site-container { max-width: 1160px; margin: 0 auto; padding: 0 var(--ata-space-5); }
.ata-site-narrow { max-width: 820px; }
@media (max-width: 560px) { .ata-site-container { padding: 0 var(--ata-space-4); } }

/* ---------------------------------------------------------------- header */
.ata-site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow var(--ata-duration) var(--ata-ease);
}
.ata-site-header.is-scrolled { box-shadow: 0 1px 0 var(--ata-border), var(--ata-shadow-sm); }
.ata-site-header-inner { display: flex; align-items: center; gap: var(--ata-space-4); min-height: 72px; }
.ata-site-brand { display: inline-flex; align-items: center; gap: var(--ata-space-2); font-family: var(--ata-font-display); font-weight: 700; font-size: var(--ata-text-lg); color: var(--ata-ink); }
.ata-site-brand:hover { text-decoration: none; }
.ata-site-brand img { border-radius: 50%; }
.ata-site-nav { display: flex; align-items: center; gap: var(--ata-space-1); margin-left: auto; }
.ata-site-nav > a { padding: 8px 12px; border-radius: var(--ata-radius-pill); color: var(--ata-ink-soft); font-weight: 600; font-size: var(--ata-text-sm); }
.ata-site-nav > a:hover { background: var(--ata-sky-tint); color: var(--ata-ink); text-decoration: none; }
.ata-site-nav-actions { display: flex; gap: var(--ata-space-2); margin-left: var(--ata-space-3); }
.ata-site-nav-actions .ata-btn:hover { text-decoration: none; }
.ata-site-menu-btn { display: none; margin-left: auto; border: none; background: transparent; color: var(--ata-ink); width: 44px; height: 44px; border-radius: var(--ata-radius-sm); cursor: pointer; align-items: center; justify-content: center; }
.ata-site-menu-btn:hover { background: var(--ata-sky-tint); }

@media (max-width: 900px) {
  .ata-site-menu-btn { display: inline-flex; }
  .ata-site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ata-white); padding: var(--ata-space-3) var(--ata-space-4) var(--ata-space-5);
    box-shadow: var(--ata-shadow-lg); border-radius: 0 0 var(--ata-radius-lg) var(--ata-radius-lg);
  }
  .ata-site-header.is-open .ata-site-nav { display: flex; }
  .ata-site-nav > a { padding: 12px 14px; font-size: var(--ata-text-base); border-radius: var(--ata-radius-md); }
  .ata-site-nav-actions { margin: var(--ata-space-3) 0 0; flex-direction: column; }
  .ata-site-nav-actions .ata-btn { padding: 14px; font-size: var(--ata-text-base); }
}

/* ---------------------------------------------------------------- shared section pieces */
.ata-site-section { padding: var(--ata-space-8) 0; }
.ata-site-section-tint { background: var(--ata-sky-tint); }
.ata-site-heading { max-width: 680px; margin: 0 auto var(--ata-space-6); text-align: center; }
.ata-site-heading h2 { font-family: var(--ata-font-display); font-weight: 800; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; margin: var(--ata-space-2) 0 var(--ata-space-3); color: var(--ata-ink); }
.ata-site-heading p { color: var(--ata-ink-soft); font-size: var(--ata-text-lg); margin: 0; }
.ata-site-eyebrow {
  display: inline-block; font-weight: 700; font-size: var(--ata-text-xs); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--ata-radius-pill); background: rgba(255, 255, 255, 0.22); color: var(--ata-white);
}
.ata-site-eyebrow-dark { background: var(--ata-lime-tint); color: var(--ata-lime-dark); }
.ata-site-note { text-align: center; color: var(--ata-ink-soft); font-size: var(--ata-text-sm); margin: var(--ata-space-5) auto 0; max-width: 620px; }
/* White button for use on the blue hero/CTA bands (not yellow — yellow is the one primary action) */
.ata-site-btn-light { background: rgba(255, 255, 255, 0.16); color: var(--ata-white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.ata-site-btn-light:hover { background: rgba(255, 255, 255, 0.28); text-decoration: none; }
.ata-btn:hover { text-decoration: none; }

.ata-site-btn-safari {
  background: var(--ata-white);
  color: var(--ata-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 49, 59, 0.14);
}
.ata-site-btn-safari:hover {
  background: var(--ata-lime-tint);
  color: var(--ata-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 49, 59, 0.2);
  text-decoration: none;
}
.ata-site-nav-safari {
  color: var(--ata-sky-dark) !important;
  font-weight: 700 !important;
}
.ata-site-nav-safari:hover {
  background: var(--ata-sky-tint) !important;
  color: var(--ata-ink) !important;
  text-decoration: none !important;
}

/* ---------------------------------------------------------------- hero */
.ata-site-hero {
  position: relative; overflow: hidden; color: var(--ata-white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, var(--ata-sky) 0%, var(--ata-sky-dark) 100%);
  padding: var(--ata-space-8) 0 calc(var(--ata-space-8) + 40px);
}
.ata-site-hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--ata-space-6); }
.ata-site-hero h1 { font-family: var(--ata-font-display); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; margin: var(--ata-space-4) 0; color: var(--ata-white); }
.ata-site-underline { position: relative; display: inline-block; }
.ata-site-underline::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: 0.02em; height: 0.16em; border-radius: var(--ata-radius-pill); background: var(--ata-yellow); z-index: -1; transform: rotate(-1.5deg); }
.ata-site-hero h1 { position: relative; z-index: 0; }
.ata-site-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 540px; margin: 0 0 var(--ata-space-5); opacity: .96; }
.ata-site-hero-ctas { display: flex; gap: var(--ata-space-3); flex-wrap: wrap; }
.ata-site-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--ata-space-3) var(--ata-space-5); padding: 0; margin: var(--ata-space-6) 0 0; font-size: var(--ata-text-sm); }
.ata-site-facts li { display: flex; flex-direction: column; line-height: 1.25; opacity: .95; }
.ata-site-facts strong { font-family: var(--ata-font-display); font-size: var(--ata-text-2xl); font-weight: 800; }
.ata-site-hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.ata-site-hero-art img { width: min(380px, 100%); height: auto; aspect-ratio: 1 / 1; align-self: center; object-fit: cover; object-position: center; border-radius: 50%; background: var(--ata-white); border: 10px solid var(--ata-white); box-shadow: 0 24px 60px rgba(22, 49, 59, 0.25); position: relative; z-index: 1; }
.ata-site-ball { position: absolute; z-index: 2; filter: drop-shadow(0 6px 10px rgba(22, 49, 59, 0.25)); animation: ata-site-bob 4s ease-in-out infinite; }
.ata-site-ball-1 { width: 54px; height: 54px; top: 4%; left: 6%; }
.ata-site-ball-2 { width: 32px; height: 32px; bottom: 10%; right: 4%; animation-delay: -2s; }
@keyframes ata-site-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(25deg); } }
.ata-site-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--ata-white); }
@media (max-width: 860px) {
  .ata-site-hero { padding-top: var(--ata-space-6); }
  .ata-site-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .ata-site-hero-art { order: -1; }
  .ata-site-hero-art img { width: 200px; }
  .ata-site-ball-1 { width: 40px; height: 40px; }
  .ata-site-lead { margin-left: auto; margin-right: auto; }
  .ata-site-hero-ctas, .ata-site-facts { justify-content: center; }
  .ata-site-hero-ctas .ata-btn { flex: 1 1 220px; }
}

/* ---------------------------------------------------------------- about / features */
.ata-site-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ata-space-4); }
.ata-site-feature { background: var(--ata-white); border: 1.5px solid var(--ata-border); border-radius: var(--ata-radius-lg); padding: var(--ata-space-5); transition: transform var(--ata-duration) var(--ata-ease), box-shadow var(--ata-duration) var(--ata-ease), border-color var(--ata-duration); }
.ata-site-feature:hover { transform: translateY(-3px); box-shadow: var(--ata-shadow-md); border-color: var(--ata-lime); }
.ata-site-feature h3 { font-family: var(--ata-font-display); font-size: var(--ata-text-lg); margin: var(--ata-space-3) 0 var(--ata-space-2); }
.ata-site-feature p { color: var(--ata-ink-soft); font-size: var(--ata-text-sm); margin: 0; }
.ata-site-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ata-sky-tint); display: inline-flex; align-items: center; justify-content: center; }
.ata-site-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ata-sky-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ata-site-feature:nth-child(2) .ata-site-icon { background: var(--ata-lime-tint); }
.ata-site-feature:nth-child(2) .ata-site-icon svg { stroke: var(--ata-lime-dark); }
@media (max-width: 960px) { .ata-site-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ata-site-features { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- programmes / locations */
/* As many columns as fit (3 across on desktop, 1 on phones) — any number of locations lays out evenly */
.ata-site-locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--ata-space-5); align-items: stretch; }
.ata-site-location { display: flex; flex-direction: column; background: var(--ata-white); border-radius: var(--ata-radius-xl); box-shadow: var(--ata-shadow-md); overflow: hidden; }
.ata-site-location-head { display: flex; justify-content: space-between; align-items: center; gap: var(--ata-space-3); padding: var(--ata-space-5); background: linear-gradient(135deg, var(--ata-sky), var(--ata-sky-dark)); color: var(--ata-white); }
.ata-site-location-head h3 { font-family: var(--ata-font-display); font-size: var(--ata-text-2xl); margin: 0; color: var(--ata-white); }
.ata-site-location-head p { margin: 0; opacity: .9; font-size: var(--ata-text-sm); }
.ata-site-location-head svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .85; flex-shrink: 0; }
.ata-site-programme { padding: var(--ata-space-5) var(--ata-space-5) var(--ata-space-2); }
.ata-site-programme + .ata-site-programme { border-top: 1.5px dashed var(--ata-border); }
.ata-site-programme-top { display: flex; justify-content: space-between; gap: var(--ata-space-4); margin-bottom: var(--ata-space-3); }
.ata-site-programme h4 { font-family: var(--ata-font-display); font-size: var(--ata-text-xl); margin: 0; display: flex; align-items: center; gap: var(--ata-space-2); flex-wrap: wrap; }
.ata-site-programme-top p { margin: 2px 0 0; color: var(--ata-ink-soft); font-size: var(--ata-text-sm); }
.ata-site-price { text-align: right; white-space: nowrap; }
.ata-site-price strong { display: block; font-family: var(--ata-font-display); font-size: var(--ata-text-xl); }
.ata-site-price span { font-size: var(--ata-text-xs); color: var(--ata-muted); }
.ata-site-age { display: inline-block; font-family: var(--ata-font-body); font-size: var(--ata-text-xs); font-weight: 700; padding: 2px 10px; border-radius: var(--ata-radius-pill); background: var(--ata-lime-tint); color: var(--ata-lime-dark); white-space: nowrap; }
.ata-site-slots { list-style: none; padding: 0; margin: 0; }
.ata-site-slots li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--ata-space-3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ata-border); font-size: var(--ata-text-sm); font-weight: 600; }
.ata-site-slots li:last-child { border-bottom: none; }
.ata-site-slots li.is-full > span:first-child { color: var(--ata-muted); text-decoration: line-through; }
.ata-site-avail { color: var(--ata-muted); font-weight: 600; font-size: var(--ata-text-xs); min-width: 64px; text-align: right; }
.ata-site-location-foot { margin-top: auto; padding: var(--ata-space-3) var(--ata-space-5) var(--ata-space-5); }
.ata-site-location-foot .ata-btn { width: 100%; }
@media (max-width: 480px) {
  .ata-site-programme-top { flex-direction: column; gap: var(--ata-space-2); }
  .ata-site-price { text-align: left; display: flex; align-items: baseline; gap: 6px; }
}

/* ---------------------------------------------------------------- how it works */
.ata-site-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ata-space-4); counter-reset: none; position: relative; }
.ata-site-steps li { text-align: center; padding: var(--ata-space-4); position: relative; }
.ata-site-steps li:not(:last-child)::after { content: ''; position: absolute; top: 44px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2.5px dashed var(--ata-lime); }
.ata-site-step-num { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ata-sky-tint); color: var(--ata-sky-dark); font-family: var(--ata-font-display); font-weight: 800; font-size: var(--ata-text-2xl); border: 3px solid var(--ata-white); box-shadow: 0 0 0 2.5px var(--ata-sky); }
.ata-site-steps h3 { font-family: var(--ata-font-display); font-size: var(--ata-text-lg); margin: var(--ata-space-3) 0 var(--ata-space-1); }
.ata-site-steps p { color: var(--ata-ink-soft); font-size: var(--ata-text-sm); margin: 0; }
@media (max-width: 860px) {
  .ata-site-steps { grid-template-columns: 1fr 1fr; }
  .ata-site-steps li::after { display: none; }
}
@media (max-width: 480px) {
  .ata-site-steps { grid-template-columns: 1fr; }
  .ata-site-steps li { display: grid; grid-template-columns: 60px 1fr; gap: 0 var(--ata-space-4); text-align: left; padding: var(--ata-space-2) 0; }
  .ata-site-step-num { grid-row: span 2; }
  .ata-site-steps h3 { margin-top: 6px; }
}

/* ---------------------------------------------------------------- fees */
.ata-site-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: var(--ata-space-5); }
.ata-site-fee { position: relative; background: var(--ata-white); border-radius: var(--ata-radius-xl); padding: var(--ata-space-6) var(--ata-space-5) var(--ata-space-5); box-shadow: var(--ata-shadow-md); display: flex; flex-direction: column; border: 2px solid transparent; }
.ata-site-fee.is-featured { border-color: var(--ata-lime); }
.ata-site-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ata-lime); color: var(--ata-white); font-weight: 700; font-size: var(--ata-text-xs); padding: 5px 14px; border-radius: var(--ata-radius-pill); white-space: nowrap; }
.ata-site-fee h3 { font-family: var(--ata-font-display); font-size: var(--ata-text-xl); margin: 0; }
.ata-site-fee-sub { color: var(--ata-muted); font-size: var(--ata-text-sm); margin: 2px 0 var(--ata-space-4); }
.ata-site-fee-price { font-family: var(--ata-font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.ata-site-fee-price span { font-size: var(--ata-text-base); font-weight: 600; color: var(--ata-muted); margin-left: 4px; }
.ata-site-fee-alt { font-size: var(--ata-text-sm); color: var(--ata-ink-soft); margin: var(--ata-space-2) 0 0; }
.ata-site-ticks { list-style: none; padding: 0; margin: var(--ata-space-4) 0 var(--ata-space-5); flex: 1; }
.ata-site-ticks li { position: relative; padding: 6px 0 6px 28px; font-size: var(--ata-text-sm); }
.ata-site-ticks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ata-lime-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367A030' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------------------------------------------------------------- FAQ */
.ata-site-faq { display: grid; gap: var(--ata-space-3); }
.ata-site-faq details { background: var(--ata-white); border: 1.5px solid var(--ata-border); border-radius: var(--ata-radius-lg); padding: 0 var(--ata-space-5); transition: border-color var(--ata-duration); }
.ata-site-faq details[open] { border-color: var(--ata-sky); box-shadow: var(--ata-shadow-sm); }
.ata-site-faq summary { list-style: none; cursor: pointer; padding: var(--ata-space-4) 0; font-family: var(--ata-font-display); font-weight: 600; font-size: var(--ata-text-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--ata-space-3); }
.ata-site-faq summary::-webkit-details-marker { display: none; }
.ata-site-faq summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ata-sky-tint); color: var(--ata-sky-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform var(--ata-duration) var(--ata-ease); }
.ata-site-faq details[open] summary::after { transform: rotate(45deg); }
.ata-site-faq details p { color: var(--ata-ink-soft); margin: 0 0 var(--ata-space-4); }

/* ---------------------------------------------------------------- final CTA band */
.ata-site-cta { padding: 0 0 var(--ata-space-8); }
.ata-site-cta-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--ata-space-5); align-items: center;
  background: linear-gradient(135deg, var(--ata-sky), var(--ata-sky-dark)); color: var(--ata-white);
  border-radius: var(--ata-radius-xl); padding: var(--ata-space-6);
  box-shadow: var(--ata-shadow-lg);
}
.ata-site-cta-inner img { border-radius: 50%; background: var(--ata-white); aspect-ratio: 1; object-fit: cover; }
.ata-site-cta h2 { font-family: var(--ata-font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 var(--ata-space-1); color: var(--ata-white); }
.ata-site-cta p { margin: 0; opacity: .95; }
.ata-site-cta-actions { display: flex; flex-direction: column; gap: var(--ata-space-2); }
@media (max-width: 860px) {
  .ata-site-cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: var(--ata-space-5); }
  .ata-site-cta-actions { width: 100%; max-width: 360px; }
}

/* ---------------------------------------------------------------- footer */
.ata-site-footer { background: var(--ata-ink); color: rgba(255, 255, 255, 0.78); padding: var(--ata-space-7) 0 var(--ata-space-5); font-size: var(--ata-text-sm); }
.ata-site-footer .ata-site-brand { color: var(--ata-white); margin-bottom: var(--ata-space-3); }
.ata-site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--ata-space-6); }
.ata-site-footer h4 { font-family: var(--ata-font-display); color: var(--ata-white); font-size: var(--ata-text-base); margin: 0 0 var(--ata-space-3); }
.ata-site-footer-grid a:not(.ata-site-brand) { display: block; color: rgba(255, 255, 255, 0.78); padding: 3px 0; }
.ata-site-footer a:hover { color: var(--ata-white); }
.ata-site-footer-bottom { display: flex; justify-content: space-between; gap: var(--ata-space-3); flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: var(--ata-space-6); padding-top: var(--ata-space-4); font-size: var(--ata-text-xs); }
.ata-site-footer-bottom a { color: rgba(255, 255, 255, 0.55); }
@media (max-width: 720px) { .ata-site-footer-grid { grid-template-columns: 1fr 1fr; } .ata-site-footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ata-site-ball { animation: none; }
}
