/* ============================================================
   STACY G HAIR STUDIO — Design System
   ============================================================ */

:root {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --bg-3: #161616;
    --surface: #1a1a1a;
    --line: rgba(201, 169, 97, 0.18);
    --line-soft: rgba(255, 255, 255, 0.08);

    --text: #f4f1ec;
    --text-muted: #a8a39c;
    --text-dim: #6e6a64;

    --gold: #c9a961;
    --gold-bright: #e6c989;
    --gold-deep: #a8893f;

    --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Italiana", "Cormorant Garamond", serif;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-soft: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 10px 40px -10px rgba(201, 169, 97, 0.35);

    --container: 1240px;
    --nav-h: 80px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
iframe { border: 0; }

::selection { background: var(--gold); color: var(--bg); }

/* ============ UTILITIES ============ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 140px 0;
    position: relative;
}
.section--dark { background: var(--bg-2); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}
.section__head--sm { margin-bottom: 40px; }

.section__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 18px;
}
.section__title--sm { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

.section__sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    display: inline-block;
    position: relative;
}
.eyebrow::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-left: 14px;
    opacity: 0.6;
}

.italic {
    font-style: italic;
    font-family: var(--font-serif);
    color: var(--gold);
    font-weight: 300;
}

.muted { color: var(--text-muted); font-size: 0.85em; font-weight: 300; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all .35s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--lg {
    padding: 18px 38px;
    font-size: 0.8rem;
}

.btn--gold {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--gold);
}
.btn--ghost:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-2px);
}

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: all .35s var(--ease);
}
.nav.is-scrolled {
    background: rgba(10, 10, 10, 0.88);
    border-bottom-color: var(--line-soft);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav__logo img {
    height: 80px;
    width: auto;
    transition: opacity .25s var(--ease);
}
.nav__logo:hover img { opacity: 0.85; }

.nav__links {
    display: flex;
    gap: 36px;
    margin-left: auto;
    margin-right: 28px;
}
.nav__links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding: 6px 0 6px 0.18em;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all .3s var(--ease);
    transform: translateX(-50%);
}
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
    padding: 11px 22px;
    font-size: 0.72rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.nav__toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--gold);
    transition: all .3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 28px 80px;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.hero__video--bg {
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05) blur(10px);
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1); /* Scales up slightly to hide blurry edges */
}

.hero__video--fg {
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.9)); /* Adds a shadow behind the center video for depth */
}

/* On mobile phones, hide the blur and revert to a perfect full-screen vertical video */
@media (max-width: 720px) {
    .hero__video--bg { 
        display: none; 
    }
    .hero__video--fg {
        object-fit: cover;
        object-position: center 20%;
        filter: grayscale(20%) contrast(1.05);
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.85) 100%),
        linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.95) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1.2s var(--ease) both;
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(3rem, 8.5vw, 6.4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
}
.hero__title .italic {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 44px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.hero__cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text);
    opacity: 0.7;
    transition: opacity .25s var(--ease);
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ ABOUT ============ */
.about__grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 90px;
    align-items: center;
}

.about__image {
    position: relative;
}
.about__image-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-soft);
}
.about__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.about__image-frame:hover img { transform: scale(1.04); }

.about__image-accent {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 1px solid var(--gold);
    z-index: 1;
    pointer-events: none;
}

.about__body .section__title {
    text-align: left;
    margin-bottom: 30px;
}

.about__text {
    margin-bottom: 40px;
}
.about__text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px;
}
.about__text p:first-of-type::first-letter {
    color: var(--gold);
}

/* ============ SERVICES ============ */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-col__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.service-col__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.7rem;
    color: var(--gold);
    white-space: nowrap;
}
.service-col__line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-list__item {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
    transition: border-color .3s var(--ease);
}
.service-list__item:last-child { border-bottom: 0; }
.service-list__item:hover { border-bottom-color: var(--line); }

.service-list__top {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}
.service-list__top h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.service-list__dots {
    flex: 1;
    border-bottom: 1px dotted var(--text-dim);
    margin-bottom: 5px;
    opacity: 0.5;
}
.service-list__price {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}
.service-list__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 90%;
}

.services__footer {
    text-align: center;
    margin-top: 80px;
}

/* ============ PORTFOLIO / GALLERY ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 14px;
    margin-bottom: 120px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    background: var(--bg-3);
    cursor: pointer;
}
.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
    filter: grayscale(10%);
}
.gallery__item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
}
.gallery__item:hover::after { opacity: 1; }

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* INSTAGRAM */
.instagram {
    padding-top: 60px;
    border-top: 1px solid var(--line-soft);
}

