/* ==========================================================================
   Independent provider site — "champagne noir"
   Hand-written; SiteBuilder writes site.css.br / site.css.gz on every build and
   links it as /css/site.css?v=<hash>, so edits bust caches automatically.
   --accent / --accent-deep / --bg are injected per site from config/site.php.
   ========================================================================== */

:root {
    --bg: #0e0c0d;
    --surface: #171314;
    --surface-2: #1f191b;
    --line: rgba(255, 255, 255, .09);
    --text: #efe7df;
    --muted: #a69a90;
    --accent: #c8a27a;
    --accent-deep: #9c7653;
    --ink: #120f10;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wrap: 1180px;
    --radius: 3px;
    --header-h: 76px;
}

*, *::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: 300 17px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
strong { font-weight: 500; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--ink); }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Type ─────────────────────────────────────────────────────────────────── */
.display {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(3.2rem, 9vw, 6.4rem);
    line-height: .95;
    letter-spacing: -.01em;
    color: #fff;
}
.eyebrow {
    margin: 0 0 18px;
    font-size: .74rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--accent);
}
.tagline {
    margin: 22px 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    line-height: 1.35;
    color: #e9ddd1;
}
.lead { font-size: 1.1rem; color: #d6cbc1; }
.prose-lg { font-size: 1.12rem; color: #ddd2c8; }
.section-title {
    margin-bottom: 26px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    line-height: 1.08;
    color: #fff;
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .76rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}
.link-arrow::after { content: '\2192'; transition: transform .25s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--ink);
    font: 400 .78rem/1 var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #d8b791; border-color: #d8b791; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(200, 162, 122, .45); }
.btn-ghost:hover { background: rgba(200, 162, 122, .1); border-color: var(--accent); }
.btn-small { padding: 12px 20px; font-size: .72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row.center { justify-content: center; }
.cta-note { margin: 16px 0 0; }

/* ── Announcement + header ────────────────────────────────────────────────── */
.announce {
    padding: 9px 16px;
    background: var(--accent);
    color: var(--ink);
    font-size: .78rem;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 12, 13, .82);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; color: #fff; }
.brand-sub { margin-top: 4px; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
    position: relative;
    padding: 6px 0;
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #d6cbc1;
}
.site-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
    .js .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        display: block;
        width: 18px;
        height: 1px;
        background: var(--text);
        transition: transform .25s ease, opacity .25s ease;
    }
    .nav-toggle-bar { position: relative; }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -6px; }
    .nav-toggle-bar::after { top: 6px; }
    .nav-open .nav-toggle-bar { background: transparent; }
    .nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
    .nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 22px 24px;
        background: rgba(14, 12, 13, .97);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .js .nav-open .site-nav { display: flex; }
    .js .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
    .js .site-nav a:not(.btn)::after { display: none; }
    .nav-cta { margin-top: 18px; }
    .no-js .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
    .no-js .site-nav { flex-wrap: wrap; gap: 16px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto auto;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(closest-side, rgba(200, 162, 122, .14), transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    min-height: min(calc(100vh - var(--header-h)), 860px);
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-media { position: relative; margin: 0; }
.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid rgba(200, 162, 122, .4);
    border-radius: var(--radius);
    z-index: -1;
}
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-size: .88rem;
    color: var(--muted);
    transition: color .2s ease;
}
.review-badge:hover { color: var(--text); }
.stars { color: var(--accent); letter-spacing: .14em; font-size: .9rem; }

@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
    .hero-media { order: -1; margin-right: 18px; }
    .hero-media img { aspect-ratio: 4 / 5; max-height: 72vh; }
}

