:root {
    --red: #e50914;
    --red-dark: #aa0610;
    --gold: #ffc400;
    --gold-soft: #fff0a6;
    --blue: #1268d8;
    --green: #138a55;
    --ink: #202024;
    --muted: #62616b;
    --cream: #fff8df;
    --paper: #ffffff;
    --line: rgba(32, 32, 36, 0.12);
    --shadow: 0 24px 80px rgba(55, 35, 10, 0.14);
    --shadow-soft: 0 16px 42px rgba(55, 35, 10, 0.1);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fffdf4;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

p {
    color: var(--muted);
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(3rem, 7.2vw, 6.2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.85rem);
}

h3 {
    font-size: 1.25rem;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 28px), 1240px);
    margin: 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(229, 9, 20, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 60px rgba(30, 20, 20, 0.12);
    backdrop-filter: blur(20px);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 230px;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.2);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    color: var(--red);
    font-size: 0.74rem;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    border-radius: 8px;
    color: #343137;
    font-size: 0.93rem;
    font-weight: 800;
    padding: 0.75rem 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--red);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 88vh;
    margin-top: -82px;
    padding: 150px max(22px, calc((100vw - var(--max)) / 2)) 54px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img,
.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(32, 32, 36, 0.94) 0%, rgba(117, 7, 14, 0.75) 45%, rgba(32, 32, 36, 0.18) 100%),
        radial-gradient(circle at 18% 25%, rgba(255, 196, 0, 0.45), transparent 24%);
}

.hero-content {
    width: min(780px, 100%);
    color: #fff;
    text-wrap: balance;
}

