/* ================================
   Fonts
================================ */

@font-face {
    font-family: 'Holtwood';
    src: url('/fonts/HoltwoodOneSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Afacad';
    src: url('/fonts/Afacad-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Afacad Italic';
    src: url('/fonts/Afacad-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}
@font-face {
    font-family: 'Lalezar';
    src: url('/fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ================================
   Custom Properties (Brand Tokens)
   Update these to restyle the site.
================================ */

:root {
    --color-brand:       #FFA101;
    --color-brand-light: #FFB332;
    --color-brand-dark:  #222222;
    --color-text:        #222222;
    --color-text-light:  #888;
    --color-border:      #ddd;
    --color-bg:          #fff;
    --color-white:       #fff;

    --font-base: 'Afacad', sans-serif;
    --max-width: 100vw;

    --service-image-size-L: 500px;
    --service-image-size-M: 350px;
    --service-image-size-S: 250px;
}

/* ================================
   Reset & Base
================================ */

html {
    overflow-x: clip;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-brand);
    line-height: 1.6;
    overflow-x: clip;
}

h1 {
    margin-bottom: 1rem;
}

/* ================================
   Utilities
================================ */

/* Color helpers */
.orange     { color: var(--color-brand); }
.white      { color: var(--color-white); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }

/* Spacing helpers */
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Glass morphism card effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ================================
   Typography
   Responsive scale for headings and body text.
   Base sizes target mobile; breakpoints scale up.
================================ */

.title {
    font-family: 'Holtwood', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lalezar subtitle — two sizes for hierarchy */
.subtitle {
    font-family: 'Lalezar', serif;
    font-weight: bold;
    font-size: 1.25rem;
}
.subtitle-lg {
    font-family: 'Lalezar', serif;
    font-weight: bold;
    font-size: 1.75rem;
}

.size-m     { font-size: 0.875rem; }
.text-large { font-size: 1.5rem; padding: 0 2.5rem; }

@media (min-width: 768px) {
    .subtitle    { font-size: 1.75rem; }
    .subtitle-lg { font-size: 2.25rem; }
    .size-m      { font-size: 1.125rem; }
    .text-large  { padding: 0 1.75rem; }
}

@media (min-width: 1025px) {
    .title      { font-size: 3rem; }
    .text-large { padding: 0 4rem; }
}

@media (min-width: 1315px) {
    .title       { font-size: 4rem; }
    .subtitle    { font-size: 2.5rem; }
    .subtitle-lg { font-size: 2.5rem; }
    .size-m      { font-size: 1.3rem; }
    .text-large  { font-size: 2rem; padding: 0 4rem; }
}

@media (min-width: 1650px) {
    .title      { font-size: 4.5rem; }
    .size-m     { font-size: 1.5rem; }
    .text-large { font-size: 3rem; padding: 0 4rem; }
}

/* ================================
   Header & Nav
================================ */

header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw;
    padding: 0 1rem 0 0;
    margin: 0 auto;
}

nav {
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: space-between;
    flex: 1;
    max-height: 48px;
    padding: 0.5rem;
    max-width: 1250px;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

nav ul a {
    text-decoration: none;
    color: var(--color-text);
    padding: 0 0.25rem;
}

nav ul a:hover {
    color: var(--color-white);
}
nav ul a.active {
    color: var(--color-white);
    font-weight: bold;
}

/* Hamburger menu button — only visible on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    max-height: 48px;
    align-self: center;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger open state — animates bars into an X */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
    header   { width: 80vw; padding: 0 2rem; }
    .logo img { height: 125px; }
}

@media (min-width: 1025px) {
    .logo img { height: 150px; }
}

@media (min-width: 1315px) {
    nav ul a { font-size: 1.5rem; }
}

/* Mobile: collapse nav into a dropdown */
@media (max-width: 767px) {
    .hamburger { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 70%;
        right: 1.5rem;
        width: 50%;
        max-height: none;
        flex-direction: column;
        padding: 1rem;
        z-index: 999;
    }

    nav.open { display: flex; }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
}

/* ================================
   Layout
================================ */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-width);
    margin: 0;
    padding: 0 1rem;
}

/* Background texture applied to the body/main on the home page */
.OrangePrint {
    background-image: url('/images/Background-OrgangePrint_tiling_v2.webp');
    background-size: 1315px auto;
    background-position: top;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    main { padding: 0 2rem; }
}

@media (min-width: 1315px) {
    .OrangePrint { background-size: 100% auto; }
}

/* ================================
   Hero Section
================================ */

.hero-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem 2rem 0;
}

.canada-badge {
    height: 30px;
    width: auto;
    margin-bottom: -0.8rem;
    border-radius: 5px;
}

 .canada-badge-v2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3rem 0.75rem 0.3rem 0.5rem;
}

.canada-badge-v2 img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
} 

@media (min-width: 768px) {
    .hero-container { width: 80vw; }
    .hero-text      { margin: 0 0 0 -2rem; }
    .canada-badge { height: 40px; margin-bottom: -1rem;}
}

@media (min-width: 1025px) {
    .hero-text { margin: auto; }
}
@media (min-width: 1315px) {
    .canada-badge { height: 60px; margin-bottom: -1.5rem;}
}
@media (min-width: 1650px) {
    .hero-container { padding-top: 2rem; }
    .canada-badge-v2 { font-size: 1.2rem;}
}

/* ================================
   Hero Carousel
================================ */

.hero-carousel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1rem 0;
}

