/* ==========================================================================
   Pilates · Klinik. Üst tema (pilates) stillerinin üzerine: beyaz ve buz mavisi sayfa, mavi
   marka, lacivert bantlar, açık mavi vurgu; sade grotesk başlıklar (büyük harf yok), düzenli
   ızgara, ölçülü köşeler, beyaz kartlar. Bilgilendirici, sakin sağlık dili.
   - Başlık: üst bilgi satırı (telefon, saatler, WhatsApp, dil) + beyaz ana çubuk (≥1280 px menü).
   - Manşet: fotoğraf bandı + bandın altına binen beyaz metin kutusu ve buz mavisi bilgi bloğu.
   Yönler mantıksal özelliklerle; Arapçada harf aralığı ve büyük harf kapalı.
   ========================================================================== */
@layer reset, tokens, base, components, utilities, theme;

@layer theme {
    /* ---- Yazı: sade grotesk ------------------------------------------------------------ */
    .section-title, .page__title, .content-page__title, .pl-class__title, .pl-plan__name, .pl-plan__price, .pl-studio__title,
    .promise__title, .entry-card__title, .dz-heading:is(h1, h2, h3), .banner__title, .about-hero__title, .about-cta__title,
    .contact-hero__title, .brand__name, .profile__name, .faq__question, .content-page__body h2 {
        font-weight: 700; letter-spacing: -0.015em; text-transform: none;
    }
    .entry-card--uye .entry-card__title, .promise__title { text-transform: none; }
    .section-title, .dz-heading:is(h1, h2) { line-height: 1.12; }
    .pl-eyebrow, .pl-tag, .pl-plan__badge, .pl-class__more, .entry-card__date, .pl-studio__place, .about-hero__eyebrow,
    .profile__role, .section-head__link {
        font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; text-transform: none;
    }

    /* ---- Düğmeler: ölçülü köşe ----------------------------------------------------------- */
    .button, .pl-pill, .section-head__link, .banner__button { border-radius: var(--radius); }
    .pl-pill { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
    .pl-pill--brand:hover { background: var(--night); color: #ffffff; }
    .banner__button { text-transform: none; letter-spacing: 0; font-size: 1rem; }

    /* ---- Duyuru şeridi: açık mavi, sakin --------------------------------------------------- */
    .cln-ticker .pl-ticker__track { animation-duration: 55s; }
    .cln-ticker .pl-ticker__item { font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 0.8125rem; }
    .cln-ticker .pl-ticker__item::after { content: "\2022"; font-size: 1em; }
    .cln-ticker .announcement {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
        border: 0; padding: 0; background: transparent; color: inherit;
    }
    @media (prefers-reduced-motion: reduce) {
        .cln-ticker .announcement {
            position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
            padding: 7px var(--space-4); font-size: 0.8125rem; font-weight: 600; text-align: center;
        }
    }

    /* ---- Başlık: üst bilgi satırı + beyaz çubuk ------------------------------------------------ */
    .hdr-cln { background: var(--surface-raised); color: var(--ink); backdrop-filter: none; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(10 35 64 / 0.05); }
    .hdr-cln__info { background: var(--surface-band); border-bottom: 1px solid var(--line); font-size: 0.875rem; }
    .hdr-cln__info-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-width: 0; }
    .hdr-cln__facts { display: flex; align-items: center; gap: var(--space-6); min-width: 0; margin: 0; padding: 0; list-style: none; }
    .hdr-cln__facts > li { min-width: 0; }
    .hdr-cln__fact {
        display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 0; color: var(--ink);
        font-weight: 600; text-decoration: none; white-space: nowrap;
    }
    .hdr-cln__fact span { overflow: hidden; text-overflow: ellipsis; }
    .hdr-cln__fact .icon { flex: none; width: 18px; height: 18px; color: var(--brand); }
    a.hdr-cln__fact:hover { color: var(--brand); }
    .hdr-cln__fact--hours { color: var(--ink-muted); font-weight: 500; }
    .hdr-cln__info-end { display: flex; align-items: center; gap: var(--space-2); flex: none; }
    .hdr-cln .lang-switch { grid-area: auto; }
    .hdr-cln .lang-switch__current { color: var(--ink); }
    @media (max-width: 767px) {
        .hdr-cln__fact--hours { display: none; }
        .hdr-cln__wa-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
        .hdr-cln__wa { justify-content: center; min-width: 44px; }
    }

    .hdr-cln__bar {
        display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu brand actions" "nav nav nav";
        align-items: center; column-gap: var(--space-2); row-gap: 0; min-height: 68px; padding-block: 0;
    }
    .hdr-cln .menu-toggle { display: inline-flex; color: var(--ink); }
    .hdr-cln .brand { color: var(--ink); min-width: 0; }
    .hdr-cln .brand__mark { background: var(--brand); mask: none; border-radius: 8px; }
    .hdr-cln .brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
    .hdr-cln .brand__logo img { max-width: min(180px, 100%); }
    .hdr-cln__trial {
        display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-6); border-radius: var(--radius);
        background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; white-space: nowrap;
        transition: background-color 0.15s var(--ease);
    }
    .hdr-cln__trial:hover { background: var(--night); color: #ffffff; }
    @media (max-width: 479px) {
        .hdr-cln__trial { padding-inline: var(--space-3); font-size: 0.875rem; }
        .hdr-cln .brand__name { font-size: 1.15rem; }
        .hdr-cln__facts { gap: var(--space-3); }
    }

    .hdr-cln .site-nav { grid-area: nav; border-top: 1px solid var(--line); }
    .hdr-cln .site-nav__list { max-width: none; padding-inline: 0; }
    .hdr-cln .site-nav__link { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
    .hdr-cln .site-nav__link[aria-current="page"] { color: var(--brand); }
    .hdr-cln .mega__heading { display: inline-flex; align-items: center; min-height: 44px; }
    @media (min-width: 900px) and (max-width: 1279px) {
        .hdr-cln .site-nav { display: none; }
        .hdr-cln .site-nav.is-open { display: block; }
        .hdr-cln .site-nav__list { display: grid; }
        .hdr-cln .mega { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: 0; }
        .hdr-cln .mega__cols { display: flex; flex-wrap: wrap; }
    }
    @media (min-width: 1280px) {
        .hdr-cln__bar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand nav actions"; column-gap: var(--space-6); min-height: var(--header-height); }
        .hdr-cln .menu-toggle { display: none; }
        .hdr-cln .site-nav { display: block; border-top: 0; align-self: stretch; }
        .hdr-cln .site-nav__list { height: 100%; gap: var(--space-1); }
        .hdr-cln .site-nav__item { display: flex; }
        .hdr-cln .site-nav__link { padding: 0 var(--space-3); font-size: 0.9375rem; white-space: nowrap; }
        .hdr-cln .site-nav__link:hover { color: var(--brand); }
        .hdr-cln .site-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
        .hdr-cln .site-nav__item.has-mega > .site-nav__link::after { height: 3px; inset-inline: var(--space-3); }
    }

    /* ---- Manşet: fotoğraf bandı + beyaz kutu -------------------------------------------------------- */
    .hero-cln { position: relative; background: linear-gradient(180deg, var(--surface-band) 0 60%, var(--surface) 60%); padding-block-end: clamp(var(--space-12), 6vw, 88px); }
    .hero-cln__band { height: clamp(260px, 44vh, 500px); overflow: hidden; background: var(--sky); }
    .hero-cln__band :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
    .hero-cln__box {
        position: relative; display: grid; gap: var(--space-8); margin-top: clamp(var(--space-8), 5vw, 64px); padding: clamp(24px, 4vw, 56px);
        border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface-raised); box-shadow: var(--shadow-raised);
    }
    .hero-cln--media .hero-cln__box { margin-top: clamp(-160px, -12vw, -64px); }
    @media (min-width: 960px) { .hero-cln__box--card { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; } }
    .hero-cln__content { display: grid; justify-items: start; gap: var(--space-4); min-width: 0; }
    .hero-cln--center .hero-cln__content { justify-items: center; text-align: center; }
    .hero-cln__eyebrow { margin: 0; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sky); color: var(--brand); font-size: 0.875rem; font-weight: 700; }
    .hero-cln__title {
        margin: 0; font-family: var(--font-display); font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); font-weight: 700;
        line-height: 1.08; letter-spacing: -0.025em; overflow-wrap: break-word; hyphens: manual;
    }
    .hero-cln__title .hero-title__accent { color: var(--brand); }
    :is([dir="rtl"], :lang(ar)) .hero-cln__title { line-height: 1.35; letter-spacing: 0; }
    .hero-cln__lead { max-width: 60ch; color: var(--ink-muted); font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); line-height: 1.7; }
    .hero-cln__lead p { margin: 0; }
    .hero-cln__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
    .hero-cln__button {
        display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding-inline: var(--space-6);
        border: 2px solid var(--brand); border-radius: var(--radius); font-weight: 700; text-decoration: none;
        transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
    }
    .hero-cln__button .icon { width: 18px; height: 18px; }
    .hero-cln__button--primary { background: var(--brand); color: var(--brand-ink); }
    .hero-cln__button--primary:hover { background: var(--night); border-color: var(--night); color: #ffffff; }
    .hero-cln__button--outline { background: transparent; color: var(--brand); }
    .hero-cln__button--outline:hover { background: var(--sky); }
    .hero-cln__card {
        display: grid; gap: var(--space-1); padding: var(--space-6); border-radius: var(--radius); background: var(--sky); color: var(--ink); text-decoration: none;
        border-inline-start: 4px solid var(--brand);
    }
    a.hero-cln__card:hover .hero-cln__card-title { color: var(--brand); }
    .hero-cln__card-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
    .hero-cln__card-icon .icon { width: 20px; height: 20px; }
    .hero-cln__card-label { color: var(--brand); font-size: 0.8125rem; font-weight: 700; }
    .hero-cln__card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
    .hero-cln__card-text { color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }
    @media (max-width: 599px) { .hero-cln__button { flex: 1 1 100%; } }

    /* ---- Ders kartları: beyaz, mavi vurgular ---------------------------------------------------------- */
    .pl-class { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); }
    .pl-class:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
    .pl-class__media { background: var(--sky); aspect-ratio: 4 / 3; }
    .pl-class__media::after { display: none; }
    .pl-class__media img, .pl-class:hover .pl-class__media img { filter: none; }
    .pl-class__title { color: var(--ink); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); line-height: 1.15; }
    .pl-class__summary { color: var(--ink-muted); }
    .pl-class__more { color: var(--brand); }
    .pl-tag { background: rgb(255 255 255 / 0.94); color: var(--night); backdrop-filter: none; }
    .pl-tag:first-child { background: var(--brand); color: var(--brand-ink); }
    .entry-card--uye .entry-card__media img, .entry-card--uye:is(:hover, :focus-within) .entry-card__media img, .profile__photo img { filter: none; }

    /* ---- Neden biz, paketler, yorumlar, SSS ------------------------------------------------------------ */
    .promise { border: 1px solid var(--line); }
    .promise::before {
        display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--sky);
        font-size: 1.25rem; color: var(--brand);
    }
    .promise::after { display: none; }
    .pl-plan { border-color: var(--line); }
    .pl-quote--mint :is(.testimonial__role, .testimonial__source) { color: var(--mint-ink); }
    .pl-wall .testimonial:not(.pl-quote--dark, .pl-quote--mint) { border: 1px solid var(--line); }
    .faq__item { border: 1px solid var(--line); }
    .faq__question::after { border-radius: var(--radius); background: var(--sky); color: var(--brand); }
    .pl-studio__place { background: var(--surface-raised); color: var(--brand); }

    /* ---- Altbilgi: lacivert ---------------------------------------------------------------------------------- */
    .site-footer {
        --footer-bg: var(--night);
        --footer-ink: var(--night-ink);
        --footer-title: #ffffff;
        --footer-muted: #9fb3c9;
        --footer-line: var(--night-line);
        --footer-accent: var(--mint);
        border-top: 4px solid var(--brand);
    }

    @media (prefers-reduced-motion: reduce) {
        .hdr-cln__trial, .hero-cln__button, .pl-class { transition: none; }
        .pl-class:hover { transform: none; }
    }
}
