﻿/* Shared refinements, followed by the home page composition. */
:root { --r-lg: 18px; --r-xl: 24px; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
body { overflow-wrap: break-word; }
.btn { border-radius: 12px; min-height: 44px; }
.icon-btn, .burger { min-width: 44px; min-height: 44px; }
.logo { font-family: 'Unbounded', system-ui, sans-serif; font-size: 13px; }
.nav-desktop { gap: 22px; }
.nav-desktop a { padding-block: 12px; }
.head-controls { margin-left: auto; }
.topbar .container { gap: 20px; }
.topbar { padding-block: 12px; }
.card { box-shadow: none; }
.input, select, textarea { min-width: 0; }
.form-grid-2 > *, .dashboard-layout > *, .profile-layout > * { min-width: 0; }
.lang-menu { visibility: hidden; }
.lang-menu.open { visibility: visible; }
.lang-menu button { min-height: 44px; }
.mobile-drop { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
body.menu-open { overflow: hidden; }
.tabbar { height: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.tabbar a { min-height: 48px; justify-content: center; color: var(--text-soft); }
.tab-spacer { height: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }
.cookie-banner { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); box-shadow: var(--shadow-sm); }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.fade-up { opacity: 1; transform: none; }
.home-page .section { padding-block: 64px; }
.home-page .section + .section { padding-top: 16px; }
.home-page h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.04em; }
.home-page .eyebrow { font-size: 11px; letter-spacing: .12em; }
.home-page .lead { font-size: 16px; max-width: 65ch; line-height: 1.75; }
.home-hero { background: var(--bg); color: var(--text); padding: 64px 0 52px; }
.home-hero::before, .home-hero::after { content: none; }
.home-hero .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
.home-hero .eyebrow { color: var(--text-soft) !important; }
.home-hero .eyebrow::before { background: var(--red-600); }
.home-hero h1 { font-size: clamp(42px, 4.5vw, 66px); line-height: 1.07; letter-spacing: -.055em; font-weight: 800; }
.home-hero h1 em { background: none; color: var(--red-500); }
[data-theme="light"] .home-hero h1 em { color: var(--red-600); }
.home-hero p.lead { color: var(--text-soft); font-size: 16px; margin-top: 24px; max-width: 43ch; }
.hero-actions { align-items: center; gap: 24px; margin-top: 30px; }
.hero-actions .btn { gap: 26px; min-height: 52px; }
.hero-secondary { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--border-strong); padding-block: 8px; }
.hero-secondary:hover { color: var(--red-500); }
.hero-visual { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 22px; aspect-ratio: 1.12; background: var(--surface); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.hero-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hero-caption { position: absolute; bottom: 26px; left: 26px; right: 26px; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: white; gap: 16px; }
.hero-caption strong { display: block; font-size: 20px; margin-top: 6px; }
.hero-caption div > span { font-size: 12px; color: #e0e0e0; }
.home-page #classSelect { border-top: 1px solid var(--border); }
.home-page #classGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-page .class-card { position: relative; padding: 22px 24px; align-items: flex-start; text-align: left; border-width: 1px; border-radius: 16px; box-shadow: none; }
.home-page .class-card-img { height: 130px; aspect-ratio: auto; margin-bottom: 12px; }
.home-page .class-card-img img { width: 100%; height: 100%; filter: none; }
.home-page .class-card-title { font-size: 19px; }
.home-page .class-card-desc { font-size: 13px; line-height: 1.55; max-width: 28ch; min-height: 40px; display: block; }
.home-page .class-card:hover { transform: translateY(-2px); border-color: var(--text-soft); }
.home-page .class-card.active { transform: none; border-color: var(--red-500); box-shadow: inset 0 0 0 1px var(--red-500); }
.home-page .class-card.active::after { content: '✓'; position: absolute; top: 14px; right: 14px; color: var(--red-500); font-weight: 800; }
.class-results:empty { margin-top: 0; }
.class-route { background: var(--surface); }
.class-results .empty-state { border: 1px dashed var(--border-strong); border-radius: 16px; padding: 32px 20px; }
.class-results .empty-state .btn { margin-top: 16px; }
.route-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.home-page .route-links > a { position: relative; padding: 24px 28px 24px 0 !important; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; transform: none; box-shadow: none; }
.route-links > a::after { content: '↗'; position: absolute; right: 0; top: 24px; font-size: 18px; color: var(--text-soft); }
.route-links > a:hover h3 { color: var(--red-500); }
.route-links > a h3 { font-size: 16px; line-height: 1.5; }
.route-links > a p { line-height: 1.65; }
.home-page #faq .container { display: block; }
.home-page #faq .section-head { margin-bottom: 28px; }
.home-page .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px 20px; max-width: none; }
.home-page .faq-item { padding: 0; border-radius: 14px; box-shadow: none; min-width: 0; transition: border-color .2s; }
.home-page .faq-item:hover { border-color: var(--border-strong); }
.home-page .faq-item[open] { border-color: var(--border-strong); background: var(--bg-soft); }
.home-page .faq-item summary { padding: 24px; min-height: 96px; font-size: 16px; line-height: 1.5; gap: 16px; }
.home-page .faq-number { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.home-page .faq-question { flex: 1; }
.home-page .faq-item summary::after { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; }
.home-page .faq-item[open] summary::after { color: var(--red-500); }
.home-page .faq-item p { margin: 0; padding: 0 24px 24px 56px; font-size: 14px; line-height: 1.8; }
.home-page .footer { border-top: 1px solid var(--border); }
@media (min-width: 1100px) { .cookie-banner { bottom: 20px; } }
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-desktop, .nav-actions { display: none; }
  .burger { display: flex; }
  .mobile-drop:not(.hidden) { display: block !important; }
}
@media (max-width: 899px) {
  .topbar .container { gap: 10px; }
  .home-hero .hero-grid { gap: 28px; }
  .home-hero h1 { font-size: clamp(38px, 5.4vw, 54px); }
  .home-hero .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero-visual { aspect-ratio: .85; }
  .hero-actions { gap: 16px; }
  .hero-caption { left: 18px; right: 18px; bottom: 18px; }
  .hero-caption strong { font-size: 16px; }
  .home-page .faq-list { grid-template-columns: 1fr; }
  .route-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer a { min-height: 40px; font-size: 13px; }
  .logo { font-size: 11px; gap: 6px; }
  .logo-mark { width: 28px; height: 28px; }
  .head-controls { gap: 4px; }
  .topbar .container { gap: 6px; }
  .home-hero { padding: 36px 0 32px; }
  .home-hero .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-hero h1 { font-size: clamp(40px, 10.8vw, 62px); }
  .home-hero p.lead { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 22px; gap: 20px; }
  .hero-actions .btn { padding-inline: 16px; gap: 16px; }
  .hero-secondary { font-size: 13px; }
  .hero-visual { aspect-ratio: 1.9; border-radius: 16px; }
  .hero-visual > img { object-position: center 65%; }
  .hero-caption strong { font-size: 17px; }
  .hero-caption div > span { font-size: 11px; }
  .home-page .section { padding-block: 36px; }
  .home-page .section + .section { padding-top: 8px; }
  .home-page .section-head { margin-bottom: 20px; }
  .home-page .lead { font-size: 14px; line-height: 1.7; }
  .home-page #classGrid { gap: 8px; }
  .home-page .class-card { padding: 12px 8px; border-radius: 12px; align-items: center; text-align: center; }
  .home-page .class-card-img { height: 64px; aspect-ratio: auto; margin-bottom: 6px; }
  .home-page .class-card-title { font-size: 14px; }
  .home-page #classGrid .class-card-desc { display: none; }
  .home-page .class-card.active::after { top: 4px; right: 7px; font-size: 11px; }
  .route-links { grid-template-columns: 1fr; }
  .home-page .route-links > a { padding-block: 18px !important; }
  .route-links > a::after { top: 18px; }
  .class-route { padding: 16px; }
  .cookie-banner { padding: 12px 14px; }
}
/* About: one compact accordion across the content width, without an empty side column. */
.about-faq-heading { margin-bottom: 20px; }
.about-faq-heading h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.035em; }
.about-faq-list { max-width: none; gap: 0; counter-reset: about-question; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.about-faq-list .faq-item { counter-increment: about-question; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.about-faq-list .faq-item:last-child { border-bottom: 0; }
.about-faq-list .faq-item summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; align-items: center; gap: 16px; min-height: 68px; padding: 18px 24px; font-size: 15px; line-height: 1.5; transition: background .2s; }
.about-faq-list .faq-item summary:hover, .about-faq-list .faq-item[open] { background: var(--bg-soft); }
.about-faq-list .faq-item summary:focus-visible { outline-offset: -3px; }
.about-faq-list .faq-item summary::before { content: counter(about-question, decimal-leading-zero); color: var(--text-soft); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.about-faq-list .faq-item summary::after { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; line-height: 1; }
.about-faq-list .faq-item[open] summary::after { color: var(--red-500); }
.about-faq-list .faq-item p { margin: 0; padding: 0 68px 22px 64px; font-size: 14px; line-height: 1.75; }
@media (max-width: 639px) {
  .about-faq-list .faq-item summary { grid-template-columns: 20px minmax(0, 1fr) 26px; gap: 10px; padding: 16px; font-size: 14px; }
  .about-faq-list .faq-item p { padding: 0 16px 20px 46px; font-size: 13.5px; }
}

/* Route photography carousel; the first link remains usable without JavaScript. */
.hero-carousel { min-width: 0; position: relative; aspect-ratio: 1.12; border-radius: 22px; overflow: hidden; background: var(--surface); isolation: isolate; }
.hero-carousel .hero-visual { height: 100%; aspect-ratio: auto; border-radius: inherit; }
.hero-carousel.is-ready .hero-visual { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s; }
.hero-carousel.is-ready .hero-visual.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition: opacity .5s ease; }
.hero-carousel .hero-visual::after { inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.hero-carousel.is-ready .hero-caption { bottom: 26px; }
.hero-carousel .hero-caption strong { font-size: clamp(18px, 1.65vw, 24px); line-height: 1.3; text-wrap: balance; }
.hero-carousel :focus-visible { outline-color: white; outline-offset: -3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 640px) and (max-width: 899px) {
  .hero-carousel { aspect-ratio: .85; }
}
@media (max-width: 639px) {
  .hero-carousel { aspect-ratio: 1.45; min-height: 220px; border-radius: 16px; }
  .hero-carousel.is-ready .hero-caption { bottom: 18px; left: 18px; right: 18px; }
  .hero-carousel .hero-caption strong { font-size: 19px; }
  .home-page .faq-item summary { padding: 18px; gap: 12px; min-height: 84px; font-size: 14px; }
  .home-page .faq-item p { padding: 0 18px 20px 46px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

