:root {
    --bg: #071017;
    --bg-2: #101923;
    --panel: rgba(255, 255, 255, 0.075);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --text: #fff8ef;
    --muted: #b9b2aa;
    --line: rgba(255, 255, 255, 0.14);
    --gold: #d9b66f;
    --rose: #d8a6a0;
    --blue: #47a8ff;
    --danger: #f06b6b;
    --success: #61d49c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius: 8px;
    --font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    background: linear-gradient(180deg, #071017 0%, #0b1119 48%, #071017 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(7, 16, 23, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand,
.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.nav-pill,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(217, 182, 111, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(217, 182, 111, 0.92), rgba(216, 166, 160, 0.85));
    color: #101016;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(71, 168, 255, 0.1);
    border-color: rgba(71, 168, 255, 0.42);
    color: var(--text);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--line);
    color: var(--text);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--panel);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 120px clamp(22px, 6vw, 84px) 88px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 16, 23, 0.92), rgba(7, 16, 23, 0.58), rgba(7, 16, 23, 0.84)),
        url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=85") center/cover;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    max-width: 900px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: 0;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.88;
}

.hero-tagline,
.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.section,
.cta-band,
.page-hero,
.client-hero {
    padding: clamp(64px, 9vw, 120px) clamp(22px, 6vw, 84px);
}

.section-dark {
    background: rgba(255, 255, 255, 0.035);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-head h2,
.page-hero h1,
.cta-band h2,
.client-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 1;
}

.page-hero.compact {
    min-height: 42vh;
    display: grid;
    align-content: end;
    background:
        linear-gradient(180deg, rgba(7, 16, 23, 0.72), rgba(7, 16, 23, 0.98)),
        url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.service-grid,
.process-grid,
.metric-grid,
.admin-two-col,
.contact-grid,
.booking-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.service-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.premium-card,
.process-step,
.calendar-card,
.form-panel,
.delivery-panel,
.portal-card,
.admin-card,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.premium-card,
.process-step,
.form-panel,
.portal-card,
.admin-card,
.metric-card {
    padding: 24px;
}

.premium-card h3,
.premium-card h2 {
    color: var(--text);
}

.premium-card p,
.process-step p,
.muted {
    color: var(--muted);
    line-height: 1.7;
}

.premium-card a:not(.btn) {
    color: var(--gold);
    font-weight: 800;
}

.process-step span {
    color: var(--blue);
    font-weight: 800;
}

.masonry-grid {
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-tile {
    position: relative;
    display: block;
    min-height: 260px;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(217, 182, 111, 0.16), rgba(71, 168, 255, 0.08));
    break-inside: avoid;
}

.gallery-tile img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-tile:hover img {
    transform: scale(1.04);
}

.gallery-tile span,
.gallery-tile strong,
.gallery-tile em {
    position: relative;
    z-index: 1;
    display: block;
    padding-inline: 18px;
}

.gallery-tile span {
    margin-top: -92px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-tile strong {
    padding-top: 8px;
    padding-bottom: 18px;
    font-size: 1.35rem;
}

.gallery-tile em {
    padding-bottom: 18px;
    color: var(--muted);
}

.filter-row,
.tab-list,
.wizard-steps,
.calendar-head,
.legend,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row a,
.tab-list button,
.wizard-steps button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.filter-row .active,
.tab-list .active,
.wizard-steps .active {
    color: #101016;
    background: var(--gold);
}

.media-grid,
.video-grid,
.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.media-tile {
    position: relative;
    border: 0;
    padding: 0;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}

.media-tile img,
.media-tile video,
.video-preview img,
.video-preview video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.media-tile span {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    font-weight: 800;
    text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.86);
}

.lightbox-stage {
    width: min(1100px, 94vw);
    max-height: 82vh;
}

.lightbox-stage img,
.lightbox-stage video {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--panel-strong);
    color: var(--text);
}

.cta-band {
    text-align: center;
    background: linear-gradient(135deg, rgba(217, 182, 111, 0.16), rgba(71, 168, 255, 0.11));
}