/* Mobile: stack text above the carousel */
@media (max-width: 767px) {
    .hero-container { flex-direction: column; }
    .hero-text      { padding: 0 1rem; }

    .hero-carousel {
        width: 100%;
        min-height: unset;
        overflow: hidden;
        padding: 1rem 0 1rem 0;
    }
}

/* Shared styles for all carousel images */
.carousel-item {
    position: absolute;
    border-radius: 18px;
    border: 3px solid #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition:
        top     0.65s cubic-bezier(0.4, 0, 0.2, 1),
        left    0.65s cubic-bezier(0.4, 0, 0.2, 1),
        width   0.65s cubic-bezier(0.4, 0, 0.2, 1),
        height  0.65s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

/* Base sizes (768px – 1024px) — larger breakpoints override only what changes */
.carousel-viewport              { position: relative; width: 100%; height: 250px; }
.carousel-item.pos-active       { width: 350px; height: 250px; top: 0;     left: -20px;  opacity: 1;    z-index: 10; pointer-events: auto; }
.carousel-item.pos-next         { width: 175px; height: 125px; top: -55px; left: 200px;  opacity: 0.88; z-index: 6; }
.carousel-item.pos-prev         { width: 175px; height: 125px; top: 180px; left: 200px;  opacity: 0.88; z-index: 6; }
.carousel-item.pos-next-hidden  { width: 66px;  height: 47px;  top: -85px; left: 300px;  opacity: 0;    z-index: 1; }
.carousel-item.pos-prev-hidden  { width: 66px;  height: 47px;  top: 280px; left: 300px;  opacity: 0;    z-index: 1; }

@media (min-width: 1025px) {
    .carousel-viewport              { height: 300px; }
    .carousel-item.pos-active       { width: 420px;  height: 300px; top: 0;     left: -25px;  }
    .carousel-item.pos-next         { width: 210px;  height: 150px; top: -55px; left: 275px;  }
    .carousel-item.pos-prev         { width: 210px;  height: 150px; top: 205px; left: 275px;  }
    .carousel-item.pos-next-hidden  { width: 91px;   height: 65px;  top: 0;     left: 375px;  }
    .carousel-item.pos-prev-hidden  { width: 91px;   height: 65px;  top: 220px; left: 375px;  }
}

@media (min-width: 1315px) {
    .carousel-viewport              { height: 400px; }
    .carousel-item.pos-active       { width: 560px;  height: 400px; top: 0;     left: -25px;  }
    .carousel-item.pos-next         { width: 263px;  height: 188px; top: -75px; left: 368px;  }
    .carousel-item.pos-prev         { width: 263px;  height: 188px; top: 287px; left: 368px;  }
    .carousel-item.pos-next-hidden  { width: 124px;  height: 88px;  top: 0;     left: 400px;  }
    .carousel-item.pos-prev-hidden  { width: 124px;  height: 88px;  top: 300px; left: 400px;  }
}

@media (min-width: 1650px) {
    .carousel-viewport              { height: 500px; }
    .carousel-item.pos-active       { width: 700px;  height: 500px; top: 0;      left: -40px;  }
    .carousel-item.pos-next         { width: 350px;  height: 250px; top: -100px; left: 410px;  }
    .carousel-item.pos-prev         { width: 350px;  height: 250px; top: 350px;  left: 410px;  }
    .carousel-item.pos-next-hidden  { width: 165px;  height: 118px; top: 0;      left: 500px;  }
    .carousel-item.pos-prev-hidden  { width: 165px;  height: 118px; top: 400px;  left: 500px;  }
}

/* Mobile: single full-width image; all non-active cards hidden */
@media (max-width: 767px) {
    .carousel-viewport { height: calc(92vw * 5 / 7); }

    .carousel-item {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

    .carousel-item.pos-active {
        width: 92%;
        height: auto;
        aspect-ratio: 7 / 5;
        top: 5px;
        left: 4%;
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    /* Off-screen staging positions so cards slide in from the correct edge */
    .carousel-item.pos-next {
        width: 50%;
        height: auto;
        aspect-ratio: 7 / 5;
        top: 50px;
        left: 90%;
    }
    .carousel-item.pos-prev {
        width: 50%;
        height: auto;
        aspect-ratio: 7 / 5;
        top: 50px;
        left: -90%;
    }

    /* Only the active card is visible — next/prev are positioned but transparent */
    .carousel-item.pos-next,
    .carousel-item.pos-prev,
    .carousel-item.pos-next-hidden,
    .carousel-item.pos-prev-hidden {
        opacity: 0;
        pointer-events: none;
    }
}

/* ================================
   Services Section
================================ */

/* Dark band with a slanted top edge created by clip-path */
.section-dark-angled {
    position: relative;
    background-color: var(--color-brand-dark);
    margin-top: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    align-self: stretch;
    clip-path: polygon(0 0, 100% 12.5vw, 100% 100%, 0 100%);
    color: var(--color-white);
}

.section-dark-angled__content {
    max-width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Two-column rows: text on one side, decorative image shape on the other */
.service_content_row { display: flex; }

.service_content_col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service_content-eyebrow {
    display: inline-block;
    font-family: 'Lalezar', serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 0.6rem;
    border-left: 3px solid var(--color-brand);
    padding-left: 0.7rem;
}

.service_content_text          { max-width: 450px; }
.service_content_text.right    { align-self: start; }
.service_content_text.left     { align-self: end; }

/* Pill-shaped gradient blobs that hold product images */
.service_content_image_shape {
    display: flex;
    align-items: center;
    width: 150%;
    height: var(--service-image-size-S);
    background-image: linear-gradient(to bottom, var(--color-brand-light), var(--color-brand));
    box-shadow: inset 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
}

.service_content_image_shape.left {
    border-top-right-radius: calc(var(--service-image-size-L) / 2);
    border-bottom-right-radius: calc(var(--service-image-size-L) / 2);
    margin-left: -65%;
    justify-content: end;
}

.service_content_image_shape.right {
    border-top-left-radius: calc(var(--service-image-size-L) / 2);
    border-bottom-left-radius: calc(var(--service-image-size-L) / 2);
    margin-left: 15%;
    justify-content: start;
}

.service_content_image_shape img {
    width: auto;
    height: 60%;
    object-fit: contain;
    max-width: 60%;
    max-height: 50%;
}

.service_content_image_shape.right img { margin-left: 13%; }
.service_content_image_shape.left img  { margin-right: 15%; }

/* Small image variants shown on mobile; swapped for larger at 768px */
#IJoist_sm { display: block; }
#IJoist_lg { display: none; }
#Truss_sm  { display: block; margin-left: 7%; }
#Truss_lg  { display: none; }

@media (max-width: 500px){
    #bottom-service-eyebrow { margin-top: 1rem;}
}

@media (min-width: 768px) {
    .section-dark-angled         { margin-left: -2rem; margin-right: -2rem; }
    .section-dark-angled__content { width: 85%; }

    .service_content_image_shape img { height: 80%; max-height: 100%; }
    .service_content_image_shape.right img { margin-left: 8%; }
    .service_content_image_shape.left img  { margin-right: 10%; }
    .service_content-eyebrow { font-size: 1.05rem; padding-left: 0.8rem; }

    #Hanger_img { margin-left: 20%; }
    #IJoist_sm { display: none; }
    #IJoist_lg { display: block; }
    #Truss_sm  { display: none; }
    #Truss_lg  { display: block; }
}

@media (min-width: 1025px) {
    .service_content_image_shape { height: var(--service-image-size-M); }
}

@media (min-width: 1315px) {
    .section-dark-angled__content { padding: 7rem 3rem; }
    .service_content-eyebrow { font-size: 1.3rem; border-left-width: 4px; padding-left: 0.9rem; margin-bottom: 0.8rem; }
}

@media (min-width: 1650px) {
    .section-dark-angled__content { padding: 8rem 3rem; }
    .service_content_image_shape  { height: var(--service-image-size-L); }
}

/* ================================
   Contact Page
================================ */

/* ── Hero ────────────────────────────────────── */

.contact-hero {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/images/house_construction.webp');
    background-size: cover;
    background-position: center;
    padding: 4rem 1.5rem 5rem;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34,34,34,0.20) 0%, rgba(34,34,34,0.45) 55%, rgba(255,161,1,0.40) 100%);
}

.contact-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
}

.contact-hero__content .title {
    color: var(--color-white);
    text-shadow: 2px 3px 8px rgba(0,0,0,0.7);
}

.contact-hero__sub {
    font-size: 1.1rem;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-hero { margin-left: -2rem; margin-right: -2rem; min-height: 340px; }
    .contact-hero__sub { font-size: 1.35rem; }
}

@media (min-width: 1315px) {
    .contact-hero { min-height: 400px; }
    .contact-hero__sub { font-size: 1.6rem; }
}

/* ── Truss Guide Callout ───────────────────── */

.truss-callout {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(92%, 720px);
    margin: -2.5rem auto 2.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 5px solid var(--color-brand);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.truss-callout:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.truss-callout__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
    background: rgba(255, 161, 1, 0.12);
    border-radius: 10px;
}

.truss-callout__icon svg { width: 24px; height: 24px; }

.truss-callout__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.truss-callout__text strong {
    font-family: 'Lalezar', serif;
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.truss-callout__text span {
    color: #555;
    font-size: 0.9rem;
}

.truss-callout__arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--color-brand);
    transition: transform 0.25s ease;
}

