/* ============================================================
   Stephen Bolin Photography — Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black:   #0a0a0a;
    --white:   #f0ece4;
    --grey:    #888;
    --accent:  #c9a84c;
    --accent2: #8a6d3b;
    --font:    'Georgia', 'Times New Roman', serif;
    --gap:     clamp(1rem, 3vw, 2.5rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background:  var(--black);
    color:       var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--white); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }

/* --- Utility ----------------------------------------------- */
.container { width: 92%; max-width: 1280px; margin: 0 auto; }
.section-pad { padding: 5rem 0; }
.text-center { text-align: center; }

/* --- Header / Nav ------------------------------------------ */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240,236,228,.06);
}
header .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;                    /* keep the logo and nav apart at mid widths */
    padding: .9rem 0;
}
.logo {
    font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: normal; white-space: nowrap;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: 1.8rem; align-items: center; }
nav a {
    font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
    position: relative; padding-bottom: 2px;
}
nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: var(--accent);
    transition: width .3s;
}
nav a:hover::after,
nav a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white);
    font-size: 1.5rem; cursor: pointer; }

/* --- Hero -------------------------------------------------- */
.hero {
    min-height: 55vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 7rem 1rem 3.5rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: normal; letter-spacing: .06em;
    line-height: 1.15; margin-bottom: .6rem;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--grey); font-style: italic;
    margin-bottom: 2.5rem;
}
.hero .cta {
    display: inline-block; padding: .85rem 2.6rem;
    border: 1px solid var(--accent); color: var(--accent);
    letter-spacing: .14em; text-transform: uppercase;
    font-size: .82rem; transition: background .3s, color .3s;
}
.hero .cta:hover { background: var(--accent); color: var(--black); }

/* --- Section Headings -------------------------------------- */
.section-heading {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: normal; text-align: center;
    margin-bottom: .4rem; letter-spacing: .04em;
}
.section-sub {
    text-align: center; color: var(--grey);
    font-style: italic; margin-bottom: 3rem;
    font-size: 1rem;
}
.divider {
    width: 60px; height: 1px; background: var(--accent);
    margin: 1rem auto 2.5rem;
}

/* --- Category Cards (Homepage) ----------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}
.cat-card {
    position: relative; overflow: hidden;
    aspect-ratio: 5/4; border-radius: 2px;
    cursor: pointer;
}
.cat-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease, filter .6s ease;
    filter: brightness(.7);
}
.cat-card:hover img { transform: scale(1.05); filter: brightness(.55); }
.cat-card .overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1.5rem; text-align: center;
    z-index: 2;
}
.cat-card .overlay .icon { font-size: 2rem; margin-bottom: .6rem; }
.cat-card .overlay h3 {
    font-size: 1.35rem; font-weight: normal;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .3rem;
}
.cat-card .overlay p { font-size: .88rem; color: var(--grey); font-style: italic; }

/* Placeholder when no images */
.cat-card--empty {
    background: #161616;
    display: flex; align-items: center; justify-content: center;
}

/* --- Gallery Grid ------------------------------------------ */
.gallery-grid {
    column-count: 3; column-gap: var(--gap);
}
.gallery-grid .gallery-item {
    break-inside: avoid; margin-bottom: var(--gap);
    overflow: hidden; border-radius: 2px;
    position: relative; cursor: pointer;
}
.gallery-grid .gallery-item img {
    width: 100%; display: block;
    transition: transform .5s ease, filter .5s ease;
    filter: brightness(.85);
}
.gallery-grid .gallery-item:hover img {
    transform: scale(1.03); filter: brightness(1);
}

/* --- Lightbox ---------------------------------------------- */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.95); z-index: 1000;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
    position: absolute; top: 1.2rem; right: 1.6rem;
    font-size: 2rem; color: var(--white); cursor: pointer;
    background: none; border: none; z-index: 1001;
    transition: color .2s;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 2.2rem; color: var(--white); background: none;
    border: none; cursor: pointer; z-index: 1001;
    padding: .5rem; transition: color .2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }

/* --- Pricing ----------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}
.price-card {
    border: 1px solid rgba(240,236,228,.1);
    padding: 2.5rem 2rem; border-radius: 2px;
    text-align: center; position: relative;
    transition: border-color .3s, transform .3s;
}
.price-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(201,168,76,.08);
}
.price-card.featured::before {
    content: 'Most Popular'; position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%); background: var(--accent); color: var(--black);
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .25rem 1rem; border-radius: 2px;
}
.price-card h3 {
    font-size: 1.2rem; font-weight: normal;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: .6rem;
}
.price-card .price {
    font-size: 2.4rem; color: var(--accent);
    margin-bottom: 1.6rem;
}
.price-card ul { list-style: none; text-align: left; margin-bottom: 2rem; }
.price-card ul li {
    padding: .45rem 0; border-bottom: 1px solid rgba(240,236,228,.06);
    font-size: .9rem; color: #bbb;
}
.price-card ul li::before {
    content: '✦ '; color: var(--accent); margin-right: .3rem;
}
.price-card .btn {
    display: inline-block; padding: .7rem 2rem;
    border: 1px solid var(--accent); color: var(--accent);
    letter-spacing: .12em; text-transform: uppercase;
    font-size: .78rem; font-family: var(--font);
    cursor: pointer; background: none;
    transition: background .3s, color .3s;
}
.price-card .btn:hover { background: var(--accent); color: var(--black); }

/* --- Contact ----------------------------------------------- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; padding: .85rem 1rem;
    background: #161616; border: 1px solid rgba(240,236,228,.12);
    color: var(--white); font-family: var(--font);
    font-size: .95rem; border-radius: 2px;
    margin-bottom: 1.2rem; transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none; border-color: var(--accent);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
    display: inline-block; padding: .8rem 2.4rem;
    background: none; border: 1px solid var(--accent);
    color: var(--accent); font-family: var(--font);
    letter-spacing: .12em; text-transform: uppercase;
    font-size: .82rem; cursor: pointer;
    transition: background .3s, color .3s;
}
.contact-form button:hover { background: var(--accent); color: var(--black); }
.contact-info h3 {
    font-size: 1.3rem; font-weight: normal;
    margin-bottom: 1.5rem; letter-spacing: .06em;
}
.contact-info p { color: #bbb; margin-bottom: 1rem; font-size: .95rem; }
.contact-info .detail { margin-bottom: 1.4rem; }
.contact-info .detail strong { color: var(--accent); display: block; margin-bottom: .2rem;
    letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }

/* --- Footer ------------------------------------------------ */
footer {
    border-top: 1px solid rgba(240,236,228,.06);
    padding: 2.5rem 0; text-align: center;
    color: var(--grey); font-size: .82rem;
    letter-spacing: .06em;
}
footer a { color: var(--accent); }

/* --- No-images message ------------------------------------- */
.no-images {
    text-align: center; padding: 4rem 2rem;
    color: var(--grey); font-style: italic;
}
.no-images p { margin-bottom: .6rem; }
.no-images code {
    background: #1a1a1a; padding: .2rem .6rem;
    font-size: .85rem; border-radius: 2px;
    font-family: monospace; color: var(--accent);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
    .gallery-grid { column-count: 2; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .gallery-grid { column-count: 1; }
    nav { display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(10,10,10,.97); padding: 1rem 0;
        border-bottom: 1px solid rgba(240,236,228,.06);
    }
    nav.open { display: flex; }
    nav a { padding: .7rem 1.5rem; }
    .nav-toggle { display: block; }
}

/* --- Fade-in animation ------------------------------------- */
.fade-in {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
