:root {
    --bg: #f3f0e8;
    --ink: #142033;
    --muted: #5d6b7a;
    --navy: #10243d;
    --navy-2: #1a3a60;
    --amber: #f0a202;
    --amber-deep: #c98400;
    --card: #fffcf7;
    --line: #e3dccf;
    --danger: #9f2d20;
    --ok: #0f7a4a;
    --shadow: 0 16px 40px rgba(16, 36, 61, 0.08);
    --radius: 18px;
    --font: "Manrope", "Segoe UI", sans-serif;
    --display: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip {
    position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

.topbar {
    background: var(--navy);
    color: #f7f1e4;
    font-size: 14px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 42px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.top-links, .top-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.top-links span, .top-meta span { opacity: .72; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 252, 247, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; height: 64px; width: auto; max-width: min(250px, 54vw); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--navy); color: var(--amber);
    display: grid; place-items: center; flex: 0 0 auto;
}
.brand-mark img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; }
.brand strong { display: block; font-family: var(--display); font-size: 18px; }
.brand small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 650;
    font-size: 15px;
    white-space: nowrap;
}
.nav a.active, .nav a:hover { background: #efe7d6; }
.nav-cta {
    background: var(--amber) !important;
    color: #1b1403 !important;
}
.nav-cta:hover { filter: brightness(.96); }
.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
}

.stage {
    display: grid;
    grid-template-columns: 1fr .78fr;
    gap: 18px;
    padding-top: 22px;
    align-items: stretch;
}
.stage-copy {
    background:
        radial-gradient(520px 220px at 0% 0%, rgba(240, 162, 2, .22), transparent 55%),
        var(--navy);
    color: #f7f2e8;
    border-radius: 28px;
    padding: 36px 34px;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.stage-copy h1 {
    font-size: clamp(34px, 4vw, 54px);
    color: #fff;
    max-width: 11ch;
}
.stage-copy .lead { color: #e6dece; font-size: 18px; max-width: 36ch; }
.stage-photo {
    position: relative;
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    background: #182230;
    box-shadow: var(--shadow);
}
.stage-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    opacity: 0;
    transition: opacity .7s ease;
}
.stage-photo img.is-on { opacity: 1; }
.stage-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    margin: 0;
    z-index: 2;
    background: rgba(12, 22, 36, .82);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 14px;
}
.home-top { padding-top: 14px; }
.quick-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.quick-inline .quick-card { padding: 12px 14px; }
.quick-inline .quick-card strong { font-size: 16px; }
.home-services { padding-top: 28px; padding-bottom: 10px; }
.card { padding: 12px; }
.service-photo, .post-card img, .service-block img {
    object-fit: cover;
    object-position: center 62%;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 28px;
    padding: 42px 0 18px;
    align-items: stretch;
}
.hero-copy {
    background:
        radial-gradient(800px 240px at 0% 0%, rgba(240, 162, 2, .2), transparent 50%),
        var(--navy);
    color: #f8f4ec;
    border-radius: 28px;
    padding: 42px 40px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}