.truss-callout:hover .truss-callout__arrow { transform: translateX(5px); }

@media (max-width: 500px) {
    .truss-callout__text span { display: none; }
}

/* ── Contact Main (info + form) ──────────── */

.contact-main {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    align-items: stretch;
}

.contact-info,
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info .subtitle { margin-bottom: 0.75rem; }

.contact-info__blurb {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-methods {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 161, 1, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-method:hover {
    transform: translateX(4px);
    background: rgba(255, 161, 1, 0.14);
}

.contact-method__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255, 161, 1, 0.4);
}

.contact-method__icon svg { width: 20px; height: 20px; }

.contact-method__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
}

.contact-method__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-method__value:hover { color: var(--color-brand); }

/* ── Contact Form ─────────────────────────── */

.contact-form {
    flex: 1.25;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: none;
}

.contact-form .subtitle {
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.field-row {
    display: flex;
    gap: 1rem;
}

.field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.field label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
}

.field__optional {
    font-weight: 400;
    color: #999;
    font-size: 0.82rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(255, 161, 1, 0.18);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.submit-button {
    margin-top: 0.25rem;
    padding: 0.95rem 1.75rem;
    background: var(--color-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(255, 161, 1, 0.4);
}

.file-clear-button {
    margin-top: 0.25rem;
    padding: 0.25rem;
    background: var(--color-text-light);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);   
}

.contact-form button:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.contact-form button .arrow { transition: transform 0.2s ease; }
.contact-form button:hover .arrow { transform: translateX(5px); }

.field__file-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form input[type="file"] {
    flex: 1;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
}

.field__file-error {
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 0.3rem;
    min-height: 1.2em;
}

.contact-form__note {
    font-size: 0.82rem;
    color: #777;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.hidden-honeypot { display: none; }

/* ── Success Modal ───────────────────────── */

.success-modal {
    display: none; /* JS adds .is-active to show it */
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.success-modal.is-active {
    display: flex;
}

.success-modal__card {
    background: #fff;
    border-radius: 18px;
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.success-modal__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-modal__icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
}

.success-modal__title {
    font-size: 1.6rem;
    color: var(--color-text);
    margin: 0;
}

.success-modal__msg {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 500px) {
    .success-modal__card { padding: 2.25rem 1.5rem; }
}

@media (max-width: 900px) {
    .contact-main { flex-direction: column; }
}

@media (max-width: 560px) {
    .field-row { flex-direction: column; gap: 1.1rem; }
    .contact-info, .contact-form { padding: 1.5rem 1.25rem; }
    .form-success { padding: 2rem 1.25rem; }
}

@media (min-width: 1315px) {
    .contact-info, .contact-form { padding: 2.5rem 2.25rem; }
    .contact-info__blurb { font-size: 1.1rem; }
}

/* ── What Happens Next Timeline ─────────── */

.next-steps-section {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 0;
    text-align: center;
}

.next-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
    padding: 0;
}

.step {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2.25rem 1.25rem 1.5rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.65s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.step__num {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-light), var(--color-brand));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Holtwood', serif;
    font-size: 1.35rem;
    border: 4px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.step__title {
    font-family: 'Lalezar', serif;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step__text {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
}

/* ── Hero load-in animation ─────────────────────────────────────────────
   Three staggered title lines + subtext play once on page load.
   animation-fill-mode: both means each element starts invisible and
   stays in the final state after the animation ends.
   Only targets .hero-text so these don't fire on other pages. */

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-up-logo {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 0.8; transform: translateY(0); }
}

.hero-text .title {
    animation: hero-fade-up 0.65s ease both;
}

.hero-text {
    animation: hero-fade-up 0.65s ease both;
    animation-delay: 0s;
}

.canada-badge {
    animation: hero-fade-up 0.65s ease both;
    animation-delay: 0s;
}

.hero-text .title:nth-child(2) { animation-delay: 0.10s; }
.hero-text .title:nth-child(3) { animation-delay: 0.25s; }
.hero-text .title:nth-child(4) { animation-delay: 0.40s; }

.hero-text .text-large {
    animation: hero-fade-up 0.65s ease both;
    animation-delay: 0.55s;
}

/* ── Scroll-reveal ──────────────────────────────────────────────────────
   .reveal       — fades up from below
   .reveal-left  — slides in from the left
   .reveal-right — slides in from the right
   .visible is added by JS (IntersectionObserver) when the element enters
   the viewport. */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-45px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(45px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-text .canada-badge,
    .hero-text .title,
    .hero-text .text-large { animation: none; }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.next-steps .step:nth-child(1) { transition-delay: 0ms; }
.next-steps .step:nth-child(2) { transition-delay: 120ms; }
.next-steps .step:nth-child(3) { transition-delay: 240ms; }
.next-steps .step:nth-child(4) { transition-delay: 360ms; }

@media (max-width: 900px) {
    .next-steps { grid-template-columns: repeat(2, 1fr); gap: 2.75rem 1rem; }
}

@media (max-width: 560px) {
    .next-steps { grid-template-columns: 1fr; gap: 2.75rem; }
}

/* ── Location / Map Section ─────────────── */

.location-section {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    background-color: var(--color-brand-dark);
    color: var(--color-white);
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    padding: 9vw 2rem 5rem;
    margin-top: 3rem;
}

.location-content {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.location-map {
    flex: 1.3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4 / 3;
    background: #444;
    width: 100%;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.location-details { flex: 1; }

.location-details .title {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.location-details address {
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    color: #e8e8e8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    background: var(--color-brand);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(255, 161, 1, 0.4);
}

.btn-primary:hover {
    background: var(--color-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
    .location-section { margin-left: -2rem; margin-right: -2rem; }
}

@media (max-width: 900px) {
    .location-content { flex-direction: column; gap: 2rem; }
    .location-details { text-align: center; }
    .location-section { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); padding: 6vw 1.5rem 3rem; }
}

/* ── FAQ Accordion ─────────────────────── */

.faq-section {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto 5rem;
    padding: 0 0.5rem;
}

.faq-section .title { margin-bottom: 2rem; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover { transform: translateY(-2px); }

.faq-item[open] { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-family: 'Lalezar', serif;
    font-size: 1.15rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-family: 'Afacad', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--color-brand);
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 1.4rem 1.25rem;
    color: #555;
    line-height: 1.65;
    font-size: 0.95rem;
}

.faq-item p a {
    color: var(--color-brand);
    font-weight: 600;
}

@media (min-width: 768px) {
    .faq-item summary { font-size: 1.35rem; padding: 1.25rem 1.6rem; }
    .faq-item p { font-size: 1.02rem; padding: 0 1.6rem 1.4rem; }
}

/* ================================
   Testimony Section
================================ */

/* Breaks out of main's padding to span closer to full viewport width */
.testimony-section {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    background-image: url('/images/Background-OrgangePrint-Blank.jpg');
    background-size: 1315px auto;
    background-position: 0 100%;
}

/* Negative top margin used on the "Truss!" headline to tighten the two-line title */
.mt-n2 { margin-top: -0.5rem; }

/* ── Truss SVG Divider ─────────────────────────────
   Spans the full width, transitioning from the orange
   testimony background to white. The .chord and .web
   classes let stroke-width scale per breakpoint. */
.truss-divider-container {
    width: 100%;
    line-height: 0; /* removes the default baseline gap below the SVG */
}

.truss-divider-svg {
    display: block;
    width: 100%;
    height: 150px; /* controls the visual pitch of the truss */
}

/* ── Testimony Carousel ──────────────────────────── */

.testimony-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 0.25rem;
}

/* Wrapper positions arrow buttons relative to the track */
.testimony-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Arrows hidden on desktop — side cards are clickable instead */
.testimony-arrow { display: none; }

/* Track clips the off-screen cards */
.testimony-track {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    margin: 1.5rem 0 0;
}

/* All cards share base styles; tc-* position classes animate them */
.testimony-card {
    position: absolute;
    width: 480px;
    height: 245px;
    left: calc(50% - 240px);
    top: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
        transform  0.65s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.65s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
}

.testimony-stars {
    color: #FFD700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.testimony-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
}

.testimony-author {
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 0.75rem;
    color: var(--color-text);
    flex-shrink: 0;
}

/* Card position classes — JS swaps these to animate the carousel.
   D (displacement) = card width × 0.85 + 30  */
.testimony-card.tc-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* Hover only fires on the active card, and only once it has fully settled
   (is-transitioning is added by JS on every render and removed on transitionend) */
.testimony-card.tc-active:not(.is-transitioning):hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
    cursor: default;
}

/* D = 380 × 0.85 + 30 = 353px */
.testimony-card.tc-next {
    transform: translateX(353px) scale(0.7);
    opacity: 0.72;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}

.testimony-card.tc-prev {
    transform: translateX(-353px) scale(0.7);
    opacity: 0.72;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}

.testimony-card.tc-far-right {
    transform: translateX(650px) scale(0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.testimony-card.tc-far-left {
    transform: translateX(-650px) scale(0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Navigation dots */
.testimony-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    /* margin-top: 1.25rem; */
    margin-bottom: 3rem;
}

.testimony-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.testimony-dot.active {
    background: #ffffff;
    transform: scale(1.45);
}

/* Mobile: single-card view with fade + arrow navigation */
@media (max-width: 767px) {
    /* Shallower truss slope on narrow screens */
    .truss-divider-svg        { height: 100px; }
    .truss-divider-svg .chord { stroke-width: 6; }
    .truss-divider-svg .web   { stroke-width: 4; }

    .testimony-track { height: 290px; }

    .testimony-card {
        width: calc(100% - 5rem);
        max-width: 60%;
        min-width: 280px;
        height: auto;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
    }

    .testimony-card.tc-active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    .testimony-card.tc-active:not(.is-transitioning):hover {
        transform: translateY(-5px) translateX(-50%) scale(1);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
        cursor: default;
    }

    .testimony-card.tc-next,
    .testimony-card.tc-prev,
    .testimony-card.tc-far-right,
    .testimony-card.tc-far-left {
        transform: translateX(-50%) scale(0.9);
        opacity: 0;
        z-index: 1;
        pointer-events: none;
        cursor: default;
    }

    .testimony-text { font-size: 0.85rem; -webkit-line-clamp: 6; line-clamp: 6; }

    /* Arrow buttons — shown only on mobile */
    .testimony-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 20;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.88);
        border: none;
        cursor: pointer;
        font-size: 1.75rem;
        line-height: 1;
        color: var(--color-text);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
        transition: background 0.2s, transform 0.2s;
        padding: 0;
    }

    .testimony-arrow:active {
        background: #ffffff;
        transform: translateY(-50%) scale(0.93);
    }

    .testimony-arrow--prev { left: 0.5rem; }
    .testimony-arrow--next { right: 0.5rem; }
}

@media (min-width: 768px) {
    .testimony-section { margin-left: -2rem; margin-right: -2rem; }
    .mt-n2             { margin-top: -1rem; }

    /* Thicker truss strokes on tablet+ */
    .truss-divider-svg .chord { stroke-width: 9; }
    .truss-divider-svg .web   { stroke-width: 7; }
}

@media (min-width: 1025px) {
    .testimony-track { height: 290px; }
    .testimony-card  { width: 480px; height: 250px; left: calc(50% - 240px); }

    /* D = 420 × 0.85 + 30 = 387px */
    .testimony-card.tc-next      { transform: translateX(387px) scale(0.7); }
    .testimony-card.tc-prev      { transform: translateX(-387px) scale(0.7); }
    .testimony-card.tc-far-right { transform: translateX(710px) scale(0.5); }
    .testimony-card.tc-far-left  { transform: translateX(-710px) scale(0.5); }
    .testimony-text   { font-size: 1rem; -webkit-line-clamp: 7; line-clamp: 7; }
    .testimony-author { font-size: 0.95rem; }
}

@media (min-width: 1315px) {
    .testimony-section { background-size: 100% auto; }
    .mt-n2             { margin-top: -1.5rem; }

    /* Thicker truss strokes on desktop */
    .truss-divider-svg .chord { stroke-width: 12; }
    .truss-divider-svg .web   { stroke-width: 10; }

    .testimony-track { height: 335px; }
    .testimony-card  { width: 480px; height: 290px; left: calc(50% - 240px); }

    /* D = 480 × 0.85 + 30 = 438px */
    .testimony-card.tc-next      { transform: translateX(438px) scale(0.7); }
    .testimony-card.tc-prev      { transform: translateX(-438px) scale(0.7); }
    .testimony-card.tc-far-right { transform: translateX(800px) scale(0.5); }
    .testimony-card.tc-far-left  { transform: translateX(-800px) scale(0.5); }
    .testimony-stars  { font-size: 1.4rem; }
    .testimony-text   { font-size: 1.1rem; }
    .testimony-author { font-size: 1rem; }
}

@media (min-width: 1650px) {
    /* Steeper truss slope + thicker strokes on XL screens */
    .truss-divider-svg        { height: 220px; }
    .truss-divider-svg .chord { stroke-width: 15; }
    .truss-divider-svg .web   { stroke-width: 12; }

    .mt-n2 { margin-top: -1.75rem; }

    .testimony-track { height: 350px; }
    .testimony-card  { width: 580px; height: 300px; left: calc(50% - 290px); }

    /* D = 540 × 0.85 + 30 = 489px → rounded to 500 */
    .testimony-card.tc-next      { transform: translateX(525px) scale(0.7); }
    .testimony-card.tc-prev      { transform: translateX(-525px) scale(0.7); }
    .testimony-card.tc-far-right { transform: translateX(1100px) scale(0.5); }
    .testimony-card.tc-far-left  { transform: translateX(-1100px) scale(0.5); }
    .testimony-stars  { font-size: 2rem; }
    .testimony-text   { font-size: 1.25rem; -webkit-line-clamp: 9; line-clamp: 9; }
    .testimony-author { font-size: 1.1rem; }
}

/* ================================
   Partners / Supplier Logo Ticker
   Two rows scroll in opposite directions.
   Each track holds the logo set duplicated once — the animation
   shifts by exactly one set width (5 logos × 220px = 1100px)
   so the loop reset is seamless.
================================ */

.partners-section {
    background-color: white;
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: -5px;
    padding: 2.5rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .partners-section { margin-left: -2rem; margin-right: -2rem; }
}

/* Shared layout for both tracks */
.partners-track-rl,
.partners-track-lr {
    display: flex;
    will-change: transform;
}

/* Individual animation directions */
.partners-track-rl { animation: partners-scroll-rl 25s linear infinite; }
.partners-track-lr { animation: partners-scroll-lr 25s linear infinite; }

.partner-logo {
    flex-shrink: 0;
    width: 220px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* Right-to-left: shift one full set off the left edge */
@keyframes partners-scroll-rl {
    from { transform: translateX(0); }
    to   { transform: translateX(-1100px); }
}

/* Left-to-right: start pre-shifted so logos fill the view from frame one */
@keyframes partners-scroll-lr {
    from { transform: translateX(-1100px); }
    to   { transform: translateX(0); }
}


/* ================================
   About Page
================================ */

.about-hero {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: -90px;    /* pulls image behind the sticky header */
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background-image: url('/images/RTL_building.webp');
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* push content to the bottom white-fade area */
    padding-bottom: 3rem;
}

/* Gradient behind the text — ::after is position:absolute so it needs a
   lower z-index than the content div, not the other way around. */
.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;                 /* sits below z-index:1 content */
    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(255, 255, 255, 0.65) 75%,
        #ffffff 100%
    );
    pointer-events: none;
}

/* position:relative is required for z-index to take effect */
.about-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    margin-top: calc(90px + 4rem);
}

.about-hero__content p{
    color:black;
}

.about-hero__sub {
    font-size: 1rem;
    color: #444;
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .about-hero {
        margin-left: -2rem;
        margin-right: -2rem;
        margin-top: -125px;
        min-height: 400px;
        padding-bottom: 4rem;
    }
    .about-hero__sub { font-size: 1.1rem; }    
    .about-hero__content{ margin-top: calc(125px + 5rem);}
}

@media (min-width: 1025px) {
    .about-hero { margin-top: -150px; }
    .about-hero__content{ margin-top: calc(150px + 5rem);}
}

@media (min-width: 1315px) {
    .about-hero { min-height: 450px; }
    .about-hero__sub { font-size: 1.25rem; }
}

@media (min-width: 1650px) {
    .about-hero { min-height: 550px; }
    .about-hero__content{ max-width: 1000px;}
    .about-hero__content p{
        font-size: 1.35rem;
    }
}

/* ── About intro (white section directly below hero) ─────────────────── */

.about-intro {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    background: #ffffff;
    padding: 3rem 2rem 10rem;
}

.about-intro__content {
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-intro { margin-left: -2rem; margin-right: -2rem; }
}

/* ── About dark angled section ───────────────────────────────────────── */

.about-dark-section {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    background-color: var(--color-brand-dark);
    color: var(--color-white);
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%); /*polygon(0 0, 100% 12.5vw, 100% 100%, 0 100%)*/
    margin-top: -17rem;
    /* clip-path polygon boundaries land on fractional pixels at some viewport
       widths, leaving a sub-pixel gap before the next element. A 2px overlap fixes it. */
    margin-bottom: -2px;
}

.about-dark-section__content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding-top accounts for the clip-path angle height */
    padding: calc(12.5vw + 3rem) 2rem 5rem;
}

@media (min-width: 768px) {
    .about-dark-section { margin-left: -2rem; margin-right: -2rem; }
}

@media (min-width: 1315px) {
    .about-dark-section__content { padding: 12.5vw 3rem 6rem; }
}

.about-dark-section-row {
    display: flex;
}
.about-dark-section-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-dark-section-col p{
    max-width: 400px;
}

.about-dark-section__image {
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4 / 3;
    min-width: 150px;
    max-width: 80%;
    background-size: cover;
    background-position: center;
}

@media (max-width: 560px) {
    /* Row becomes the positioning context */
    .about-dark-section-row {
        position: relative;
    }

    /* Image column always renders first and fills the row */
    .about-dark-section-col:has(.about-dark-section__image) {
        order: -1;
        flex: none;
        width: 100%;
        position: relative;
    }

    /* Dark gradient so white/orange text is readable over the image */
    .about-dark-section-col:has(.about-dark-section__image)::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.90) 25%, transparent 80%);
        border-radius: 18px;
        pointer-events: none;
    }

    .about-dark-section__image {
        width: 100%;
        max-width: 100%;
        display: block;
        border-radius: 18px;
    }

    /* Text column floats over the bottom of the image */
    .about-dark-section-col:not(:has(.about-dark-section__image)) {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem 1.25rem 1.75rem;
        z-index: 1;
    }
}

