/* =========================================================
   ShotsbyPogi — Photography Landing Page
   Modern editorial / flat white redesign
   ========================================================= */

:root {
    --bg:        #ffffff;
    --bg-soft:   #f4f4f2;
    --ink:       #101012;
    --surface:   #ffffff;
    --line:      #e7e7e3;
    --text:      #101012;
    --muted:     #76766f;
    --accent:    #ff4d23;     /* vermilion pop */
    --accent-ink:#0c0c0e;
    --radius:    18px;
    --maxw:      1240px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --display:   'Space Grotesk', system-ui, sans-serif;
    --sans:      'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: 120px 0; }

/* ---------- Typography ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 18px;
}
.section-eyebrow .idx { color: var(--accent); font-family: var(--display); }

.section-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-lead { color: var(--muted); max-width: 540px; font-size: 1.05rem; }
.section-head { margin-bottom: 60px; max-width: 660px; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 38px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { font-size: 0.92rem; color: var(--text); transition: color 0.25s var(--ease); }
.nav a span { color: var(--muted); font-family: var(--display); font-size: 0.72rem; margin-right: 3px; }
.nav a:hover { color: var(--accent); }
.nav-cta {
    border: 1px solid var(--ink);
    padding: 10px 20px;
    border-radius: 100px;
}
.nav-cta:hover { background: var(--ink); color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    width: 100%;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}
.hero-title span { display: block; }
.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1.6px var(--ink);
    text-stroke: 1.6px var(--ink);
}
.hero-subtitle { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-frame {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.hero-frame img, .hero-frame .placeholder-svg { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    left: -22px; bottom: 34px;
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    text-align: center;
}
.hero-badge-num { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.hero-badge-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    background: var(--ink);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: marquee 26s linear infinite;
}
.marquee span {
    font-family: var(--display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.marquee .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 70px; align-items: center; }
.about-photo {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.about-photo img, .about-photo .placeholder-svg { width: 100%; height: 100%; object-fit: cover; }
.about-body { color: var(--muted); margin-bottom: 40px; font-size: 1.08rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat-value { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* Masonry-style varied grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 30px;
    gap: 18px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    grid-row: span 14;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:nth-child(3n+1) { grid-row: span 18; }
.gallery-item:nth-child(4n)   { grid-row: span 12; }
.gallery-item.hidden { display: none; }
.gallery-item img, .gallery-item .placeholder-svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img, .gallery-item:hover .placeholder-svg { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 20px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus figcaption { opacity: 1; transform: translateY(0); }
.gallery-cat { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 4px; }
.gallery-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: #fff; }

/* ---------- Services (numbered rows) ---------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 34px 10px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.service-row:hover { padding-left: 26px; background: var(--bg-soft); }
.service-num { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.service-main h3 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.service-main p { color: var(--muted); max-width: 560px; }
.service-icon { font-size: 2rem; opacity: 0.5; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.service-row:hover .service-icon { opacity: 1; transform: scale(1.1); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--ink); color: #fff; padding: 90px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.cta-banner .btn-primary { background: var(--accent); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-list { list-style: none; margin: 32px 0; }
.contact-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list span { min-width: 70px; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; }
.contact-list a:hover { color: var(--accent); }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); padding: 9px 17px; border-radius: 100px; transition: all 0.25s var(--ease); }
.social a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.field input, .field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #b6b6ae; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,16,18,0.07); }
.field textarea { resize: vertical; }
.err { color: #dc2626; font-size: 0.78rem; margin-top: 6px; display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 0.92rem; }
.alert-success { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.alert-error   { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-tag { font-family: var(--display); font-size: 1.1rem; color: var(--muted); margin-top: 8px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-copy { font-size: 0.82rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 80vw; max-height: 86vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.lightbox-content img, .lightbox-content .placeholder-svg { max-width: 80vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: var(--ink); font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-figure { max-width: 440px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .section { padding: 84px 0; }
    .nav {
        position: fixed; inset: 82px 0 auto 0;
        flex-direction: column; gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s var(--ease);
    }
    .nav.open { max-height: 380px; }
    .nav a { width: 100%; padding: 16px 28px; border-bottom: 1px solid var(--line); }
    .nav-cta { border: none; border-radius: 0; }
    .nav-toggle { display: flex; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .service-row { grid-template-columns: 56px 1fr; }
    .service-icon { display: none; }
    .hero-badge { left: 0; }
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery-item, .gallery-item:nth-child(3n+1), .gallery-item:nth-child(4n) { grid-row: auto; aspect-ratio: 4 / 5; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .contact-form { padding: 26px 22px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
