/* ──────────────────────────────────────────
   IVANNA BROW STUDIO — STYLES
   Palette: Emerald green + Cream + Gold
   ────────────────────────────────────────── */

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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream-50:  #faf8f5;
    --cream-100: #f5f0e8;
    --cream-200: #ede5d8;
    --cream-300: #e0d5c4;
    --gold-400:  #d4a574;
    --gold-500:  #c49462;
    --text-dark: #1a1a1a;
    --text-mid:  #3a3a3a;
    --text-light:#6b6b6b;
    --white:     #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Outfit', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--emerald-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: background 0.3s var(--ease);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--emerald-900);
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold-500);
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s var(--ease);
}

.nav-menu a:hover {
    color: var(--emerald-800);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--white) !important;
    background: var(--emerald-800);
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--emerald-700) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--emerald-900);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(6, 78, 59, 0.88) 0%, rgba(4, 47, 35, 0.95) 60%, #021209 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

.hero-content {
    max-width: 680px;
}

.hero-greeting {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-note {
    font-size: 0.8125rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-400);
    color: var(--emerald-950);
}

.btn-primary:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.btn-full {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ─── DIVIDER ─── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.25rem 0;
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-400);
    flex-shrink: 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: var(--cream-300);
}

/* ─── SECTION HEADER ─── */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--emerald-900);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.7;
}

/* ─── SERVICES ─── */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
}

.service-card:hover {
    border-color: var(--emerald-700);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--cream-100);
    color: var(--emerald-800);
    margin-bottom: 1.25rem;
    transition: background 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--emerald-900);
    color: var(--gold-400);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--emerald-900);
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.65;
}

/* ─── ABOUT ─── */
.about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    font-size: 1rem;
    font-weight: 200;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald-800);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--cream-300);
}

/* ─── GALLERY ─── */
.gallery {
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream-200);
}

.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 5 / 13; grid-row: 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ─── FAQ ─── */
.faq {
    padding: 5rem 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 6rem;
}

.faq-intro {
    font-size: 1rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

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

.faq-item {
    border-bottom: 1px solid var(--cream-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    color: var(--emerald-900);
    transition: color 0.2s var(--ease);
}

.faq-question:hover {
    color: var(--emerald-700);
}

.faq-toggle {
    font-size: 1.25rem;
    font-weight: 200;
    color: var(--gold-400);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease);
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.faq-answer p {
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

/* ─── CONTACT ─── */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.3rem;
}

.contact-detail dd a {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    transition: color 0.2s var(--ease);
}

.contact-detail dd a:hover {
    color: var(--emerald-700);
}

/* ─── FORM ─── */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 200;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cream-300);
}

.form-note {
    font-size: 0.8125rem;
    font-weight: 200;
    color: var(--text-light);
    margin-top: 0.75rem;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 2rem;
    color: var(--emerald-800);
}

.form-success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.75rem 0 0.5rem;
}

.form-success p {
    font-size: 0.9375rem;
    font-weight: 200;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--emerald-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand .nav-logo-mark {
    color: var(--gold-400);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s var(--ease);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 200;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s var(--ease);
}

.footer-bottom a:hover {
    color: var(--gold-400);
}

/* ─── MOBILE MENU ─── */
.nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--cream-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        aspect-ratio: 16/10;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-left {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .gallery-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .gallery-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
    .gallery-item:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(n) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .about-stats {
        flex-wrap: wrap;
    }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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