.instagram__embed {
    min-height: 320px;
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
}

.instagram__placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 50px 20px;
    text-align: center;
    color: var(--text-dim);
    position: relative;
}

.instagram__placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 6px;
    margin-bottom: 10px;
}
.instagram__placeholder-grid > div {
    width: 60px;
    height: 60px;
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}
.instagram__placeholder-grid > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,169,97,0.05), transparent);
}
@media (max-width: 480px) {
    .instagram__placeholder-grid { grid-template-columns: repeat(3, 50px); }
    .instagram__placeholder-grid > div { width: 50px; height: 50px; }
}

.instagram__placeholder p {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============ TESTIMONIALS ============ */
.slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.slider__track {
    display: flex;
    transition: transform .7s var(--ease);
}

.testimonial {
    flex: 0 0 100%;
    padding: 50px 40px;
    text-align: center;
}
.testimonial__stars {
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 28px;
    font-size: 0.85rem;
}
.testimonial__quote {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 32px;
    letter-spacing: 0.005em;
}
.testimonial__author {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 30px;
}
.slider__btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    color: var(--gold);
    font-size: 1rem;
    transition: all .25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider__btn:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.slider__dots {
    display: flex;
    gap: 10px;
}
.slider__dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: all .25s var(--ease);
}
.slider__dots button.is-active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    padding: 120px 0 30px;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.footer__head {
    text-align: center;
    margin-bottom: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 70px;
    padding-bottom: 70px;
    border-bottom: 1px solid var(--line-soft);
}

.footer__label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.footer__list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-soft);
}
.footer__list li:last-child { border-bottom: 0; }
.footer__list li span:first-child {
    color: var(--text);
    font-weight: 400;
}

.footer__list--plain li {
    justify-content: flex-start;
    font-size: 1rem;
}
.footer__list--plain a {
    color: var(--text);
    transition: color .25s var(--ease);
    position: relative;
    padding-left: 22px;
}
.footer__list--plain a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold);
    transition: transform .25s var(--ease);
}
.footer__list--plain a:hover { color: var(--gold); }
.footer__list--plain a:hover::before { transform: translateX(4px); }

.footer__cta {
    margin-top: 30px;
}

.footer__map {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 14px;
    filter: grayscale(80%) invert(0.92) contrast(0.85);
    transition: filter .4s var(--ease);
}
.footer__map:hover { filter: grayscale(0%) invert(0.92) contrast(0.85); }
.footer__map iframe { display: block; }

.footer__map-link {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}
.footer__map-link:hover { color: var(--gold-bright); }

.footer__bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .section { padding: 100px 0; }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    .about__image-frame { max-width: 480px; margin: 0 auto; }
    .about__image-accent { right: -20px; bottom: -20px; left: 20px; top: 20px; }
    .about__body .section__title { text-align: center; }
    .about__body { text-align: center; }
    .about__text { text-align: left; }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    .gallery__item--wide { grid-column: span 2; }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .footer__col--map {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    :root { --nav-h: 70px; }

    .section { padding: 80px 0; }
    .section__head { margin-bottom: 60px; }

    .container { padding: 0 22px; }

    .nav__inner { padding: 0 22px; }
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 360px;
        background: var(--bg-2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        border-left: 1px solid var(--line);
        margin: 0;
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__links a { font-size: 1rem; }
    .nav__toggle { display: flex; }
    .nav__cta { display: none; }

    .hero { padding: 100px 22px 60px; }
    .hero__title { font-size: clamp(2.4rem, 11vw, 4rem); }
    .hero__sub { font-size: 1rem; }
    .hero__cta-row .btn { width: 100%; max-width: 280px; }

    .about__text p { font-size: 0.95rem; line-height: 1.75; }

    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    .gallery__item--wide, .gallery__item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .testimonial { padding: 30px 10px; }

    .footer { padding: 80px 0 30px; }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-bottom: 50px;
    }
    .footer__col--map { grid-column: span 1; }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .slider__btn { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
    .hero__title { font-size: 2.4rem; }
    .section__title { font-size: 2rem; }
    .service-list__top h4 { font-size: 1.2rem; }
    .testimonial__quote { font-size: 1.1rem; }
}

/* ============ MOTION SAFE ============ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Active Navigation Link State */
.nav__links a.is-active {
    color: var(--gold-bright);
}

.nav__links a.is-active::after {
    width: 100%;
}

