:root {
    --navy: #0f2847;
    --navy-deep: #081a30;
    --navy-light: #1e3f6b;
    --gold: #b4914a;
    --gray-50: #f7f8fa;
    --gray-100: #eef1f5;
    --gray-200: #dde2ea;
    --gray-400: #8b95a5;
    --gray-600: #4a5468;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 40, 71, 0.06), 0 1px 3px rgba(15, 40, 71, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 40, 71, 0.08), 0 2px 4px rgba(15, 40, 71, 0.06);
    --radius: 4px;
    --serif: 'Lora', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
    color: var(--navy-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--gold); }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 600;
}

.brand:hover { color: var(--white); }

.brand-logo {
    display: block;
    height: 46px;
    width: auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    background:
        linear-gradient(135deg, #f4f5f8 0%, #eceff4 50%, #e6e9ef 100%);
    color: var(--gray-800);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 40, 71, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 40, 71, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 20% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 20% 50%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(180, 145, 74, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-inner {
    position: relative;
    max-width: 640px;
}

.hero-crest {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 30%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
    border-radius: 6px;
    padding: 3rem;
    box-shadow:
        0 20px 40px -10px rgba(15, 40, 71, 0.3),
        0 8px 20px -6px rgba(15, 40, 71, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-crest::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 85%, rgba(180, 145, 74, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, transparent 60%, rgba(180, 145, 74, 0.06) 100%);
    pointer-events: none;
}

.hero-crest img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: crest-fade 1.2s ease-out both;
}

.hero-crest::before {
    content: '';
    position: absolute;
    inset: 15%;
    background: radial-gradient(circle, rgba(180, 145, 74, 0.18) 0%, rgba(180, 145, 74, 0) 65%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

@keyframes crest-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.hero h1 {
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 640px;
    margin-bottom: 2rem;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: #c9a35a;
    border-color: #c9a35a;
    color: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-solid {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-solid:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--gray-50);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.section-head p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--navy);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

/* Approach */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.approach-item {
    text-align: left;
}

.approach-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.approach-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.approach-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA strip */
.cta-strip {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-strip h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-strip p {
    color: var(--gray-100);
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* About page */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-aside {
    position: sticky;
    top: 100px;
}

.about-aside h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-aside ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.about-aside li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.about-body p {
    font-size: 1.05rem;
    color: var(--gray-800);
    line-height: 1.75;
}

.about-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--navy);
    font-style: italic;
}

/* Page header */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--gray-100);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Services page */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: start;
}

.service-detail:last-child { border-bottom: 0; }

.service-detail-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-detail h2 {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.service-detail-body p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-detail-body ul {
    padding-left: 1.25rem;
    color: var(--gray-600);
}

.service-detail-body li {
    margin-bottom: 0.35rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-detail {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.contact-detail:last-child { border-bottom: 1px solid var(--gray-200); }

.contact-detail-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    color: var(--navy);
    font-weight: 500;
    font-size: 1rem;
}

/* Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.form-group label .req {
    color: var(--gold);
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: 0;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(30, 63, 107, 0.12);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: var(--sans);
}

.form-error {
    color: #a03030;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #a03030;
}

.form-group.has-error .form-error {
    display: block;
}

.form-status {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    display: none;
    font-size: 0.95rem;
}

.form-status.success {
    background: #e8f3ec;
    color: #1e5c36;
    border: 1px solid #b8d8c2;
    display: block;
}

.form-status.error {
    background: #f8e8e8;
    color: #7a2424;
    border: 1px solid #e2b8b8;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--navy-deep);
    color: var(--gray-100);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand .brand-mark {
    background: var(--gold);
    color: var(--navy-deep);
}

.footer-logo {
    display: block;
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--white);
    margin: 0 0 0.25rem;
}

.footer-tag {
    margin: 0;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-meta {
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-meta p { margin: 0 0 0.35rem; }
.footer-meta a { color: var(--gold); }
.footer-meta a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 860px) {
    .about-layout,
    .contact-layout,
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-aside {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero { padding: 4rem 0 3.5rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-crest {
        order: -1;
        max-width: 240px;
        padding: 2rem;
    }
    .section { padding: 3.5rem 0; }

    .footer-inner { flex-direction: column; }
    .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-deep);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-list.open {
        max-height: 400px;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 0;
    }

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

    .contact-form { padding: 1.5rem; }
}