@media (min-width: 1650px) {
    .about-dark-section__image {
        max-width: 90%;
    }
}

/* ── Service Radius section ──────────────────────────────────────────── */

.about-radius {
    position: relative;
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    /* No overflow:hidden — lets the glass panel breathe at the edges */
}

/* Image fills full section width. Below max-height it scales naturally;
   above it, object-fit:cover crops to fill rather than squishing. */
.about-radius img {
    width: 100%;
    height: auto;
    max-height: 600px;
    max-width: 2000px;
    margin:auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Text panel floats over the left side of the image */
.about-radius__content {
    position: absolute;
    top: 30%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 360px;
    padding: 1rem;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .about-radius {
        margin-left: -2rem;
        margin-right: -2rem;
    }
    .about-radius__content {
        right: 10%;
        max-width: 250px;
    }
}

@media (min-width: 1315px) {
    .about-radius__content {
        right: 20%;
        max-width: 350px;
    }
}

/* On narrow screens the image is short — stack content below instead */
@media (max-width: 560px) {
    .about-radius__content {
        position: static;
        transform: none;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* ================================
   Footer
================================ */

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

#footer_leaf {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 50%;
}


.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-text-light);
    transition: fill 0.2s;
}

@media (min-width: 768px) {
    footer { padding: 2rem; }
}

