orm/* -----------------------------------------------------------
   BASE
----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #f5f6f8;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.site-header {
    background: #0f172a;
    color: #f9fafb;
    border-bottom: 3px solid #b91c1c;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.firm-name {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.firm-tagline {
    font-size: 0.75rem;
    color: #9ca3af;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    color: #e5e7eb;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(248, 250, 252, 0.12);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-phone {
    font-weight: 600;
    font-size: 0.95rem;
}

.header-cta {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.4);
}

/* -----------------------------------------------------------
   GLOBAL CONTENT WRAPPER
----------------------------------------------------------- */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* -----------------------------------------------------------
   HAMBURGER MENU
----------------------------------------------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    position: relative;
    z-index: 2000;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: #b91c1c;
    border-radius: 2px;
    transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

/* -----------------------------------------------------------
   HERO SYSTEM — CLEAN VERSION
----------------------------------------------------------- */

/* Base hero */
.hero {
    position: relative;
    width: 100%;
    display: block;
    padding: 3rem 0;
    background: #0f172a; /* plain hero background */
    color: #f9fafb;
}

/* Inner content aligned to 900px */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* IMAGE HERO */
.hero.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
}

/* Overlay ONLY for image heroes */
.hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 1;
}

/* Headings */
.hero-copy h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
}

.hero-copy p {
    margin: 0 0 1.5rem;
    color: #e5e7eb;
}

/* Divider below hero */
.hero + .content-wrapper {
    border-top: 1px solid #e5e7eb;
    padding-top: 2.5rem;
}

.hero.hero-large {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* -----------------------------------------------------------
   COOKIE BANNER — FLOATING STYLE
----------------------------------------------------------- */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;                 /* lifts it off the bottom */
    left: 50%;
    transform: translateX(-50%);  /* centers it */
    background: #0F1A2C;
    color: #FFF;
    padding: 1rem 1.5rem;
    z-index: 9999;
    border-radius: 8px;           /* floating card look */
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-width: 600px;
    width: calc(100% - 40px);     /* responsive */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: #FFF;
    text-decoration: underline;
}

.cookie-banner .btn.primary {
    background: #FFF;
    color: #0F1A2C;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}



/* -----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn.primary {
    background: #b91c1c;
    color: #f9fafb;
}

.btn.primary:hover {
    background: #991b1b;
}

.btn.ghost {
    background: transparent;
    color: #f9fafb;
    border-color: rgba(249, 250, 251, 0.5);
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 0.4);
}



/* -----------------------------------------------------------
   SERVICE GRID
----------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.service-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.service-link {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #b91c1c;
}

/* -----------------------------------------------------------
   CONTACT STRIP
----------------------------------------------------------- */
.contact-strip {
    background: #b91c1c;
    color: #f9fafb;
    padding: 2rem 1.25rem;
}

.contact-strip-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* -----------------------------------------------------------
   CONTACT FORM — TIDY ALIGNMENT
----------------------------------------------------------- */

.contact-form .form-row {
    margin-bottom: 1.2rem;
}

.contact-form .form-row label {
    width: 180px;              /* slightly narrower for contact form */
    padding-right: 16px;
}

.contact-form .form-row input[type="text"],
.contact-form .form-row input[type="email"],
.contact-form .form-row textarea {
    width: 100%;
    max-width: 360px;          /* tighter, more elegant width */
}

.contact-form textarea {
    height: 140px;
}

/* Mobile refinement */
@media (max-width: 700px) {
    .contact-form .form-row label {
        width: auto;
        margin-bottom: 4px;
    }

    .contact-form .form-row input,
    .contact-form .form-row textarea {
        max-width: 100%;
    }
}


/* -----------------------------------------------------------
   QUOTE FORM — DESKTOP ALIGNMENT
----------------------------------------------------------- */

.quote-form .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.quote-form label {
    width: 200px;                 /* fixed label column */
    margin-right: 20px;
    font-weight: 600;
    text-align: right;
    color: #0F1A2C;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="number"],
.quote-form select,
.quote-form textarea {
    flex: 1;                      /* fields take remaining space */
    padding: 12px 14px;
    border: 1px solid #C8C8C8;
    border-radius: 4px;
    font-size: 1rem;
    background: #FFF;
}

.quote-form textarea {
    min-height: 140px;
    resize: vertical;
}

.quote-form .submit-row {
    margin-left: 220px;           /* aligns button with fields */
    margin-top: 1.5rem;
}

/* -----------------------------------------------------------
   QUOTE FORM — MOBILE FIX
----------------------------------------------------------- */

@media (max-width: 700px) {

    /* stack rows vertically */
    .quote-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* labels full width */
    .quote-form label {
        width: 100%;
        text-align: left;
        margin-bottom: 6px;
    }

    /* fields full width */
    .quote-form input,
    .quote-form select,
    .quote-form textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* button aligns left */
    .quote-form .submit-row {
        margin-left: 0 !important;
        width: 100%;
    }

    /* breathing room left/right */
    .quote-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
    background: #020617;
    color: #9ca3af;
    padding-top: 2rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid #111827;
    text-align: center;
    padding: 0.75rem 1.25rem 1rem;
    font-size: 0.8rem;
}

/* -----------------------------------------------------------
   FOOTER — RESPONSIVE FIX
----------------------------------------------------------- */

footer .footer-inner {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    footer .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer .footer-inner > div,
    footer .footer-inner ul {
        width: 100%;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .footer-legal li {
        margin: 0;
    }

    .sra-badge img {
        max-width: 140px;
    }
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 960px) {

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        order: 3;
    }

    .main-nav.open {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 0;
        gap: 0.5rem;
        background: #0f172a;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-copy h1 {
        font-size: 1.9rem;
    }
}
/* -----------------------------------------------------------
   FORM — MOBILE SIDE MARGINS
----------------------------------------------------------- */

@media (max-width: 700px) {
    .quote-form,
    .contact-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}