/*
 * boswell.css - the Boswell Surveyors look (navy and brushed silver).
 *
 * Loaded last (after main.css and the inline styles in inc-head.php), so these
 * rules win. Built from the client's mock-ups: a navy header with the firm name set
 * large, full-width photo banners, a silver metallic stats band and call-to-action,
 * picture tiles for the services and side-by-side link panels for the resources.
 * Variable names (--gold ...) are historical: --gold is now the steel/silver accent.
 */

:root {
    --navy:      #0a2757;
    --navy-2:    #14397a;
    --navy-deep: #061a3d;
    --gold:      #9aa4b0;      /* steel accent */
    --gold-lt:   #d5dae0;      /* silver, for use on navy */
    --gold-dk:   #5d6b7c;      /* steel, for text on light backgrounds */
    --paper:     #f3f4f6;
    --paper-2:   #e6e8eb;
    --ink:       #1c2a3d;
    --rule:      rgba(10, 39, 87, .18);
    --serif:     'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    --sans:      'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --hdr-h:     132px;        /* height of the fixed header, used to clear it */

    --primary-color: #9aa4b0;
    --primary-dark:  #5d6b7c;
    --strip-h: 0px;

    /* Brushed silver: a vertical sheen plus fine horizontal grain. */
    --silver: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.012) 1px 2px),
              linear-gradient(112deg, #c5cad1 0%, #e9ecef 24%, #bcc2ca 47%, #e6e9ec 70%, #b6bcc4 100%);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html, body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 17px; }
p { font-family: var(--sans); font-size: 1.05rem; line-height: 1.72; color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; color: var(--navy); letter-spacing: -.005em; }
a, a:hover { color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
.container { max-width: 1240px !important; }
.section { padding: 84px 0; }
em { color: var(--gold-dk) !important; font-style: normal; }

/* ── Moving light across silver ─────────────────────────────────────────────
   Anything silver gets class "metal": a soft diagonal band of light drifts slowly across it,
   so it catches the light like brushed metal. Pure CSS; off for people who ask for less motion. */
.metal { position: relative; overflow: hidden; background: var(--silver); }
.metal::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 43%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 57%, transparent 62%);
    background-size: 260% 100%; background-position: 130% 0;
    animation: metalSheen 7s ease-in-out infinite;
}
.metal > * { position: relative; z-index: 1; }
@keyframes metalSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
/* The sweep is slow, soft and never flashes, so it runs even where the device asks for reduced motion
   (many Windows PCs have animations switched off, which hid it). To honour that setting again, wrap the
   animation lines in  @media (prefers-reduced-motion: no-preference) { ... } */

/* ── Header: one navy block. Name left; phone + button above the menu, right ─ */
.header-area, .header-area.header-sticky, .background-header {
    position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%;
    background: var(--navy) !important; height: auto !important; min-height: 0 !important; padding: 0 !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 22px rgba(6,26,61,.28) !important;
    z-index: 1000;
}
.header-area .container { padding-left: 15px; padding-right: 15px; }
.hdr-grid { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 36px; align-items: center; padding: 14px 0 12px; }
.header-area .main-nav { grid-column: 2; grid-row: 2; justify-self: end; min-height: 0 !important; overflow: visible; background: transparent; }
.header-area .main-nav .nav { float: none; margin: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; background: transparent; }