/* ── Facts strip ──────────────────────────────────────────────────────────── */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact-label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.fact-value { font-family: var(--serif); font-size: 1.45rem; color: #fff; }
@media (max-width: 640px) {
    .facts-inner { grid-template-columns: 1fr 1fr; }
    .fact { border-left: 0; border-top: 1px solid var(--line); padding: 18px 8px; }
    .fact:nth-child(-n+2) { border-top: 0; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head .section-title { margin-bottom: 0; }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(16px, 3vw, 28px); }
.page-head-tall { padding: clamp(80px, 14vw, 180px) 0; }
.cta-band {
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(200, 162, 122, .16), transparent 70%),
        var(--surface);
    border-top: 1px solid var(--line);
}

/* ── Photos ───────────────────────────────────────────────────────────────── */
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.tile:hover img { transform: scale(1.04); }
.grid-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
@media (max-width: 760px) {
    .grid-preview { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── Split layout (about, contact) ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-contact { grid-template-columns: 1fr 1.35fr; }
.split-side { display: flex; flex-direction: column; gap: 22px; }
.split-main, .split-side { min-width: 0; } /* a wide rates table scrolls in .table-wrap instead of widening the column */
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); }
@media (max-width: 880px) {
    .split, .split-contact { grid-template-columns: 1fr; }
    .split-contact .split-side { order: 2; }
}

/* ── Cards + stats ────────────────────────────────────────────────────────── */
.card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.card-title { margin-bottom: 16px; font-family: var(--serif); font-size: 1.65rem; color: #fff; }
.card-link { display: flex; flex-direction: column; gap: 4px; transition: border-color .2s ease; }
.card-link:hover { border-color: rgba(200, 162, 122, .5); }
.card-link strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: #fff; }
.stats { margin: 0; }
.stat { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat dt { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.stat dd { margin: 0; text-align: right; color: #e9ddd1; }
.stats-inline { margin-top: 36px; padding: 6px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ── Rates ────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; }
.rates tbody tr:last-child th, .rates tbody tr:last-child td { border-bottom: 0; }
.rates thead th { font-size: .7rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.rates tbody th { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: #fff; }
.rates td { font-size: 1.05rem; color: var(--accent); white-space: nowrap; }
.note { margin-top: 26px; font-size: .95rem; }

/* ── Contact + form ───────────────────────────────────────────────────────── */
.contact-list { margin: 8px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-family: var(--serif); font-size: 1.5rem; color: #fff; word-break: break-word; }
a.contact-value:hover { color: var(--accent); }
.form { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label { display: block; margin-bottom: 7px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form .optional { letter-spacing: .05em; text-transform: none; opacity: .75; }
.form input, .form select, .form textarea {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: 300 1rem/1.5 var(--sans);
    transition: border-color .2s ease;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 140px; }
.form .btn-block { margin-top: 6px; }
.form-status { min-height: 1.5em; margin: 14px 0 6px; font-size: .95rem; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #e59a8f; }
.form.is-sent .form-row, .form.is-sent .form-grid, .form.is-sent .btn-block { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.15; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: #7d736b; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 110px; }
}

/* ── Mobile action bar ────────────────────────────────────────────────────── */
.action-bar { display: none; }
@media (max-width: 760px) {
    .action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(14, 12, 13, .94);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
    }
    .action {
        flex: 1;
        padding: 17px 8px;
        text-align: center;
        font-size: .74rem;
        letter-spacing: .22em;
        text-transform: uppercase;
        border-left: 1px solid var(--line);
    }
    .action:first-child { border-left: 0; }
    .action-primary { background: var(--accent); color: var(--ink); }
}

/* ── Lightbox (built by site.js) ──────────────────────────────────────────── */
.lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 6, 7, .95);
    opacity: 0;
    transition: opacity .25s ease;
}
.lb.is-open { opacity: 1; }
.lb-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb button {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(23, 19, 20, .7);
    color: var(--text);
    font: 300 1.5rem/1 var(--sans);
    cursor: pointer;
}
.lb button:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .24em; color: var(--muted); }
body.lb-locked { overflow: hidden; }
@media (max-width: 640px) {
    .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
    .lb-count { bottom: 32px; }
}

/* ── Photo & text protection (/nimda/ → Content; behaviour in site.js) ───── */
/* A transparent shield over each photo: right-click, long-press and drag hit
   it instead of the image, even without JavaScript. With .wm it also carries
   the tiled site address (--wm, written into the page head by _header.php). */
.protect .tile::before, .protect .hero-media::before, .protect .portrait::before, .protect .lb-frame::before,
.wm .tile::before, .wm .hero-media::before, .wm .portrait::before, .wm .lb-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius);
}
.wm .tile::before, .wm .hero-media::before, .wm .portrait::before, .wm .lb-frame::before {
    background: var(--wm) center / 240px 150px repeat;
}
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect input, .protect textarea, .protect select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.protect img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.protect [data-lightbox] .tile { cursor: zoom-in; }
/* Blurred while a screenshot is likely; clip-path keeps the blur inside the photo. */
.protect.is-shaded img { filter: blur(28px) brightness(.7); clip-path: inset(0 round var(--radius)); }
.protect-pop {
    position: fixed;
    z-index: 2147483600; /* above the age gate */
    max-width: min(340px, calc(100vw - 24px));
    padding: 14px 18px;
    background: rgba(23, 19, 20, .97);
    border: 1px solid rgba(200, 162, 122, .35);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    color: var(--text);
    font: 400 .95rem/1.5 var(--sans);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.protect-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media print {
    body.protect > * { display: none !important; }
    body.protect::before { content: attr(data-protect-msg); display: block; padding: 48px; color: #000; font: 16px/1.6 Georgia, serif; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
