/* =====================================================================
   Pole Dance Phoenix — stylesheet
   Clean HTML5/CSS3 rewrite (no Bootstrap/jQuery dependency), same
   design system as the Pole Freak Championship site.
   Dark theme · deeppink accent · fully responsive.
   ===================================================================== */

:root {
    --bg:        #000000;          /* black base                       */
    --bg-alt:    #0b0b0b;          /* alternating section (subtle)     */
    --bg-deep:   #000000;          /* footer / overlays                */
    --pink:      #ff1493;          /* deeppink — Phoenix brand accent  */
    --pink-soft: #ff69b4;          /* hotpink — hovers / secondary     */
    --blue:      #28a7e9;          /* heading accent (original site)   */
    --magenta:   #da28e9;          /* team subtitle (original site)    */
    --text:      #ffffff;
    --muted:     #b9b9b9;
    --line:      rgba(255, 255, 255, 0.18);
    --maxw:      1140px;
    --radius:    14px;
    --header-h:  72px;
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
}

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

/* Bilingual toggle: show only the active language's content */
html.lang-en [lang="hr"],
html.lang-hr [lang="en"] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* Skip link: off-screen until keyboard-focused, then drops in over the header */
.skip-link {
    position: fixed;
    top: 0; left: -9999px;
    z-index: 2000;
    background: var(--pink);
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 26px;
    margin: 8px 6px 0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: #fff; color: var(--pink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: #121212; }

/* ------------------------------------------------------------------ */
/*  Header / navigation                                                */
/* ------------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(15, 15, 15, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--pink); }

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Language switch (EN | HR) */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.lang-switch a {
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    line-height: 1;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch a.active { background: var(--pink); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--pink-soft); }

.nav-toggle {
    display: none;
    background: var(--pink);
    border: none;
    border-radius: 6px;
    width: 44px; height: 38px;
    cursor: pointer;
    padding: 9px 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
}

.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
}
.main-nav a:hover { color: var(--pink-soft); }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--pink);
    transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--pink-soft); }
.main-nav a.active::after { width: 100%; }

/* ------------------------------------------------------------------ */
/*  Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* stable height while the mobile URL bar collapses */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 20px 60px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url("../images/home-bg.webp") center / cover no-repeat;
}
.hero-inner { max-width: 820px; }
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero h1 em { font-style: normal; color: var(--pink); }
.rotator {
    min-height: 1.8em;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    margin: 18px 0 10px;
}
.rotator span::after {
    content: "|";
    margin-left: 2px;
    color: #fff;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { margin-top: 22px; }

/* ------------------------------------------------------------------ */
/*  Generic section                                                    */
/* ------------------------------------------------------------------ */
.section {
    padding: 90px 0;
    scroll-margin-top: var(--header-h);
}
.section:nth-of-type(even) { background: var(--bg-alt); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
}
.section-title h2 em { font-style: normal; color: var(--blue); }
.section-title h2 em.em-pink { color: var(--pink); }
.section-title .line {
    width: 70px; height: 3px;
    background: var(--pink);
    margin: 16px auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--muted);
    max-width: 620px;
    margin: 14px auto 0;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
}
.card h3 {
    color: var(--pink-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
}
.card .sub-line {
    width: 100%; height: 1px;
    background: var(--line);
    margin: 12px 0 18px;
}
.card p { color: #e9e9e9; margin: 0 0 12px; }
.card ul { color: #e0e0e0; margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card em { font-style: normal; color: var(--pink-soft); }

/* Icon badge + title row at the top of the about cards */
.card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.card-head h3 { margin: 0; }
.card-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; fill: #fff; }

/* Grid helpers */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------------------------------------------ */
/*  Team                                                               */
/* ------------------------------------------------------------------ */
.team-title {
    text-align: center;
    margin: -20px 0 36px;
}
.team-title h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 6px;
}
.team-title .team-role {
    display: block;
    color: var(--magenta);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.team-grid { align-items: start; }
.team-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 480px;
    margin: 0 auto;
}
.team-photo img { width: 100%; height: auto; }
.achievements { list-style: none; padding-left: 0 !important; }
.achievements li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}
.achievements li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--pink);
    font-size: 0.75em;
    top: 0.35em;
}

/* ------------------------------------------------------------------ */
/*  Schedule                                                           */
/* ------------------------------------------------------------------ */
.class-cards { margin-bottom: 54px; }
.class-cards .card h3 { font-size: 1rem; }
/* One color per class level, used identically in the cards, the legend
   and the timetable. deeppink stays reserved for brand/CTA elements. */
