/* ═══════════════════════════════════════════════════
   Lowlight Photography
   Dark-forward cinematic palette, Cormorant Garamond
   + Jost, long-exposure aesthetic, mobile-first.
   ═══════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */

:root {
    /* Light section palette (About) */
    --bg:           #F3F0EA;    /* warm cream */
    --bg-alt:       #EBE7DF;    /* slightly deeper cream */
    --text:         #272420;    /* near-black warm */
    --text-muted:   #7A756E;    /* secondary text */
    --border:       #D5CFC6;    /* warm border */

    /* Dark section palette (Gallery, Services, Contact, Footer) */
    --bg-dark:      #0A0B09;    /* near-black, slight warm */
    --bg-dark-2:    #0F1110;    /* gallery section */
    --bg-dark-3:    #0D0E0C;    /* services section */
    --txt-d:        #CBC4B8;    /* primary text on dark */
    --txt-d-muted:  #6A6560;    /* secondary text on dark */
    --brd-d:        rgba(255,255,255,0.07);

    /* Accent — warm amber, evokes long-exposure light */
    --accent:       #C48A28;
    --accent-light: #D4A85A;

    /* Shared */
    --dark:         #080908;
    --white:        #F3F0EA;

    /* Typography */
    --serif:  'Cormorant Garamond', Georgia, serif;
    --sans:   'Jost', system-ui, sans-serif;

    /* Spacing scale */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;
    --sp-2xl: 10rem;

    /* Layout */
    --nav-h: 68px;
    --max-w: 1200px;

    /* Motion */
    --ease: 0.3s ease;
    --ease-slow: 0.6s ease;
}

/* ─── Reset ─── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg-dark);
    color: var(--txt-d);
    line-height: 1.7;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); }

/* ─── Typography scale ─── */

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
}
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p  { font-weight: 300; }

/* ─── Utilities ─── */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-sm);
}

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto var(--sp-lg);
}
.section-header .section-label { display: block; }
.section-header h2 { margin-bottom: var(--sp-sm); }

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-light); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--text);
    color: var(--white);
}

/* ─── Scroll fade-up animation ─── */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════ */

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    transition: background var(--ease), box-shadow var(--ease);
}
.site-nav.scrolled {
    background: rgba(10, 11, 9, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-md);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Lowlight brand mark */
.nav-logo {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--white);
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    transition: color var(--ease);
}
.nav-logo span {
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
}
.site-nav.scrolled .nav-logo { color: var(--white); }

.nav-links {
    display: flex;
    gap: var(--sp-md);
    align-items: center;
}
.nav-links a {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--ease);
}
.nav-links a:hover { color: rgba(255,255,255,0.95); }
.nav-links a:hover::after { width: 100%; }
.site-nav.scrolled .nav-links a { color: rgba(255,255,255,0.55); }
.site-nav.scrolled .nav-links a:hover { color: rgba(255,255,255,0.95); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,0.75);
    transition: all var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/Solitary Sunset.jpeg') center / cover no-repeat;
    transform: scale(1.03);
    transition: transform 10s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 8, 6, 0.05) 0%,
        rgba(5, 8, 6, 0.28) 50%,
        rgba(5, 8, 6, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 var(--sp-md);
}

.hero-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--sp-md);
}

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: var(--sp-md);
    letter-spacing: -0.01em;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.78);
}

.hero-cta {
    display: inline-block;
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.9rem 2.6rem;
    transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.hero-cta:hover {
    color: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
}

.hero-scroll {
    position: absolute;
    bottom: var(--sp-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
}
.scroll-line {
    display: block;
    width: 1px;
    height: 56px;
    background: rgba(255,255,255,0.25);
    animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1);    opacity: 0.25; }
    50%       { transform: scaleY(0.6); opacity: 0.6; }
}

/* ════════════════════════════════════
   ABOUT  (light section)
   ════════════════════════════════════ */

.about {
    padding: var(--sp-2xl) 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-xl);
    align-items: center;
}

.about-photo { position: relative; }

.portrait-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 35%;
}

.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 11, 9, 0.08) 0%,
        rgba(10, 11, 9, 0.32) 100%
    );
    pointer-events: none;
}

.portrait-accent {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 58%;
    height: 58%;
    border-right: 1px solid var(--accent-light);
    border-bottom: 1px solid var(--accent-light);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Light section text colors */
.about .section-label { color: var(--accent); }

.about-text { max-width: 520px; }
.about-text h2 {
    color: var(--text);
    margin-bottom: var(--sp-md);
}

.about-lead {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.18rem;
    color: var(--accent);
    line-height: 1.55;
    margin-bottom: var(--sp-md);
}

.about-text p:not(.about-lead) {
    color: var(--text-muted);
    margin-bottom: var(--sp-sm);
}
.about-text em {
    font-style: italic;
    color: var(--text);
}
.about-text .btn { margin-top: var(--sp-md); }

/* ════════════════════════════════════
   GALLERY  (very dark section)
   ════════════════════════════════════ */

.gallery {
    padding: var(--sp-xl) 0 0;
    background: var(--bg-dark-2);
}

.gallery .section-header h2        { color: rgba(255,255,255,0.88); }
.gallery .section-header .section-label { color: var(--accent); }
.gallery .section-header p          { color: var(--txt-d-muted); }

/* Filter bar */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding: 0 var(--sp-md);
}
.filter-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.38);
    padding: 0.38rem 1.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(196,138,40,0.06);
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 0 2px 2px;
    justify-items: stretch;
}

/* Fills any incomplete last row so partial rows don't hang left */
.gallery-grid::after {
    content: '';
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}
.gallery-item.hidden { display: none; }

