/* ============================================================
   SOMALI FITNESS — public website
   Palette: charcoal (brand logo bg) + white + mint/teal
   Fonts: Anton (display) + Inter (body)
   ============================================================ */

:root {
    --ink: #141921;
    --ink-deep: #0b0f14;
    --ink-soft: #1c232d;
    --mint: #35e0c4;
    --mint-strong: #1fc9ac;
    --mint-dark: #0b8a75;
    --mint-tint: #eafbf7;
    --paper: #ffffff;
    --gray: #f4f6f8;
    --text: #232a31;
    --muted: #5c6672;
    --border: #e4e8ec;
    --font-display: "Anton", sans-serif;
    --font-body: "Inter", sans-serif;
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: 104px 0; }
.section-dark { background: var(--ink-deep); color: #e8ecef; }

/* ---------- shared type ---------- */

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 14px;
}

.section-dark .section-label,
.hero .section-label { color: var(--mint); }

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}

.section-dark .section-title,
.motivation .section-title { color: #fff; }

.section-title em {
    font-style: normal;
    color: var(--mint-dark);
}

.section-dark .section-title em { color: var(--mint); }

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: var(--mint-strong); }

.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--mint-dark); }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: transparent;
    transition: background 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
    background: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.header-logo { display: flex; align-items: center; gap: 12px; }

.header-logo img { width: 44px; height: 44px; border-radius: 6px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.18rem;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1;
}

.logo-text span { color: var(--mint); }

.header-nav { display: flex; gap: 28px; margin-left: auto; }

.nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--mint); border-color: var(--mint); }

.header-cta {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--mint);
    color: var(--ink);
    padding: 12px 22px;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-cta:hover { background: var(--mint-strong); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.toggle-bar {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s, opacity 0.25s;
}

.mobile-toggle.open .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open .toggle-bar:nth-child(2) { opacity: 0; }
.mobile-toggle.open .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open { display: block; }

.mobile-nav { display: flex; flex-direction: column; padding: 18px 4% 28px; }

.mobile-link {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-cta {
    margin-top: 18px;
    background: var(--mint);
    color: var(--ink);
    text-align: center;
    border: 0;
    border-radius: 4px;
    padding: 15px;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(11, 15, 20, 0.78), rgba(11, 15, 20, 0.55)),
        url("../images/hero-training.jpg") center/cover no-repeat;
    color: #fff;
}

.hero-overlay { position: absolute; inset: 0; }

.hero-content { position: relative; z-index: 1; padding: calc(var(--header-h) + 40px) 0 90px; }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--mint);
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.hero-title em { font-style: normal; color: var(--mint); }

.hero-subtitle {
    max-width: 540px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
}

.scroll-line {
    display: block;
    width: 1px;
    height: 46px;
    background: linear-gradient(var(--mint), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ---------- about ---------- */

.about-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-text { color: var(--muted); margin-top: 20px; max-width: 52ch; }

.about-branches { margin-top: 20px; font-size: 0.98rem; color: var(--text); }
.about-branches strong { color: var(--mint-dark); }

.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.about-highlight {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: var(--mint-tint);
    color: var(--mint-dark);
    padding: 10px 16px;
    border-radius: 999px;
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid var(--mint);
    border-radius: 8px;
    z-index: -1;
}

/* ---------- training ---------- */

.training-header { margin-bottom: 54px; }

.training-top {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}

.training-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.training-list { display: flex; flex-direction: column; }

.training-list li {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.training-list li:first-child { padding-top: 0; }

.training-index {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--mint);
    min-width: 34px;
    padding-top: 3px;
}

.training-list h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
}

.training-list p { font-size: 0.92rem; color: rgba(232, 236, 239, 0.72); max-width: 46ch; }

/* ---------- facilities grid ---------- */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.facility-card {
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
    padding: 30px 26px;
}

.facility-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 10px;
}

.facility-card p { font-size: 0.92rem; color: rgba(232, 236, 239, 0.72); }

.facility-photo { position: relative; padding: 0; min-height: 250px; }

.facility-photo img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.facility-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 40px 22px 18px;
    background: linear-gradient(transparent, rgba(11, 15, 20, 0.88));
}

.facility-caption h3 { margin: 0; color: #fff; }

/* ---------- women's training ---------- */

.women { background: var(--gray); }

.women-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.women-text { color: var(--muted); margin-top: 18px; max-width: 50ch; }

.women-content .btn { margin-top: 30px; }

.women-mosaic { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }

.women-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }

