:root {
    --navy: #12204d;
    --navy-2: #0b1538;
    --orange: #f27827;
    --orange-dark: #c95512;
    --gold: #ffbf3f;
    --green: #3d8b50;
    --red: #b33434;
    --ink: #172033;
    --muted: #647087;
    --line: #dce2ec;
    --soft: #f4f7fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(18, 32, 77, .12);
    --radius: 22px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 9999;
    padding: .75rem 1rem; border-radius: 8px;
    background: var(--white); color: var(--navy);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(18,32,77,.08);
    backdrop-filter: blur(15px);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(18,32,77,.11); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; min-width: max-content; }
.brand img { width: 46px; height: 46px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: .18rem; }
.primary-nav { display: flex; align-items: center; gap: .18rem; }
.primary-nav > a,
.nav-dropdown > summary {
    display: inline-flex; align-items: center;
    padding: .7rem .78rem; border-radius: 10px;
    color: var(--navy); text-decoration: none; font-weight: 700; font-size: .91rem;
    list-style: none; transition: background .2s, color .2s;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: "▾"; font-size: .7rem; margin-left: .4rem; }
.primary-nav > a:hover,
.primary-nav > a.active,
.nav-dropdown > summary:hover,
.nav-dropdown > summary.active { background: #fff1e7; color: var(--orange-dark); }
.primary-nav .nav-cta { background: var(--navy); color: var(--white); margin-left: .35rem; padding-inline: 1rem; }
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta.active { background: var(--orange); color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + .45rem); right: 0; min-width: 180px;
    padding: .5rem; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
    display: grid; gap: .25rem;
}
.nav-dropdown-menu a { text-decoration: none; color: var(--ink); padding: .65rem .75rem; border-radius: 9px; font-weight: 650; }
.nav-dropdown-menu a:hover { background: var(--soft); color: var(--orange-dark); }
.nav-toggle { display: none; width: 44px; height: 42px; border: 0; border-radius: 10px; background: var(--soft); padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 3px; }

.alert-wrap { margin-top: 1rem; }
.alert { border-radius: 14px; padding: 1rem 3rem 1rem 1rem; position: relative; }
.alert-success { background: #e9f8ed; color: #1e6330; border: 1px solid #b8e0c2; }
.alert button { position: absolute; right: .7rem; top: .5rem; border: 0; background: transparent; color: inherit; font-size: 1.5rem; }

.hero { position: relative; min-height: 650px; background: var(--navy-2); overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    background-image: linear-gradient(90deg, rgba(9,17,47,.92) 0%, rgba(9,17,47,.7) 47%, rgba(9,17,47,.27) 100%), var(--hero-image);
    background-size: cover; background-position: center;
    transition: opacity .7s ease, visibility .7s ease;
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-content { color: var(--white); padding-block: 7rem 8rem; }
.hero-content > * { max-width: 720px; }
.hero h1, .hero h2 { margin: .6rem 0 1.1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 6vw, 5.3rem); line-height: 1.02; letter-spacing: -.04em; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: #edf1ff; max-width: 650px; }
.carousel-controls { position: absolute; z-index: 5; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; gap: .6rem; }
.carousel-controls button { width: 11px; height: 11px; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: transparent; }
.carousel-controls button.active { background: var(--orange); border-color: var(--orange); transform: scale(1.2); }

.page-hero {
    padding: 7rem 0; color: var(--white); text-align: center;
    background: radial-gradient(circle at 15% 10%, rgba(242,120,39,.38), transparent 28%), radial-gradient(circle at 90% 70%, rgba(61,139,80,.28), transparent 28%), var(--navy);
}
.page-hero.compact { padding: 5.5rem 0; }
.page-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; margin: .7rem 0 1rem; }
.page-hero p { color: #e5eaf8; font-size: 1.15rem; margin: 0 auto; max-width: 760px; }

.section { padding: 6rem 0; }
.section-tint { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2, .two-column h2, .form-aside h2, .form-card h2, .cta-band h2, .media-band h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.12; letter-spacing: -.025em; margin: .45rem 0 1rem; }
.section-heading p { color: var(--muted); }
.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.eyebrow { display: inline-block; color: var(--orange-dark); text-transform: uppercase; font-weight: 850; letter-spacing: .14em; font-size: .74rem; }
.eyebrow.light { color: #ffd88b; }
.lead { font-size: 1.18rem; color: #34405a; }
.text-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--orange-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--navy); }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.3rem, 6vw, 5rem); }
.align-center { align-items: center; }
.image-frame { position: relative; border-radius: var(--radius); overflow: visible; }
.image-frame > img { border-radius: var(--radius); width: 100%; aspect-ratio: 7/5; object-fit: cover; box-shadow: var(--shadow); }
.floating-stat { position: absolute; left: -1.5rem; bottom: -1.5rem; padding: 1rem 1.25rem; border-radius: 15px; color: var(--white); background: var(--navy); box-shadow: var(--shadow); display: grid; }
.floating-stat strong { color: var(--gold); font-size: 1.15rem; }
.floating-stat span { font-size: .85rem; }
.value-list { margin-top: 1.5rem; display: grid; gap: .75rem; }
.value-list > div { border-left: 4px solid var(--orange); padding: .4rem 0 .4rem 1rem; display: grid; }
.value-list strong { color: var(--navy); }
.value-list span { color: var(--muted); }

