/* ============================================
   Pacific Lumber & Truss - Main Stylesheet
   Design Tokens & Core Layout
   ============================================ */

/* --- Design Tokens ---
   Brand colors sampled directly from the logo (plc-logo):
     "Pacific" navy ink  = rgb(27,45,92)  ~ #1C2D5C  -> --color-primary
     "Lumber"  teal ink  = rgb(13,109,99) ~ #0D6D63  -> --color-secondary
   The derived shades below are lighter/darker versions of that same teal so
   every green on the site is the logo teal, never an off-hue emerald. */
:root {
    /* Colors */
    --color-primary: #1C2E5C;       /* Logo navy ("Pacific") */
    --color-secondary: #0D6D62;     /* Logo teal ("Lumber") */
    --color-teal-dark: #0A5148;     /* Logo teal, darkened - gradients, hovers */
    --color-teal-mid: #0F7D6F;      /* Logo teal, slightly brightened - button sheen */
    --color-teal-light: #5FD6C2;    /* Logo teal, lightened - accents on dark bg */
    --color-navy-dark: #14224A;     /* Logo navy, darkened - gradient depth */
    --color-text: #2F2F2F;          /* Dark gray - body text */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-transition: #FFBC7D;    /* Amber - legacy accent, no longer used in text */
    --color-light-bg: #f8f9fa;      /* Light background sections */
    --color-dark-bg: #1C2E5C;       /* Dark background sections */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Inter Tight', sans-serif;
    --font-accent: 'Radio Canada Big', sans-serif;

    /* Layout */
    --container-max-width: 1400px;
    --container-padding: 20px;

    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-mobile: 40px 0;
    --widget-spacing: 20px;
}

/* --- Base Typography --- */
body {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--color-text);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 600;
}

h1 { font-size: 50px; line-height: 1.5em; }
h2 { font-size: 40px; line-height: 1.3em; }
h3 { font-size: 34px; line-height: 1.3em; }
h4 { font-size: 28px; line-height: 1.3em; }
h5 { font-size: 24px; line-height: 1.3em; }
h6 { font-size: 24px; line-height: 1.3em; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-primary);
}

/* --- Layout --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-white);
}

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

/* --- Flex Layout Utilities --- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.txt-color { color: var(--color-secondary); }

/* --- Grid Layout --- */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* --- Header --- */
.site-header {
    position: relative;
    z-index: 1000;
    background: transparent;
    padding: 15px 60px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    max-width: 1160px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* Header is a solid full-width bar now, so heroes start below it rather than
   tucking underneath a floating pill. */
.hero-slideshow,
.hero {
    margin-top: 0;
}

.page-header {
    margin-top: 0;
    padding-top: 70px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

/* --- Navigation --- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.site-nav ul li {
    position: relative;
}

.site-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.site-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
    color: var(--color-secondary);
}

.site-nav ul li a:hover::after,
.site-nav ul li a.active::after {
    width: 100%;
}

/* Dropdown */
.site-nav ul li:hover > .dropdown {
    display: block;
}

.site-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0;
    z-index: 100;
    flex-direction: column;
}

.site-nav .dropdown li {
    display: block;
}

.site-nav .dropdown li a {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    position: static;
}

.site-nav .dropdown li a::after {
    display: none;
}

.site-nav .dropdown li:last-child a {
    border-bottom: none;
}

/* Has dropdown indicator */
.has-dropdown > a {
    padding-right: 5px;
}

.has-dropdown > a .dropdown-arrow {
    font-size: 0.8em;
    color: #666;
    margin-left: 3px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 3px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-color: var(--color-secondary);
    border-radius: 5px;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--color-navy-dark), var(--color-teal-dark));
    border-color: var(--color-secondary);
    color: var(--color-white);
}

/* Know More button */
.btn-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-know-more:hover {
    background: linear-gradient(90deg, var(--color-navy-dark), var(--color-teal-dark));
    color: var(--color-white);
}

