/* Northern Headlight — shared styles
   Palette sampled from the Wix reference screenshots (screenshots/).
   Headings/titles: Plus Jakarta Sans (700) — sized down and tightened
   (letter-spacing, line-height) from a naive 1:1 swap, since it renders
   bigger and heavier than the body face at the same font-size.
   Body, buttons, nav, brand: DM Sans. */

:root {
    --navy: #3d4a5c;
    --navy-dark: #2a333f;
    --blue: #2c5f8a;
    --blue-dark: #234b6e;
    --text-light: #6b7480;
    --alt-bg: #f1f2f4;
    --alt-bg-light: #f8f9fb;
    --border: #3d4a5c;
    --page-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--page-bg);
    color: var(--text-light);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--blue);
}

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

h1, h2, h3 {
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
}

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

/* Header / nav */

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--navy);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand svg {
    flex-shrink: 0;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--blue);
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
    color: var(--navy);
}

/* Full-bleed hero (all 4 pages) — editorial layout: left-aligned text,
   eyebrow label, subtitle, a side gradient (dark behind the text, clear
   toward the photo's lighthouse), and a faint, slow light-beam sweep.
   The beam is purely decorative and is disabled under
   prefers-reduced-motion (see below). */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    min-height: 56vh;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, rgba(20, 32, 46, 0.8) 0%, rgba(20, 32, 46, 0.55) 32%, rgba(20, 32, 46, 0.12) 62%, rgba(20, 32, 46, 0) 85%);
}

.hero::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -30%;
    width: 22%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.16) 55%, transparent 100%);
    mix-blend-mode: screen;
    animation: hero-beam-sweep 9s ease-in-out infinite;
}

@keyframes hero-beam-sweep {
    0% { left: -30%; opacity: 0; }
    8% { opacity: 1; }
    50% { left: 108%; opacity: 1; }
    58% { opacity: 0; }
    100% { left: 108%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::after {
        animation: none;
        opacity: 0;
    }
}

.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin: 0 0 1rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.hero h1 {
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 38rem;
    margin: 0 0 1.5rem;
    color: #eef3f7;
}

.hero-small {
    min-height: 34vh;
}

.hero-pos-right {
    background-position: 72% center;
}

/* Home hero: default center crop keeps the lighthouse clear of the
   text on desktop, but on narrow/tall mobile crops the cover-scaled
   photo pulls the lighthouse in behind the subtitle — shift it right
   there so the editorial text never sits on top of it. */
.hero-pos-home {
    background-position: center;
}

@media (max-width: 600px) {
    .hero-pos-home {
        background-position: 20% center;
    }

    /* At narrow widths the cover-scaled photo brings the lighthouse
       in closer to center, so keep the editorial text block narrower
       here than the hero-content padding alone would, leaving a
       clear gap before the lighthouse on the right. */
    .hero-pos-right .hero-eyebrow,
    .hero-pos-right h1,
    .hero-pos-right p {
        max-width: 54%;
    }
}

.hero h1.uppercase {
    text-transform: uppercase;
}

/* Buttons */

.btn {
    display: inline-block;
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.7rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--navy);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

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

/* Sections */

section {
    padding: 3.5rem 0;
}

section.alt {
    background-color: var(--alt-bg);
}

section.alt-light {
    background-color: var(--alt-bg-light);
}

h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.7rem);
    line-height: 1.25;
    margin-top: 0;
}

.section-intro {
    max-width: 42rem;
    color: var(--text-light);
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Grids */

.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

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

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

.card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.6rem;
}

.card svg {
    width: 32px;
    height: 32px;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.card p {
    color: var(--text-light);
    margin: 0;
}

/* Service teaser cards (Home "Our Services") — icon/text left, "See more" right */

.teaser-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.teaser-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.6rem;
}

.teaser-card .teaser-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.teaser-card svg {
    width: 32px;
    height: 32px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.teaser-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.teaser-card p {
    color: var(--text-light);
    margin: 0;
}

.teaser-card .see-more {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}

.teaser-card .see-more:hover {
    text-decoration: underline;
}

/* CTA band — bold, eye-catching */

.cta-band {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    padding: 4.5rem 0;
    text-align: left;
}

.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.cta-band .eyebrow {
    display: block;
    color: #bcd6e8;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cta-band h2 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.15;
}

.cta-band .btn {
    background-color: #fff;
    color: var(--blue-dark);
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.cta-band .btn:hover {
    background-color: #0f1b26;
    color: #fff;
}

/* Services list (Services page) — adapted from the RBLawyers services
   layout (new-site/services.html + RBL.css): a quick-nav strip, then
   full-width alternating bands with a heading column and a text
   column. No icons/images — text only. */

.svc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2.5rem 0;
}

.svc-toc a {
    border: 1px solid var(--border);
    color: var(--navy);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svc-toc a:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.svc-row {
    padding: 5.5rem 0;
    scroll-margin-top: 90px;
}

.svc-row--alt {
    background: var(--alt-bg);
}

.svc-row-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.svc-row-heading h2 {
    font-size: clamp(0.85rem, 1.9vw, 1.25rem);
    line-height: 1.3;
    margin: 0;
}

.svc-row-text p {
    color: var(--text-light);
    margin: 0;
}

@media (min-width: 760px) {
    .svc-row-inner {
        display: grid;
        grid-template-columns: 32% 1fr;
        gap: 3rem;
        align-items: stretch;
    }

    .svc-row-heading {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .svc-row-inner--reverse {
        grid-template-columns: 1fr 32%;
    }

    .svc-row-inner--reverse .svc-row-heading {
        order: 2;
    }

    .svc-row-inner--reverse .svc-row-text {
        order: 1;
    }
}

/* Portfolio (stacked: full-width image, then title + copy) */

.portfolio-item {
    margin-bottom: 3.5rem;
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

.portfolio-item img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    margin-bottom: 1.75rem;
}

.portfolio-item h3 {
    color: var(--blue);
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.portfolio-item p {
    max-width: 48rem;
    color: var(--text-light);
}

.portfolio-item ul {
    padding-left: 1.2rem;
    color: var(--text-light);
    max-width: 48rem;
}

.portfolio-item a.site-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.portfolio-item .status-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--alt-bg);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portfolio-item a.site-link.placeholder {
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

/* Contact */

.contact-hero-info {
    padding: 0.5rem 0 1rem;
}

.contact-box {
    max-width: 32rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
    margin: 1.5rem 0;
}

.contact-email:hover {
    color: var(--blue);
}

.contact-detail {
    margin-top: 1.5rem;
}

.contact-detail strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.next-steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    counter-reset: step;
}

.next-steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.next-steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */

footer {
    background-color: #fcfcfc;
    border-top: 1px solid #e5e7eb;
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-wrap a {
    color: var(--text-light);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    color: var(--navy);
}

footer small {
    color: #9aa3ad;
}

/* Responsive */

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

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

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

    .service-row .service-visual {
        order: -1;
        aspect-ratio: 16 / 9;
    }
}

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

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .main-nav ul.open {
        display: flex;
    }

    .main-nav li {
        border-top: 1px solid #e5e7eb;
    }

    .main-nav a {
        display: block;
        padding: 0.9rem 1.5rem;
    }

    .nav-wrap {
        position: relative;
    }

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

    .cta-band .container {
        flex-direction: column;
        text-align: center;
    }

    .teaser-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .teaser-card .see-more {
        align-self: flex-start;
    }
}
