/* ============================================================
   National Phone & Data - Shared Site Stylesheet
   File: assets/site.css
   Version: 1.6.0
   ------------------------------------------------------------
   Changelog:
   1.6.0 - Added error-page styles to the standard (.error-hero,
           .error-code, .error-actions) and rebuilt the site error
           pages (401-502) on the new design.
   1.5.1 - Stop sideways scroll on mobile: buttons now wrap instead
           of forcing width (long Contact submit button was the
           cause), plus a site-wide overflow-x: clip guard on <html>.
   1.5.0 - Fixed mobile header overflow: the wide wordmark was
           pushing the hamburger/phone off-screen. Logo now scales
           down on small screens, the menu button is pinned to the
           right, and the phone/CTA collapse on phones (<=640px).
   1.4.1 - Lifted the hero line motif up off the bottom edge
           (hero ~42px, page header ~24px).
   1.4.0 - Brand line motif now part of the theme: the logo's own
           lines (images/NPD_Lines.svg) appear large, faded and
           white in the bottom-right of the home hero and interior
           page headers.
   1.3.1 - Reverted the home brand band experiment.
   1.2.1 - Prevent nav links wrapping (e.g. "About Us" breaking
           onto two lines) via white-space: nowrap.
   1.2.0 - Subtle brand-sand accents: thin sand band on top of the
           footer, sand under-rule beneath section eyebrows, and
           sand left-accent on testimonials.
   1.1.2 - Removed the white chip behind the footer logo; the SVG
           now sits directly on the footer background.
   1.1.1 - Reverted to the original colour logo everywhere.
           Removed the hero logo (duplicated the header). White
           reversed logo retained in /images for future use.
   1.1.0 - Aligned palette to official brand green #008350 and
           introduced brand sand (#B8AE8D) as the accent. Reworked
           footer to show the reversed (white) vector logo without
           a chip. Updated focus/shadow tints to match.
   1.0.0 - Initial modern redesign. Shared design system for all
           CoreWebsite pages: tokens, header/nav (CSS-only mobile
           menu), hero, sections, cards, split rows, buttons,
           forms, testimonials, legal lists and footer.
   ============================================================ */

/* ----------------------------------------------------------
   Design tokens
---------------------------------------------------------- */
:root {
    --green: #008350;
    --green-dark: #006B41;
    --green-darker: #00482C;
    --green-soft: #E3F1E9;
    --green-tint: #F1F8F4;
    --accent: #B8AE8D;
    --sand: #B8AE8D;
    --sand-soft: #EFEBDF;
    --ink: #1A2B22;
    --body: #33433C;
    --muted: #6B7C73;
    --surface: #FFFFFF;
    --bg: #F4F7F5;
    --border: #E2EAE5;
    --shadow-sm: 0 1px 2px rgba(20, 60, 40, .06), 0 2px 8px rgba(20, 60, 40, .05);
    --shadow-md: 0 6px 20px rgba(20, 60, 40, .10);
    --shadow-lg: 0 18px 48px rgba(20, 60, 40, .16);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --maxw: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
    --transition: .2s ease;
}

/* ----------------------------------------------------------
   Reset & base
---------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .4rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    white-space: normal;
    text-align: center;
    max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 131, 80, .3); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); color: var(--green-darker); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--green-dark); }

/* ----------------------------------------------------------
   Header & navigation (CSS-only mobile menu)
---------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1.25rem;
    max-width: var(--maxw);
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { max-height: 54px; width: auto; }

.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .55rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.nav-toggle-label span {
    width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px;
    transition: var(--transition);
}

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--green-dark); background: var(--green-soft); }
.main-nav a.active { color: var(--green-dark); background: var(--green-soft); }

.header-cta { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-phone { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.header-phone span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 980px) {
    .nav-toggle-label { display: flex; margin-left: auto; }
    .brand img { max-height: 46px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: .5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .3s ease, opacity .2s ease;
    }
    .nav-toggle:checked ~ .main-nav { max-height: 480px; opacity: 1; pointer-events: auto; }
    .main-nav a { padding: .85rem 1rem; border-radius: 10px; }
    /* CTA moves after the hamburger so the menu button stays on the right */
    .header-cta { order: 3; gap: .6rem; }
    .header-cta .header-phone span { display: none; }
    .header-cta .btn { display: none; }
}
@media (max-width: 640px) {
    .header-inner { gap: .5rem; }
    .brand img { max-height: 36px; }
    /* On phones, drop the header phone text; the hamburger sits far right */
    .header-cta { display: none; }
}

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
        linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 45%, var(--green) 100%);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px; bottom: -160px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
    border-radius: 50%;
}
/* Brand line motif: large, faded, bottom-right. Uses the logo's own
   lines (images/NPD_Lines.svg); rendered white via filter so they
   read on the dark green. Geometry is unchanged. */
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url(../images/NPD_Lines.svg) no-repeat;
    background-position: right -10px bottom 42px;
    background-size: min(1040px, 92%) auto;
    filter: brightness(0) invert(1);
    opacity: .16;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 2.5rem;
    padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
    max-width: var(--maxw);
    margin: 0 auto;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 56ch; }
.hero .eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: rgba(255,255,255,.16);
    padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.hero-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}
.hero-figure {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
}

