/* ============================================================
   Pacific Lumber & Truss - Shared inner-page styling
   Loaded via $page_css on about / lumber / trusses / careers /
   gallery / quote. Modernizes the shared .page-header hero,
   .product-card grid and section typography. Palette from main.css.
   ============================================================ */

.pg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Modern page hero ------------------------------------------------- */
.page-header {
    min-height: 46vh !important;
    padding: 120px 0 64px !important;
    background-color: var(--color-primary);
}
.page-header h1 {
    font-size: clamp(34px, 5vw, 56px) !important;
    letter-spacing: -.5px;
}
.page-header-sub {
    position: relative; z-index: 2;
    max-width: 620px; margin: 16px auto 0;
    color: rgba(255,255,255,0.9);
    font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.65; text-align: center;
}
.page-header .breadcrumb {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.22);
    margin-top: 22px !important;
    border-radius: 100px !important;
}
.page-header .breadcrumb a, .page-header .breadcrumb span { color: #fff !important; }
.page-header .breadcrumb a { opacity: .85; }
.page-header .breadcrumb a:hover { opacity: 1; }
.page-header .breadcrumb svg { fill: rgba(255,255,255,0.7) !important; }

/* --- Section heading -------------------------------------------------- */
.pg-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.pg-head.left { margin-left: 0; text-align: left; }
.pg-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--color-secondary); margin-bottom: 12px;
}
.pg-head h2 { color: var(--color-primary); font-size: clamp(27px, 3.3vw, 38px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.pg-head h2 em, .pg-head h2 .txt-color { color: var(--color-secondary); font-style: normal; }
.pg-head p { color: #5b626d; font-size: 16.5px; line-height: 1.7; margin: 0; }

/* Standalone section h2 (pages that use a plain <h2>) */
.section > .container > h2.text-center,
.section > .pg-wrap > h2.text-center { color: var(--color-primary); font-size: clamp(27px,3.3vw,38px); letter-spacing: -.5px; }

/* --- Modernised product cards ---------------------------------------- */
.product-card-grid { gap: 28px !important; }
.product-card {
    border-radius: 16px !important;
    border: 1px solid #e6e9ef;
    box-shadow: 0 6px 22px rgba(28,46,92,0.08) !important;
}
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(28,46,92,0.16) !important;
    border-color: #d4dbe8;
}
.product-card .product-card-img { height: 230px !important; transition: transform .5s ease; }
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card .product-card-icon {
    bottom: 16px !important; left: 16px !important;
    width: 56px !important; height: 56px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    box-shadow: 0 6px 16px rgba(13,109,98,0.3);
}
.product-card .product-card-body { padding: 24px !important; }
.product-card .product-card-body h4 { color: var(--color-primary); font-size: 19px !important; margin-bottom: 8px !important; }
.product-card .product-card-body p { color: #5b626d; font-size: 14.5px !important; line-height: 1.65 !important; }

/* --- Feature split (about / capabilities) ---------------------------- */
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.pg-split img.pg-media { width: 100%; border-radius: 18px; box-shadow: 0 18px 44px rgba(28,46,92,0.2); aspect-ratio: 4/3; object-fit: cover; }

/* --- Reusable CTA band ------------------------------------------------ */
.pg-cta {
    position: relative; border-radius: 22px; overflow: hidden;
    padding: 58px 40px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #143f52 55%, var(--color-secondary) 100%);
}
.pg-cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -.5px; }
.pg-cta p { color: rgba(255,255,255,0.9); font-size: 16.5px; line-height: 1.6; margin: 0 0 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.pg-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: var(--color-primary);
    font-weight: 600; font-size: 16px; text-decoration: none;
    padding: 14px 28px; border-radius: 11px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
    transition: transform .16s ease, box-shadow .16s ease;
}
.pg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.28); }
.pg-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
    .product-card-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .pg-split { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 620px) {
    .product-card-grid { grid-template-columns: 1fr !important; }
    .page-header { min-height: 38vh !important; padding: 100px 0 48px !important; }
    .pg-cta { padding: 42px 22px; }
}

/* ============================================================
   HERO POLISH + DARK-BACKGROUND TEXT FIXES
   ============================================================ */

/* Remove the dated white checkerboard shapes from the hero */
.page-header .shape-bottom-left,
.page-header .shape-top-right { display: none !important; }

