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

:root {
    --ink: #14213D;
    --ink-light: #2B3D66;
    --ink-muted: #55586E;
    --paper: #F6F7FA;
    --panel: #EFF1F7;
    --rule: #D6D9E3;
    --stamp: #F5821F;
    --stamp-dark: #B85A0E;
    --brass: #1E2266;
    --brass-dark: #161A4D;
    --radius: 4px;
    --radius-lg: 12px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--paper);
}

h1, h2, h3 {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
}

/* Navigation (header nav only — footer has its own nav.footer-links) */
/* Three columns: section links | centred logo | actions. Pages with only a logo get it centred too. */
body > nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px 40px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 60;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Zilla Slab', serif;
    font-size: 21px;
    font-weight: 700;
    color: #FFFFFF;
}

.logo-text sup {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    margin-left: 2px;
    color: #FFFFFF;
}

/* Header nav sits on a white bar now, so its logo needs the dark variant */
nav .logo-text {
    color: var(--ink);
}

nav .logo-text sup {
    color: var(--ink-muted);
}

.logo-img {
    height: 42px;
    width: 42px;
    display: block;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--panel);
    color: var(--ink);
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid var(--rule);
}

.coming-soon-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--stamp);
    flex-shrink: 0;
    animation: coming-soon-pulse 1.8s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 130, 31, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(245, 130, 31, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon-dot {
        animation: none;
    }
}

.hero-form-card {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.hero-form-card h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

/* Buttons */
.btn {
    background: var(--stamp);
    color: var(--ink);
    padding: 15px 32px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

.btn:hover {
    background: var(--stamp-dark);
}

.services-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 36px;
}

.intake-form {
    text-align: left;
    max-width: none;
    margin: 0;
}

.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--panel);
    color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.form-consent label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--ink-muted);
}

.form-consent input {
    width: auto;
    margin-top: 3px;
}

.form-consent a {
    color: var(--ink);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    background: #F6E4E1;
    color: var(--stamp-dark);
    border: 1px solid var(--stamp);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.cf-turnstile {
    margin-bottom: 20px;
}

.intake-form .btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.intake-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Service summary line, shown instead of the dropdown once a service card is picked */
.form-service-summary {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 22px;
}

.form-service-summary strong {
    color: var(--ink);
}

/* Visually hidden but still readable by screen readers and search crawlers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 130, 31, 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(245, 130, 31, 0); }
}

/* Scroll-reveal: JS adds .reveal up front, then .in-view once the element scrolls into place */
.reveal {
    opacity: 0;
}

.reveal.in-view {
    animation: fadeInUp 0.6s ease forwards;
}

/* Page intro */
.page-intro {
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 40px 40px 56px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(30, 34, 102, 0.1);
    background: linear-gradient(rgba(246, 247, 250, 0.78), rgba(246, 247, 250, 0.78)), url('assets/hero-lawyer.jpg') center top / cover no-repeat;
}

.page-intro h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    animation: fadeInUp 0.7s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.hero-actions .btn {
    margin-top: 0;
}

/* Explore Services */
.services-section {
    max-width: 1180px;
    margin: 56px auto 0;
    padding: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-card-visual {
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.service-card-icon {
    width: 44px;
    height: 44px;
    color: var(--stamp-dark);
}

.service-card-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    display: block;
    background: var(--bg);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-photo,
.service-card:focus-visible .service-card-photo {
    transform: scale(1.05);
}

.service-card-body {
    padding: 16px 18px 20px;
}

.service-card-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--ink);
}

.service-card-body span {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: 40px 40px 24px;
    margin-top: 56px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col p {
    color: #B7BAE0;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 13px;
    color: #B7BAE0;
}

footer a {
    color: var(--stamp);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Policy pages (Privacy / Terms) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--ink-muted);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--stamp);
    padding-bottom: 10px;
}

.container h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.container p {
    margin-bottom: 15px;
}

.container ul,
.container ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--ink-muted);
}

.container li {
    margin-bottom: 10px;
}

.highlight {
    background-color: #FFF3CD;
    padding: 20px;
    border-left: 4px solid var(--stamp);
    margin: 25px 0;
    border-radius: var(--radius);
    color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
    body > nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 20px;
        gap: 10px 8px;
    }

    body > nav .logo {
        flex-basis: 100%;
        justify-content: center;
    }

    .coming-soon-badge {
        margin-top: 10px;
    }

    .hero-form-card {
        padding: 24px;
    }

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

    .services-section {
        padding: 0 20px;
        margin-top: 40px;
    }

    .page-intro {
        padding: 28px 20px 32px;
    }


    .footer-grid {
        flex-direction: column;
        gap: 24px;
    }

    .container {
        padding: 40px 20px;
    }

    .container h1 {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-intro h1,
    .reveal.in-view {
        animation: none;
    }

    .reveal {
        opacity: 1;
    }
}

