
:root {
    --c-ink: #0b1b2b;
    --c-ink-soft: #1f3246;
    --c-body: #2c3e50;
    --c-muted: #5c6e7f;
    --c-line: #e3e8ee;
    --c-bg: #ffffff;
    --c-bg-alt: #f4f6f9;
    --c-bg-deep: #0b1b2b;
    --c-accent: #b8321d;
    --c-accent-dark: #8f2414;
    --c-gold: #c9a24a;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
    --wrap: 1200px;
    --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-body);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--c-ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section-alt { background: var(--c-bg-alt); }
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-accent);
    margin-bottom: 1rem;
}
.lead { font-size: 1.125rem; color: var(--c-ink-soft); max-width: 60ch; }

.btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); text-decoration: none; }
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-outline {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: #fff; text-decoration: none; }

/* ----- Header / Nav ----- */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 1.25rem 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.brand .mark { color: var(--c-gold); }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0; padding: 0;
    align-items: center;
}
.nav-links a {
    color: #fff;
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .nav-cta {
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    opacity: 1;
}
.nav-links .nav-cta:hover { background: rgba(255,255,255,0.12); }

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 82vh;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10rem 0 5rem;
    background: var(--c-bg-deep);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1759216373394-91146ca977c7?w=1800&h=1100&fit=crop');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(0.85);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(11,27,43,0.92) 0%, rgba(11,27,43,0.55) 55%, rgba(11,27,43,0.25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.25rem;
}
.hero h1 {
    color: #fff;
    max-width: 18ch;
    margin-bottom: 1.25rem;
}
.hero p.lead {
    color: rgba(255,255,255,0.88);
    font-size: 1.2rem;
    max-width: 55ch;
    margin-bottom: 2.25rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 1.25rem 0;
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-meta .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}
.hero-meta strong { color: #fff; font-weight: 600; display: block; font-size: 1.1rem; font-family: var(--font-head); }

/* ----- Announcement strip ----- */
.announce {
    background: var(--c-ink);
    color: #fff;
    padding: 1.25rem 0;
    font-size: 0.92rem;
}
.announce .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.announce span:first-child { color: var(--c-gold); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; }
.announce a { color: #fff; text-decoration: underline; }

/* ----- One firm / about ----- */
.one-firm .grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}
.one-firm .copy p { font-size: 1.05rem; }
.one-firm figure { margin: 0; }
.one-firm img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--c-line);
}
.stat .num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--c-ink);
    display: block;
    line-height: 1;
}
.stat .label {
    font-size: 0.82rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.45rem;
    display: block;
}

/* ----- Services ----- */
.services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--c-line);
    padding: 2rem 2rem 1.75rem;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -28px rgba(11,27,43,0.35);
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card .kicker {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
    display: block;
}
.service-card p { color: var(--c-muted); font-size: 0.96rem; margin-bottom: 1.25rem; flex-grow: 1; }
.service-card a.more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 2px;
    align-self: flex-start;
}
.service-card a.more:hover { color: var(--c-accent); text-decoration: none; }

/* ----- Regional coverage ----- */
.coverage { background: var(--c-bg-deep); color: #fff; position: relative; overflow: hidden; }
.coverage h2 { color: #fff; }
.coverage .lead { color: rgba(255,255,255,0.78); }
.coverage .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.region {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.region img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.region::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,27,43,0.1) 30%, rgba(11,27,43,0.9) 100%);
    z-index: 2;
}
.region .body {
    position: relative;
    z-index: 3;
    padding: 2rem;
    width: 100%;
}
.region h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.35rem; }
.region .place {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.9rem;
}
.region p { color: rgba(255,255,255,0.88); font-size: 0.95rem; margin-bottom: 1rem; }
.region a { color: #fff; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--c-gold); padding-bottom: 2px; }
.region a:hover { text-decoration: none; color: var(--c-gold); }

/* ----- How we work ----- */
.method .intro { max-width: 60ch; margin-bottom: 3rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}
.step { counter-increment: step; border-top: 2px solid var(--c-ink); padding-top: 1.25rem; }
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.08em;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--c-muted); margin: 0; }

