/* ==========================================================================
   Jibu Thomas Photography - site.css  (v3.0.2.261006)
   Design: dark, image-first portfolio inspired by the "Inspiro" layout
   Fonts : Playfair Display (headings) + Inter (body)
   ========================================================================== */

:root {
    --bg: #0f0f0f;
    --bg-soft: #171717;
    --ink: #1c1c1c;
    --text: #4a4a4a;
    --muted: #8c8c8c;
    --line: #e7e5e1;
    --paper: #ffffff;
    --paper-2: #f6f5f2;
    --accent: #d29b4f;
    --accent-dark: #a8772f;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-h: 78px;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
form { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 300; background: #fff; color: var(--ink); padding: 8px 14px; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0));
    transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
    height: 64px;
    background: rgba(14,14,14,.96);
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner {
    max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand-tag { margin-top: 6px; font-size: 10px; letter-spacing: .46em; text-transform: uppercase; color: rgba(255,255,255,.62); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; padding: 6px 0; color: rgba(255,255,255,.82); font-size: 14px; letter-spacing: .04em; }
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; background: none; border: 0; cursor: pointer; position: relative; z-index: 130; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .3s ease, opacity .3s ease; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 120;
        flex-direction: column; justify-content: center; gap: 26px;
        background: rgba(10,10,10,.97);
        opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
    }
    .site-nav a { font-family: var(--serif); font-size: 30px; }
    .nav-open { overflow: hidden; }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border: 1px solid var(--ink); border-radius: 0;
    background: transparent; color: var(--ink);
    font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1;
    letter-spacing: .18em; text-transform: uppercase;
    cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease;
    -webkit-appearance: none; appearance: none;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { border-color: transparent; color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 100vh; min-height: 580px; overflow: hidden; background: #000; color: #fff; }
.hero-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-bg {
    position: absolute; top: -60px; left: -60px; right: -60px; bottom: -60px;
    background-size: cover; background-position: center;
    filter: blur(30px) brightness(.42); transform: scale(1.08);
}
.hero-link { display: block; }
.hero-img {
    position: absolute; left: 50%; top: 43%;
    max-width: 92vw; max-height: 60vh; width: auto; height: auto;
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    transition: transform 8s ease;
}
.hero-slide.is-active .hero-img { transform: translate(-50%, -50%) scale(1); }
.hero-shade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}
.hero-caption { position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 3; padding: 0 24px; text-align: center; }
.hero-caption h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); margin: 0 0 10px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-sub { max-width: 620px; margin: 0 auto 26px; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-prev, .hero-next { top: 43%; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, transform .3s; }
.hero-dot.is-active { background: #fff; transform: scale(1.3); }

.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.eyebrow-dark { color: var(--muted); }

.round-arrow {
    position: absolute; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #fff;
    cursor: pointer; transform: translateY(-50%); transition: background .25s, border-color .25s;
}
.round-arrow:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.hero-prev, .viewer-prev { left: 28px; }
.hero-next, .viewer-next { right: 28px; }

@media (max-width: 700px) {
    .hero-img { top: 38%; max-height: 46vh; }
    .hero-prev, .hero-next { top: 38%; width: 42px; height: 42px; }
    .hero-prev { left: 12px; } .hero-next { right: 12px; }
}

/* -------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-flush { padding-left: 0; padding-right: 0; }
.section-dark { background: var(--bg); color: #bdbdbd; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-soft { background: var(--paper-2); }
.section-title { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 26px; }
.section-lead { max-width: 640px; margin: -6px auto 34px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); }
.band { padding: 46px 0; background: var(--bg); text-align: center; }

/* -------------------------------------------------------- filter + grid */
.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 40px; padding: 0 16px; }
.pill {
    padding: 7px 20px; border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--serif); font-size: 14px; color: var(--muted);
    transition: color .2s, border-color .2s;
}
.pill:hover { color: var(--ink); border-color: #b9b9b9; }
.pill.is-active { color: var(--ink); border-color: var(--ink); }
.pill .count { margin-left: 7px; font-family: var(--sans); font-size: 11px; opacity: .6; }
.section-dark .pill { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.55); }
.section-dark .pill:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.section-dark .pill.is-active { color: #fff; border-color: #fff; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 1100px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .photo-grid { grid-template-columns: 1fr; } }

.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #1a1a1a; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.js .tile img { opacity: 0; }
.js .tile img.is-loaded { opacity: 1; }
.tile:hover img, .tile:focus img { transform: scale(1.06); }
.tile-cap {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%);
    color: #fff; opacity: 0; transition: opacity .35s ease;
}
.tile:hover .tile-cap, .tile:focus .tile-cap { opacity: 1; }
.tile-title { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.tile-sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.tile.is-hidden { display: none; }

.gallery-section { padding-top: 56px; padding-bottom: 0; }
.listing-footer { margin: 0; padding: 48px 24px 56px; text-align: center; }
.empty-note { padding: 60px 24px; text-align: center; }

/* ------------------------------------------------------------ page hero */
.page-hero {
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    min-height: 48vh; padding: calc(var(--header-h) + 60px) 24px 64px;
    background: #111 center / cover no-repeat; color: #fff; text-align: center;
}
.page-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.45) 50%, rgba(15,15,15,.92));
}
.page-hero-inner { position: relative; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; }
.page-hero p { margin: 0; color: rgba(255,255,255,.8); }
.page-hero .eyebrow { margin-bottom: 14px; }

