:root {
    --bg: #f5efe4;
    --bg-soft: #fbf7f0;
    --surface: #fffaf3;
    --surface-strong: #f0e3d0;
    --text: #2f281f;
    --muted: #6a5d4d;
    --forest: #2f5d50;
    --forest-deep: #1f433a;
    --earth: #765640;
    --gold: #c89b47;
    --gold-soft: #e6c98f;
    --border: rgba(118, 86, 64, 0.18);
    --shadow: 0 18px 40px rgba(47, 40, 31, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at top left, rgba(200, 155, 71, 0.12), transparent 28%),
        linear-gradient(180deg, #fcf8f1 0%, var(--bg) 45%, #efe4d1 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--forest);
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

main {
    overflow: hidden;
}

.section-space {
    padding: 5rem 0;
}

.section-space-sm {
    padding: 3.5rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

h1,
h2,
h3,
h4,
.brand-mark {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 0.98;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.7rem;
    margin-bottom: 0.85rem;
}

p,
li,
label,
input,
select,
textarea {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

p,
li {
    text-align: justify;
    text-justify: inter-word;
}

.page-shell {
    position: relative;
    padding-top: 0;
}

.site-header {
    position: relative;
    top: 0;
    z-index: 1030;
    padding: 0;
    background: rgba(252, 248, 241, 0.96);
    border-bottom: 1px solid rgba(118, 86, 64, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header .navbar {
    padding: 1rem 1.35rem;
    border-radius: 0;
    backdrop-filter: blur(16px);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .navbar {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.site-header.is-scrolled .navbar:hover,
.site-header.is-scrolled:focus-within .navbar {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.site-nav {
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(118, 86, 64, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-right: 1.4rem;
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--surface);
    background: linear-gradient(145deg, var(--forest), var(--earth));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy small {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--earth);
    margin-bottom: 0.12rem;
}

.brand-mark {
    font-size: 2rem;
    color: var(--text);
    line-height: 1;
}

.nav-link {
    position: relative;
    font-weight: 700;
    color: var(--text);
    padding: 0.7rem 1.05rem !important;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
    color: var(--forest);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 20px rgba(47, 40, 31, 0.06);
}

.nav-link:hover,
.nav-link:focus {
    transform: translateY(-1px);
}

.nav-link.active {
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 238, 225, 0.94));
}

.navbar-toggler {
    border: 1px solid rgba(118, 86, 64, 0.12);
    border-radius: 16px;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(47, 93, 80, 0.14);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--forest), var(--forest-deep));
    box-shadow: 0 14px 28px rgba(31, 67, 58, 0.2);
}

.cta-secondary {
    color: var(--forest);
    background: rgba(47, 93, 80, 0.08);
    border-color: rgba(47, 93, 80, 0.12);
}

.cta-gold {
    color: var(--text);
    background: linear-gradient(135deg, #f2d8a8, var(--gold));
    box-shadow: 0 12px 24px rgba(200, 155, 71, 0.22);
}

.site-header .cta-gold {
    min-height: 58px;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    border: 1px solid rgba(185, 125, 31, 0.08);
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    min-width: 58px;
    height: 58px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #b97d1f 72%);
    box-shadow: 0 18px 36px rgba(185, 125, 31, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    z-index: 1040;
}

.back-to-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
    line-height: 1;
}

.back-to-top-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(185, 125, 31, 0.32);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-banner,
.page-banner {
    position: relative;
    isolation: isolate;
    padding: 5rem 0 4rem;
}

.hero-banner::before,
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 2rem;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    background:
        linear-gradient(135deg, rgba(31, 67, 58, 0.94), rgba(118, 86, 64, 0.88)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent 55%);
    box-shadow: var(--shadow);
    z-index: -1;
}

.hero-panel,
.page-banner-panel {
    padding: 2.4rem;
    border-radius: 32px;
    background: rgba(255, 250, 243, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff8ef;
}

.hero-panel p,
.page-banner-panel p,
.hero-panel li,
.page-banner-panel li {
    color: rgba(255, 248, 239, 0.86);
}

.hero-actions,
.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.hero-metrics,
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card,
.stat-card,
.contact-card,
.process-card,
.detail-card,
.warning-card,
.timeline-card,
.gallery-card,
.help-card,
.value-card {
    height: 100%;
    padding: 1.6rem;
    background: rgba(255, 250, 243, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.metric-card {
    background: rgba(255, 250, 243, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-card strong,
.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: inherit;
    font-family: "Cormorant Garamond", serif;
}

.metric-card span {
    color: rgba(255, 248, 239, 0.84);
}

.surface-card,
.content-panel,
.cta-panel,
.footer-panel,
.form-panel,
.map-placeholder,
.info-band {
    background: rgba(255, 250, 243, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.surface-card,
.content-panel,
.cta-panel,
.form-panel,
.info-band,
.footer-panel {
    padding: 2rem;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 220px;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(240, 227, 208, 0.92));
    border: 2px dashed rgba(118, 86, 64, 0.3);
    border-radius: 24px;
    color: var(--earth);
}

.media-frame {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(118, 86, 64, 0.18);
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(240, 227, 208, 0.92));
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame:not(.media-natural) img {
    position: absolute;
    inset: 0;
}

.media-frame.media-natural {
    min-height: 0;
}

.media-frame.media-natural img {
    position: static;
    height: auto;
    object-fit: contain;
}

.media-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.88);
    border: 1px solid rgba(118, 86, 64, 0.16);
    color: var(--forest);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-placeholder:hover,
.interactive-card:hover,
.gallery-card:hover,
.help-card:hover,
.warning-card:hover,
.process-card:hover,
.detail-card:hover,
.contact-card:hover,
.timeline-card:hover,
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 36px rgba(47, 40, 31, 0.12);
}

.interactive-card,
.gallery-card,
.help-card,
.warning-card,
.process-card,
.detail-card,
.contact-card,
.timeline-card,
.value-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.interactive-card .media-frame img,
.cta-panel .media-frame img,
.hero-banner .media-frame img,
.content-panel .media-frame img {
    transition: transform 0.3s ease;
}

.interactive-card:hover .media-frame img,
.cta-panel:hover .media-frame img {
    transform: scale(1.03);
}

.placeholder-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.1);
    color: var(--forest);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.placeholder-file {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.ratio-hero {
    min-height: 420px;
}

.ratio-landscape {
    min-height: 280px;
}

.ratio-standard {
    min-height: 240px;
}

.ratio-square {
    min-height: 220px;
}

.ratio-tall {
    min-height: 320px;
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: rgba(47, 93, 80, 0.12);
    color: var(--forest);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.list-clean {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.list-clean li + li {
    margin-top: 0.6rem;
}

.grid-gap {
    row-gap: 1.5rem;
}

.split-highlight {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-grid {
    position: relative;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-card {
    position: relative;
}

.timeline-step {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(200, 155, 71, 0.14);
    color: var(--earth);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.warning-card {
    background: rgba(255, 246, 235, 0.95);
}

.warning-card .icon-pill {
    background: rgba(200, 155, 71, 0.18);
    color: var(--earth);
}

.stats-ribbon {
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(47, 93, 80, 0.96), rgba(118, 86, 64, 0.92));
    box-shadow: var(--shadow);
}

.stats-ribbon .stat-card {
    background: rgba(255, 250, 243, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff8ef;
}

.stats-ribbon .stat-card p {
    color: rgba(255, 248, 239, 0.82);
}

.cta-panel {
    background:
        linear-gradient(135deg, rgba(31, 67, 58, 0.94), rgba(118, 86, 64, 0.9)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.06), transparent 55%);
    color: #fff8ef;
}

.cta-panel p,
.cta-panel li {
    color: rgba(255, 248, 239, 0.84);
}

.site-footer {
    padding: 4rem 0 2rem;
}

.footer-panel {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(240, 227, 208, 0.94));
}

.footer-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(118, 86, 64, 0.15);
}

.footer-links a,
.social-links a {
    display: inline-flex;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    color: var(--forest);
    font-weight: 700;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: var(--text);
}

.form-control,
.form-select {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(118, 86, 64, 0.18);
    background-color: rgba(255, 255, 255, 0.88);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 93, 80, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(47, 93, 80, 0.12);
}

.form-intro {
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.report-box-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.5rem 0 1rem;
}

.report-box-note {
    color: var(--muted);
}

.report-modal-content {
    border: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 24px 70px rgba(54, 39, 28, 0.18);
}

.report-modal-content .modal-header,
.report-modal-content .modal-body {
    padding-left: 2rem;
    padding-right: 2rem;
}

.map-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
}

.emergency-note {
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    background: rgba(200, 155, 71, 0.12);
    border: 1px solid rgba(200, 155, 71, 0.18);
}

.alert-placeholder {
    display: none;
    margin-top: 1rem;
}

.alert-placeholder.is-visible {
    display: block;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.05rem;
        border-radius: 22px;
        background: rgba(255, 250, 243, 0.96);
        border: 1px solid rgba(118, 86, 64, 0.12);
        box-shadow: 0 16px 30px rgba(47, 40, 31, 0.08);
    }

    .site-header {
        top: 0;
        padding: 0;
    }

    .site-header .navbar {
        padding: 0.9rem 1rem;
    }

    .site-nav {
        gap: 0.35rem !important;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .nav-link {
        padding: 0.8rem 0.95rem !important;
    }

    .site-header .cta-gold {
        width: 100%;
        min-height: 52px;
    }

    .hero-banner,
    .page-banner {
        padding-top: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 4rem 0;
    }

    .section-space-sm {
        padding: 2.8rem 0;
    }

    .hero-panel,
    .page-banner-panel,
    .surface-card,
    .content-panel,
    .cta-panel,
    .form-panel,
    .footer-panel,
    .stats-ribbon,
    .info-band {
        padding: 1.5rem;
    }

    .ratio-hero {
        min-height: 300px;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        min-width: 48px;
        height: 48px;
        padding: 0 0.9rem;
    }

    .back-to-top-label {
        display: none;
    }

    .form-actions,
    .report-box-actions {
        flex-direction: column;
    }

    .report-modal-content .modal-header,
    .report-modal-content .modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