/* ----- Insights / thought leadership ----- */
.insights-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.insight {
    border-top: 1px solid var(--c-line);
    padding-top: 1.5rem;
}
.insight .tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}
.insight h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.insight h3 a { color: var(--c-ink); }
.insight h3 a:hover { color: var(--c-accent); text-decoration: none; }
.insight .meta { font-size: 0.82rem; color: var(--c-muted); }

/* ----- Careers banner ----- */
.careers {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0;
}
.careers::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1715499000302-3b0114d6564b?w=1800&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}
.careers::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,27,43,0.9), rgba(11,27,43,0.5));
}
.careers .container { position: relative; z-index: 2; }
.careers h2 { color: #fff; max-width: 18ch; }
.careers p { color: rgba(255,255,255,0.85); max-width: 55ch; font-size: 1.05rem; }

/* ----- Contact ----- */
.contact .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact .placeholder {
    background: #fff;
    border: 1px dashed var(--c-line);
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--c-muted);
    font-size: 0.92rem;
}
.contact .placeholder strong { color: var(--c-ink); display: block; margin-bottom: 0.5rem; }
.contact .offices { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact .office strong { display: block; color: var(--c-ink); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact .office span { display: block; color: var(--c-muted); font-size: 0.94rem; }

/* ----- Footer ----- */
.site-footer {
    background: var(--c-bg-deep);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.site-footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a { color: rgba(255,255,255,0.75); }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; display: block; margin-bottom: 0.75rem; font-size: 1.4rem; }
.site-footer .about { max-width: 38ch; line-height: 1.6; font-size: 0.92rem; }
.site-footer .legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 30;
    }
    .nav-toggle-label span {
        display: block;
        width: 26px;
        height: 2px;
        background: #fff;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78%;
        max-width: 320px;
        background: var(--c-bg-deep);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .nav-toggle:checked ~ .nav-links { transform: translateX(0); }
    .nav-links a { font-size: 1.05rem; }

    .one-firm .grid,
    .services-head,
    .coverage .grid,
    .contact .grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .insights-grid { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .hero { min-height: auto; padding: 9rem 0 10rem; }
}
@media (max-width: 560px) {
    .stats, .steps { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr; }
    .hero-meta .container { gap: 1.25rem; }
}


/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */

.template-page .content-section {
    padding: 4rem 0;
}

.template-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.template-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.template-page .page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.template-page .page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.template-page .page-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.template-page .page-content p {
    margin-bottom: 1.25rem;
}

.template-page .page-content a {
    text-decoration: none;
}

.template-page .page-content a:hover {
    text-decoration: underline;
}

.template-error .content-section {
    padding: 6rem 0;
    text-align: center;
}

/* Contact form on pages */
.ep-contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
}

.ep-contact-form input[type="text"],
.ep-contact-form input[type="email"],
.ep-contact-form textarea {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.ep-contact-form input:focus,
.ep-contact-form textarea:focus {
    outline: none;
}

.ep-contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.ep-contact-form .form-field {
    margin-bottom: 1.5rem;
}

.ep-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.ep-contact-form button,
.ep-contact-form input[type="submit"] {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

/* Container padding (prevents content running to browser edge) */
.container, .section-inner, [class*="-inner"] {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}
section, [class*="section"] {
    overflow-x: hidden;
}

.site-footer {
    position: relative;
    z-index: 1;
}

/* Structural button fallbacks (colour comes from the brand CSS, never from here).
   If the brand CSS uses class names the converter renamed, the button will be
   clickable but uncoloured, which is a visible signal something needs fixing
   rather than a misleading hardcoded blue. */
.button, a.button,
a.btn-primary, a.btn-secondary, a.btn-dark, a.btn-outline, a.btn-light {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

a.read-more, .read-more {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
}
.read-more:hover { opacity: 0.7; }

a[class*="hero-btn"] {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

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

/* Button class alias shim — converter renamed .btn-primary → .button, .btn-outline → .button.action, .btn-ghost → .button.on-dark. */
.button {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.button:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); text-decoration: none; }
.button.action { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.button.action:hover { background: var(--c-ink); color: #fff; }
.button.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.button.on-dark:hover { background: rgba(255,255,255,0.1); }