/* Cleaner hero: subtle teal corner glow + bottom fade for text depth,
   crisp teal base line. Sits above the page's inline overlay (z-index auto)
   but below the content container (z-index 2). */
.page-header { border-bottom: 3px solid var(--color-secondary); }
.page-header::after {
    content: "";
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(95,214,194,0.22), transparent 42%),
        linear-gradient(180deg, transparent 55%, rgba(16,24,48,0.45) 100%);
}

/* Teal accents must be a LIGHT teal on dark backgrounds - the brand teal
   #0D6D62 is nearly invisible on the dark navy overlay. */
.text-white .txt-color { color: var(--color-teal-light) !important; }
.timeline-entry-number span { color: var(--color-teal-light) !important; }

/* ============================================================
   Service Area page (service-area.php)
   ============================================================ */
.sa-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.sa-card {
    background:#fff; border:1px solid #e6e9ef; border-radius:14px;
    padding:24px 22px; border-top:3px solid var(--color-secondary);
    transition:transform .2s ease, box-shadow .2s ease;
}
.sa-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(28,46,92,.12); }
.sa-card h3 { color:var(--color-primary); font-size:17px; margin:0 0 5px; }
.sa-card > p { color:#6b7280; font-size:13.5px; line-height:1.5; margin:0 0 14px; }
.sa-towns { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:7px; }
.sa-towns li {
    background:#f3f6fa; color:#41506a; font-size:13px; font-weight:500;
    padding:5px 11px; border-radius:100px;
}

.sa-feat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.sa-feat {
    background:#fff; border:1px solid #e6e9ef; border-radius:14px; padding:26px 24px;
}
.sa-feat h3 { color:var(--color-primary); font-size:18px; margin:0 0 8px; }
.sa-feat p { color:#5b626d; font-size:14.5px; line-height:1.65; margin:0; }
.sa-feat a { color:var(--color-secondary); font-weight:600; text-decoration:none; }
.sa-feat a:hover { text-decoration:underline; }

.sa-map-split { display:grid; grid-template-columns:1fr 1.1fr; gap:40px; align-items:center; }
.sa-map-wrap {
    border-radius:16px; overflow:hidden; border:1px solid #e6e9ef;
    box-shadow:0 8px 28px rgba(28,46,92,.12); background:#eef0f4; line-height:0;
}
.sa-map-wrap img { width:100%; height:auto; display:block; }
.sa-info { list-style:none; margin:20px 0 22px; padding:0; }
.sa-info li { display:flex; gap:14px; padding:9px 0; border-bottom:1px solid #e9edf3; font-size:14.5px; color:#5b626d; line-height:1.6; }
.sa-info li:last-child { border-bottom:0; }
.sa-info .sa-k { color:var(--color-primary); font-weight:600; min-width:70px; flex:0 0 auto; }
.sa-info a { color:var(--color-secondary); font-weight:600; text-decoration:none; }

.sa-faq {
    background:#fff; border:1px solid #e6e9ef; border-radius:12px;
    padding:20px 22px; margin-bottom:12px;
}
.sa-faq h3 { color:var(--color-primary); font-size:16.5px; margin:0 0 8px; }
.sa-faq p { color:#5b626d; font-size:14.5px; line-height:1.65; margin:0; }
.sa-faq a { color:var(--color-secondary); font-weight:600; text-decoration:none; }
.sa-faq a:hover { text-decoration:underline; }

@media (max-width:900px) {
    .sa-grid { grid-template-columns:repeat(2,1fr); }
    .sa-feat-grid { grid-template-columns:1fr; }
    .sa-map-split { grid-template-columns:1fr; gap:26px; }
}
@media (max-width:560px) {
    .sa-grid { grid-template-columns:1fr; }
}

/* ============================================================
   Span Tables page (span-tables.php)
   ============================================================ */
.st-vars { margin:18px 0; padding-left:22px; color:#4a5160; }
.st-vars li { margin-bottom:8px; line-height:1.6; }
.st-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:12px; border:1px solid #e6e9ef; box-shadow:0 4px 18px rgba(28,46,92,.07); }
.st-table { width:100%; border-collapse:collapse; font-size:14px; min-width:640px; background:#fff; }
.st-table thead th {
    background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));
    color:#fff; font-weight:600; font-size:13px; padding:11px 12px; text-align:center; white-space:nowrap;
}
.st-table thead th:nth-child(2), .st-table thead th:nth-child(3) { text-align:left; }
.st-table td { padding:9px 12px; text-align:center; border-bottom:1px solid #eef1f6; color:#3f4757; white-space:nowrap; }
.st-table td:nth-child(2), .st-table td:nth-child(3) { text-align:left; }
.st-table tbody tr:hover td { background:#f5f8fc; }
.st-table .st-alt td { background:#fafbfd; }
.st-table .st-alt tr:hover td, .st-table tr:hover .st-sp { background:#f5f8fc; }
.st-table .st-sp {
    background:var(--color-primary) !important; color:#fff; font-weight:700; font-size:14px;
    text-align:center; vertical-align:middle; border-bottom:2px solid #fff;
}
.st-note { font-size:13px; color:#6b7280; margin-top:12px; font-style:italic; }

.st-disclaimer {
    background:#fff8 ; background:#fffaf3; border:1px solid #f0e2cc; border-left:4px solid #d9a441;
    border-radius:12px; padding:22px 24px;
}
.st-disclaimer h3 { color:#a4620d; font-size:17px; margin:0 0 10px; }
.st-disclaimer p { color:#5b5142; font-size:14.5px; line-height:1.65; margin:0 0 12px; }

/* ============================================================
   Fast Frame featured video (trusses.php)
   ============================================================ */
.ff-sec {
    background:
        radial-gradient(circle at 80% 15%, rgba(95,214,194,.14), transparent 45%),
        linear-gradient(160deg, var(--color-primary) 0%, #123a44 60%, var(--color-secondary) 130%);
}
.ff-video {
    position:relative; max-width:960px; margin:0 auto;
    border-radius:16px; overflow:hidden;
    box-shadow:0 24px 60px rgba(0,0,0,.38);
    aspect-ratio:16/9; background:#0b1830;
}
.ff-video-el { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

.ff-sound {
    position:absolute; left:14px; bottom:14px; z-index:2;
    display:inline-flex; align-items:center; gap:8px;
    padding:9px 15px 9px 12px; border:0; border-radius:100px;
    background:rgba(12,22,44,.62); color:#fff; cursor:pointer;
    font-family:var(--font-primary); font-size:13.5px; font-weight:600;
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    transition:background .16s ease, transform .16s ease;
    -webkit-tap-highlight-color:transparent;
}
.ff-sound:hover { background:rgba(12,22,44,.82); transform:translateY(-1px); }
.ff-sound svg { width:18px; height:18px; flex:0 0 auto; }
.ff-unmuted .ff-sound { background:var(--color-secondary); }

/* fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .ff-video { height:0; padding-bottom:56.25%; }
}
@media (max-width:600px){
    .ff-sound .ff-sound-txt { display:none; }
    .ff-sound { padding:10px; }
}

/* Hero "Watch Fast Frame" button (trusses.php) — sits on the dark hero */
.hero-watch {
    display:inline-flex; align-items:center; gap:11px;
    margin-top:22px; padding:12px 22px 12px 14px;
    border:1.5px solid rgba(255,255,255,.55); border-radius:100px;
    background:rgba(255,255,255,.08); color:#fff;
    font-family:var(--font-primary); font-size:15.5px; font-weight:600;
    text-decoration:none; cursor:pointer;
    -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero-watch:hover { background:rgba(255,255,255,.18); border-color:#fff; transform:translateY(-2px); color:#fff; }
.hero-watch-play {
    display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; border-radius:50%;
    background:var(--color-secondary); flex:0 0 auto;
}
.hero-watch-play svg { width:13px; height:13px; margin-left:2px; }

/* ============================================================
   Interactive delivery map (inline SVG) — includes/delivery-map.php
   Hover/tap Oregon or Washington to highlight + reveal towns.
   ============================================================ */
.pl-map { width: 100%; }
.pl-map-svg {
    width: 100%; height: auto; display: block;
    background: linear-gradient(160deg, #eef3f9, #e4ecf4);
    border: 1px solid #e6e9ef; border-bottom: 0;
    border-radius: 16px 16px 0 0;
}
/* context states (CA / NV / ID) */
.pl-ctx { fill: #dfe4ec; stroke: #fff; stroke-width: 1; }
/* delivery states */
.pl-state {
    fill: var(--color-secondary); stroke: #fff; stroke-width: 1.5;
    cursor: pointer; transition: fill .2s ease;
}
.pl-state:hover, .pl-state:focus { outline: none; }
.pl-map-svg[data-active] .pl-state { fill: #a7cfc9; }              /* dim the non-active state */
.pl-map-svg[data-active="OR"] .pl-state[data-state="OR"],
.pl-map-svg[data-active="WA"] .pl-state[data-state="WA"] { fill: var(--color-primary); }  /* active → navy */

/* city markers — hidden until their state is active */
.pl-cities { opacity: 0; transition: opacity .22s ease; pointer-events: none; }
.pl-map-svg[data-active="OR"] .pl-cities[data-for="OR"],
.pl-map-svg[data-active="WA"] .pl-cities[data-for="WA"] { opacity: 1; }
.pl-city circle { fill: #fff; stroke: var(--color-teal-light); stroke-width: 2; }
.pl-city text {
    font: 700 11px/1 var(--font-primary, sans-serif); fill: #fff;
    paint-order: stroke; stroke: rgba(12,22,44,.55); stroke-width: 3px; stroke-linejoin: round;
}
/* the yard (always visible) */
.pl-yard circle { fill: #fff; stroke: var(--color-primary); stroke-width: 3; }
.pl-yard-ring { fill: var(--color-secondary); stroke: none; opacity: .0; }
.pl-yard text {
    font: 800 11.5px/1 var(--font-primary, sans-serif); fill: var(--color-primary); text-anchor: middle;
    paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round;
}
/* info panel */
.pl-map-panel {
    background: #fff; border: 1px solid #e6e9ef; border-top: 0;
    border-radius: 0 0 16px 16px; padding: 18px 22px 20px;
    box-shadow: 0 8px 28px rgba(28,46,92,.10);
}
.pl-panel-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--color-secondary); }
.pl-panel-title { color: var(--color-primary); font-size: 18px; margin: 5px 0 8px; }
.pl-panel-body { color: #5b626d; font-size: 14px; line-height: 1.6; margin: 0; min-height: 44px; }
.pl-panel-body strong { color: var(--color-primary); }

/* --- Map: mobile legibility ---
   SVG labels scale with the viewBox, so on a phone-width map they shrink to
   ~6px (unreadable). Hide them under 700px and enlarge the dots; the info
   panel below carries the readable city names. */
.pl-panel-eyebrow { font-size: 11.5px; }
@media (max-width: 700px) {
    .pl-city text, .pl-yard text { display: none; }
    .pl-city circle { r: 8; stroke-width: 2.5; }
    .pl-yard circle { r: 10; stroke-width: 4; }
    .pl-panel-body { font-size: 14.5px; }
}

/* ============================================================
   Testimonials / social proof — includes/testimonials.php
   ============================================================ */
.pl-tst-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.pl-tst-card {
    background:#fff; border:1px solid #e6e9ef; border-radius:16px;
    padding:26px 24px; margin:0; display:flex; flex-direction:column;
    box-shadow:0 6px 22px rgba(28,46,92,.07);
}
.pl-tst-stars { color:#e8a33d; font-size:15px; letter-spacing:2px; margin-bottom:10px; }
.pl-tst-card blockquote {
    margin:0 0 18px; padding:0; border:0; flex:1 1 auto;
    color:#3f4757; font-size:15.5px; line-height:1.7;
}
.pl-tst-card figcaption { display:flex; flex-direction:column; gap:2px; padding-top:14px; border-top:1px solid #eef1f6; }
.pl-tst-name { color:var(--color-primary); font-weight:700; font-size:14.5px; }
.pl-tst-co   { color:#5b626d; font-size:13.5px; }
.pl-tst-src  { color:#8a93a3; font-size:12px; }
@media (max-width:900px){ .pl-tst-grid { grid-template-columns:1fr; } }

/* Testimonials heading — self-contained so the component works on pages that
   load home.css (homepage) as well as pages.css (inner pages). */
.pl-tst-wrap { max-width:1180px; margin:0 auto; padding:0 24px; }
.pl-tst-head { text-align:center; max-width:680px; margin:0 auto 34px; }
.pl-tst-eyebrow {
    display:block; font-size:12px; font-weight:700; letter-spacing:2px;
    text-transform:uppercase; color:var(--color-secondary); margin-bottom:10px;
}
.pl-tst-head h2 { color:var(--color-primary); margin:0; font-size:clamp(26px,3.4vw,36px); line-height:1.15; }