.main-nav .logo.logo-text, .hdr-grid .logo {
    grid-column: 1; grid-row: 1 / span 2; display: block !important; height: auto !important; float: none !important;
    line-height: 1.05 !important; text-decoration: none; align-self: center; padding: 4px 0 10px; border-bottom: 1px solid rgba(255,255,255,.38);
}
.logo-text .logo-name { display: block; font-family: var(--serif); font-size: clamp(24px, 2.7vw, 42px); line-height: 1.05; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: #c9ced6; white-space: nowrap; }
.logo-text .logo-name b { font-weight: 700; color: #fff; }

.header-area .main-nav .nav li { padding: 0 0 0 30px; }
.header-area .main-nav .nav li a, .background-header .main-nav .nav li a {
    font-family: var(--sans); font-weight: 500; font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
    color: #fff !important; height: auto; padding: 10px 0 9px; border: 0 !important; border-bottom: 3px solid transparent !important; background: transparent !important; opacity: 1;
}
.header-area .main-nav .nav li a:hover, .header-area .main-nav .nav li a.active,
.background-header .main-nav .nav li:hover a, .background-header .main-nav .nav li a.active { color: #fff !important; border-bottom-color: #fff !important; }

/* the top bar (editable): phone and the silver button */
.hdr-grid .secondary-nav {
    grid-column: 2; grid-row: 1; justify-self: end; position: relative !important; top: auto; left: auto; right: auto; z-index: 2;
    background: transparent !important; border: 0; padding: 0; min-height: 0; display: block;
}
.hdr-grid .secondary-nav .container { width: auto; max-width: none !important; padding: 0; }
.secondary-nav-inner { display: flex; justify-content: flex-end; align-items: center; gap: 26px; flex-wrap: nowrap; height: auto; }
.secondary-nav .nav-right { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.secondary-nav .nav-phone { color: #fff !important; font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: .06em; white-space: nowrap; display: inline !important; }
.secondary-nav .nav-phone i { color: #fff; margin-right: 8px; font-size: 22px; vertical-align: -2px; }
.secondary-nav .nav-request-btn {
    position: relative; overflow: hidden; display: inline-block; padding: 0 24px; height: 46px; line-height: 44px; border-radius: 2px; white-space: nowrap;
    font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy) !important;
    background: var(--silver); border: 1px solid #f3f4f6; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 2px 6px rgba(0,0,0,.3);
}
.secondary-nav .nav-request-btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 43%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 57%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: metalSheen 7s ease-in-out infinite;
}
.secondary-nav .nav-request-btn:hover { filter: brightness(1.06); }
.secondary-nav.t-dark .nav-phone, .secondary-nav.t-dark .nav-phone i { color: var(--navy) !important; }

/* phone and tablet: name + menu button on one row, phone and button on the next */
@media (max-width: 991px) {
    :root { --hdr-h: 128px; }
    .hdr-grid { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; row-gap: 8px; padding: 10px 0; }
    .main-nav .logo.logo-text, .hdr-grid .logo { grid-row: 1; padding-bottom: 6px; }
    .logo-text .logo-name { font-size: clamp(22px, 6.2vw, 40px); }
    .header-area .main-nav { grid-column: 1 / -1; grid-row: 3; width: 100%; justify-self: stretch; }
    .hdr-grid .secondary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
    .secondary-nav-inner, .secondary-nav .nav-right { justify-content: space-between; width: 100%; }
    .secondary-nav .nav-phone { font-size: 16px; } .secondary-nav .nav-phone i { font-size: 19px; }
    .secondary-nav .nav-request-btn { height: 38px; line-height: 36px; padding: 0 16px; font-size: 12.5px; }
    .header-area .menu-trigger { display: block !important; position: absolute; top: 10px; right: 6px; width: 40px; height: 40px; z-index: 5; }
    .header-area .main-nav .menu-trigger span, .header-area .main-nav .menu-trigger span:before, .header-area .main-nav .menu-trigger span:after,
    .background-header .main-nav .menu-trigger span, .background-header .main-nav .menu-trigger span:before, .background-header .main-nav .menu-trigger span:after { background-color: #fff; }
    .header-area .main-nav .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; margin: 0 !important; }
    .header-area.header-sticky .nav { margin-top: 0 !important; }
    .header-area .main-nav .nav li { width: 100%; padding: 0 !important; background: var(--navy-deep) !important; border-bottom: 1px solid rgba(255,255,255,.12); }
    .header-area .main-nav .nav li:first-child { border-top: 1px solid rgba(255,255,255,.12); }
    .header-area .main-nav .nav li a, .background-header .main-nav .nav li a { height: auto !important; line-height: 1.2 !important; padding: 16px 20px !important; background: var(--navy-deep) !important; color: #fff !important; text-align: left; }
    .header-area .main-nav .nav li a:hover, .header-area .main-nav .nav li a.active { background: var(--navy-2) !important; border-bottom: 0 !important; }
}
@media (min-width: 992px) and (max-width: 1239px) { .header-area .main-nav .nav li { padding-left: 20px; } .header-area .main-nav .nav li a { font-size: 14px; letter-spacing: .1em; } .secondary-nav .nav-phone { font-size: 15px; } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-bs {
    display: inline-block; border-radius: 2px; background: var(--navy); border: 2px solid var(--navy); color: #fff !important; text-decoration: none !important;
    font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 15px 30px; font-size: .86rem; transition: background .2s, color .2s;
}
.btn-bs .fa { margin-left: 8px; letter-spacing: 0; }
.btn-bs:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff !important; }
.btn-bs.ghost { background: transparent; color: var(--navy) !important; }
.btn-bs.ghost:hover { background: var(--navy); color: #fff !important; }
.contact-panel button[type=submit] { border-radius: 2px; background: var(--navy); color: #fff; letter-spacing: .12em; border: 0; }
.contact-panel button[type=submit]:hover { background: var(--navy-2); }

/* ── Section headings ──────────────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--serif); font-weight: 600; font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dk); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-dk); }
.sec-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0 0 18px; }
.sec-title em { color: var(--gold-dk) !important; }
.section-heading { text-align: left; margin: 0 0 40px; }
.section-heading h2 { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--navy); }
.section-heading img { display: none; }

/* ── Home banner: a full-width photo, text left ────────────────────────── */
.bs-hero {
    min-height: 74vh; justify-content: flex-start; text-align: left; align-items: flex-end; background-color: var(--navy);
    background-image: url(assets/img/topo-hills-gold.svg), linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
    background-size: cover, auto; background-position: 70% 40%, center; background-repeat: no-repeat;
}
.bs-hero.has-bg { background-color: var(--navy); background-image: none; }
.bs-hero::after { background: linear-gradient(90deg, rgba(6,26,61,.72) 0%, rgba(6,26,61,.38) 48%, rgba(6,26,61,.08) 100%); }
.bs-hero .hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--hdr-h) + 90px) 15px 90px; text-align: left; }
.bs-hero .hero-inner > * { max-width: 780px; }
.bs-hero .hero-meta { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; display: flex; align-items: center; gap: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.bs-hero .hero-meta::before { content: ""; width: 64px; height: 3px; background: #fff; flex: none; }
.bs-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 5.8vw, 4.7rem); line-height: 1.04; color: #fff; margin: 0 0 22px; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.bs-hero h1 em { color: #fff !important; }
.bs-hero .hero-lead { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; color: #fff; margin: 0 0 34px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.bs-hero .hero-buttons { justify-content: flex-start; gap: 18px; }
.bs-sec.bs-hero .btn-bs { background: var(--navy); border: 2px solid #fff; color: #fff !important; padding: 18px 34px; }
.bs-sec.bs-hero .btn-bs:hover { background: #fff; color: var(--navy) !important; }
.bs-sec.bs-hero .btn-bs.ghost { background: rgba(6,26,61,.55); }
.bs-sec.bs-hero .btn-bs.ghost:hover { background: #fff; }
.hero-stamp {
    position: absolute; z-index: 3; right: max(24px, calc((100vw - 1240px) / 2 + 15px)); bottom: 110px; width: 150px; height: 150px; border-radius: 50%; border: 2px solid #fff; color: #fff; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 6px rgba(6,26,61,.4); background: rgba(6,26,61,.4);
}
.hero-stamp small { font-size: .62rem; letter-spacing: .3em; color: var(--gold-lt); font-weight: 700; }
.hero-stamp strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; font-weight: 800; }
.hero-logo { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1240px) / 2 + 15px)); bottom: 120px; width: min(460px, 38vw); background: #fff; padding: 22px 26px; border-bottom: 5px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 991px) {
    .hero-stamp { display: none; } .bs-hero .hero-inner { padding: calc(var(--hdr-h) + 50px) 15px 60px; }
    .hero-logo { position: static; width: min(380px, 80%); margin: 0 15px 56px; } .bs-hero { flex-direction: column; justify-content: flex-end; align-items: flex-start; }
}

/* ── Stats band: brushed silver, navy figures ──────────────────────────── */
.statband { background: var(--silver); border-bottom: 1px solid rgba(10,39,87,.15); }
.statband.metal::after { opacity: .9; }
.statband .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.statband .stat { padding: 34px 32px; border-left: 1px solid rgba(10,39,87,.45); color: var(--navy); }
.statband .stat:first-child { border-left: 0; padding-left: 0; }
.statband .stat b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; color: var(--navy); font-weight: 700; }
.statband .stat span { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
@media (max-width: 767px) { .statband .container { grid-template-columns: 1fr 1fr; } .statband .stat:nth-child(3) { border-left: 0; padding-left: 0; } .statband .stat { border-top: 1px solid rgba(10,39,87,.15); padding: 22px 16px; } }

/* ── Intro (home): heading left, copy right ────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.intro-grid .intro-copy { text-align: left; max-width: none; margin: 0; }
.intro-grid .intro-copy p { font-size: 1.12rem; color: var(--ink); }
.textlink { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .84rem; color: var(--navy) !important; border-bottom: 2px solid var(--navy); padding-bottom: 3px; }
.textlink:hover { color: var(--gold-dk) !important; }
@media (max-width: 991px) { .intro-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ── Numbered services (home grid) ─────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; counter-reset: svc; border-top: 3px solid var(--navy); }
.svc-grid > * { counter-increment: svc; }
.svc { display: block; padding: 30px 0 34px; border-bottom: 1px solid var(--rule); color: var(--ink); transition: background .2s; position: relative; }
.svc::before { content: counter(svc, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.svc h5 { font-size: 1.22rem; margin: 0 0 10px; color: var(--navy); }
.svc p { font-size: .98rem; line-height: 1.62; margin: 0; color: #3a4a5a; }
.svc:hover h5 { color: var(--gold-dk); }
.svc .fa { display: none; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-page { counter-reset: svc; }
.svc-page .content-card { counter-increment: svc; }
.svc-page .content-card > .fa { display: none !important; }
.svc-page .content-card::before { content: counter(svc, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }

/* ── Service picture tiles (Cards section, "Picture tiles" look) ───────── */
.svc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.svc-tiles-2 { grid-template-columns: repeat(2, 1fr); } .svc-tiles-4 { grid-template-columns: repeat(4, 1fr); }
.svc-tile {
    position: relative; display: block; min-height: 290px; overflow: hidden; color: #fff !important; text-decoration: none !important;
    background: var(--navy) center / cover no-repeat; border: 1px solid rgba(10,39,87,.25); box-shadow: 0 6px 20px rgba(6,26,61,.18); transition: transform .2s, box-shadow .2s;
}
.svc-tile.no-img { background-image: linear-gradient(160deg, var(--navy-2), var(--navy-deep)); }
.svc-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,61,0) 30%, rgba(6,26,61,.9) 62%, var(--navy-deep) 100%); }
.svc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(6,26,61,.3); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; }
.tile-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1.2; color: #fff; margin-bottom: 8px; }
.tile-text p { margin: 0; font-size: .95rem; line-height: 1.45; color: #e3e8ee; }
.tile-arrow { flex: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, color .2s; }
.svc-tile:hover .tile-arrow { background: #fff; color: var(--navy); }
@media (max-width: 991px) { .svc-tiles, .svc-tiles-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-tiles, .svc-tiles-2, .svc-tiles-4 { grid-template-columns: 1fr; } .svc-tile { min-height: 240px; } }

/* ── Simple service list ───────────────────────────────────────────────── */
.svc-list { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 64px; border-top: 3px solid var(--navy); }
.svc-list li { break-inside: avoid; display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.svc-tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .9rem; margin-top: 2px; }
.svc-list h5 { font-size: 1.2rem; margin: 0 0 4px; color: var(--navy); }
.svc-list p { margin: 0; font-size: .97rem; line-height: 1.55; color: #3a4a5a; }
@media (max-width: 767px) { .svc-list { columns: 1; } }

/* ── Cards become ruled sheets ─────────────────────────────────────────── */
.content-card, .link-card, .res-card, .contact-panel, .faq-item, .pillar { background: #fff; border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
.content-card, .res-card, .contact-panel { border-top: 3px solid var(--navy); }
.content-card:hover, .link-card:hover { border-color: var(--rule); box-shadow: none; transform: none; }
.content-card h5, .res-card h5, .contact-panel h4 { font-family: var(--serif); color: var(--navy); border-bottom: 1px solid var(--rule); }
.content-card p, .content-card li, .res-card p { color: #33414f; }
.content-card ul li::marker, .faq-body ol li::marker { color: var(--navy); }
.contact-panel .form-control { border-radius: 0; border: 1px solid #bfc6cc; background: #fff; }
.contact-panel .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,39,87,.18); }
.contact-line .fa { color: var(--navy); }

/* FAQ: a ruled list */
.faq-item { margin-bottom: 0; border-width: 0 0 1px 0; background: transparent; }
.faq-item:first-of-type { border-top: 3px solid var(--navy); }
.faq-item summary { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); padding: 24px 56px 24px 0; }
.faq-item summary::after { right: 4px; color: var(--navy); }
.faq-item[open] summary { border-bottom: 0; }
.faq-body { padding: 0 0 24px; }

/* ── Inner page banner: centred title over a photo ─────────────────────── */
.inner-hero {
    padding-top: calc(var(--hdr-h) + 70px); padding-bottom: 70px; color: var(--navy); text-align: center; background-color: var(--paper-2); background-image: none;
    background: var(--silver); border-bottom: 1px solid var(--rule);
}
.inner-hero.has-bg { background: var(--navy); }
.inner-hero .container { text-align: center; }
.hero-layout { align-items: center; text-align: center; }
.hero-copy { max-width: 900px; margin: 0 auto; }
.inner-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.08; color: var(--navy); margin-bottom: 14px; }
.inner-hero h1 em { color: var(--navy) !important; }
.hero-rule { width: min(520px, 80%); height: 2px; background: var(--navy); margin: 0 auto 20px; }
.inner-hero .hero-divider, .inner-hero > .container > img, .section-heading img, .inner-hero img[src*="line-dec"] { display: none; }
.inner-hero .hero-tagline { color: var(--navy); font-family: var(--serif); font-style: normal; font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.3rem); letter-spacing: .26em; text-transform: uppercase; line-height: 1.7; margin: 0 auto 14px; max-width: 760px; }
.inner-hero .page-intro { color: #33414f; max-width: 760px; margin: 0 auto; font-size: 1.12rem; line-height: 1.7; }
.inner-hero .text-center { text-align: center !important; }
.hero-figure img { border-radius: 0; border: 1px solid var(--rule); box-shadow: none; }
@media (max-width: 768px) { .inner-hero { padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 44px; } .inner-hero .hero-tagline { letter-spacing: .16em; } }

/* ── Call to action: a light silver band, centred ──────────────────────── */
.bs-cta {
    text-align: center; padding: 64px 0 70px; background: var(--silver); position: relative; overflow: hidden;
}
.bs-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(10,39,87,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(10,39,87,.07) 1px, transparent 1px); background-size: 38px 38px; }
.bs-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 43%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 57%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: metalSheen 7s ease-in-out infinite; }
.bs-cta .container { position: relative; z-index: 1; display: block; }
.bs-cta h2 { font-family: var(--serif); color: var(--navy); font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 10px; }
.bs-cta h2 em { color: var(--navy) !important; }
.bs-cta p { color: var(--navy); margin: 0 auto 26px; max-width: 700px; font-family: var(--serif); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 1rem; line-height: 1.7; }
.bs-cta .cta-actions { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; }
.bs-cta .cta-phone { display: inline; margin: 0; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); white-space: nowrap; }
.bs-cta a { color: var(--navy); }
.bs-sec.bs-cta .btn-bs { background: var(--navy); border-color: var(--navy); color: #fff !important; padding: 18px 38px; }
.bs-sec.bs-cta .btn-bs:hover { background: var(--navy-2); }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer.site-footer { position: relative; background: var(--navy-deep); border-top: 5px solid var(--gold-lt); padding: 64px 0 0; }
footer.site-footer.has-bg { background-color: var(--navy-deep); }
footer.site-footer .footer-col h5 { font-family: var(--serif); color: #fff; text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 700; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
footer.site-footer .footer-col ul li, footer.site-footer .footer-col ul li a { color: #c3ccd6; font-size: .98rem; line-height: 1.6; }
footer.site-footer .footer-col ul li a:hover { color: #fff; }
footer.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 20px; padding: 22px 0; text-align: left; }
footer.site-footer .footer-bottom p { color: #9fb0c2; font-size: .88rem; }

/* Home intro: a compass rose in the lower-right corner. */
section.sec-about { position: relative; overflow: hidden; }
section.sec-about:not(.has-bg)::before { content: ""; position: absolute; right: -70px; bottom: -110px; width: 430px; height: 430px; pointer-events: none; background: url(assets/img/survey-compass-navy.svg) no-repeat center / contain; opacity: .8; }
@media (max-width: 767px) { section.sec-about:not(.has-bg)::before { width: 280px; height: 280px; right: -60px; bottom: -70px; } }

/* ── Photos, photo with text ───────────────────────────────────────────── */
.photos-sec { padding: 56px 0 8px; }
.photo-row { display: grid; gap: 22px; }
.photo-row.photos-2 { grid-template-columns: 1fr 1fr; } .photo-row.photos-3 { grid-template-columns: repeat(3, 1fr); }
.photo-row figure { margin: 0; overflow: hidden; border-bottom: 5px solid var(--navy); background: var(--paper-2); }
.photo-row img { display: block; width: 100%; object-fit: cover; height: 360px; }
.photo-h-short img { height: 240px; } .photo-h-tall img { height: 480px; }
.photo-row.photos-1 img { height: 420px; } .photo-row.photos-1.photo-h-short img { height: 300px; } .photo-row.photos-1.photo-h-tall img { height: 560px; }
.photo-caption { margin: 14px 0 0; font-family: var(--serif); font-style: italic; color: #4a5866; }
@media (max-width: 767px) { .photo-row.photos-2, .photo-row.photos-3 { grid-template-columns: 1fr; } .photo-row img, .photo-h-tall img, .photo-row.photos-1 img { height: 240px; } }

.imgtext { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.imgtext-right { grid-template-columns: 7fr 5fr; } .imgtext-right figure { order: 2; }
.imgtext-large { grid-template-columns: 1fr 1fr; }
.imgtext-small { grid-template-columns: 3fr 9fr; } .imgtext-small.imgtext-right { grid-template-columns: 9fr 3fr; }
.imgtext figure { margin: 0; border-bottom: 5px solid var(--navy); background: var(--paper-2); overflow: hidden; }
.imgtext figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.imgtext-empty { padding: 60px 20px; text-align: center; color: #6a7480; font-style: italic; }
.imgtext-nopic { grid-template-columns: 1fr; }
.imgtext-copy p { font-size: 1.08rem; }
@media (max-width: 991px) { .imgtext, .imgtext-right, .imgtext-large, .imgtext-small, .imgtext-small.imgtext-right { grid-template-columns: 1fr; gap: 28px; } .imgtext-right figure { order: 0; } }

/* ── Resources: link panels side by side ───────────────────────────────── */
.res-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; align-items: start; }
.res-panel { background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(6,26,61,.22); }
.res-panel h3 { margin: 0; padding: 16px 12px 15px; background: var(--navy); color: #fff; text-align: center; font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.res-body { padding: 16px; display: grid; gap: 11px; }
.res-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--navy);
    color: var(--navy) !important; text-decoration: none !important; transition: background .16s, color .16s;
}
.res-btn b { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; font-weight: 700; }
.res-btn small { display: block; margin-top: 2px; font-size: .84rem; color: #5c6b7a; }
.res-btn .fa { flex: none; }
a.res-btn:hover { background: var(--navy); color: #fff !important; }
a.res-btn:hover small { color: #d6dde4; }
@media (max-width: 767px) { .res-cols { grid-template-columns: 1fr; } }

/* Social icons from Site Settings */
.bs-social { display: flex; gap: 10px; margin-top: 20px; }
.bs-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff !important; font-size: 1.15rem; transition: background .18s; }
.bs-social a:hover { background: var(--navy-2); }
.bs-sec .svc-tile .tile-text p { color: #e6ebf1 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bs-sec .svc-tile .tile-title { color: #fff !important; }
.svc-tile { min-height: 300px; }

/* Phones: keep the name clear of the menu button and the top bar inside the screen. */
@media (max-width: 991px) {
    .hdr-grid { min-width: 0; }
    .hdr-grid .logo { padding-right: 52px; min-width: 0; }
    .hdr-grid .secondary-nav, .hdr-grid .secondary-nav .container { width: 100%; min-width: 0; }
}
@media (max-width: 575px) {
    .logo-text .logo-name { font-size: clamp(15px, 4.5vw, 21px); letter-spacing: 0; }
    .secondary-nav-inner, .secondary-nav .nav-right { gap: 10px; }
    .secondary-nav .nav-phone { font-size: 14px; letter-spacing: .02em; } .secondary-nav .nav-phone i { font-size: 17px; margin-right: 5px; }
    .secondary-nav .nav-request-btn { padding: 0 12px; font-size: 11px; letter-spacing: .08em; height: 34px; line-height: 32px; }
}

/* The middle Resources panel carries the NC map: dark glass, no title bar. */
.res-panel.has-map { background: rgba(6,26,61,.84); box-shadow: 0 10px 30px rgba(6,26,61,.3); }
.res-panel.has-map h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.res-map { padding: 6px 4px 8px; }
.res-map img { display: block; width: 100%; height: auto; }
.res-panel.has-map .res-body { padding-top: 22px; }
.res-panel.has-map .res-btn { background: rgba(10,39,87,.92); border-color: rgba(255,255,255,.55); color: #fff !important; }
.res-panel.has-map a.res-btn:hover { background: #fff; color: var(--navy) !important; }

/* Home banner as in the mock-up: the whole heading white, and banner + stats band fill the first screen. */
.bs-sec.bs-hero h1 em, .bs-sec.t-light.bs-hero h1 em { color: #fff !important; }
.bs-hero { min-height: max(560px, calc(100vh - 170px)); background-position: center, center; }
.bs-hero.has-bg .bg-layer .slide { object-position: center 55%; }
/* Sizes and colours measured against the client's home mock-up. */
.bs-sec.bs-hero .btn-bs { background: var(--navy) !important; border: 2px solid #fff !important; color: #fff !important; padding: 22px 38px; font-size: .98rem; }
.bs-sec.bs-hero .btn-bs:hover { background: #fff !important; color: var(--navy) !important; }
.bs-sec.bs-hero .btn-bs.ghost { background: rgba(6,26,61,.55) !important; }
.bs-sec.bs-hero .btn-bs.ghost:hover { background: #fff !important; }
.bs-hero .hero-meta { font-size: clamp(.95rem, 1.35vw, 1.3rem); letter-spacing: .07em; }
.bs-hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.bs-hero .hero-lead { font-size: clamp(1.25rem, 2.1vw, 1.9rem); }
.statband .container { max-width: 1500px !important; }
.statband .stat { padding: 38px 44px; }
.statband .stat:first-child { padding-left: 15px; }
.statband .stat b { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.statband .stat span { font-size: clamp(1rem, 1.5vw, 1.35rem); white-space: nowrap; }
@media (max-width: 991px) { .statband .stat span { white-space: normal; } .statband .stat { padding: 24px 18px; } }
.bs-sec.bs-hero.t-light .btn-bs, .bs-sec.bs-hero.t-dark .btn-bs { background: var(--navy) !important; border-color: #fff !important; color: #fff !important; }
.bs-sec.bs-hero.t-light .btn-bs:hover { background: #fff !important; color: var(--navy) !important; }
.bs-sec.bs-hero.t-light .btn-bs.ghost { background: rgba(6,26,61,.55) !important; }
.bs-sec.bs-hero.t-light .btn-bs.ghost:hover { background: #fff !important; color: var(--navy) !important; }

/* ── About and Contact: the same panels as the rest of the site ───────────── */
.text-panel { background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(6,26,61,.16); max-width: 980px; margin: 0 auto; }
.text-panel .panel-title { margin: 0; padding: 18px 16px 17px; background: var(--navy); color: #fff; text-align: center; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.text-panel .panel-title em { color: #fff !important; }
.text-panel .panel-body { padding: 34px 40px 38px; }
.text-panel .panel-body p { font-size: 1.14rem; line-height: 1.8; margin-bottom: 1rem; }
.bs-sec.t-dark .text-panel .panel-title, .bs-sec.t-light .text-panel .panel-title { color: #fff; }
.bs-sec .text-panel .panel-body p { color: #2a3a4d; }
@media (max-width: 767px) { .text-panel .panel-body { padding: 24px 20px 28px; } }

.sec-contact .row.g-4 { align-items: flex-start; }
.contact-panel { padding: 0 0 30px !important; background: rgba(255,255,255,.97); border: 0; border-top: 0; box-shadow: 0 10px 30px rgba(6,26,61,.16); }
.contact-panel h4 { margin: 0 0 26px; padding: 17px 14px 16px; background: var(--navy); color: #fff; text-align: center; font-size: 1.65rem; border: 0; }
.contact-panel > :not(h4) { margin-left: 30px; margin-right: 30px; }
.contact-panel .contact-line { font-size: 1.08rem; margin-bottom: 20px; align-items: flex-start; }
.contact-panel .contact-line .fa { font-size: 1.35rem; width: 28px; margin-top: 2px; color: var(--navy); }
.contact-panel label { font-size: .95rem; }
.contact-panel .form-control { padding: 12px 14px; font-size: 1rem; }
.contact-panel button[type=submit].btn-bs { padding: 16px 34px; }
.contact-panel .bs-social { margin-top: 26px; }
.bs-sec .contact-panel h4, .bs-sec.t-dark .contact-panel h4 { color: #fff !important; }
.secondary-nav .nav-request-btn { isolation: isolate; }
.secondary-nav .nav-request-btn::after { z-index: -1; }

/* Silver page banners (no photo) get the moving light too. */
.inner-hero:not(.has-bg) { position: relative; overflow: hidden; }
.inner-hero:not(.has-bg)::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 43%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 57%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: metalSheen 7s ease-in-out infinite;
}
.inner-hero:not(.has-bg) .container { position: relative; z-index: 1; }