.btn-know-more .btn-icon {
    width: 10px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-navy {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-navy:hover {
    background-color: #152347;
    border-color: #152347;
    color: var(--color-white);
}

/* --- Hero Slideshow --- */
.hero-slideshow {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slideshow-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.slideshow-slides .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow-slides .slide.active {
    opacity: 1;
}

.hero-slideshow .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(28, 46, 92, 0.7);
    z-index: 1;
}

.hero-slideshow .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 40px var(--container-padding);
    max-width: var(--container-max-width);
}

.hero-slideshow .hero-content h1 {
    color: var(--color-white);
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-slideshow .hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Static hero fallback for non-home pages */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(28, 46, 92, 0.85);
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 40px var(--container-padding);
    max-width: var(--container-max-width);
}

.hero .hero-content h1 {
    color: var(--color-white);
    font-size: 60px;
    margin-bottom: 20px;
}

.hero .hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Page Header (non-home pages) --- */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    color: var(--color-white);
    margin: 0;
    font-size: 50px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb a {
    color: var(--color-secondary);
    text-decoration: none;
}

.page-header .breadcrumb svg {
    width: 14px;
    height: 14px;
    fill: var(--color-primary);
}

.page-header .breadcrumb span {
    color: var(--color-secondary);
}

.page-header .shape-bottom-left {
    position: absolute;
    left: -4px;
    bottom: 0;
    width: 264px;
    pointer-events: none;
    z-index: 1;
}

.page-header .shape-top-right {
    position: absolute;
    right: -15px;
    top: 0;
    width: 104px;
    pointer-events: none;
    z-index: 1;
}

/* --- Cards --- */
.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* --- Icon Box --- */
.icon-box {
    text-align: center;
    padding: 30px 20px;
}

.icon-box .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.icon-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* --- Service Grid (Homepage) --- */
.section-services {
    background-color: #f0f0f0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-grid .service-box:last-child:nth-child(3n+1) {
    grid-column: 2;
}

.service-box {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-box h5 {
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 20px;
}

.service-box p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

/* --- Check List (shield icons) --- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 2px;
}

.check-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-secondary);
}

/* --- Delivery Area --- */
.delivery-area {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.delivery-text h2 {
    margin-bottom: 15px;
}

/* --- Counter Description --- */
.counter-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* --- Counter / Stats --- */
.counter-section .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.counter-box {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-size: 50px;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: var(--font-primary);
}

.counter-suffix {
    font-size: 30px;
    color: var(--color-secondary);
}

.counter-title {
    font-size: 16px;
    color: var(--color-text);
    margin-top: 10px;
}

/* --- Product Card Grid (Lumber/Trusses) --- */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.product-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .product-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.product-card .product-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-card .product-card-icon {
    position: absolute;
    bottom: -9px;
    left: 25px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--color-primary);
    border-radius: 5px;
    padding: 10px;
}

.product-card .product-card-icon.svg-icon {
    background: var(--color-primary);
    padding: 10px;
}

.product-card .product-card-body {
    padding: 20px;
}

.product-card .product-card-body h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card .product-card-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

/* --- Team Up Section --- */
.team-up-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.team-up-images .img-top {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-up-images .img-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.team-up-images .img-bottom-row img {
    width: 100%;
    border-radius: 8px;
}

/* --- Contact Info Cards --- */
/* --- Contact info cards ---------------------------------------------------
   Lifted to overlap the hero so the page opens on content rather than a band
   of empty white. All .contact-* rules here are used ONLY by contact.php.    */

.contact-cards-lift {
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

/* The lift already supplies the top breathing room, so the section's own
   padding would otherwise leave a dead white band before the form. */
.section-cards-tight {
    padding-top: 0;
    padding-bottom: 40px;
}

.contact-info-card {
    text-align: center;
    padding: 32px 24px 28px;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: 0 4px 18px rgba(28,46,92,0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(28,46,92,0.14);
    border-color: #cfd6e4;
}

/* Brand gradient reads richer than the flat teal disc. */
.contact-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 14px rgba(13,109,98,0.28);
}

.contact-card-icon svg {
    width: 25px;
    height: 25px;
    fill: var(--color-white);
}

.contact-info-card h5 {
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 17px;
}

/* Small uppercase label above the title gives the three cards a shared rhythm
   even though their contents differ (address / phone+email / hours). */
.contact-card-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.contact-info-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #5b626d;
}

.contact-info-card a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .18s ease;
}

.contact-info-card a:hover { border-bottom-color: var(--color-secondary); }

/* --- Page header supporting line --- */
.page-header-sub {
    max-width: 560px;
    margin: 14px auto 0;
    color: rgba(255,255,255,0.88);
    font-size: 16.5px;
    line-height: 1.65;
    text-align: center;
}

/* --- Contact Form + Map Layout --- */
.contact-form-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-form-box {
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(28,46,92,0.10);
    border: 1px solid #e6e9ef;
    padding: 38px;
}

/* The map is wrapped so it can carry the same card treatment as the form -
   an unframed iframe next to a shadowed card looks unfinished. */
.contact-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(28,46,92,0.10);
    border: 1px solid #e6e9ef;
    background: #eef0f4;
    min-height: 100%;
    display: flex;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
}

/* --- Contact Form Inputs --- */
.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-primary);
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid #0000001C;
}

