/* SRAN BEAUTY STUDIO & ACADEMY — site styles
   Palette: maroon + gold + cream
   Type: Playfair Display (display) + Inter (body) */

:root {
    --brand-primary: #8B1538;
    --brand-primary-dark: #6E0F2A;
    --brand-accent: #C9A04E;
    --brand-accent-soft: #E8C97A;
    --bg-cream: #FAF7F2;
    --bg-soft: #FFFFFF;
    --bg-dark: #161312;
    --text-primary: #1A1A1A;
    --text-muted: #6B6B6B;
    --border: #E8E1D5;
    --shadow-sm: 0 2px 8px rgba(20,15,10,.06);
    --shadow-md: 0 10px 30px rgba(20,15,10,.10);
    --shadow-lg: 0 24px 60px rgba(20,15,10,.14);
    --radius: 4px;
    --radius-lg: 10px;
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-cream);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display, .serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent); }

.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ───── NAV ───── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.site-nav .inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px; max-width: 1280px; margin: 0 auto;
}
.site-nav .brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-primary); font-weight: 600;
}
.site-nav .brand .mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--brand-accent); font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(139,21,56,.25);
}
.site-nav .brand .name { font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.05; }
.site-nav .brand .name small { display: block; font-family: 'Inter', sans-serif; font-size: .65rem; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.tm-mark { font-size: .55em; vertical-align: super; color: var(--brand-accent); font-family: 'Inter', sans-serif; margin-left: 1px; opacity: .85; }

/* Official SRAN logo — used when /images/sran-logo.png is present. Falls back to S monogram on load error. */
.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}
.footer-logo {
    height: 96px;
    width: auto;
    display: block;
    margin-bottom: 18px;
    object-fit: contain;
}
.cert-logo {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 14px;
    object-fit: contain;
}
.login-logo {
    height: 88px;
    width: auto;
    display: block;
    margin: 0 auto 14px;
    object-fit: contain;
}
.admin-side .brand-logo {
    height: 56px;
    margin-right: 8px;
    background: rgba(255,255,255,.04);
    padding: 4px;
}
.site-nav nav.links { display: flex; gap: 4px; align-items: center; }
.site-nav nav.links a {
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: .92rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.site-nav nav.links a:hover, .site-nav nav.links a.active {
    background: rgba(139,21,56,.06);
    color: var(--brand-primary);
}
.site-nav nav.links a.cta {
    background: var(--brand-primary); color: #fff;
    margin-left: 8px;
}
.site-nav nav.links a.cta:hover { background: var(--brand-primary-dark); color: var(--brand-accent-soft); }
.nav-burger { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--text-primary); cursor: pointer; }

@media (max-width: 880px) {
    .site-nav .inner { padding: 14px 18px; }
    .nav-burger { display: block; }
    .site-nav nav.links {
        display: none;
        position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 12px; gap: 2px; box-shadow: var(--shadow-md);
    }
    .site-nav nav.links.open { display: flex; }
    .site-nav nav.links a { padding: 14px 16px; }
}

/* ───── HERO ───── */
.hero {
    position: relative;
    min-height: 78vh;
    background:
        linear-gradient(135deg, rgba(22,19,18,.55), rgba(22,19,18,.78)),
        url('/images/hero-default.jpg') center/cover no-repeat,
        var(--bg-dark);
    color: #fff;
    display: flex; align-items: center;
    padding: 80px 0;
}
.hero .container-wide { width: 100%; }
.hero .eyebrow {
    display: inline-block;
    font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--brand-accent);
    padding: 6px 16px;
    border: 1px solid rgba(201,160,78,.4);
    border-radius: 60px;
    margin-bottom: 28px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: italic; color: var(--brand-accent); }
