/* ==========================================================================
   Healing Soul Photography — self-contained stylesheet
   Dark, editorial, photography-forward. No external dependencies.
   ========================================================================== */

:root {
    --bg:        #0c0e0f;
    --bg-raised: #14181a;
    --bg-hover:  #1c2225;
    --line:      #262d30;
    --text:      #e7ebec;
    --muted:     #9aa4a6;
    --faint:     #6c7679;
    --accent:    #0bb4aa;
    --accent-dim:#0a8f88;
    --maxw:      1200px;
    --prose:     40rem;
    --gap:       clamp(1rem, 3vw, 2rem);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .01em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.section  { padding: clamp(3rem, 8vw, 6rem) 0; }
.center   { text-align: center; }
.muted    { color: var(--muted); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Eyebrow / section label ------------------------------------------------ */
.eyebrow {
    font-family: system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    color: var(--accent);
    margin: 0 0 1rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    padding: .8em 1.8em;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 2px;
    transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,14,15,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--maxw); margin: 0 auto;
    padding: .7rem var(--gap);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name {
    font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.1;
}
.brand-name small {
    display: block; font-family: system-ui, sans-serif;
    font-size: .58rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--faint); margin-top: .2rem;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    color: var(--muted);
    font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-toggle { display: none; }
.nav-hamburger {
    display: none; width: 44px; height: 44px; cursor: pointer;
    border: 0; background: none; padding: 0; position: relative;
}
.nav-hamburger span {
    position: absolute; left: 10px; right: 10px; height: 2px;
    background: var(--text); transition: transform .25s ease, opacity .2s ease;
}
.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 27px; }

@media (max-width: 820px) {
    .nav-hamburger { display: block; margin-left: auto; position: relative; z-index: 2; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(78vw, 320px);
        flex-direction: column; align-items: flex-start; gap: 0;
        background: var(--bg-raised); border-left: 1px solid var(--line);
        padding: 5rem 2rem 2rem; z-index: 1;
        transform: translateX(100%); transition: transform .28s ease;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
    .nav-toggle:checked ~ nav .nav-links { transform: translateX(0); }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; min-height: min(82vh, 760px);
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 4rem var(--gap);
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,14,15,.45) 0%, rgba(12,14,15,.35) 40%, rgba(12,14,15,.85) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .3em; }
.hero .tagline {
    font-family: Georgia, serif; font-style: italic;
    font-size: clamp(1.05rem, 2.5vw, 1.4rem); color: #d7dcdd;
    max-width: 34rem; margin: 0 auto 2rem;
}

/* ==========================================================================
   Prose (about, posts, services)
   ========================================================================== */
.prose { max-width: var(--prose); margin: 0 auto; }
.prose p { margin: 0 0 1.4rem; }
.prose > img, .prose figure { margin: 2rem auto; }
.prose figure img { border-radius: 3px; }
.prose figcaption { color: var(--faint); font-size: .85rem; text-align: center; margin-top: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ==========================================================================
   Portfolio category cards (Nature / People)
   ========================================================================== */
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}
.cat-card {
    position: relative; display: block; overflow: hidden; border-radius: 3px;
    aspect-ratio: 4 / 5; background: var(--bg-raised);
}
.cat-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease, filter .5s ease; filter: brightness(.8);
}
.cat-card:hover img { transform: scale(1.05); filter: brightness(.6); }
.cat-card .cat-label {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(8,10,11,.55) 0%, rgba(8,10,11,.15) 60%, transparent 100%);
    text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.cat-card .cat-label h3 { color: #fff; font-size: 2rem; margin: 0; }
.cat-card .cat-label span {
    text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
    color: var(--accent); margin-top: .5rem;
}

/* ==========================================================================
   Gallery grid (masonry-ish) + lightbox
   ========================================================================== */
.gallery {
    columns: 3 260px; column-gap: 12px;
}
.gallery figure { margin: 0 0 12px; break-inside: avoid; }
.gallery button.shot {
    display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
    border-radius: 3px; overflow: hidden;
}
.gallery img { width: 100%; transition: opacity .2s ease, transform .5s ease; }
.gallery button.shot:hover img { opacity: .85; transform: scale(1.02); }
.gallery figcaption { color: var(--faint); font-size: .8rem; padding: .5rem .2rem 0; }

.lightbox {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center;
    background: rgba(6,8,9,.94); padding: 2vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: 3px; }
.lightbox .lb-caption {
    position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center;
    color: var(--muted); font-size: .9rem;
}
.lightbox .lb-close, .lightbox .lb-nav {
    position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
    font-size: 2rem; line-height: 1; padding: 1rem; opacity: .7; transition: opacity .15s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-close { top: 1rem; right: 1.5rem; font-size: 2.4rem; }
.lightbox .lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox .lb-next { right: .5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ==========================================================================
   Blog listing cards
   ========================================================================== */
.post-list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .date { color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .5rem; }
.post-card h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; }
.post-card .more { margin-top: auto; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }

/* Single post ------------------------------------------------------------ */
.post-header { text-align: center; margin-bottom: 2.5rem; }
.post-header .date { color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; }
.post-hero { max-width: 900px; margin: 0 auto 2.5rem; }
.post-hero img { width: 100%; border-radius: 3px; }
.post-nav { max-width: var(--prose); margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); text-align: center; }

/* ==========================================================================
   Split feature (image + text)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: 3px; width: 100%; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--line); background: #090b0c;
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; margin-top: 2rem;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-tag { font-family: Georgia, serif; font-style: italic; color: var(--muted); max-width: 22rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: var(--muted); display: inline-flex; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
    color: var(--faint); font-size: .8rem;
}
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--muted); }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
    .cat-card:hover img, .gallery button.shot:hover img { transform: none; }
}