.hero-content p,
.page-hero p {
    width: min(650px, 100%);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-top: 1.1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow,
.mission-panel .eyebrow {
    color: var(--gold);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    padding: 0.85rem 1.15rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.btn.primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 18px 42px rgba(229, 9, 20, 0.28);
}

.btn.light {
    background: var(--gold);
    color: var(--ink);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 3rem;
}

.hero-cards article {
    min-height: 132px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.hero-cards strong {
    display: block;
    color: var(--gold);
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    line-height: 1;
}

.hero-cards span {
    display: block;
    margin-top: 0.65rem;
    font-weight: 800;
}

.section {
    width: min(calc(100% - 36px), var(--max));
    margin: 0 auto;
    padding: 88px 0;
}

.cream {
    width: 100%;
    max-width: none;
    padding-inline: max(18px, calc((100vw - var(--max)) / 2));
    background:
        linear-gradient(135deg, rgba(255, 196, 0, 0.16), rgba(255, 255, 255, 0.72)),
        var(--cream);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.section-copy p {
    font-size: 1.05rem;
}

.text-link {
    color: var(--red);
    font-weight: 900;
}

.image-stack {
    position: relative;
    min-height: 540px;
}

.image-main,
.rounded-photo {
    width: 100%;
    height: 520px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-float {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: min(285px, 48%);
    height: 360px;
    border: 8px solid #fff;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.section-heading {
    width: min(820px, 100%);
    margin-bottom: 2.3rem;
}

.section-heading.center {
    text-align: center;
    margin-inline: auto;
}

.feature-grid,
.facility-card-grid,
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card,
.facility-card,
.value-card,
.info-card,
.content-card,
.step-card,
.contact-panel,
.inquiry-form {
    border: 1px solid rgba(229, 9, 20, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.feature-card,
.facility-card {
    padding: 1.4rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.facility-card:hover,
.value-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.24);
    box-shadow: 0 24px 70px rgba(55, 35, 10, 0.16);
}

.feature-card span {
    display: block;
    width: 46px;
    height: 6px;
    margin-bottom: 1.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
}

.timeline {
    display: grid;
    gap: 1rem;
    position: relative;
}

.timeline article {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.4rem;
    align-items: start;
    padding: 1.2rem;
    border-left: 6px solid var(--red);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.timeline strong {
    color: var(--red);
    font-size: 1.1rem;
}

.facility-strip,
.activity-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.facility-strip span,
.activity-cloud span {
    border: 1px solid rgba(229, 9, 20, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 30px rgba(40, 25, 15, 0.08);
}

.photo-row {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.photo-row img {
    width: 100%;
    height: 330px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.photo-row img:nth-child(2) {
    transform: translateY(28px);
}

.principal {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 1.5rem;
    align-items: stretch;
}

.principal img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.quote-card {
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(32, 32, 36, 0.92), rgba(151, 8, 17, 0.9)),
        var(--ink);
    color: #fff;
}

.quote-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    margin-top: 1rem;
}

.quote-card strong {
    color: var(--gold);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(calc(100% - 36px), var(--max));
    margin: 0 auto 96px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(32, 32, 36, 0.95), rgba(229, 9, 20, 0.88)),
        var(--red);
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 3.2rem);
}

.page-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 58vh;
    margin-top: -82px;
    padding: 150px max(22px, calc((100vw - var(--max)) / 2)) 70px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero-content {
    width: min(820px, 100%);
    color: #fff;
    text-wrap: balance;
}

.content-card {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.content-card p {
    font-size: 1.05rem;
}

.mission-panel {
    width: min(calc(100% - 36px), var(--max));
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.93), rgba(32, 32, 36, 0.94)),
        var(--red);
    color: #fff;
    padding: clamp(1.6rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}

.value-card {
    min-height: 120px;
    display: grid;
    place-items: center;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.info-card.highlight {
    background: linear-gradient(135deg, #fff, #fff3b0);
}

.check-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 12px 0 0 var(--gold);
}

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

.step-card {
    padding: 1.3rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card strong {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 1.2rem;
}

.form-section {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 2rem;
    align-items: start;
}

.inquiry-form {
    padding: clamp(1.3rem, 3vw, 2rem);
}

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

label {
    display: grid;
    gap: 0.4rem;
    color: var(--ink);
    font-weight: 900;
    margin-bottom: 1rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 0.9rem 1rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.error-message,
.form-status {
    min-height: 1.2rem;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 800;
}

.form-status.success {
    color: var(--green);
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.masonry-gallery img {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.masonry-gallery .tall {
    height: 420px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.5rem;
}

.contact-panel {
    padding: 2rem;
}

.contact-panel a,
.contact-panel p {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
}

.map-embed {
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(229, 9, 20, 0.12);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.site-footer {
    background: #1f1f22;
    color: #fff;
    padding: 64px max(22px, calc((100vw - var(--max)) / 2)) 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 1fr 0.85fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.site-footer h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 0.65rem;
}

.footer-bottom a {
    display: inline;
    color: var(--gold);
    font-weight: 900;
}

.footer-cta {
    color: var(--gold) !important;
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.62);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem;
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        padding: 0.9rem 1rem;
    }

    .hero-cards,
    .feature-grid,
    .facility-card-grid,
    .value-grid,
    .steps,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .principal,
    .form-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .photo-row,
    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-row img:nth-child(2) {
        transform: none;
    }

    .cta-band,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 18px);
        top: 9px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand strong {
        font-size: 0.88rem;
    }

    .brand small {
        font-size: 0.66rem;
    }

    .page-hero {
        min-height: auto;
        padding-top: 132px;
    }

    .hero {
        display: block;
        min-height: auto;
        margin-top: 0;
        padding: 0 0 34px;
        background: #fff;
    }

    .hero-bg {
        position: relative;
        inset: auto;
        height: auto;
        margin: 9px 0 0;
        overflow: hidden;
        background: #fff;
    }

    .hero-bg img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
        padding-top: 0;
        filter: saturate(1.08) contrast(1.03);
    }

    .hero::after {
        display: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        width: auto;
        margin: 0 18px;
        padding: 1.15rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius);
        background:
            linear-gradient(135deg, rgba(96, 12, 14, 0.96), rgba(28, 11, 12, 0.94)),
            var(--red-dark);
        box-shadow: 0 20px 48px rgba(90, 10, 12, 0.28);
        backdrop-filter: blur(12px);
    }

    .hero .eyebrow {
        margin-bottom: 0.7rem;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .hero h1 {
        max-width: 11.5ch;
        font-size: clamp(2.42rem, 11.4vw, 3.05rem);
        line-height: 0.98;
    }

    .hero-content p {
        max-width: 34ch;
        margin-top: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.94rem;
        line-height: 1.48;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        margin-top: 1.05rem;
    }

    .hero-actions .btn {
        min-height: 52px;
        padding: 0.78rem 0.7rem;
        font-size: 0.92rem;
        text-align: center;
    }

    .hero-actions .btn.primary {
        grid-column: 1 / -1;
    }

    .hero-actions .btn.ghost {
        background: rgba(255, 255, 255, 0.16);
    }

    .hero-cards {
        display: none;
    }

    .hero-cards strong {
        font-size: 1.15rem;
    }

    .hero-cards span {
        margin-top: 0.42rem;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 3rem);
    }

    .hero-cards,
    .feature-grid,
    .facility-card-grid,
    .value-grid,
    .steps,
    .footer-grid,
    .photo-row,
    .masonry-gallery,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 72px 0;
    }

    .cream {
        padding-inline: 18px;
    }

    .image-stack {
        min-height: 420px;
    }

    .image-main,
    .rounded-photo {
        height: 380px;
    }

    .image-float {
        right: 12px;
        bottom: -18px;
        height: 220px;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .photo-row img,
    .masonry-gallery img,
    .masonry-gallery .tall {
        height: 310px;
    }

    .principal img {
        min-height: 340px;
    }

    .map-embed,
    .map-embed iframe {
        min-height: 360px;
    }
}
