:root {
    --ink: #15202b;
    --ink-soft: #5b6671;
    --navy: #142b41;
    --navy-deep: #102438;
    --navy-2: #1b3852;
    --canvas: #f7f6f2;
    --paper: #ffffff;
    --line: rgba(21, 32, 43, .12);
    --line-light: rgba(255, 255, 255, .14);
    --shell: 1320px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow: 0 26px 74px rgba(15, 31, 47, .11);
    --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

button, input, textarea, select { font: inherit; }

.shell {
    width: min(calc(100% - 72px), var(--shell));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 246, 242, .91);
    border-bottom: 1px solid rgba(21, 32, 43, .075);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand-main {
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .125em;
    line-height: 1;
    text-transform: uppercase;
}

.brand-rule {
    width: 34px;
    height: 1px;
    flex: 0 0 auto;
    background: rgba(21, 32, 43, .32);
}

.brand-sub {
    color: #64707b;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1;
    letter-spacing: -.01em;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    flex: 0 0 auto;
}

.header-contact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    letter-spacing: .035em;
    text-decoration: none;
}

.header-contact::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--navy);
    transform: scaleX(.34);
    transform-origin: right center;
    opacity: .38;
    transition: transform .2s ease, opacity .2s ease;
}

.header-contact:hover::after,
.header-contact:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.header-contact:focus-visible {
    outline: 2px solid rgba(20, 43, 65, .24);
    outline-offset: 7px;
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    padding: 38px 0 104px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -12vw;
    width: min(52vw, 790px);
    height: min(52vw, 790px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 85, 121, .07), rgba(42, 85, 121, 0) 69%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-height: clamp(610px, 66vw, 770px);
    align-items: center;
}

.hero-media {
    grid-column: 5 / -1;
    grid-row: 1;
    height: clamp(570px, 59vw, 735px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #d6dde3;
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.006);
}

.hero-copy-panel {
    position: relative;
    z-index: 3;
    grid-column: 1 / 7;
    grid-row: 1;
    align-self: center;
}

.hero-copy-inner {
    max-width: 640px;
    padding: clamp(46px, 4.8vw, 72px) clamp(42px, 4.8vw, 68px);
    border: 1px solid rgba(21, 32, 43, .075);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .975);
    box-shadow: 0 22px 64px rgba(15, 31, 47, .095);
}

.eyebrow {
    position: relative;
    margin: 0 0 23px;
    padding-left: 48px;
    color: var(--navy-2);
    font-size: 11px;
    font-weight: 770;
    line-height: 1.3;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 32px;
    height: 1px;
    background: var(--navy-2);
}

.hero h1 {
    max-width: 580px;
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(48px, 5.2vw, 74px);
    font-weight: 400;
    line-height: .99;
    letter-spacing: -.044em;
}

.hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--navy);
    font-size: .72em;
    letter-spacing: -.034em;
}

.hero-copy {
    max-width: 520px;
    margin: 29px 0 0;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: clamp(17px, 1.45vw, 19px);
    line-height: 1.62;
}

/* Contact */
.contact-section {
    position: relative;
    padding: 100px 0 46px;
    background: var(--navy);
    color: #fff;
}

.contact-shell { position: relative; }

.section-heading { margin-bottom: 50px; }

.section-heading h2 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(42px, 4.8vw, 62px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.037em;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}

.contact-information { min-width: 0; }

.contact-visual {
    height: clamp(390px, 36vw, 500px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #203b52;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .17);
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
    padding-top: 27px;
    border-top: 1px solid var(--line-light);
}

.contact-block h3,
.form-heading h3 {
    margin: 0 0 13px;
    font-size: 11px;
    font-weight: 780;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-block h3 { color: rgba(255, 255, 255, .57); }

.contact-block p {
    margin: 0;
    color: rgba(255, 255, 255, .87);
    font-size: 16px;
    line-height: 1.7;
}

.contact-block p + p { margin-top: 13px; }
.contact-block a { color: #fff; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.contact-label { color: rgba(255, 255, 255, .61); }

.contact-form-card {
    min-width: 0;
    padding: clamp(38px, 4vw, 54px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .15);
}

.form-heading {
    margin-bottom: 30px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--line);
}

.form-heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: 11px;
}

.contact-form-card form,
.contact-form-card .wpcf7-form { margin: 0; }

.contact-form-card p,
.kreppein-contact-form p { margin: 0 0 20px; }

.contact-form-card label,
.kreppein-contact-form label {
    display: block;
    margin-bottom: 7px;
    color: #34424f;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: .02em;
}

.contact-form-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form-card textarea,
.contact-form-card select,
.kreppein-contact-form input:not([type="submit"]),
.kreppein-contact-form textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(21, 32, 43, .14);
    border-radius: 8px;
    background: #f8f8f6;
    color: var(--ink);
    padding: 13px 14px;
    outline: none;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.contact-form-card input:not([type="submit"]):focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus,
.kreppein-contact-form input:focus,
.kreppein-contact-form textarea:focus {
    border-color: rgba(20, 43, 65, .62);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 43, 65, .065);
}