/* Compact page header (interior pages) */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 360px at 85% -30%, rgba(255,255,255,.16), transparent 60%),
        linear-gradient(135deg, var(--green-darker), var(--green-dark) 70%, var(--green));
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url(../images/NPD_Lines.svg) no-repeat;
    background-position: right -10px bottom 24px;
    background-size: min(720px, 82%) auto;
    filter: brightness(0) invert(1);
    opacity: .14;
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 4vw, 3.25rem) 1.25rem; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 65ch; margin-bottom: 0; }
.page-hero .eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16);
    padding: .35rem .85rem; border-radius: 999px; margin-bottom: .9rem;
}
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .6rem; }
.breadcrumb a { color: rgba(255,255,255,.95); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Error pages (404, 500, etc.) - centred message on the green hero */
.error-hero .page-hero-inner {
    text-align: center;
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}
.error-code {
    font-size: clamp(4rem, 13vw, 7.5rem);
    font-weight: 800; line-height: 1; letter-spacing: -.02em;
    color: #fff;
}
.error-hero h1 { margin: .25rem 0 .75rem; }
.error-hero p { margin-left: auto; margin-right: auto; }
.error-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.85rem; }

/* ----------------------------------------------------------
   Sections & layout
---------------------------------------------------------- */
.section { padding: clamp(2.5rem, 5vw, 4.25rem) 0; }
.section-sm { padding: clamp(1.75rem, 3vw, 2.5rem) 0; }
.section-tint { background: var(--green-tint); }
.section-soft { background: var(--green-soft); }

.section-head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.section-head .eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--green-dark); margin-bottom: .6rem;
}
.section-head .eyebrow::after {
    content: ""; display: block; width: 38px; height: 3px; border-radius: 2px;
    background: var(--sand); margin: .55rem auto 0;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.lead { font-size: 1.12rem; color: var(--body); }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--green-soft); color: var(--green-dark);
    margin-bottom: 1rem; font-size: 1.5rem;
}

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split (image + text) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split + .split { margin-top: clamp(2rem, 4vw, 3.5rem); }
.split h2 { margin-bottom: .9rem; }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
}

/* Generic surface panel used for content/legal pages */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.5rem, 4vw, 2.75rem);
}
.panel + .panel { margin-top: 1.6rem; }
.panel h2 { color: var(--green-dark); margin-bottom: 1rem; }
.panel h3 { color: var(--green-dark); margin-bottom: .75rem; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { list-style: disc; }

/* Pill / anchor navigation */
.pill-nav {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    margin-bottom: 2rem;
}
.pill-nav a {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--green-dark);
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: .95rem;
}
.pill-nav a:hover { background: var(--green); color: #fff; border-color: var(--green); }

.back-top { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; margin-top: 1rem; color: var(--muted); }
.back-top:hover { color: var(--green-dark); }

/* Highlights & badges */
.highlight { color: var(--green-dark); font-weight: 700; }
.keep-badge { color: #B23A2E; font-weight: 800; }
.tag {
    display: inline-block; background: var(--sand-soft); color: #796E4B;
    font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px;
}

/* Quote / testimonial */
.quote-banner {
    background: var(--green);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    text-align: center;
    background-image: linear-gradient(135deg, var(--green-dark), var(--green));
    box-shadow: var(--shadow-md);
}
.quote-banner p { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; margin-bottom: 0; font-style: italic; }

.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--sand);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.testimonial .quote { font-style: italic; color: var(--body); margin-bottom: 1rem; }
.testimonial .author { font-weight: 800; color: var(--green-dark); margin-bottom: 0; }
.testimonial .role { color: var(--muted); font-size: .9rem; }

/* Download / link list items */
.link-list { list-style: none; margin: 0; display: grid; gap: .75rem; }
.link-list li { margin: 0; }
.doc-link {
    display: flex; align-items: center; gap: .9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.doc-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green); color: var(--green-dark); }
.doc-link .file-ico {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: var(--green-soft); color: var(--green-dark);
    display: grid; place-items: center; font-size: .72rem; font-weight: 800;
}
.doc-link .meta { font-weight: 500; color: var(--muted); font-size: .85rem; }

/* ----------------------------------------------------------
   Forms
---------------------------------------------------------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 131, 80, .15);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { color: var(--muted); font-size: .9rem; }
.feedback { margin-top: 1rem; font-weight: 700; }

.info-card {
    background: var(--green-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}
.info-card .info-row { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.info-card .info-row:last-child { margin-bottom: 0; }
.info-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
}
.info-card .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-card .value { font-weight: 800; color: var(--ink); font-size: 1.1rem; }

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
.site-footer {
    background: var(--green-darker);
    color: rgba(255,255,255,.82);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
    margin-top: 0;
    border-top: 4px solid var(--sand);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; display: grid; gap: .55rem; }
.footer-links li { margin: 0; }
.footer-brand img {
    max-height: 56px; width: auto; margin-bottom: 1.1rem;
}
.footer-brand p { color: rgba(255,255,255,.72); font-size: .95rem; max-width: 38ch; }
.footer-phone { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-bottom {
    max-width: var(--maxw);
    margin: 2rem auto 0;
    padding: 1.25rem 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.16);
    display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between;
    font-size: .85rem; color: rgba(255,255,255,.65);
}
.footer-bottom strong { color: rgba(255,255,255,.85); }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ----------------------------------------------------------
   Helpers
---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.cta-band {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.4rem; }
