/* Raket Sporları Akademi — statik tanıtım sitesi
 * Tek görsel motif: kort çizgileri. Lime yalnızca çizgilerde, filede ve deneme dersi butonunda kullanılır.
 */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url(fonts/archivo-latin-ext-standard-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url(fonts/archivo-latin-standard-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --petrol-900: #072F42;
    --petrol-700: #0B4A66;
    --petrol-300: #7FB3C9;
    --lime: #A8C01A;
    --chalk: #F4F7F6;
    --ink: #0D2531;
    --muted: #4F6A77;
    --rule: #C9D6DB;

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --step-0: 1.0625rem;
    --step-1: 1.3125rem;
    --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
    --step-hero: clamp(3.1rem, 1.4rem + 7.6vw, 8.2rem);

    --gutter: 16px;
    --section-space: clamp(4rem, 2.8rem + 6vw, 7.5rem);

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--chalk);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    font-stretch: 100%;
    font-weight: 400;
}

img, svg { display: block; }

h1, h2, h3 { margin: 0; font-stretch: 68%; font-weight: 800; line-height: 1.02; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 80%; font-weight: 750; line-height: 1.2; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }

.skip {
    position: absolute; left: var(--gutter); top: -100px; z-index: 10;
    background: var(--ink); color: var(--chalk); padding: 0.6rem 1rem; border-radius: 4px;
}
.skip:focus { top: var(--gutter); }

/* ------------------------------------------------------------ Butonlar */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0.55rem 1.15rem;
    border-radius: 999px; font-weight: 650; font-stretch: 90%;
    text-decoration: none; white-space: nowrap;
}
.btn-petrol { background: var(--petrol-700); color: var(--chalk); }
.btn-petrol:hover { background: var(--petrol-900); }
.btn-lime { background: var(--lime); color: var(--ink); font-size: 1.0625rem; padding-inline: 1.4rem; }
.btn-lime:hover { background: #BBD43A; }

/* ------------------------------------------------------------ Üst bant */

.site-header { background: var(--chalk); border-bottom: 1px solid var(--rule); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-name { font-weight: 750; font-stretch: 75%; font-size: 1.2rem; line-height: 1.1; color: var(--petrol-700); }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 550; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
    .site-nav { display: none; }
}
@media (max-width: 420px) {
    .brand-name { font-size: 1rem; max-width: 9rem; }
}

/* ------------------------------------------------------------ Hero: tek zemin, üç spor */

.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--petrol-700); color: var(--chalk);
    min-height: clamp(560px, 86vh, 780px);
    display: flex; align-items: center;
}