.contact-form-card textarea,
.kreppein-contact-form textarea {
    min-height: 148px;
    resize: vertical;
}

.contact-form-card input[type="submit"],
.contact-form-card button[type="submit"],
.kreppein-contact-form button[type="submit"] {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy);
    border-radius: 999px;
    padding: 0 27px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 740;
    line-height: 1;
    letter-spacing: .03em;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.contact-form-card input[type="submit"]:hover,
.contact-form-card button[type="submit"]:hover,
.kreppein-contact-form button[type="submit"]:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(20, 43, 65, .14);
}

.contact-form-card .wpcf7-spinner { margin: 0 0 0 12px; }
.contact-form-card .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; }
.contact-form-card .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 12px 14px !important;
    border-width: 1px !important;
    border-radius: 8px;
    font-size: 13px;
}

.kreppein-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* Legal links are part of the contact section, not a separate footer. */
.legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.legal-links a {
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    transition: color .18s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible { color: #fff; }

/* Legal pages */
.legal-hero {
    min-height: calc(100vh - 88px);
    padding: 84px 0 110px;
    background: var(--canvas);
}

.legal-shell { width: min(calc(100% - 72px), 960px); }

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 29px;
    border-bottom: 1px solid var(--line);
}

.legal-header h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.02;
}

.legal-content {
    color: #3f4b56;
    font-size: 16px;
    line-height: 1.78;
}

.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    margin: 2.5em 0 .72em;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.legal-content h2 { font-size: 32px; }
.legal-content h3 { font-size: 26px; }
.legal-content h4 { font-size: 21px; }
.legal-content h5,
.legal-content h6 { font-size: 17px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.legal-content p { margin: 0 0 1.18em; }
.legal-content ul,
.legal-content ol { padding-left: 1.35em; }
.legal-content li + li { margin-top: .45em; }
.legal-content a { color: var(--navy); }

@media (max-width: 1120px) {
    .hero-grid { min-height: 680px; }
    .hero-media { grid-column: 4 / -1; }
    .hero-copy-panel { grid-column: 1 / 7; }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .shell { width: min(calc(100% - 40px), var(--shell)); }
    .hero { padding-top: 24px; padding-bottom: 80px; }
    .hero-grid {
        display: flex;
        flex-direction: column;
        min-height: 0;
        align-items: stretch;
    }
    .hero-media {
        order: 1;
        height: min(66vw, 570px);
        min-height: 420px;
        border-radius: var(--radius-lg);
    }
    .hero-copy-panel {
        order: 2;
        width: calc(100% - 48px);
        margin: -88px auto 0;
    }
    .hero-copy-inner {
        max-width: none;
        padding: 46px 42px;
    }
    .hero h1 { font-size: clamp(48px, 8vw, 64px); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-card { max-width: none; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    body.admin-bar .site-header { top: 46px; }
    .shell,
    .legal-shell { width: min(calc(100% - 28px), var(--shell)); }

    .header-inner { height: 74px; gap: 18px; }
    .brand { gap: 9px; }
    .brand-main { font-size: 10px; letter-spacing: .085em; }
    .brand-rule { width: 18px; }
    .brand-sub { font-size: 15px; }
   .header-contact {
        height: 36px;
        font-size: 12px;
    }
    .header-contact::after { bottom: 2px; }

    .hero { padding: 14px 0 66px; }
    .hero-media {
        height: 500px;
        min-height: 0;
        border-radius: 14px;
    }
    .hero-media img { object-position: 55% center; }
    .hero-copy-panel {
        width: calc(100% - 24px);
        margin-top: -68px;
    }
    .hero-copy-inner {
        padding: 33px 27px 35px;
        border-radius: 13px;
    }
    .eyebrow { margin-bottom: 18px; padding-left: 38px; font-size: 10px; }
    .eyebrow::before { width: 25px; }
    .hero h1 { font-size: clamp(42px, 12vw, 54px); }
    .hero-copy { margin-top: 23px; padding-top: 20px; font-size: 16px; }

    .contact-section { padding: 70px 0 32px; }
    .section-heading { margin-bottom: 33px; }
    .section-heading h2 { font-size: clamp(39px, 11vw, 50px); }
    .contact-grid { gap: 33px; }
    .contact-visual { height: 390px; border-radius: 13px; }
    .contact-details {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 27px;
        padding-top: 23px;
    }
    .contact-form-card { padding: 29px 23px; border-radius: 13px; }
    .form-heading { margin-bottom: 25px; padding-bottom: 17px; }
    .legal-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 22px;
        margin-top: 38px;
        padding-top: 20px;
    }
    .legal-hero { min-height: calc(100vh - 74px); padding: 58px 0 80px; }
    .legal-header { margin-bottom: 33px; }
}

@media (max-width: 480px) {
    .brand-sub,
    .brand-rule { display: none; }
    .hero-media { height: 430px; }
    .hero-copy-panel { width: calc(100% - 16px); margin-top: -55px; }
    .hero-copy-inner { padding: 29px 23px 31px; }
    .hero h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