/* ================================
   Truss Guide Page
================================ */

/* ── Hero ──────────────────────────────────────
   Full-bleed Measuring_banner.jpg with a dark-clear-dark
   gradient so the title reads cleanly no matter the crop. */

.tg-hero {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: -90px;
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background-image: url('/images/Measuring_banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
}

.tg-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: calc(90px + 3rem) 1.5rem 3rem;
    text-align: center;
}

.tg-hero__content .title {
    color: var(--color-white);
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.05;
}

.tg-hero__sub {
    color: var(--color-white);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 1rem auto 0;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
    .tg-hero { margin-left: -2rem; margin-right: -2rem; margin-top: -125px; min-height: 440px; }
    .tg-hero__content { padding: calc(125px + 4rem) 2rem 4rem; }
    .tg-hero__sub { font-size: 1.35rem; }
}

@media (min-width: 1025px) {
    .tg-hero { margin-top: -150px; min-height: 520px; }
    .tg-hero__content { padding: calc(150px + 4.5rem) 2rem 4.5rem; }
    .tg-hero__sub { font-size: 1.5rem; }
}

@media (min-width: 1315px) {
    .tg-hero { min-height: 600px; }
}

/* ── Intro ────────────────────────────────── */

.tg-intro {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 3.5rem 1.5rem 2.5rem;
    background: transparent; /* lets the orange print backdrop show through */
}