.hero-court { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-lines path, .hero-net { fill: none; stroke-linecap: square; }
.hero-tennis path { stroke: var(--chalk); stroke-width: 0.5; opacity: 0.38; }
.hero-padel path { stroke: var(--petrol-300); stroke-width: 0.5; opacity: 0.55; }
.hero-badminton path { stroke: var(--lime); stroke-width: 0.42; opacity: 0.95; }
.hero-net { stroke: var(--chalk); stroke-width: 0.6; opacity: 0.85; }

/* Sayfa açılışında çizgiler bir kez çizilir: önce tenis, sonra padel, en son badminton ve file. */
@media (prefers-reduced-motion: no-preference) {
    .hero-lines path, .hero-net {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: draw-line 1.3s cubic-bezier(.3, .6, .2, 1) forwards;
    }
    .hero-padel path { animation-delay: 0.35s; }
    .hero-badminton path { animation-delay: 0.7s; }
    .hero-net { animation-delay: 1.05s; animation-duration: 0.7s; }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero-inner { padding-block: 4rem; }

.hero h1 {
    font-size: var(--step-hero);
    font-stretch: 62%;
    font-weight: 850;
    line-height: 0.9;
}
.hero h1 span { display: block; }

/* Metnin arkasındaki çizgileri harflerin çevresinde silen zemin rengi hâlesi */
.hero h1, .hero-lead, .hero-link, .hero-legend {
    text-shadow:
        0 0 2px var(--petrol-700), 0 0 4px var(--petrol-700),
        0 0 8px var(--petrol-700), 0 0 16px var(--petrol-700);
}

.hero-lead {
    margin-top: 1.6rem; max-width: 34rem;
    font-size: var(--step-1); line-height: 1.45;
}

@media (max-width: 720px) {
    .hero-tennis path { opacity: 0.22; }
    .hero-padel path { opacity: 0.35; }
    .hero-badminton path { opacity: 0.6; }
    .hero-net { opacity: 0.5; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.hero-link { font-weight: 600; text-decoration: underline; }

.hero-legend {
    list-style: none; margin: 3.5rem 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
    font-size: 0.875rem; color: rgba(244, 247, 246, 0.82);
}
.hero-legend li { display: flex; align-items: center; gap: 0.5rem; }
.key { width: 22px; height: 0; border-top: 3px solid; }
.key-badminton { border-color: var(--lime); }
.key-padel { border-color: var(--petrol-300); }
.key-tennis { border-color: rgba(244, 247, 246, 0.6); }

/* ------------------------------------------------------------ Bölümler */

.section { padding-block: var(--section-space); }

.section-head { max-width: 40rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* ------------------------------------------------------------ Branşlar: aynı ölçekte kortlar (1 m = 12 px) */

.scale { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; }
.scale-bar { width: 60px; height: 8px; border: 2px solid var(--petrol-700); border-top: 0; }

.courts {
    list-style: none; margin: 3.5rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 3rem 2.5rem;
}

.court { border-top: 2px solid var(--petrol-700); padding-top: 1.25rem; }
.court > p:last-child { margin-top: 0.5rem; color: var(--muted); max-width: 32ch; }

.court-stage { height: 168px; display: flex; align-items: flex-end; margin-bottom: 1.25rem; }
.court-stage svg { max-width: 100%; height: auto; } /* yalnızca 320 px altı ekranlarda tenis kortu küçülür */

.court .dims { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--petrol-700); font-variant-numeric: tabular-nums; }

.court .surface { fill: var(--petrol-700); }
.court .line { fill: none; stroke: var(--chalk); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.court .wall { fill: none; stroke: var(--petrol-300); stroke-width: 3; vector-effect: non-scaling-stroke; }
.court .net { fill: none; stroke: var(--lime); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

.sequence {
    list-style: none; counter-reset: rally; margin: 0; padding: 0;
    display: grid; gap: 0.55rem; align-self: center;
}
.sequence li { counter-increment: rally; display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.sequence li::before {
    content: counter(rally);
    display: inline-grid; place-items: center;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: var(--petrol-700); color: var(--lime);
    font-size: 0.875rem; font-weight: 750;
}

/* ------------------------------------------------------------ Sınıflar */

.classes-section { background: #FFFFFF; border-block: 1px solid var(--rule); }

.classes-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .classes-grid { grid-template-columns: 1fr 2fr; column-gap: 4rem; }
    .classes-grid .section-head { grid-row: span 2; }
}

.levels { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.levels li { border: 1.5px solid var(--petrol-700); border-radius: 999px; padding: 0.35rem 1rem; font-weight: 600; color: var(--petrol-700); }

.track {
    list-style: none; margin: 1.25rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(7, 1fr);
    border-top: 3px solid var(--petrol-700);
}
.track li { position: relative; padding: 1rem 0.4rem 0 0; }
.track li::before {
    content: ''; position: absolute; top: -9px; left: 0;
    width: 3px; height: 15px; background: var(--petrol-700);
}
.track .track-start::before { background: var(--lime); width: 4px; }
.track .age { display: block; font-size: var(--step-2); font-weight: 800; font-stretch: 70%; line-height: 1; font-variant-numeric: tabular-nums; }
.track .stage-name { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--muted); }

.note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 720px) {
    .track { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--petrol-700); }
    .track li { display: flex; align-items: baseline; gap: 1rem; padding: 0.55rem 0 0.55rem 1.1rem; }
    .track li::before { top: 50%; left: -9px; width: 15px; height: 3px; }
    .track .track-start::before { height: 4px; width: 15px; }
    .track .age { min-width: 3.2ch; }
    .track .stage-name { margin-top: 0; }
}

/* ------------------------------------------------------------ Akademi */

.academy-section { background: var(--petrol-900); color: var(--chalk); }
.academy-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
    .academy-grid { grid-template-columns: 1fr 2fr; column-gap: 4rem; align-items: start; }
}
.academy-text { max-width: 62ch; display: grid; gap: 1.1rem; color: rgba(244, 247, 246, 0.86); }
.academy-lead { font-size: var(--step-2); line-height: 1.3; font-stretch: 85%; font-weight: 600; color: var(--chalk); }

/* ------------------------------------------------------------ İletişim */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: end; }
}
.contact-grid p { margin-top: 1rem; color: var(--muted); max-width: 34rem; }

.contact-list { margin: 0; display: grid; gap: 1.25rem; }
.contact-list div { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.contact-list dt { font-size: 0.875rem; color: var(--muted); }
.contact-list dd { margin: 0.2rem 0 0; font-size: var(--step-1); font-weight: 650; }
.contact-mail { font-size: var(--step-2); font-stretch: 78%; font-weight: 750; color: var(--petrol-700); word-break: break-word; }

/* ------------------------------------------------------------ Alt bant */

.site-footer { background: var(--ink); color: rgba(244, 247, 246, 0.8); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ------------------------------------------------------------ Metin sayfaları (gizlilik, 404) */

.prose { max-width: 68ch; padding-block: var(--section-space); }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-1); font-stretch: 85%; margin-top: 2.2rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose li + li { margin-top: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.9375rem; }