.c-beginners    { color: plum !important; }
.c-intermediate { color: deepskyblue !important; }
.c-advanced     { color: aqua !important; }
.c-lazy         { color: palegreen !important; }
.c-booty        { color: #ba58ba !important; }
.c-exotic       { color: #ff0808 !important; }

.legend {
    text-align: center;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.lg-beginners    { color: plum; }
.lg-intermediate { color: deepskyblue; }
.lg-advanced     { color: aqua; }
.lg-lazy         { color: palegreen; }

.week {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.week .day {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.week .day h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.slot {
    border-left: 3px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.35;
}
.slot .cls { display: block; font-weight: 600; }
.slot .hours { display: block; color: var(--muted); margin-top: 2px; }
/* Slot colors: same level palette as the class cards. Combined slots
   show both levels' emoji and take the higher level's color. */
.s-beginners { border-left-color: plum; }
.s-beginners .cls { color: plum; }
.s-beg-int   { border-left-color: deepskyblue; }
.s-beg-int .cls { color: deepskyblue; }
.s-int-adv   { border-left-color: aqua; }
.s-int-adv .cls { color: aqua; }
.s-advanced  { border-left-color: aqua; }
.s-advanced .cls { color: aqua; }
.s-lazy      { border-left-color: palegreen; }
.s-lazy .cls { color: palegreen; }

.schedule-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 640px;
    margin: 26px auto 0;
}

/* --- Time-aligned week grid (enhancement added by app.js) ----------- */
/* app.js reads each slot's visible "HH:MM – HH:MM" text, sets the grid
   templates (--wk-cols / --wk-rows) and each slot's grid position, then
   adds .week--grid. One grid row = 15 minutes, so vertical position and
   height encode start time and duration. Without JS, or below 769px,
   the stacked day-list layout stays in effect.                         */

/* "from HH:MM" badge under each day name — stacked layout only */
.day-badge {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 400;
    margin-top: -2px;
}
.week .tick,
.week .morning-tag { display: none; }

@media (min-width: 769px) {
    .week--grid {
        --row-h: 26px;
        display: grid;
        grid-template-columns: var(--wk-cols); /* gutter + one column per day  */
        grid-template-rows: var(--wk-rows);    /* header + 15-min rows (app.js) */
        gap: 0 12px;
    }
    /* Half-hour gridlines behind the slots */
    .week--grid::before {
        content: "";
        grid-column: 2 / -1;
        grid-row: 2 / -1;
        border-top: 1px solid var(--line);
        background: repeating-linear-gradient(
            to bottom,
            transparent 0 calc(var(--row-h) * 2 - 1px),
            var(--line) calc(var(--row-h) * 2 - 1px) calc(var(--row-h) * 2)
        );
    }
    .week--grid .day { display: contents; } /* h4 + slots become grid items */
    .week--grid .day h4 { border-bottom: none; padding-bottom: 12px; }
    .week--grid .day-badge { display: none; }
    .week--grid .slot {
        position: relative;
        z-index: 1; /* above the gridlines */
        margin: 1px 0;
        overflow: hidden;
    }
    /* Gutter time labels, centered on their gridline */
    .week--grid .tick {
        display: block;
        grid-column: 1;
        align-self: start;
        justify-self: end;
        padding-right: 8px;
        transform: translateY(-0.55em);
        color: var(--muted);
        font-size: 0.7rem;
        line-height: 1;
        white-space: nowrap;
    }
    .week--grid .tick-end { align-self: end; transform: translateY(0.55em); }
    /* Morning classes sit off the evening axis, pinned to the top */
    .week--grid .slot-morning {
        border: 1px dashed rgba(255, 255, 255, 0.35);
        border-left: 3px solid palegreen;
    }
    .week--grid .morning-tag {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* ------------------------------------------------------------------ */
/*  Pricing                                                            */
/* ------------------------------------------------------------------ */
.pricing-grid { max-width: 900px; margin: 0 auto; }
.pricing-cta {
    text-align: center;
    color: var(--muted);
    margin: 36px 0 0;
}
.pricing-cta span { display: block; margin-bottom: 6px; }
.price-list {
    list-style: none;
    margin: 0;
    padding-left: 0 !important;
}
.price-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.price-list li:last-child { border-bottom: none; }
.price-list span { color: #e9e9e9; }
.price-list em {
    font-style: normal;
    color: var(--pink-soft);
    font-weight: 700;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  Contact                                                            */
/* ------------------------------------------------------------------ */
address {
    font-style: normal;
    color: #e9e9e9;
    margin: 0 0 22px;
    line-height: 1.7;
}
address strong { color: #fff; }
.socials { font-size: 1.35rem; }
.socials a { margin-right: 14px; color: var(--pink-soft); }
.socials a:hover { color: #fff; }
.socials svg.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

.map-card { padding: 0; overflow: hidden; }
.map-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* Contact form (EmailJS) — same pattern as the PFC site */
.form-intro {
    text-align: center;
    color: var(--muted);
    margin: 44px auto 20px;
    max-width: 640px;
}
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* Honeypot anti-spam field: moved off-screen (not display:none, which
   many bots detect and skip) and excluded from tab order / readers.   */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--pink);
    border-color: var(--pink);
}
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.ok  { color: #7CFC7C; }
.form-status.err { color: #ff6b6b; }

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
.site-footer {
    background: var(--bg-deep);
    padding: 44px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.org-credit { text-align: center; }
.org-credit span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.org-credit a {
    color: var(--pink-soft);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}
.org-credit a:hover { color: #fff; }
.org-credit .org-sep {
    display: inline;
    color: var(--muted);
    margin: 0 12px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 1000px) {
    /* No-JS fallback only — the JS-enhanced time grid keeps its own columns */
    .week:not(.week--grid) { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse the nav before the brand + 6 links + lang switch can overflow
   (they need ~820px side by side). */
@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 80vh; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }
    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .main-nav a { display: block; padding: 14px 24px; }
    .main-nav a::after { display: none; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .week { grid-template-columns: 1fr; }
    .week .day { flex-direction: column; }
    .section { padding: 64px 0; }
    .map-frame { min-height: 300px; }
}

@media (max-width: 420px) {
    .brand { font-size: 15px; }
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rotator span::after { animation: none; } /* no blinking cursor */
    .btn:hover { transform: none; }
    .main-nav { transition: none; }
}
