/* ═══════════════════════════════════════════════════════════
   SARA GIARDINI PHOTOGRAPHY — Shared Stylesheet
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --gold:       #b8952a;
    --gold-light: #d4aa3a;
    --gold-dark:  #8c6e1f;
    --black:      #070707;
    --dark:       #111111;
    --dark2:      #1a1a1a;
    --cream:      #f5f0e8;
    --cream2:     #e8e0d0;
    --text:       rgba(245, 240, 232, 0.82);
    --nav-h:      80px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--cream);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.05;
}

.label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--cream);
}

.title em { font-style: italic; color: var(--gold-light); }

.gold-line {
    display: block;
    width: 46px; height: 1px;
    background: var(--gold);
    margin: 18px auto;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
    transition: background 0.5s, box-shadow 0.5s, height 0.4s;
}

#nav.solid {
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    height: 64px;
    box-shadow: 0 1px 0 rgba(184,149,42,0.18);
}

/* logo wrapper — the <a> that wraps the logo image */
#nav > a {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 72px;
    width: auto;
    transition: height 0.4s;
}
#nav.solid .nav-logo {
    height: 48px;
}

.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.35s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 26px; height: 1px;
    background: var(--cream);
    transition: all 0.32s cubic-bezier(.4,0,.2,1);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
    background: var(--dark);
    border-top: 1px solid rgba(184,149,42,0.14);
    padding: 36px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-logo { height: 50px; opacity: 0.75; }
.footer-nav { display: flex; gap: 30px; list-style: none; }
.footer-nav a {
    color: rgba(245,240,232,0.35);
    text-decoration: none;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: rgba(245,240,232,0.25);
    text-align: right;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
}
.btn-gold {
    background: var(--gold);
    color: var(--black);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184,149,42,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245,240,232,0.45);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}
.btn-ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
}
.btn-ig:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(253,29,29,0.35); filter: brightness(1.1); }
.btn-fb {
    background: #1877f2;
    color: #fff;
}
.btn-fb:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24,119,242,0.35); filter: brightness(1.1); }

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.from-left  { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.visible    { opacity: 1; transform: translate(0,0); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    transform: scale(0.93);
    transition: transform 0.45s;
}
.lightbox.open .lb-img { transform: scale(1); }

.lb-close {
    position: absolute; top: 26px; right: 38px;
    background: none; border: none;
    color: rgba(245,240,232,0.7);
    font-size: 2.2rem; cursor: pointer; line-height: 1;
    transition: color 0.3s, transform 0.3s;
}
.lb-close:hover { color: var(--cream); transform: rotate(90deg); }

.lb-arr {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(184,149,42,0.35);
    color: var(--cream);
    font-size: 1.1rem; cursor: pointer;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.6;
    transition: all 0.3s;
}
.lb-arr:hover { background: rgba(184,149,42,0.2); border-color: var(--gold); opacity: 1; }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }

.lb-count {
    position: absolute; bottom: 26px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem; letter-spacing: 0.28em;
    color: rgba(245,240,232,0.42);
}

/* ── PAGE HEADER (interior pages) ───────────────────────── */
.page-header {
    width: 100%;
    height: 55vh;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
}
.page-header img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
}
.page-header::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(7,7,7,0.3) 0%, rgba(7,7,7,0.7) 100%);
}
.page-header-content {
    position: relative; z-index: 1;
    padding: 0 80px;
    text-align: center;
    width: 100%;
}
.page-header h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--cream);
    animation: fadeInUp 1s ease 0.2s both;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    #nav { padding: 0 26px; }
    #nav.solid { height: 58px; }
    .nav-logo { height: 62px; }
    #nav.solid .nav-logo { height: 44px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100dvh; width: 280px;
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(22px);
        flex-direction: column;
        justify-content: center; align-items: center;
        gap: 32px;
        transition: right 0.42s cubic-bezier(.4,0,.2,1);
        border-left: 1px solid rgba(184,149,42,0.16);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.82rem; letter-spacing: 0.32em; }
    .hamburger { display: flex; }

    #footer {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
    .footer-copy { text-align: center; }

    .page-header { height: 45vh; min-height: 280px; padding-bottom: 50px; }
    .page-header-content { padding: 0 24px; }
}

@media (max-width: 480px) {
    .btn { padding: 12px 24px; font-size: 0.62rem; }
    .lb-arr { width: 40px; height: 40px; }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
}