.hero-copy.has-photo {
    background:
        linear-gradient(180deg, rgba(16, 36, 61, .25), rgba(16, 36, 61, .82)),
        var(--hero) center/cover no-repeat;
}
.eyebrow {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    color: var(--amber);
    margin-bottom: 10px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 12ch; color: #fff; }
.hero .lead { max-width: 46ch; color: #e7e0d4; font-size: 18px; }
.hero-actions, .stack-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
}
.btn-primary { background: var(--amber); color: #1b1403; }
.btn-primary:hover { background: #ffb31a; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: #fde8e6; color: var(--danger); }

.quick-grid { display: grid; gap: 12px; }
.quick-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    text-decoration: none;
    box-shadow: var(--shadow);
    display: block;
}
.quick-card:hover { border-color: #d7c7a4; }
.quick-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.quick-card strong { display: block; font-size: 18px; margin-top: 2px; }

.section { padding: 34px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.section h2 { font-size: clamp(28px, 3vw, 40px); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card, .post-card, .service-block, .panel, .info-tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card h3 { font-size: 20px; }
.card p, .muted { color: var(--muted); }
.card-no {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: #fff4dc; color: #8a5a00; font-weight: 800; margin-bottom: 10px;
}
.service-photo { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 14px; margin-bottom: 12px; display: block; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.prose { padding: 28px; }
.prose p:last-child { margin-bottom: 0; }
.mission-grid { display: grid; gap: 12px; }
.mission-grid article { padding: 22px; background: var(--navy); color: #f6f1e7; border-radius: var(--radius); }
.mission-grid h3 { color: var(--amber); }

.gallery-grid, .post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: #182230;
    aspect-ratio: 3 / 4;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.shot span {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    background: rgba(16, 36, 61, .82); color: #fff;
    border-radius: 12px; padding: 8px 10px; text-align: left;
}
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; display: block; }
.post-card div { padding: 16px 16px 18px; }
.post-card a { font-weight: 800; text-decoration: none; }
.post-card a:hover { color: #8a5a00; }
.date { color: var(--muted); font-size: 13px; }

.contact-band {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 18px;
    background: var(--navy);
    color: #f7f2e8;
    border-radius: 28px;
    overflow: hidden;
}
.contact-band .copy { padding: 28px; }
.contact-list { list-style: none; padding: 0; margin: 16px 0; }
.contact-list li { margin: 10px 0; }
.contact-list a { color: #fff; font-weight: 750; }
.map-frame { min-height: 320px; background: #d9d3c6; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.site-footer { padding: 28px 0 90px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.site-footer a { color: var(--ink); font-weight: 700; }

.mobile-dock {
    display: none;
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    z-index: 40;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.mobile-dock a {
    text-align: center;
    text-decoration: none;
    padding: 12px 6px;
    font-weight: 800;
    font-size: 14px;
}
.mobile-dock a + a { border-left: 1px solid rgba(255,255,255,.12); }
.mobile-dock a:first-child { background: var(--amber); color: #1b1403; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }

.service-list { display: grid; gap: 14px; }
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: 0; overflow: hidden; }
.service-block img { width: 100%; height: 100%; min-height: 260px; }
.service-block div { padding: 20px 22px; }
.service-block .ph {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: var(--amber);
    display: grid; place-items: center;
    font-family: var(--display);
    font-size: 28px;
    min-height: 180px;
}

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 750; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-error { background: #fde8e6; color: var(--danger); padding: 10px 12px; border-radius: 12px; }
.form-ok { background: #e5f6ee; color: var(--ok); padding: 10px 12px; border-radius: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.lightbox {
    position: fixed; inset: 0; background: rgba(10, 16, 24, .86);
    display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1000px, 100%); border-radius: 12px; }
.lightbox button {
    position: absolute; top: 16px; right: 16px;
    background: #fff; border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 800;
}

.install-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.install-card { width: min(560px, 100%); background: #fff; border-radius: 24px; padding: 28px; border: 1px solid var(--line); }
.notice { background: #fff6e4; border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }

.empty {
    padding: 28px;
    border: 1px dashed #cfc4ae;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255,255,255,.55);
}

@media (max-width: 980px) {
    .quick-inline { grid-template-columns: 1fr 1fr; }
    .cards, .gallery-grid, .post-grid { grid-template-columns: 1fr 1fr; }
    .hero, .split, .contact-band, .service-block { grid-template-columns: 1fr; }
    .hero-copy { min-height: 0; padding: 28px 22px; }
    .menu-btn { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        left: 16px; right: 16px; top: 74px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
}
@media (max-width: 760px) {
    .stage { grid-template-columns: 1fr; }
    .stage-copy { min-height: 0; padding: 28px 22px; }
    .stage-photo { min-height: 0; aspect-ratio: 3 / 4; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .topbar { display: none; }
    .cards, .post-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .mobile-dock { display: grid; }
    .section-head { flex-direction: column; align-items: start; }
}
