:root {
    --ink: #151515;
    --muted: #6d7075;
    --gold: #d8ae35;
    --gold-soft: #f5df93;
    --ivory: #fbf8ef;
    --charcoal: #202027;
    --line: #e7e1d2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
}

.btn-gold {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #211700;
}

.btn-glass {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.site-nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem clamp(1rem, 4vw, 4rem);
    background: rgba(21, 21, 21, 0.78);
    backdrop-filter: blur(16px);
    color: #fff;
}

.site-brand img {
    width: min(190px, 42vw);
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.site-links {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.6rem);
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #141416;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.54), rgba(10, 10, 10, 0.82)),
        url("../img/trilok-logo-optimized.png") center 44% / min(880px, 120vw) auto no-repeat,
        radial-gradient(circle at 78% 38%, rgba(216, 174, 53, 0.42), transparent 38%),
        #171717;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 2rem));
    margin-left: clamp(1rem, 7vw, 6rem);
    padding-top: 5rem;
}

.hero-logo {
    width: min(330px, 70vw);
    height: 120px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.95;
    font-weight: 900;
}

.hero-copy {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.intro-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.intro-band > div {
    padding: clamp(1.4rem, 4vw, 3rem);
    background: #fff;
}

.intro-band span {
    color: var(--gold);
    font-weight: 900;
}

.intro-band strong {
    display: block;
    margin: 0.45rem 0;
    font-size: 1.2rem;
}

.intro-band p {
    margin: 0;
    color: var(--muted);
}

.section-wrap {
    padding: clamp(3.8rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-title {
    max-width: 920px;
    margin-bottom: 2rem;
}

.section-title h2,
.contact-copy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 900;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.room-card,
.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(24, 22, 16, 0.08);
}

.room-card img,
.room-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-card > div:last-child {
    padding: 1.25rem;
}

.room-card span,
.gallery-card span {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.room-card h3 {
    margin: 0.25rem 0 0.6rem;
    font-size: 1.35rem;
    font-weight: 850;
}

.room-card p {
    margin: 0;
    color: var(--muted);
}

.gallery-section {
    background: #f2eee2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card img,
.gallery-card video,
.placeholder-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.placeholder-media {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #191919, #3b3320);
    color: var(--gold-soft);
    font-weight: 900;
    text-align: center;
}

.gallery-card div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    padding: clamp(3.8rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
    background: var(--charcoal);
    color: #fff;
}

.contact-copy p:last-child {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.contact-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.contact-form .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.contact-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: none;
}

.contact-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form .col-12 {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 750;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

textarea.form-control {
    resize: vertical;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-weight: 700;
}

.alert-success {
    border: 1px solid #badbcc;
    color: #0f5132;
    background: #d1e7dd;
}

.alert-danger {
    border: 1px solid #f5c2c7;
    color: #842029;
    background: #f8d7da;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem clamp(1rem, 5vw, 5rem);
    background: #111;
    color: #fff;
}

.site-footer span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
    color: var(--gold-soft);
    font-weight: 800;
}

.admin-body {
    background: #f5f2ea;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.25rem;
    background: #18181c;
    color: #fff;
}

.admin-brand {
    display: block;
    margin-bottom: 2rem;
}

.admin-brand img {
    width: 180px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
}

.admin-brand span {
    display: block;
    color: var(--gold-soft);
    font-weight: 900;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.45rem;
}

.admin-sidebar nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.admin-sidebar nav a:hover {
    background: rgba(216, 174, 53, 0.13);
    color: #fff;
}

.admin-main {
    padding: clamp(1rem, 3vw, 2rem);
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.stat-card,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(32, 32, 39, 0.07);
}

.stat-card {
    padding: 1.2rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 2.4rem;
}

.admin-panel {
    padding: 1.25rem;
    margin-bottom: 1.2rem;
}

.panel-title {
    margin-bottom: 1rem;
}

.panel-title h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 850;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.table-thumb {
    width: 76px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
}

.empty-thumb {
    display: inline-flex;
    min-width: 76px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eee8d9;
    color: var(--muted);
    font-size: 0.75rem;
}

.content-form .form-control,
.content-form .form-select {
    border-color: var(--line);
    border-radius: 6px;
    min-height: 48px;
}

.dropzone-lite {
    padding: 1.5rem;
    border: 1px dashed var(--gold);
    background: #fffaf0;
}

.admin-dropzone {
    min-height: 160px;
    margin-bottom: 1.2rem;
    border: 1px dashed var(--gold);
    border-radius: 8px;
    background: #fffaf0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.media-tile {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.media-tile img,
.media-tile video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-tile div {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
}

.media-tile span,
.access-row span {
    color: var(--muted);
    font-size: 0.85rem;
}

.message-cell {
    max-width: 420px;
}

.admin-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--charcoal);
    color: #fff;
    text-align: center;
}

.not-found h1 {
    font-size: 6rem;
    margin: 0;
    color: var(--gold);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(120deg, rgba(18, 18, 20, 0.92), rgba(18, 18, 20, 0.78)),
        url("../img/trilok-logo-optimized.png") center / min(760px, 110vw) auto no-repeat,
        #171717;
}

.login-panel {
    width: min(440px, 100%);
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid rgba(216, 174, 53, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.login-panel img {
    width: 220px;
    height: 90px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 1rem;
}

.login-panel h1 {
    margin: 0 0 1.3rem;
    font-size: 2.2rem;
    font-weight: 900;
}

.login-panel .form-control {
    margin-bottom: 1rem;
}

.login-panel .btn {
    width: 100%;
    border: 0;
    margin-top: 0.4rem;
}

@media (max-width: 1100px) {
    .room-grid,
    .stats-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-nav,
    .site-footer,
    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .hero {
        min-height: 86vh;
    }

    .hero-content {
        margin: 0 auto;
    }

    .intro-band,
    .room-grid,
    .gallery-grid,
    .contact-section,
    .contact-form .row,
    .admin-shell,
    .stats-grid,
    .admin-two-col,
    .media-grid {
        grid-template-columns: 1fr;
    }

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