.gallery-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;          /* for <img class="gallery-thumb"> */
    background-size: cover;
    background-position: center;
    transition: transform var(--ease-slow);
}
.gallery-item:hover .gallery-thumb { transform: scale(1.05); }

.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 6, 0);
    display: flex;
    align-items: flex-end;
    padding: var(--sp-sm);
    transition: background var(--ease);
}
.gallery-hover span {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: transparent;
    transition: color var(--ease);
}
.gallery-item:hover .gallery-hover { background: rgba(5, 8, 6, 0.58); }
.gallery-item:hover .gallery-hover span { color: rgba(255,255,255,0.8); }

/* Placeholder gradient — used in lightbox while real images load */
.ph-dark { background: linear-gradient(160deg, #080C10 0%, #0F1820 100%); }

/* ════════════════════════════════════
   SERVICES  (light cream section)
   ════════════════════════════════════ */

.services {
    padding: var(--sp-2xl) 0;
    background: var(--bg-alt);
}

.services .section-header h2          { color: var(--text); }
.services .section-header .section-label { color: var(--accent); }
.services .section-header p            { color: var(--text-muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

.service-card {
    background: var(--bg);
    padding: var(--sp-lg) var(--sp-md) var(--sp-md);
    border-top: 1px solid var(--accent);
    transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 8, 5, 0.1);
}

.service-diamond {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    transform: rotate(45deg);
    margin-bottom: var(--sp-md);
    opacity: 0.7;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: var(--sp-sm);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--sp-md);
    line-height: 1.65;
}
.service-link {
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 2px;
    opacity: 0.9;
    transition: color var(--ease), border-color var(--ease), opacity var(--ease);
}
.service-link:hover {
    color: var(--text);
    border-color: var(--text);
    opacity: 1;
}

/* ════════════════════════════════════
   CONTACT  (dark section)
   ════════════════════════════════════ */

.contact {
    padding: var(--sp-2xl) 0;
    background: var(--bg-dark-3);
}

.contact .section-label { color: var(--accent); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--sp-xl);
    align-items: start;
}

.contact-info h2 {
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--sp-md);
}
.contact-info > p {
    color: var(--txt-d-muted);
    margin-bottom: var(--sp-lg);
}

.contact-details { margin-bottom: var(--sp-md); }
.contact-email {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: var(--sp-xs);
    transition: color var(--ease);
}
.contact-email:hover { color: var(--accent-light); }
.contact-location {
    font-size: 0.875rem;
    color: var(--txt-d-muted);
}

.contact-social {
    display: flex;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}
.social-link {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--txt-d-muted);
    border-bottom: 1px solid var(--brd-d);
    padding-bottom: 2px;
    transition: color var(--ease), border-color var(--ease);
}
.social-link:hover {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.3);
}

/* Form — dark variant */
.contact-form { display: flex; flex-direction: column; gap: var(--sp-md); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--txt-d-muted);
    font-weight: 400;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 0.55rem 0;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--txt-d);
    outline: none;
    transition: border-color var(--ease);
    -webkit-appearance: none;
    border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}
.form-group select { cursor: pointer; color: var(--txt-d); }
.form-group select option { background: var(--bg-dark-3); color: var(--txt-d); }
.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
}
.form-note {
    font-size: 0.78rem;
    color: var(--txt-d-muted);
}

/* Form success state */
.form-success {
    padding: var(--sp-xl) 0;
    text-align: center;
}
.form-success h3 {
    font-size: 2rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--sp-sm);
}
.form-success p { color: var(--txt-d-muted); }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */

.site-footer {
    background: var(--dark);
    padding: var(--sp-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}
.footer-logo {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}
.footer-logo span {
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: none;
    color: rgba(255,255,255,0.25);
}
.footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
    max-width: 440px;
}
.footer-nav {
    display: flex;
    gap: var(--sp-md);
}
.footer-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    transition: color var(--ease);
}
.footer-nav a:hover { color: rgba(255,255,255,0.65); }

/* ════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(5, 6, 5, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    max-width: min(90vw, 1000px);
    max-height: 88vh;
}
.lb-placeholder {
    width: min(84vw, 900px);
    height: min(70vh, 620px);
    display: none;
}
.lb-img {
    max-width: min(84vw, 900px);
    max-height: min(75vh, 680px);
    object-fit: contain;
    display: none;
}
.lb-img.loaded { display: block; }
.lb-caption {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.32);
    text-align: center;
}

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color var(--ease);
    line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: rgba(255,255,255,0.9); }

.lb-close {
    top: var(--sp-md);
    right: var(--sp-md);
    font-size: 1.05rem;
    z-index: 10;
}
.lb-prev, .lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    font-weight: 200;
    padding: 0 var(--sp-sm);
}
.lb-prev { left: var(--sp-xs); }
.lb-next { right: var(--sp-xs); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */

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

@media (max-width: 860px) {
    :root {
        --sp-lg: 3rem;
        --sp-xl: 4rem;
        --sp-2xl: 7rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }
    .about-photo {
        max-width: 380px;
        margin: 0 auto;
    }
    .portrait-accent { display: none; }
    .about-text { max-width: 100%; }

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

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

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

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-copy  { max-width: 100%; }
}

@media (max-width: 600px) {
    :root {
        --sp-lg: 2.5rem;
        --sp-2xl: 5rem;
    }

    /* Mobile nav — dark dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 11, 9, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: var(--sp-sm) var(--sp-md) var(--sp-md);
    }
    .nav-links.open { display: flex; }
    .nav-links li   { width: 100%; }
    .nav-links a {
        display: block;
        color: rgba(255,255,255,0.55) !important;
        font-size: 0.82rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links a:hover { color: rgba(255,255,255,0.9) !important; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-toggle { display: flex; }

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

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

    .lb-prev, .lb-next { font-size: 2.5rem; }
}