/* ----------------------------------------------------------------- about */
.about-media { margin: 0 auto 44px; }
.about-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; font-size: 15px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 8px; } }
.lead { font-weight: 600; color: var(--ink); }
.lead-xl { margin: 0 auto 48px; max-width: 760px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--ink); }
.snapshot { margin: 8px 0 24px; }
.snapshot img { width: 100%; max-width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); image-rendering: auto; }
.callout { margin: 40px auto 0; padding: 32px 36px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 16px; }
.callout p:last-child { margin: 0; }

.gear-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gear-list li { padding: 16px 20px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-size: 17px; color: var(--ink); }
.gear-list li span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gear-cta { margin-top: 40px; }

/* --------------------------------------------------------- feature band */
.feature-banner {
    position: relative; display: flex; align-items: center; min-height: 460px; overflow: hidden;
    background: #000 center / cover no-repeat; color: #fff;
}
.feature-banner::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.15) 100%);
}
.feature-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.feature-inner h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: .05em; text-transform: uppercase; }
.feature-inner p { max-width: 440px; color: rgba(255,255,255,.75); }
.feature-inner .btn { margin-top: 10px; }

/* --------------------------------------------------------------- contact */
.contact-strip { text-align: center; }
.contact-strip h2 { font-size: clamp(26px, 3vw, 38px); }
.mail-link { font-family: var(--serif); font-size: 22px; color: var(--ink); border-bottom: 1px solid var(--accent); }
.mail-link:hover { color: var(--accent-dark); }
.visitor-note { margin: 30px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); }
.info-block { padding: 18px 0; border-top: 1px solid var(--line); }
.info-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-block a { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.info-block a:hover { color: var(--accent-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-row-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 22px; }
.form-row label, .field-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.form-control {
    width: 100%; padding: 13px 14px; border: 1px solid #d9d6d0; border-radius: 0;
    background: #fff; color: var(--ink); font: inherit; font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
textarea.form-control { min-height: 170px; resize: vertical; }
select.form-control { height: 48px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ErrorText { display: inline-block; margin-top: 6px; color: #b3261e; font-size: 12px; }
.notice-success { display: block; margin-bottom: 24px; padding: 14px 18px; border-left: 3px solid #4b8b4b; background: #eef6ee; color: #2f5a2f; }
.notice-success:empty { display: none; }

.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha-img { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; background: #1d1d1d; }
.captcha-img img { display: block; }
.captcha-eq { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.captcha-input { width: 80px; text-align: center; }

/* ---------------------------------------------------------- photo viewer */
.viewer { position: relative; overflow: hidden; background: #0b0b0b; padding-top: calc(var(--header-h) + 20px); }
.viewer-bg {
    position: absolute; top: -80px; left: -80px; right: -80px; bottom: -80px;
    background: center / cover no-repeat; filter: blur(40px) brightness(.3); transform: scale(1.1);
}
.viewer-stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 12px 100px; }
.viewer-img { max-width: 100%; max-height: calc(100vh - var(--header-h) - 150px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.viewer .round-arrow { top: 50%; }
.viewer-bar {
    position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    max-width: 1100px; margin: 0 auto; padding: 22px 24px; font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.55);
}
.viewer-bar a { color: rgba(255,255,255,.82); }
.viewer-bar a:hover { color: #fff; }
@media (max-width: 700px) {
    .viewer-stage { padding: 8px 12px; min-height: 0; }
    .viewer .round-arrow { width: 40px; height: 40px; background: rgba(0,0,0,.45); }
    .viewer-prev { left: 10px; } .viewer-next { right: 10px; }
    .viewer-bar { font-size: 12px; }
}

.photo-details { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .photo-details { grid-template-columns: 1fr; gap: 28px; } }
.photo-meta { margin-bottom: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.photo-meta a { color: var(--accent-dark); }
.photo-title { font-size: clamp(28px, 3.4vw, 42px); }
.photo-description { font-size: 16px; }

.photo-details.no-card { grid-template-columns: 1fr; max-width: 820px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.meta-card { padding: 26px 28px; background: var(--paper-2); border: 1px solid var(--line); }
.meta-title { margin: 0 0 16px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; color: var(--ink); }

/* ----------------------------------------------------- placeholder pages */
.placeholder-card h2 { font-size: clamp(26px, 3vw, 36px); }
.placeholder-card .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #111; color: #8f8f8f; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; padding: 72px 24px 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin-bottom: 18px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    max-width: var(--max); margin: 0 auto; padding: 22px 24px 30px;
    border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #6d6d6d;
}
.footer-meta span:empty { display: none; }
.footer-meta span + span::before { content: "\00b7"; margin: 0 8px; }

/* -------------------------------------------------------------- motion */
.fade-img { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