.card-grid { display: grid; gap: 1.25rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: 0 10px 24px rgba(18,32,77,.06); transition: transform .22s, box-shadow .22s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card h3 { color: var(--navy); margin: .8rem 0 .45rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.card-icon { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: .35rem; border-radius: 13px; background: #fff0e4; color: var(--orange-dark); font-weight: 900; font-size: 1.25rem; }
.action-gap { margin-top: 2.2rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project-card { overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(18,32,77,.08); }
.project-card > img { width: 100%; height: 210px; object-fit: cover; }
.project-card > div { padding: 1.5rem; }
.project-card h3 { color: var(--navy); font-size: 1.45rem; margin: .35rem 0 .55rem; }
.project-card p { color: var(--muted); margin: 0; }
.project-label { color: var(--orange-dark); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.project-detail-list { display: grid; gap: 5rem; }
.project-detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.project-detail.reverse .project-visual { order: 2; }
.project-detail h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 2.8rem; margin: .4rem 0 .8rem; }
.project-visual { border-radius: var(--radius); min-height: 360px; display: grid; place-items: center; padding: 2rem; box-shadow: var(--shadow); }
.project-visual img { width: min(100%, 390px); }
.project-visual.devotion { background: #fff4df; }
.project-visual.food { background: #eaf8ec; }
.project-visual.farm { background: #edf6ff; }
.status-pill { display: inline-flex; margin-top: 1rem; padding: .45rem .8rem; border-radius: 999px; background: #eaf4ec; color: #276a36; font-weight: 750; font-size: .82rem; }

.client-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--white), #f8faff); }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.35rem; align-items: stretch; }
.client-card { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 30px rgba(18,32,77,.07); transition: transform .22s ease, box-shadow .22s ease; }
.client-card:nth-child(4) { grid-column: 2 / span 2; }
.client-card:nth-child(5) { grid-column: 4 / span 2; }
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.client-logo { display: grid; place-items: center; min-height: 132px; padding: 1.4rem 1.6rem; background: #fbfcff; border-bottom: 1px solid var(--line); }
.client-logo img { max-width: min(100%, 245px); max-height: 66px; width: auto; height: auto; object-fit: contain; }
.client-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
.client-card h3 { color: var(--navy); font-size: 1.35rem; margin: 0 0 .55rem; }
.client-card p { color: var(--muted); margin: 0 0 1.15rem; font-size: .94rem; }
.client-card .text-link { margin-top: auto; }

.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.service-detail { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; padding: 2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.service-detail > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--navy); color: var(--gold); font-weight: 900; }
.service-detail h2 { color: var(--navy); font-size: 1.45rem; margin: .25rem 0 .55rem; }
.service-detail p { color: var(--muted); }
.check-list { padding: 0; list-style: none; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.media-band { background: var(--navy); color: var(--white); padding: 5rem 0; }
.media-band h2 { color: var(--white); }
.media-band p { color: #e5eaf8; }
.media-band img { width: 100%; aspect-ratio: 7/5; object-fit: cover; border-radius: var(--radius); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(18,32,77,.08); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.team-card div { padding: 1.35rem; }
.team-card h2 { color: var(--navy); font-size: 1.2rem; margin: 0 0 .2rem; }
.team-card p { color: var(--orange-dark); font-weight: 800; margin: 0 0 .35rem; }
.team-card span { color: var(--muted); font-size: .9rem; }

.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.button-row.center { justify-content: center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 850; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--navy); }
.button-secondary:hover { background: var(--navy); color: var(--white); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.button-ghost:hover { background: var(--white); color: var(--navy); }
.button-light { color: var(--navy); background: var(--white); }
.button-danger { color: var(--white); background: var(--red); }
.button.full { width: 100%; border: 0; }
.cta-band { padding: 4rem 0; color: var(--white); background: linear-gradient(125deg, var(--navy), #263b77); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: var(--white); margin-bottom: 0; max-width: 800px; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.contact-grid h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: .45rem 0 1rem; }
.contact-list { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-list > div { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: start; }
.contact-list > div > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff0e4; color: var(--orange-dark); font-size: 1.1rem; }
.contact-list strong, .contact-list a, .contact-list p { display: block; }
.contact-list a { text-decoration: none; color: var(--navy); }
.contact-list p { margin: 0; color: var(--muted); }
.map-frame { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 310px; border: 0; }
.form-page-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 4rem; align-items: start; }
.form-aside { position: sticky; top: 110px; }
.form-card { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-card > h2 { font-size: 2rem; margin-top: 0; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.full-span { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 760; color: #2a3449; }
.field label::after { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid #c9d1df; border-radius: 10px; padding: .78rem .85rem; color: var(--ink); background: var(--white); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,120,39,.14); }
.field input[type="file"] { padding: .58rem; background: var(--soft); }
.field span.field-validation-error, .check-field span.field-validation-error { color: var(--red); font-size: .84rem; }
.input-validation-error { border-color: var(--red) !important; }
.validation-summary { margin-bottom: 1rem; color: var(--red); }
.validation-summary ul { margin: .4rem 0; padding-left: 1.2rem; }
.validation-summary.validation-summary-valid { display: none; }
.check-field { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; margin: .6rem 0 1.3rem; }
.check-field input { margin-top: .32rem; width: 18px; height: 18px; accent-color: var(--orange); }
.check-field label { font-size: .92rem; }
.check-field span { grid-column: 2; }
.danger-check { padding: .9rem; border-radius: 10px; background: #fff1f1; border: 1px solid #f0c4c4; }
.support-product-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.support-product-list li { padding: 1rem; border-radius: 12px; background: var(--soft); display: grid; }
.support-product-list strong { color: var(--navy); }
.support-product-list span { color: var(--muted); font-size: .9rem; }
.number-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.number-list li { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; }
.number-list li > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 900; }
.number-list p { margin: .2rem 0 0; color: var(--muted); }

.legal-copy { max-width: 860px; }
.legal-copy h2 { color: var(--navy); margin-top: 2.2rem; }
.legal-copy a { color: var(--orange-dark); }
.legal-copy li { margin-bottom: .45rem; }
.legal-updated { padding: .8rem 1rem; border-radius: 10px; background: var(--soft); }
.reference { margin-block: 1.5rem; }
.reference code { background: var(--soft); padding: .35rem .55rem; border-radius: 6px; }

.site-footer { padding-top: 4rem; background: #0c1534; color: #dce3f6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand small { color: #aeb8d3; }
.footer-grid h2 { color: var(--white); font-size: 1rem; margin: 0 0 1rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { color: #dce3f6; text-decoration: none; margin-bottom: .45rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: #aeb8d3; margin-top: .25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1050px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
        flex-direction: column; align-items: stretch; padding: .8rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .primary-nav.open { display: flex; }
    .primary-nav > a, .nav-dropdown > summary { width: 100%; }
    .primary-nav .nav-cta { margin-left: 0; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
    .card-grid.five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .section { padding: 4.3rem 0; }
    .hero { min-height: 590px; }
    .hero-slide { background-image: linear-gradient(rgba(9,17,47,.84), rgba(9,17,47,.84)), var(--hero-image); }
    .hero-content { text-align: center; }
    .hero-content > * { margin-left: auto; margin-right: auto; }
    .hero-content .button-row { justify-content: center; }
    .two-column, .contact-grid, .form-page-grid, .project-detail, .service-detail-grid { grid-template-columns: 1fr; }
    .project-detail.reverse .project-visual { order: 0; }
    .project-detail-list { gap: 3.5rem; }
    .project-visual { min-height: 270px; }
    .form-aside { position: static; }
    .project-grid, .team-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); }
    .card-grid.five { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .client-card, .client-card:nth-child(4), .client-card:nth-child(5) { grid-column: auto; }
    .client-card:nth-child(5) { grid-column: 1 / -1; width: min(100%, 560px); justify-self: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner, .split-heading { align-items: flex-start; flex-direction: column; }
    .floating-stat { left: 1rem; bottom: 1rem; }
}

@media (max-width: 560px) {
    .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
    .brand small { display: none; }
    .brand strong { font-size: 1.15rem; }
    .hero { min-height: 620px; }
    .hero h1, .hero h2 { font-size: 2.7rem; }
    .page-hero, .page-hero.compact { padding: 4rem 0; }
    .page-hero h1 { font-size: 2.45rem; }
    .project-grid, .team-grid, .card-grid.three, .card-grid.five, .client-grid, .footer-grid, .form-grid.two { grid-template-columns: 1fr; }
    .client-card, .client-card:nth-child(4), .client-card:nth-child(5) { grid-column: auto; width: 100%; }
    .service-detail { grid-template-columns: 1fr; }
    .button-row .button { width: 100%; }
    .cta-inner .button { width: 100%; }
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; padding: 1rem 0; }
}

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