:root {
    --bg: #FAF6EF;
    --bg-alt: #FFFFFF;
    --bg-dark: #14253A;
    --text: #1B1B1B;
    --text-muted: #5A5A5A;
    --primary: #1B3147;
    --primary-hover: #0F2235;
    --accent: #B8893A;
    --accent-hover: #976F2C;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 2px rgba(20, 37, 58, 0.04), 0 1px 3px rgba(20, 37, 58, 0.06);
    --shadow-md: 0 4px 6px rgba(20, 37, 58, 0.05), 0 10px 20px rgba(20, 37, 58, 0.06);
    --shadow-lg: 0 10px 25px rgba(20, 37, 58, 0.08), 0 20px 40px rgba(20, 37, 58, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --container: 1180px;
    --space-section: clamp(4rem, 8vw, 7rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 400;
}

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

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.1rem;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 239, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.brand-mark {
    color: var(--accent);
}

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

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

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

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-arrow::after {
    content: '→';
    transition: transform 0.2s ease;
}

.btn-arrow:hover::after {
    transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

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

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1B3147 0%, #2B4A6B 100%);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(184, 137, 58, 0.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 137, 58, 0.15), transparent 40%);
}

.hero-visual-content {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.hero-visual-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.hero-visual-quote::before {
    content: '“';
    display: block;
    font-size: 4rem;
    line-height: 0.5;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-visual-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
}

.hero-visual-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.hero-visual-meta-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Sections ---------- */
section {
    padding: var(--space-section) 0;
}

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

.section-head .eyebrow {
    margin-bottom: 1rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-dark {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark .eyebrow {
    color: var(--accent);
}

/* ---------- Stats strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.stat {
    background: var(--bg-alt);
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-value .accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

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

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

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 137, 58, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(184, 137, 58, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* ---------- Detailed services ---------- */
.service-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}

.service-block-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem;
    color: var(--primary);
}

.service-block ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.service-block li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.service-block li:first-child {
    border-top: none;
}

.service-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---------- About: timeline / experience ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

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

.about-side h3 {
    margin-bottom: 1rem;
}

.about-side p {
    color: var(--text-muted);
}

.about-body p {
    font-size: 1.05rem;
    color: var(--text);
}

.about-body p:first-of-type::first-letter {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 500;
    float: left;
    line-height: 0.9;
    margin: 0.3rem 0.6rem 0 0;
    color: var(--accent);
}

.qualifications {
    margin-top: 2.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.qualifications h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.qual-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
}

.qual-row:first-of-type {
    border-top: none;
}

.qual-name {
    font-weight: 500;
    color: var(--text);
}

.qual-score {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    color: var(--accent);
}

.sectors {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sector-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(27, 49, 71, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--bg-dark);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner h2 em {
    font-style: italic;
    color: var(--accent);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.25rem;
}

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.contact-detail:last-of-type {
    border-bottom: 1px solid var(--border);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(184, 137, 58, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    color: var(--primary);
    font-weight: 500;
}

.contact-form {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-md);
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 137, 58, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-footnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.form-success {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(184, 137, 58, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-success.show {
    display: block;
}

.form-error {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(176, 50, 50, 0.07);
    border: 1px solid rgba(176, 50, 50, 0.5);
    border-radius: var(--radius-sm);
    color: #6e2222;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.form-error a {
    color: #6e2222;
    text-decoration: underline;
}

.form-error.show {
    display: block;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .brand {
    color: #fff;
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 360px;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Page header (sub-pages) ---------- */
.page-header {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-side {
        position: static;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 0.85rem 0;
        border-top: 1px solid var(--border);
    }

    .nav a:first-child {
        border-top: none;
    }

    .nav a.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}