.hero .lede { font-size: 1.15rem; max-width: 620px; margin-top: 24px; color: rgba(255,255,255,.85); }
.hero .actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ───── BUTTONS ───── */
.btn-sran {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    font-size: .92rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .08em;
    border: 0; cursor: pointer;
    transition: all var(--transition);
    border-radius: 2px;
}
.btn-primary-sran { background: var(--brand-primary); color: #fff; }
.btn-primary-sran:hover { background: var(--brand-primary-dark); color: var(--brand-accent-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost-sran { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-sran:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn-gold-sran { background: var(--brand-accent); color: var(--text-primary); }
.btn-gold-sran:hover { background: var(--brand-accent-soft); }
.btn-outline-sran { background: transparent; color: var(--brand-primary); border: 1px solid var(--brand-primary); }
.btn-outline-sran:hover { background: var(--brand-primary); color: #fff; }

/* ───── SECTION ───── */
section.block { padding: 100px 0; }
section.block.dark { background: var(--bg-dark); color: #fff; }
section.block.dark h2, section.block.dark h3 { color: #fff; }
section.block.cream { background: var(--bg-cream); }
section.block.white { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow {
    display: inline-block; font-size: .78rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--brand-accent); margin-bottom: 14px;
}
.section-head h2 { margin: 0 0 16px; }
.section-head .underline {
    width: 64px; height: 3px;
    background: var(--brand-accent);
    margin: 18px auto 22px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
section.block.dark .section-head p { color: rgba(255,255,255,.7); }

/* ───── CARDS ───── */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--bg-soft);
    padding: 36px 28px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-soft));
    color: var(--brand-primary-dark);
    display: grid; place-items: center;
    margin: 0 auto 22px;
    font-size: 28px;
}
.feature-card h3 { margin: 0 0 10px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ───── COURSE CARDS ───── */
.course-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--brand-accent); }
.course-card .head {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    padding: 28px;
    position: relative;
}
.course-card .head .code {
    position: absolute; top: 16px; right: 18px;
    font-size: .7rem; letter-spacing: .18em;
    background: var(--brand-accent); color: var(--text-primary);
    padding: 4px 10px; border-radius: 60px; font-weight: 600;
}
.course-card .head h3 { color: #fff; margin: 0; }
.course-card .head .meta { color: var(--brand-accent-soft); font-size: .85rem; margin-top: 10px; }
.course-card .body { padding: 24px 28px 28px; flex: 1; }
.course-card .body .duration { font-weight: 600; color: var(--brand-primary); font-size: .9rem; margin-bottom: 14px; }
.course-card .body ul { padding-left: 18px; margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.7; }
.course-card .body ul li::marker { color: var(--brand-accent); }

/* ───── VERIFY ───── */
.verify-wrap { max-width: 760px; margin: 0 auto; }
.verify-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 56px 48px;
    border: 1px solid var(--border);
    text-align: center;
}
.verify-card h2 { margin-bottom: 8px; }
.verify-card p { color: var(--text-muted); margin-bottom: 36px; }
.verify-input {
    display: flex; gap: 0; max-width: 480px; margin: 0 auto;
    box-shadow: var(--shadow-sm); border-radius: 4px; overflow: hidden;
}
.verify-input input {
    flex: 1; padding: 18px 22px;
    font-size: 1.05rem; border: 1px solid var(--border);
    border-right: 0; border-radius: 4px 0 0 4px;
    outline: none; background: var(--bg-cream);
    letter-spacing: .04em;
}
.verify-input input:focus { background: #fff; border-color: var(--brand-accent); }
.verify-input button {
    background: var(--brand-primary); color: #fff;
    padding: 18px 30px;
    border: 0; cursor: pointer;
    font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    font-size: .9rem;
    transition: background var(--transition);
}
.verify-input button:hover { background: var(--brand-primary-dark); }

/* certificate-style result */
.cert-frame {
    background: #fff;
    border: 10px solid var(--brand-primary);
    outline: 2px solid var(--brand-accent);
    outline-offset: -22px;
    padding: 56px 48px;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-top: 36px;
    text-align: center;
}
.cert-frame::before, .cert-frame::after {
    content: ""; position: absolute; pointer-events: none;
    border: 1px solid var(--brand-accent); opacity: .4;
}
.cert-frame::before { top: 14px; left: 14px; right: 14px; bottom: 14px; }
.cert-frame .cert-head { margin-bottom: 18px; }
.cert-frame .cert-head .title {
    display: inline-block; font-family: 'Playfair Display', serif;
    font-size: 2.4rem; padding: 4px 32px;
    border-top: 2px solid var(--brand-accent);
    border-bottom: 2px solid var(--brand-accent);
    margin-bottom: 18px; letter-spacing: .04em;
}
.cert-frame .cert-brand { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--brand-primary); margin: 0; }
.cert-frame .cert-tagline { font-style: italic; color: var(--text-muted); font-size: .92rem; margin-top: 6px; }
.cert-frame .cert-body { margin: 32px auto; max-width: 620px; text-align: left; }
.cert-frame .cert-body .row { display: flex; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--border); gap: 14px; }
.cert-frame .cert-body .row:last-child { border-bottom: 0; }
.cert-frame .cert-body .label { min-width: 160px; color: var(--text-muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; }
.cert-frame .cert-body .value { font-weight: 600; color: var(--brand-primary); flex: 1; font-size: 1.02rem; }
.cert-frame .cert-photo {
    position: absolute; top: 60px; right: 60px;
    width: 110px; height: 130px;
    border: 3px solid var(--brand-accent);
    background: var(--bg-cream); object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.cert-frame .cert-footer { display: flex; justify-content: space-around; margin-top: 36px; font-size: .82rem; color: var(--text-muted); }
.cert-frame .badges { display: flex; gap: 14px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.cert-frame .badge-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 60px;
    background: var(--bg-cream); color: var(--brand-primary);
    font-size: .72rem; font-weight: 600; letter-spacing: .08em;
    border: 1px solid var(--border);
}
.cert-noresult {
    background: #fff; border: 1px solid var(--border);
    border-left: 4px solid var(--brand-primary);
    padding: 24px 28px; border-radius: var(--radius-lg);
    margin-top: 28px; text-align: left;
}
.cert-noresult strong { color: var(--brand-primary); }

@media (max-width: 720px) {
    .verify-card { padding: 32px 22px; }
    .verify-input { flex-direction: column; }
    .verify-input input, .verify-input button { border-radius: 4px; width: 100%; }
    .verify-input input { border-right: 1px solid var(--border); margin-bottom: 8px; }
    .cert-frame { padding: 30px 18px; outline-offset: -14px; }
    .cert-frame .cert-photo { position: static; margin: 0 auto 18px; display: block; }
    .cert-frame .cert-body .row { flex-direction: column; gap: 4px; }
    .cert-frame .cert-body .label { min-width: 0; }
}

/* ───── GALLERY ───── */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.gallery-grid .tile {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--brand-primary), var(--bg-dark));
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition);
}
.gallery-grid .tile:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-grid .tile .label {
    position: absolute; left: 18px; bottom: 18px; right: 18px;
    color: #fff; font-family: 'Playfair Display', serif; font-size: 1.2rem;
    z-index: 2;
}
.gallery-grid .tile::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6));
}