.tg-intro__content {
    max-width: 820px;
    margin: 0 auto;
}

/* Readable card over the orange-print backdrop */
.tg-intro-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(34, 34, 34, 0.06);
    position: relative;
}

.tg-intro-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-brand);
}

.tg-intro-card p {
    line-height: 1.7;
    margin: 0;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .tg-intro { margin-left: -2rem; margin-right: -2rem; padding: 5rem 2rem 3.5rem; }
    .tg-intro-card { padding: 2.25rem 2.5rem; }
}

/* ── Measurements section (dark, angled) ── */

.tg-measurements {
    position: relative;
    background-color: var(--color-brand-dark);
    margin-left: -1rem;
    margin-right: -1rem;
    align-self: stretch;
    clip-path: polygon(0 0, 100% 8vw, 100% 100%, 0 calc(100% - 8vw));
    color: var(--color-white);
    padding: 7vw 0 10vw;
}

.tg-measurements__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 768px) {
    .tg-measurements { margin-left: -2rem; margin-right: -2rem; }
    .tg-measurements__content { padding: 3rem 2rem; gap: 5.5rem; }
}

/* Two-column rows (figure | text) */
.tg-measure-row {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
}

.tg-measure-figure {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

.tg-measure-text {
    width: 100%;
    max-width: 520px;
}

.tg-measure-eyebrow {
    display: inline-block;
    font-family: 'Lalezar', serif;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 0.6rem;
    border-left: 3px solid var(--color-brand);
    padding-left: 0.7rem;
}

@media (min-width: 768px) {
    .tg-measure-eyebrow { font-size: 1.05rem; padding-left: 0.8rem; }
}

@media (min-width: 1315px) {
    .tg-measure-eyebrow { font-size: 1.3rem; border-left-width: 4px; padding-left: 0.9rem; margin-bottom: 0.8rem; }
}

.tg-measure-text h2 {
    margin-bottom: 0.75rem;
}

.tg-measure-tip {
    margin-top: 1rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--color-brand);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    line-height: 1.55;
}