/* --- Contact form polish --------------------------------------------------
   Scoped to .contact-form-box so nothing else on the site is affected.       */

/* Pair short fields side by side so the form reads as designed rather than as
   one long stack. Collapses to a single column on narrow screens. */
.contact-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.contact-form-box .form-field { margin-bottom: 18px; }

.contact-form-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.contact-form-box .req { color: #c0392b; margin-left: 2px; }

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    background: #f4f6f8;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    min-height: 52px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form-box textarea { min-height: 120px; resize: vertical; }

/* Visible focus ring - the old style only changed the border colour, which is
   easy to miss and weak for keyboard users. */
.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
    background: #ffffff;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(13,109,98,0.15);
    outline: none;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder { color: #9aa1ab; }

/* Full-width submit reads as the primary action of the card. */
.contact-form-box .btn-submit {
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    padding: 15px 30px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.contact-form-box .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13,109,98,0.28);
}

.contact-form-intro {
    margin: -6px 0 22px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.contact-form-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #8a9099;
    text-align: center;
}

@media (max-width: 600px) {
    .contact-field-row { grid-template-columns: 1fr; }
}

/* --- Regional sales map --- */
.map-shadow-box img { display: block; }

.map-intro {
    max-width: 620px;
    margin: 10px auto 0;
    color: #5b626d;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Map Shadow Box --- */
.map-shadow-box {
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    background: var(--color-white);
}

.map-shadow-box img {
    width: 100%;
    height: auto;
}

/* --- Video Embed --- */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 40px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Timeline Entries (About page) --- */
.timeline-entry {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
}

.timeline-entry-number {
    position: sticky;
    top: 100px;
    align-self: start;
    text-align: center;
}

.timeline-entry-number span {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.timeline-entry-text h4 {
    margin-bottom: 10px;
}

.timeline-entry-text p {
    line-height: 1.7;
}

.timeline-entry-image img {
    width: 100%;
    border-radius: 8px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-secondary);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 15px;
    width: 16px;
    height: 16px;
    background: var(--color-secondary);
    border-radius: 50%;
    border: 3px solid var(--color-white);
}

.timeline-item:nth-child(even)::after {
    left: -8px;
    right: auto;
}

.timeline-content {
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 450px;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--color-white);
}

.footer-contact p,
.footer-contact a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    display: block;
}

.footer-contact a:hover {
    color: var(--color-white);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-size: 18px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--color-secondary);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 18px;
}

.cta-section .btn {
    background-color: var(--color-white);
    color: var(--color-secondary);
    border-color: var(--color-white);
}

.cta-section .btn:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* --- Gallery (justified rows) --- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    vertical-align: bottom;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.contactny{
        color: #ffffff;
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        height: 0;
        width: 0;
        z-index: -1;
}