/* ───── ASSOCIATIONS ───── */
.assoc-strip {
    display: flex; align-items: center; justify-content: space-around;
    flex-wrap: wrap; gap: 36px; padding: 32px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    opacity: .85;
}
.assoc-strip .assoc {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; color: var(--text-muted);
    letter-spacing: .08em;
}

/* ───── CONTACT ───── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .item .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-cream); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand-primary); flex-shrink: 0; }
.contact-info .item h4 { margin: 0 0 4px; font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }
.contact-info .item p { margin: 0; color: var(--text-primary); }
.contact-form { background: #fff; padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact-form label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-cream); font: inherit;
    margin-bottom: 16px; outline: none;
    transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-accent); background: #fff; }
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ───── FOOTER ───── */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 80px 0 30px; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 22px; }
.site-footer .footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
    padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 880px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer p, .site-footer a { color: rgba(255,255,255,.65); font-size: .92rem; }
.site-footer a { display: block; padding: 4px 0; transition: color var(--transition); }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer .brand-block .name { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.site-footer .baseline { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: .82rem; }
.site-footer .baseline a { display: inline; }

/* ───── ABOUT / CONTENT BLOCKS ───── */
.split-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .split-content { grid-template-columns: 1fr; gap: 36px; } }
.split-content .text-col h2 { margin-bottom: 18px; }
.split-content .text-col .accent-line { width: 50px; height: 3px; background: var(--brand-accent); margin-bottom: 24px; }
.split-content .image-col {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--brand-primary), var(--bg-dark));
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.split-content .image-col::after {
    content: '';
    position: absolute; bottom: -22px; right: -22px;
    width: 140px; height: 140px;
    border: 3px solid var(--brand-accent); border-radius: var(--radius-lg);
    z-index: -1;
}

/* ───── MISC ───── */
.stat-row { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .stat { }
.stat-row .stat .num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--brand-primary); display: block; line-height: 1; }
.stat-row .stat .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; display: block; }

.alert-sran-success { background: #EAF6EA; color: #1F5631; border-left: 4px solid #2C9B4D; padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; }
.alert-sran-error { background: #FBE9EC; color: #71172A; border-left: 4px solid var(--brand-primary); padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; }

.text-validation { color: var(--brand-primary); font-size: .85rem; display: block; margin-top: 4px; }

/* hide ASP.NET default validation summary ugliness */
.field-validation-error { color: var(--brand-primary); font-size: .85rem; }
.validation-summary-errors ul { color: var(--brand-primary); margin: 0; padding-left: 18px; }

/* ───── HERO ENTRANCE (first-paint, no JS) ───── */
@keyframes word-rise {
    from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-words .word {
        display: inline-block;
        opacity: 0;
        transform: translateY(28px);
        filter: blur(4px);
        animation: word-rise .9s cubic-bezier(.2,.6,.2,1) forwards;
        animation-delay: calc(var(--word-i, 0) * 90ms + 250ms);
    }
    .hero-fade {
        opacity: 0;
        animation: fade-up .85s cubic-bezier(.2,.6,.2,1) forwards;
    }
    .hero-fade-eyebrow { animation-delay: 100ms; }
    .hero-fade-lede    { animation-delay: 1100ms; }
    .hero-fade-actions { animation-delay: 1300ms; }
}

/* ───── SCROLL REVEAL ───── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
        will-change: opacity, transform;
    }
    .reveal.in-view {
        opacity: 1;
        transform: translateY(0);
    }
    /* staggered children inside a section */
    section.block .feature-card.reveal,
    section.block .course-card.reveal,
    .gallery-grid .tile.reveal {
        transition-delay: calc(var(--reveal-i, 0) * 80ms);
    }
}