.tg-measure-tip strong { color: var(--color-brand); }

@media (min-width: 900px) {
    .tg-measure-row {
        flex-direction: row;
        gap: 3rem;
        justify-content: center;
    }
    .tg-measure-row--reverse { flex-direction: row-reverse; }
    .tg-measure-figure,
    .tg-measure-text { flex: 1; max-width: 560px; }
}

/* Diagram (image + overlays) */

.tg-diagram {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.tg-diagram:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 161, 1, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.tg-diagram img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Pitch animated SVG ───────────────────── */

.tg-diagram[data-diagram="pitch"] {
    aspect-ratio: 5 / 4;
}

.tg-pitch-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    pointer-events: none;
}

.tg-pitch-run,
.tg-pitch-rise,
.tg-pitch-slope {
    fill: none;
    stroke: var(--color-brand);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 1s ease;
}

.tg-pitch-slope { stroke: var(--color-white); }

.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-run   { stroke-dashoffset: 0; transition-delay: 0.1s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-rise  { stroke-dashoffset: 0; transition-delay: 0.7s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-slope { stroke-dashoffset: 0; transition-delay: 1.3s; transition-duration: 1.1s; }

.tg-pitch-label {
    font-family: 'Lalezar', serif;
    font-size: 12px;
    fill: var(--color-white);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tg-pitch-label--run  { text-anchor: middle; }
.tg-pitch-label--rise { text-anchor: start; }
.tg-pitch-label--angle { text-anchor: start; }
.tg-pitch-label--arc { text-anchor: start; }

.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-label--run  { opacity: 1; transition-delay: 1.0s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-label--rise { opacity: 1; transition-delay: 1.6s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-label--angle { opacity: 1; transition-delay: 2.0s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-label--arc { opacity: 1; transition-delay: 2.0s; }

.tg-pitch-right-angle,
.tg-pitch-theta-arc {
    fill: none;
    stroke: var(--color-white);
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-right-angle { opacity: 1; transition-delay: 1.3s; }
.tg-diagram[data-diagram="pitch"].is-animated .tg-pitch-theta-arc   { opacity: 1; transition-delay: 2.1s; }

/* ── Soffit Drop formula (inside the Soffit measurement text) ── */

.tg-soffit__formula {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-family: 'Lalezar', serif;
}

.tg-formula-term {
    background: rgba(255, 161, 1, 0.12);
    border: 1px solid rgba(255, 161, 1, 0.4);
    color: var(--color-white);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.tg-formula-term--out {
    background: var(--color-brand);
    color: var(--color-brand-dark);
    border-color: var(--color-brand);
}

.tg-formula-op {
    color: var(--color-brand);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Downloads section ────────────────────── */

.tg-downloads {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 4rem 1.5rem 4.5rem;
}

.tg-downloads__content {
    max-width: 1100px;
    margin: 0 auto;
}

.tg-downloads__lede {
    max-width: 620px;
    margin: 0.5rem auto 2.5rem;
}

.tg-download-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tg-download-card a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.tg-download-card a:hover,
.tg-download-card a:focus-visible {
    background: #fff;
    border-color: var(--color-brand);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    outline: none;
}

.tg-download-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 161, 1, 0.15);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.tg-download-card a:hover .tg-download-icon {
    background: var(--color-brand);
    color: #fff;
}

.tg-download-icon svg { width: 22px; height: 22px; }

.tg-download-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tg-download-title {
    font-family: 'Lalezar', serif;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.2;
}

.tg-download-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tg-download-arrow {
    flex: 0 0 auto;
    font-size: 1.3rem;
    color: var(--color-brand);
    transition: transform 0.25s ease;
}

.tg-download-card a:hover .tg-download-arrow {
    transform: translate(4px, -4px);
}

/* Stagger the reveal for card entrance */
.tg-download-card:nth-child(1) { transition-delay: 0ms; }
.tg-download-card:nth-child(2) { transition-delay: 90ms; }
.tg-download-card:nth-child(3) { transition-delay: 180ms; }
.tg-download-card:nth-child(4) { transition-delay: 270ms; }
.tg-download-card:nth-child(5) { transition-delay: 360ms; }

@media (min-width: 768px) {
    .tg-downloads { margin-left: -2rem; margin-right: -2rem; padding: 5rem 2rem 6rem; }
    .tg-download-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1100px) {
    .tg-download-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── CTA ──────────────────────────────────── */

.tg-cta {
    align-self: stretch;
    margin-left: -1rem;
    margin-right: -1rem;
    background-color: var(--color-brand-dark);
    color: var(--color-white);
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    padding: 10vw 1.5rem 4rem;
    margin-top: 2rem;
}

.tg-cta__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tg-cta__content p {
    max-width: 520px;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .tg-cta { margin-left: -2rem; margin-right: -2rem; padding: 11vw 2rem 5rem; }
}

/* ── Reduced motion overrides ─────────────── */

@media (prefers-reduced-motion: reduce) {
    .tg-pitch-run, .tg-pitch-rise, .tg-pitch-slope {
        stroke-dashoffset: 0;
        transition: none;
    }
    .tg-pitch-label { opacity: 1; transition: none; }
    .tg-pitch-right-angle, .tg-pitch-theta-arc { opacity: 1; transition: none; }
    .tg-diagram { transition: none; }
}