.cta-band div {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.narrow {
    max-width: 920px;
    margin-inline: auto;
}

.editorial-text {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.65rem);
    line-height: 1.34;
}

.signature-panel {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--gold);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    outline: none;
}

select option {
    background: #111923;
}

textarea {
    resize: vertical;
}

.form-panel,
.stack-form,
.wizard fieldset {
    display: grid;
    gap: 16px;
}

.calendar-card {
    padding: 20px;
}

.calendar-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays {
    color: var(--muted);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-day {
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.calendar-day strong,
.calendar-day small {
    display: block;
}

.calendar-day.available {
    border-color: rgba(97, 212, 156, 0.4);
}

.calendar-day.busy {
    border-color: rgba(217, 182, 111, 0.42);
    opacity: 0.62;
}

.calendar-day.pending {
    border-color: rgba(71, 168, 255, 0.42);
}

.calendar-day.blocked {
    border-color: rgba(240, 107, 107, 0.44);
    opacity: 0.62;
}

.legend {
    margin-top: 16px;
    color: var(--muted);
}

.legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.legend .available {
    background: var(--success);
}

.legend .busy {
    background: var(--gold);
}

.legend .blocked {
    background: var(--danger);
}

.wizard {
    display: grid;
    gap: 20px;
}

.wizard fieldset {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--panel);
}

.wizard fieldset.active {
    display: grid;
}

.wizard legend {
    padding: 0 10px;
    color: var(--gold);
    font-weight: 800;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-grid input {
    width: auto;
}

.notice {
    border: 1px solid rgba(71, 168, 255, 0.34);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text);
    background: rgba(71, 168, 255, 0.08);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.portal-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(7, 16, 23, 0.78), rgba(7, 16, 23, 0.96)),
        url("https://images.unsplash.com/photo-1529634597503-139d3726fed5?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.portal-card {
    width: min(520px, 100%);
}

.client-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(180deg, rgba(7, 16, 23, 0.55), rgba(7, 16, 23, 0.98)),
        url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1900&q=80") center/cover;
}

.tab-panel {
    display: none;
    padding-top: 22px;
}

.tab-panel.active {
    display: block;
}

.delivery-panel {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: 24px;
    align-items: center;
    padding: 20px;
}

.delivery-panel img {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.video-copy {
    padding: 18px;
}

.download-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.flash-wrap {
    position: fixed;
    top: 82px;
    right: 20px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.flash {
    max-width: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: rgba(16, 25, 35, 0.96);
    box-shadow: var(--shadow);
}

.flash-success {
    border-color: rgba(97, 212, 156, 0.45);
}

.flash-error {
    border-color: rgba(240, 107, 107, 0.55);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(22px, 6vw, 84px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.setup-error {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--rose);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #091018;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: #0c141d;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    padding: 11px 12px;
    border-radius: var(--radius);
    color: var(--muted);
}

.admin-sidebar nav a:hover {
    background: var(--panel);
    color: var(--text);
}

.admin-main {
    padding: 28px;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.admin-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2.6rem;
    color: var(--gold);
}

.admin-card {
    margin-bottom: 20px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.wide {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.admin-details summary {
    cursor: pointer;
}

.admin-details summary span {
    color: var(--muted);
    margin-left: 10px;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(180px, 1fr) auto;
    gap: 8px;
}

.link-button {
    border: 0;
    padding: 0;
    background: none;
    color: var(--gold);
    cursor: pointer;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.detail-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-grid span,
.detail-grid strong {
    display: block;
}

.detail-grid span {
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        inset: 72px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(7, 16, 23, 0.96);
    }

    .site-nav.open {
        display: flex;
    }

    .hero {
        min-height: 82vh;
        padding-top: 96px;
    }

    .delivery-panel,
    .client-hero,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-day {
        min-height: 58px;
        padding: 6px;
    }

    .calendar-day small {
        font-size: 0.68rem;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