.women-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.women-img--tall { min-height: 470px; }

/* ---------- motivation ---------- */

.motivation {
    position: relative;
    padding: 120px 0;
    background:
        linear-gradient(rgba(11, 15, 20, 0.82), rgba(11, 15, 20, 0.7)),
        url("../images/weights-detail.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.motivation-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.motivation-title em { font-style: normal; color: var(--mint); }

.motivation-text {
    margin-top: 18px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- membership ---------- */

.membership {
    background:
        linear-gradient(var(--ink-deep), var(--ink) 70%);
    color: #fff;
}

.membership .section-title { color: #fff; }
.membership .section-title em { color: var(--mint); }
.membership .section-label { color: var(--mint); }

.membership-header { text-align: center; margin-bottom: 42px; }

.membership-sub { margin-top: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---------- membership benefits ---------- */

.member-benefits { margin-bottom: 48px; }

.benefits-label {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--mint);
    margin-bottom: 22px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 24px 22px;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 8px;
}

.benefit-card p { font-size: 0.88rem; color: rgba(232, 236, 239, 0.72); }

/* ---------- branch dropdown ---------- */

.branch-picker {
    max-width: 440px;
    margin: 0 auto 44px;
    text-align: left;
}

.branch-picker-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.select-wrap { position: relative; }

.branch-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px 48px 15px 18px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.branch-select:hover { border-color: var(--mint); }

.branch-select:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(53, 224, 196, 0.35);
}

.select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--mint-dark);
    pointer-events: none;
}

.js .branch-panel { display: none; }
.js .branch-panel.active { display: block; }

.branch-panel-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mint);
    text-align: center;
    margin-bottom: 28px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: #fff;
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.plan-card--recommended {
    border-color: var(--mint);
    box-shadow: 0 22px 50px rgba(53, 224, 196, 0.18), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mint);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}

.plan-price { display: flex; justify-content: center; align-items: baseline; gap: 2px; }

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mint-dark);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--ink);
}

.plan-duration { margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

.plan-fee {
    margin-top: 14px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.plan-fee--free { color: var(--mint-dark); font-weight: 700; }
.plan-fee--reg { color: var(--muted); }

.plan-btn { margin-top: auto; margin-bottom: 4px; }

.membership-note {
    margin-top: 36px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- final CTA ---------- */

.final-cta { background: var(--mint); padding: 92px 0; text-align: center; }

.final-cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--ink);
}

.final-cta-title em { font-style: normal; color: #fff; }

.final-cta-text { margin-top: 16px; color: rgba(20, 25, 33, 0.75); font-size: 1.02rem; }

.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

.final-cta .btn-outline-dark { border-color: var(--ink); }
.final-cta .btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
}

.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; }

.contact-icon { width: 20px; height: 20px; color: var(--mint-dark); flex-shrink: 0; margin-top: 3px; }

.contact-item a:hover { color: var(--mint-dark); }

.contact-hours { margin-top: 36px; }

.hours-title, .branches-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}

.hours-list { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.94rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.hours-row span:last-child { color: var(--text); font-weight: 600; }

.contact-branches {
    background: var(--gray);
    border-radius: 10px;
    padding: 38px 34px;
    align-self: start;
}

.branch-list { display: flex; flex-direction: column; gap: 0; }

.branch-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.branch-list li:last-child { border-bottom: 0; }

.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.social-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--ink);
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background 0.2s;
}

.social-chip:hover { background: var(--mint-dark); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); }

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 52px 0 36px;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }

.footer-logo { width: 56px; height: 56px; border-radius: 8px; }

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.25;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--mint); }

.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.footer-social { display: flex; gap: 10px; }

.footer-social .social-chip { background: rgba(255, 255, 255, 0.1); }
.footer-social .social-chip:hover { background: var(--mint); color: var(--ink); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0 28px;
    text-align: center;
    font-size: 0.82rem;
}

/* ---------- reveal animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-line { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .facility-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-side { align-items: center; }
}

@media (max-width: 900px) {
    .header-nav, .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    .about-inner, .training-top, .contact-grid, .women-inner { grid-template-columns: 1fr; gap: 44px; }
    .about-image { max-width: 480px; }
    .women-img--tall { min-height: 400px; }
    .section { padding: 76px 0; }
}

@media (max-width: 640px) {
    .facility-grid, .benefits-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .final-cta-actions .btn { width: 100%; text-align: center; }
    .branch-picker { margin-bottom: 36px; }
    .footer-nav { gap: 14px; }
}