/* --- Map Section --- */
.map-section img {
    max-width: 100%;
    height: auto;
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.w-100 { width: 100%; }

/* ============================================================
   NAVIGATION REDESIGN
   Appended so it overrides the earlier .site-header / .site-nav
   rules without editing them in place.
   ============================================================ */

/* --- Full-width sticky bar --------------------------------------------
   Was a floating rounded pill inset from the edges; now a conventional
   edge-to-edge header bar, which is what visitors expect and what gives the
   nav a stable full-bleed surface at every viewport width. */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8ebf0;
    box-shadow: 0 1px 3px rgba(28,46,92,0.06);
    transition: box-shadow .28s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(28,46,92,0.14); }

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 40px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    transition: padding .28s ease;
}
.site-header.scrolled .header-inner { padding-top: 7px; padding-bottom: 7px; }

.site-logo img { max-height: 56px; transition: max-height .28s ease; }
.site-header.scrolled .site-logo img { max-height: 46px; }

/* --- Nav row ---------------------------------------------------------- */
.site-nav { gap: 18px; }          /* was 5px - CTA was jammed against "Contact" */
.site-nav ul { gap: 2px; align-items: center; }

.site-nav ul li a {
    padding: 9px 14px;
    border-radius: 9px;
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: .1px;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}

/* Soft pill on hover reads better than a bare colour change. */
.site-nav ul li > a:hover { background: rgba(13,109,98,0.08); color: var(--color-secondary); }

/* Underline inset from the link's padding instead of spanning it edge to edge. */
.site-nav ul li a::after {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}
.site-nav ul li a:hover::after { width: auto; transform: scaleX(0); }
.site-nav ul li a.active { color: var(--color-secondary); font-weight: 600; }
.site-nav ul li a.active::after { width: auto; transform: scaleX(1); }

/* --- Products dropdown ------------------------------------------------ */
.has-dropdown > a .dropdown-arrow {
    display: inline-block;
    color: inherit;
    transition: transform .22s ease;
}
.has-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); }

.site-nav .dropdown {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 190px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #e6e9ef;
    box-shadow: 0 16px 38px rgba(28,46,92,0.18);
    display: block;                 /* animate instead of display toggle */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-nav ul li:hover > .dropdown,
.site-nav ul li:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Hover bridge so the menu doesn't close while crossing the 10px gap. */
.has-dropdown > .dropdown::before {
    content: "";
    position: absolute;
    top: -12px; left: 0; right: 0; height: 12px;
}

.site-nav .dropdown li a {
    border-bottom: 0;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 15px;
    line-height: 1.35;
}
.site-nav .dropdown li a:hover { background: rgba(13,109,98,0.09); }

/* --- CTA -------------------------------------------------------------- */
/* Scoped to the header so the global .btn-primary (used across the site) is
   untouched. The bright kelly-green border it used to carry clashed with the logo teal. */
.site-nav .btn-primary {
    border: 0;
    border-radius: 11px;
    padding: 12px 24px;
    font-size: 15.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(13,109,98,0.30);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.site-nav .btn-primary:hover {
    border: 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13,109,98,0.40);
    filter: brightness(1.07);
}

/* Keyboard focus must stay visible now that borders are gone. */
.site-nav a:focus-visible,
.site-nav .btn-primary:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
    .header-inner { padding: 12px 20px; }
    .site-nav ul li a { padding: 9px 10px; font-size: 15px; }
    .site-nav { gap: 12px; }
    .site-nav .btn-primary { padding: 11px 18px; }
}

/* ============================================================
   FOOTER REDESIGN  +  CONTRAST FIXES
   Appended to override the earlier .site-footer / .cta-section rules.
   ============================================================ */