/* ---------- Phase 1: header menu, help picker, practice areas, guides ---------- */
body > nav .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.nav-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 12px;
}

@media (max-width: 1100px) {
    /* Not enough room for the badge without pushing the logo off-centre */
    body > nav .coming-soon-badge {
        display: none;
    }
}

.nav-links a,
.nav-links button {
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--stamp-dark);
}

.nav-cta {
    background: var(--ink);
    color: #FFFFFF !important;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--ink-light);
}

.find-help {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: 22px auto 0;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08);
}

.find-help select {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
}

.find-help .btn {
    margin-top: 0;
    padding: 12px 26px;
}

.section-title {
    font-size: clamp(24px, 3vw, 30px);
    margin-bottom: 20px;
}

.section-sub {
    color: var(--ink-muted);
    margin: -10px 0 22px;
}

.home-section {
    max-width: 1180px;
    margin: 56px auto 0;
    padding: 0 40px;
}

.area-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.area-card,
.guide-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.area-card:hover,
.guide-card:hover,
a.service-card:hover {
    box-shadow: 0 8px 22px rgba(20, 33, 61, 0.1);
    transform: translateY(-2px);
}

.area-card svg {
    width: 28px;
    height: 28px;
    color: var(--stamp-dark);
    margin-bottom: 4px;
}

.area-card strong,
.guide-card strong {
    font-size: 17px;
    line-height: 1.3;
}

.area-card span,
.guide-card span {
    font-size: 14px;
    color: var(--ink-muted);
}

.guide-card {
    border-top: 3px solid var(--stamp);
}

.guide-card .guide-card-more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--stamp-dark);
    font-weight: 600;
}

a.service-card {
    color: inherit;
    text-decoration: none;
}

/* Footer menu columns + disclaimer */
.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 260px;
}

.footer-menu h3 {
    color: #FFFFFF;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.footer-menu a {
    font-size: 14px;
}

.footer-disclaimer {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #B7BAE0;
}

/* Practice-area pages */
.eyebrow {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.eyebrow a {
    color: var(--stamp-dark);
    text-decoration: none;
}

.area-hero {
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 44px 40px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
}

.area-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    max-width: 820px;
}

.area-intro {
    max-width: 760px;
    margin-top: 14px;
    font-size: 17px;
    color: var(--ink-muted);
}

.area-hero .hero-actions {
    justify-content: flex-start;
}

.steps-section,
.faq-section {
    max-width: 1180px;
    margin: 56px auto 0;
    padding: 0 40px;
}

.steps-section h2 {
    font-size: clamp(24px, 3vw, 30px);
    margin-bottom: 20px;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--stamp);
    font-weight: 700;
    margin-bottom: 6px;
}

.steps span {
    color: var(--ink-muted);
    font-size: 15px;
}

.faq-list details {
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 10px;
}

.faq-list summary {
    font-weight: 600;
    cursor: pointer;
}

.faq-list details p {
    margin-top: 10px;
    color: var(--ink-muted);
}

.area-guide-link {
    margin-top: 18px;
}

.area-guide-link a,
.guide a:not(.btn) {
    color: var(--stamp-dark);
}

.page-disclaimer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink-muted);
}

.guide-cta {
    display: table;
    margin-top: 14px;
}

@media (max-width: 1024px) {
    .area-grid,
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        margin: 0;
        gap: 8px 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a,
    .nav-links button {
        font-size: 13.5px;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 8px 12px;
    }

    /* Keep the sticky header short on phones */
    body > nav .coming-soon-badge {
        display: none;
    }

    .find-help {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .home-section,
    .steps-section,
    .faq-section {
        padding: 0 20px;
        margin-top: 40px;
    }

    .area-grid,
    .guide-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .area-hero {
        margin: 20px 16px 0;
        padding: 28px 20px;
    }
}

.footer-col .footer-business {
    font-size: 12.5px;
    line-height: 1.7;
}

.form-hint {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-top: 6px;
}

/* Header WhatsApp button */
.nav-links .nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 999px;
}

.nav-links .nav-whatsapp:hover {
    background: #1DA851;
    color: #FFFFFF;
}

.nav-whatsapp svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* Icon-only on phones so the header stays on one row */
    .nav-links .nav-whatsapp {
        padding: 8px 10px;
    }

    .nav-whatsapp span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* Phones: keep the header to WhatsApp + Talk to a Lawyer; section links stay in the page and footer */
    .nav-left {
        display: none;
    }

    .nav-links .nav-whatsapp {
        padding: 8px 14px;
    }

    .nav-whatsapp span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
}