/* CTA band above footer (shown when $hide_cta is not set) */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #143f52 55%, var(--color-secondary) 100%) !important;
    padding: 64px 0;
}
.cta-section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.9) !important; font-size: 17px; }
.cta-section .btn {
    background: #fff !important; color: var(--color-primary) !important; border: 0 !important;
    font-weight: 600; padding: 14px 30px; border-radius: 11px; margin-top: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18); transition: transform .16s ease, box-shadow .16s ease;
}
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.26); }

/* --- Footer shell --- */
.site-footer {
    background: #16223f;                 /* slightly deeper than nav navy for separation */
    color: #c3ccdd;                      /* readable light slate, not faint white */
    border-top: 3px solid var(--color-secondary);
    padding: 0;
}
.site-footer .container { padding-top: 58px; padding-bottom: 0; }

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 44px;
    padding-bottom: 44px;
}

/* Brand column */
.footer-about img { max-width: 190px !important; margin-bottom: 18px !important; background: #fff; padding: 10px 14px; border-radius: 10px; }
.footer-about p { color: #aeb8cc; font-size: 14.5px; line-height: 1.75; margin: 0 0 20px; max-width: 40ch; }

.social-icons { display: flex; gap: 11px; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #c3ccdd; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-icons a:hover { background: var(--color-secondary); color: #fff; transform: translateY(-3px); }

/* Link + contact columns */
.footer-links h3, .footer-contact h3 {
    color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .4px;
    margin: 0 0 18px; padding-bottom: 12px; position: relative;
}
.footer-links h3::after, .footer-contact h3::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: var(--color-secondary); border-radius: 2px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links ul li { margin-bottom: 11px; }
.footer-links ul li a {
    color: #aeb8cc; font-size: 14.5px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px; transition: color .16s ease, gap .16s ease;
}
.footer-links ul li a::before {
    content: "›"; color: var(--color-secondary); font-size: 16px; line-height: 1;
}
.footer-links ul li a:hover { color: #fff; gap: 10px; }

.footer-contact p { color: #aeb8cc; font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; display: flex; gap: 10px; }
.footer-contact p strong { color: #fff; font-weight: 600; min-width: 62px; flex: 0 0 auto; }
.footer-contact a { color: #7fd8c8; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
    display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: #9aa6be; font-size: 13px; margin: 0; }   /* was 0.6 white - too faint */
.footer-bottom .fb-tag { color: #7fd8c8; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Global contrast fixes: faint grays on white were failing AA --- */
.contact-form-note, .ct-note { color: #6b7280; }

/* ============================================================
   MOBILE NAV FIX (<=1024px)
   The nav redesign added a desktop dropdown that animates via
   opacity/visibility. Inside the mobile menu those kept the Products
   submenu invisible, leaving a blank gap. This restores a clean,
   full-width mobile menu panel with visible submenu items.
   ============================================================ */
@media (max-width: 1024px) {
    /* Static so the menu positions against .site-header (full width), not the
       narrow .site-nav flex item on the right. Extra specificity to beat
       responsive.css's `.site-nav { position: relative }` which loads later. */
    .site-header .site-nav { position: static; }
    .site-nav .nav-menu.active {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        min-width: 0;
        background: #fff;
        border: 1px solid #e6e9ef;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(28,46,92,0.20);
        padding: 8px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    /* Desktop nav set align-items:center on the ul; in a mobile column that
       centers every item horizontally. Stretch so links fill the width and
       their left text-align actually shows. */
    .site-nav .nav-menu.active ul { gap: 0; align-items: stretch; }
    .site-nav .nav-menu.active ul li { width: 100%; }
    .site-nav .nav-menu.active ul li a {
        border-bottom: 1px solid #f0f2f5;
        border-radius: 8px;
        padding: 14px 16px;
        font-size: 16px;
        text-align: left;
    }
    .site-nav .nav-menu.active ul li:last-child > a { border-bottom: 0; }

    /* Reveal the Products submenu inline (undo desktop hover animation) */
    .site-nav .nav-menu.active .dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        min-width: 0;
        background: #f6f8fa;
        border-radius: 8px;
        margin: 2px 0;
    }
    .site-nav .nav-menu.active .dropdown li a { padding-left: 34px; font-size: 15px; }
    .site-nav .nav-menu.active .has-dropdown > a { font-weight: 600; }
}

/* ============================================================
   MOBILE BOTTOM NAV + BACK TO TOP
   Thumb-reachable quick actions on phones. Desktop keeps the
   normal header nav - this bar only exists under 1024px.
   ============================================================ */
.bottom-nav { display: none; }

.back-to-top {
    position: fixed;
    bottom: 26px; right: 22px;
    width: 46px; height: 46px;
    border: 0; border-radius: 50%;
    background: var(--color-secondary);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(13,109,98,.34);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .15s ease;
    z-index: 95;
    -webkit-tap-highlight-color: transparent;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary); }
.back-to-top:focus-visible { outline: 3px solid var(--color-teal-light); outline-offset: 2px; }

@media (max-width: 1024px) {
    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0;
        z-index: 90;
        background: #fff;
        border-top: 1px solid #e3e8f0;
        box-shadow: 0 -3px 18px rgba(28,46,92,.10);
        /* keeps the bar clear of the iPhone home indicator */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bn-item {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 3px;
        min-height: 56px; padding: 7px 2px 8px;
        text-decoration: none;
        color: #6b7482;
        font-size: 11.5px; font-weight: 600; line-height: 1.15;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }
    .bn-item svg { width: 21px; height: 21px; }
    .bn-item.on { color: var(--color-secondary); }
    .bn-item:active { background: #f3f6fa; }
    /* the two conversion actions carry the brand colours so they read as buttons */
    .bn-call  { color: var(--color-primary); }
    .bn-quote {
        margin: 7px 6px; border-radius: 12px;
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        color: #fff !important; min-height: 0;
    }
    .bn-quote svg { width: 19px; height: 19px; }
    /* one label or the other, never both */
    .bn-short { display: none; }
    @media (max-width: 419px) {
        .bn-full  { display: none; }
        .bn-short { display: inline; }
        .bn-quote { margin: 7px 4px; }
    }
    /* stop the fixed bar covering the end of the page / footer links */
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
    .back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 14px; }
}

/* ============================================================
   MOBILE NAV DRAWER
   Replaces the old white dropdown panel with a full-height
   slide-in drawer + dimmed backdrop. Desktop is untouched -
   everything here is inside the <=1024px query, and the drawer
   chrome is display:none above it.
   ============================================================ */
.nav-drawer-head, .nav-drawer-actions { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 1024px) {

    /* ---- backdrop ---- */
    .nav-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(12, 22, 44, .55);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0; visibility: hidden;
        transition: opacity .28s ease, visibility .28s ease;
        z-index: 998;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }

    /* ---- the drawer itself ---- */
    .site-header .site-nav .nav-menu {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        left: auto;
        width: 86%; max-width: 370px;
        margin: 0; padding: 0;
        background: #fff;
        border: 0; border-radius: 0;
        box-shadow: -14px 0 44px rgba(12, 22, 44, .26);
        transform: translateX(102%);
        transition: transform .3s cubic-bezier(.22, .61, .36, 1);
        display: flex; flex-direction: column;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 999;
        visibility: hidden;
    }
    /* responsive.css loads AFTER main.css and still carries the old dropdown
       rules (.nav-menu.active{position:absolute;top:100%}) at equal specificity,
       so it would win on source order. These 4-class selectors outrank it -
       do not "simplify" them back to .nav-menu.active. */
    .site-header .site-nav .nav-menu.active {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: auto;
        height: auto;
        min-height: 100%;
        display: flex; flex-direction: column;
        border-radius: 0;
        min-width: 0;
        box-shadow: -14px 0 44px rgba(12, 22, 44, .26);
        transform: translateX(0);
        visibility: visible;
    }
    /* let the link list absorb the slack so the actions sit flush at the bottom */
    .site-header .site-nav .nav-menu.active > ul { flex: 1 1 auto; margin: 0; }
    /* the old rules also put a divider under every item and re-indented the submenu */
    .site-header .site-nav .nav-menu.active ul li a { border-bottom: 0; }
    .site-header .site-nav .nav-menu.active .dropdown li a { padding-left: 12px; }

    /* ---- drawer header: logo + close ---- */
    .nav-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px 18px;
        border-bottom: 1px solid #eceff4;
        position: sticky; top: 0; background: #fff; z-index: 2;
    }
    .nav-drawer-logo { width: auto; height: 40px; display: block; }
    .nav-drawer-close {
        flex: 0 0 auto;
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        border: 1px solid #e3e8f0; border-radius: 10px;
        background: #f6f8fb; color: var(--color-primary);
        cursor: pointer; padding: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-drawer-close svg { width: 19px; height: 19px; }
    .nav-drawer-close:active { background: #eaeff6; }

    /* ---- link list ---- */
    .site-header .site-nav .nav-menu ul {
        display: block;
        padding: 10px 12px 4px;
        margin: 0;
        list-style: none;
    }
    .site-header .site-nav .nav-menu > ul > li { margin: 0; }
    .site-header .site-nav .nav-menu ul li a {
        display: block;
        padding: 13px 14px;
        margin-bottom: 2px;
        border-radius: 11px;
        font-size: 16.5px; font-weight: 600;
        color: #26303f;
        text-decoration: none;
        border: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .site-header .site-nav .nav-menu ul li a:active { background: #f2f5fa; }
    .site-header .site-nav .nav-menu ul li a.active {
        background: rgba(13, 109, 98, .10);
        color: var(--color-secondary);
    }

    /* ---- Products submenu: an indented group, always visible ---- */
    .site-header .site-nav .nav-menu .has-dropdown > a { color: #26303f; }
    .site-header .site-nav .nav-menu .dropdown {
        display: block !important;
        position: static;
        opacity: 1 !important; visibility: visible !important;
        transform: none !important;
        box-shadow: none; border: 0;
        background: transparent;
        padding: 0 0 6px 12px;
        margin: 0 0 4px 14px;
        border-left: 2px solid #e6ebf2;
        min-width: 0; width: auto;
    }
    .site-header .site-nav .nav-menu .dropdown li a {
        font-size: 15.5px; font-weight: 500;
        color: #5b6478;
        padding: 10px 12px;
    }
    /* the parent's chevron means nothing when the submenu is always open */
    .site-header .site-nav .nav-menu .dropdown-arrow { display: none; }

    /* ---- pinned conversion actions ---- */
    .nav-drawer-actions {
        display: block;
        margin-top: auto;
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #eceff4;
        background: #fbfcfe;
    }
    .nav-drawer-cta {
        display: flex; align-items: center; justify-content: center; gap: 9px;
        padding: 14px 18px; border-radius: 12px;
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        color: #fff; font-weight: 700; font-size: 16px;
        text-decoration: none;
        box-shadow: 0 6px 16px rgba(13, 109, 98, .26);
    }
    .nav-drawer-cta svg { width: 18px; height: 18px; }
    .nav-drawer-call {
        display: flex; align-items: center; gap: 11px;
        margin-top: 10px; padding: 11px 14px;
        border: 1px solid #dfe5ee; border-radius: 12px;
        background: #fff; text-decoration: none;
    }
    .nav-drawer-call svg { width: 19px; height: 19px; color: var(--color-secondary); flex: 0 0 auto; }
    .nav-drawer-call span { display: flex; flex-direction: column; line-height: 1.25; }
    .nav-drawer-call small { font-size: 11.5px; letter-spacing: .7px; text-transform: uppercase; color: #8a93a3; font-weight: 700; }
    .nav-drawer-call b { font-size: 16px; color: var(--color-primary); }

    /* the header's desktop CTA is redundant once the drawer has one */
    .site-header .site-nav > .btn-primary { display: none; }

    /* stop the page scrolling behind an open drawer */
    body.nav-open { overflow: hidden; }
}

/* ============================================================
   MOBILE MENU BUTTON
   Was the "&#9776;" character in a default-styled button, which
   rendered at a different weight on every device and sat adrift
   in the middle of the header (space-between + a zero-width nav
   left it there). Now: real bars, flush right, morphs to an X.
   ============================================================ */
.mobile-menu-toggle {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none; appearance: none;
}
.mmt-box {
    display: block; position: relative;
    width: 22px; height: 16px;
    margin: 0 auto;
}
.mmt-bar {
    position: absolute; left: 0;
    display: block; width: 100%; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .26s cubic-bezier(.2,.7,.3,1), opacity .18s linear, top .26s cubic-bezier(.2,.7,.3,1);
}
.mmt-bar:nth-child(1) { top: 0; }
.mmt-bar:nth-child(2) { top: 7px; }
.mmt-bar:nth-child(3) { top: 14px; }
/* open state: top+bottom rotate into an X, middle fades out */
.mobile-menu-toggle.is-open .mmt-bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
.mobile-menu-toggle.is-open .mmt-bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open .mmt-bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
    .site-header .header-inner .mobile-menu-toggle {
        order: 9;              /* after the logo and nav in flex order */
        margin-left: auto;     /* pinned to the right edge, whatever else is there */
        display: flex; align-items: center; justify-content: center;
        width: 46px; height: 46px;
        padding: 0;
        border: 1px solid #e3e8f0;
        border-radius: 12px;
        background: #f6f8fb;
        color: var(--color-primary);
        box-shadow: none;
        font-size: 0;          /* kills any stray text node spacing */
    }
    .site-header .header-inner .mobile-menu-toggle:active { background: #eaeff6; }
    .site-header .header-inner .mobile-menu-toggle:focus-visible {
        outline: 3px solid var(--color-teal-light); outline-offset: 2px;
    }
    /* the nav wrapper must not eat header width - the drawer inside it is fixed */
    .site-header .header-inner .site-nav { order: 10; flex: 0 0 0; width: 0; margin: 0; padding: 0; }
    /* Do NOT raise this above the drawer. It sits at the same top-right corner as
       the drawer's own X, so z-index:1000 put it over that button and swallowed
       every tap on it. The drawer (z-index 999) covers the toggle while open,
       which is the correct behaviour - closing is handled by the drawer's X,
       the backdrop, or Escape. */
}

/* ============================================================
   TOUCH TARGETS ON MOBILE
   Footer link columns and breadcrumbs rendered at 23px tall -
   fine with a mouse, easy to mis-tap with a thumb. Apple and
   Google both target ~44px. Inline links inside a sentence are
   deliberately left alone: enlarging them would break the text
   flow, and WCAG 2.5.8 exempts inline text links for exactly
   that reason.
   ============================================================ */
@media (max-width: 1024px) {
    .site-footer .footer-links ul li a,
    .site-footer .footer-contact p a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0;
    }
    /* the list itself can tighten slightly so the taller rows do not
       stretch the footer out */
    .site-footer .footer-links ul li { margin-bottom: 0; }

    .breadcrumb a,
    .breadcrumb span {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    /* card "call now / send us a message / get directions" actions */
    .ct-quick-card .ct-action { min-height: 44px; }
}

/* Phone links are a primary conversion, not incidental prose, so they get a
   real touch target even when they sit inside a list row. Scoped to tel: only
   so genuine inline links in a sentence keep their natural text flow. */
@media (max-width: 1024px) {
    a[href^="tel:"] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    /* the bottom-bar Call button already sizes itself */
    .bottom-nav a[href^="tel:"] { min-height: 0; display: flex; }
}

/* Fix 2026-08-18: the sticky header compacts ~10px on scroll (padding/logo
   transition). While position:sticky, that height change reflows content, so the
   browser scroll-anchoring makes ~10 tiny consecutive adjustments and logs
   "Scroll anchoring was disabled". This page does not rely on scroll anchoring,
   so opt out explicitly — the warning goes away with no layout change. */
html, body { overflow-anchor: none; }
