﻿/* =======================
   GLOBAL / RESET
   ======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
}
/* Normalize font target (conflicts noted below) */

/* =======================
   HEADER / NAV (from CSS5 + slideout bits)
   ======================= */
.banner {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background-color: #b00a14;
    color: white;
    text-align: right;
    padding: 10px;
    font-size: 18pt;
    z-index: 9999;
}

    .top-bar a {
        color: white;
        text-decoration: none;
    }

.phone-icon {
    display: inline-block;
    transform: rotate(-90deg);
    font-size: 20pt;
    margin-right: 8px;
    vertical-align: middle;
}

.bottom-bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 75px;
    padding: 0 15px;
    background: transparent; /* bg handled by ::before */
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 9999;
    overflow: hidden;
}

    .bottom-bar::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(252, 246, 246, 0.75); /* same #FCF6F6 tone */
        backdrop-filter: blur(10px) saturate(1.1);
        -webkit-backdrop-filter: blur(10px) saturate(1.1);
    }

.logo-link {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
}

.menu-toggle { /* CSS3/4 50px vs CSS5 35pt — kept CSS5 */
    font-size: 35pt;
    color: #C22026;
    cursor: pointer;
    user-select: none;
    z-index: 2100;
}

#dark-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1500;
    display: none;
    transition: opacity 0.3s ease;
}

    #dark-overlay.active {
        display: block;
    }

.menu { /* mobile dropdown variant from CSS5 */
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #FCF6F6;
    position: absolute;
    top: 100%;
    right: 0;
    padding-left: 100px;
    width: 100%;
    opacity: 0.95;
}

    .menu a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 25pt;
        color: #000;
        background-color: #FCF6F6;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

        .menu a:hover {
            background-color: #e0dcdc;
        }

/* Slideout menu (CSS3/4 vs CSS5 — standardized to CSS3/4 sizing) */
#menu-slideout {
    position: fixed;
    right: -320px;
    top: 0;
    width: 280px;
    height: 100%;
    background-color: #FCF6F6;
    box-shadow: -4px 0 10px rgba(0,0,0,0.05);
    transition: right 0.4s ease;
    z-index: 2000;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

    #menu-slideout.open {
        right: 0;
    }

    #menu-slideout h2 {
        margin-top: 4px;
        font-size: 30px;
        color: #b00a14;
        margin-bottom: 0;
    }

    #menu-slideout ul {
        list-style: none;
        padding: 0;
        margin-top: 20px;
    }

        #menu-slideout ul li {
            border-bottom: 1px solid #000;
        }

            #menu-slideout ul li:last-child {
                border-bottom: none;
            }

            #menu-slideout ul li a {
                display: block;
                width: 100%;
                padding: 16px 20px;
                font-size: 26px;
                color: #000;
                background-color: transparent;
                text-decoration: none;
                transition: background-color 0.3s ease, color 0.3s ease;
            }

                #menu-slideout ul li a:hover {
                    background-color: #b00a14;
                    color: white;
                }

.order-cal-btn {
    display: inline-block;
    color: black;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    margin-left: auto;
    text-align: center;
}

    .order-cal-btn:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        transform: translateY(-1px);
    }

/* =======================
   TIMELINE / ABOUT (from CSS1 updated)
   ======================= */
.aboutusbody {
    font-family: "Poppins", Tahoma, Geneva, Verdana, sans-serif; /* scoped to this page */
    background-image: url('https://tincknellfuels.com/images/tincknellsweb/background-1.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top center;
}

.svg-container {
    position: relative;
    top: auto;
    margin: -130px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 5900px;
    z-index: 0;
}

svg {
    height: 100%;
}

.timeline-section {
    position: relative;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.sec-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    gap: 10px;
}
/* NOTE: original still contained .timeline-section:nth-child(even) .content — replaced with .sec-content */
.timeline-section:nth-of-type(even) .sec-content {
    flex-direction: row-reverse;
}

.desc, .image {
    flex: 1;
    opacity: 1;
    transition: all 1s ease-out;
}

.desc {
    transform: translateX(-50px);
}
/* NOTE: original still had .timeline-section:nth-child(even) .text — corrected to .desc */
.timeline-section:nth-of-type(even) .desc {
    transform: translateX(50px);
}

.image {
    transform: translateX(50px);
    display: flex;
    justify-content: flex-start;
}

.timeline-section:nth-of-type(even) .image {
    transform: translateX(-50px);
    justify-content: flex-end;
}

.timeline-section.visible .desc,
.timeline-section.visible .image {
    opacity: 1;
    transform: translateX(0);
}

.node-wrapper {
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease-out;
}

.timeline-section.visible .node-wrapper {
    opacity: 1;
    transform: scale(1);
}

.node {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
}

.desc h1 {
    font-size: 3rem;
    color: white;
}

.desc p {
    font-size: 1.5rem;
    color: white;
    padding: 0 20px;
}

.next-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #b00a14;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    appearance: none; /* normalize */
    -webkit-appearance: none;
}

    .next-button:hover {
        background-color: #910813;
    }

    .next-button:active {
        transform: scale(0.98);
    }

.form-next {
    text-align: center;
    margin-top: 30px;
}

.image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 500px;
    border-radius: 10px;
    display: block;
}

/* timeline drawing */
.vertical.draw-line {
    stroke-dasharray: 6400;
    stroke-dashoffset: 6400;
    opacity: 0;
    stroke: #b00a14;
    stroke-width: 10;
}

    .vertical.draw-line.animate {
        stroke-dashoffset: 0;
        opacity: 1;
        transition: stroke-dashoffset 1s ease-out, opacity 0.5s ease-in;
    }

.horizontal-left, .horizontal-right {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0;
    stroke-linecap: round;
    stroke: #b00a14;
    stroke-width: 10;
}

    .horizontal-left.animate, .horizontal-right.animate {
        stroke-dashoffset: 0;
        opacity: 1;
        transition: stroke-dashoffset 1s ease-out, opacity 0.5s ease-in;
    }

.timeline-path {
    stroke-dasharray: 16000;
    stroke-dashoffset: 16000;
    animation: drawPath 12s linear forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Intro block */
.intro-section {
    padding: 180px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: white;
    max-width: 820px;
    margin: 0 auto;
}

.story-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.story-intro {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    line-height: 1.6;
}

.intro h1 {
    text-align: center;
}

.intro p {
    padding: 0 10px;
}

.enhanced-intro {
    backdrop-filter: blur(5px);
    background-color: rgba(255,228,225,0.75);
    padding: 40px 20px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 850px;
    text-align: center;
    position: relative;
    z-index: 2;
}

    .enhanced-intro h1 {
        font-size: 2rem;
        color: #b00a14;
        margin-bottom: 20px;
        font-weight: 700;
        line-height: 1.3;
    }

    .enhanced-intro p {
        font-size: 1.1rem;
        color: black;
        max-width: 700px;
        margin: 5px auto 0;
        line-height: 1.6;
    }

/* =======================
   FORM / ACCORDION (from CSS2 + CSS3)
   ======================= */
input[type="radio"] {
    display: none;
}

input[type="checkbox"] {
    accent-color: white;
    background-color: #b00a14;
    transform: scale(1.4);
}

.wrapper {
    max-width: 700px;
    margin: 140px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    align-items: center;
}



.accordion {
    width: 100%;
    margin: 40px auto;
}

    .accordion li {
        list-style: none;
        width: 100%;
        margin: 10px auto;
        padding: 10px;
        border-radius: 8px;
        background: #FCF6F6;
        position: relative;
        z-index: 2;
        backdrop-filter: blur(5px);
        background-color: rgba(255,228,225,0.85);
        color: black;
    }

        .accordion li label {
            display: flex;
            align-items: center;
            padding: 10px 0;
            font-size: 18px;
            cursor: pointer;
            margin: 0;
        }

    .accordion > li > label::before {
        content: '+';
        margin-right: 10px;
        font-size: 24px;
        font-weight: 500;
    }

    .accordion .content {
        color: black;
        padding: 0 10px;
        line-height: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s, padding 0.5s;
    }

        .accordion .content label {
            display: block;
            margin-bottom: 5px;
        }

        .accordion .content input,
        .accordion .content select {
            display: block;
            width: 100%;
            padding: 8px;
            margin-bottom: 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
        }

    .accordion input[type="radio"]:checked + label + .content {
        max-height: 580px;
        padding: 10px 10px 20px;
    }

    .accordion input[type="radio"]:checked + label::before {
        content: '-';
    }

.required {
    color: red;
    margin-left: 4px;
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
    width: 70%;
}

    .checkbox-label .checkbox-cell {
        width: 50px;
        display: flex;
        justify-content: center;
    }

    .checkbox-label .text-cell {
        flex: 1;
        width: 550%;
    }

.terms-paragraph {
    margin-top: 20px;
    font-size: 0.95rem;
    font-style: italic;
}

.terms-link {
    color: #b00a14;
    text-decoration: underline;
}

.sub-note {
    font-size: 0.85rem;
    font-style: italic;
    color: black;
    display: block;
    margin: 2px 0 0 10px;
}

.fuel-descriptions-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0 0 10px;
}

    .fuel-descriptions-wrapper .info-icon {
        font-size: 2rem;
        line-height: 1;
        margin-top: 6px;
        color: #b00a14;
        flex-shrink: 0;
    }

.fuel-descriptions p {
    font-size: 1rem;
    color: black;
    font-style: italic;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Contact form presentation (CSS3) */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0
}

.form {
    width: 100%;
    max-width: 820px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.contact-form {
    background-color: #b00a14;
    position: relative;
    padding-bottom: 20px;
}

.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 20%, #b00a14);
    position: absolute;
}

    .circle.one {
        width: 130px;
        height: 130px;
        top: 130px;
        right: -40px;
    }

    .circle.two {
        width: 80px;
        height: 80px;
        top: 10px;
        right: 30px;
    }

.contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #b00a14;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
}

.title {
    color: #fff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
    z-index: 1000;
}

.input-container {
    position: relative;
    margin: 1rem 0;
}

.input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
}

textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
}
/*Disclaimer*/
.page-wrap {
    margin: 140px auto 0;
    max-width: 1100px;
    padding: 0 18px;
}
/* Pale blue header band + big title */
.disclaimer-hero {
    background: #FCF6F6;
    border-top: 1px solid #c7dce3;
    border-bottom: 1px solid #c7dce3;
    padding: 36px 0 28px;
    margin: 120px 0 26px 0;
    text-align: center;
    z-index: 10;
}

    .disclaimer-hero h1 {
        font-size: 40px;
        font-weight: 600;
        color: #222;
        margin: 0;
    }

.crumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 18px 0;
    font-size: .9rem;
    color: #666;
}

    .crumb a {
        color: #666;
        text-decoration: none;
    }

        .crumb a:hover {
            text-decoration: underline;
        }


.disclaimer-card {
    background: #fff;
    padding: 26px 22px;
    line-height: 1.65;
    font-size: 15.5px;
    color: #222;
    max-width: 1100px;
    margin: 0 auto;
}

    .disclaimer-card p {
        margin-bottom: 14px;
    }

.reg-lines {
    margin-top: 14px;
    font-size: 14px;
    color: #333;
}
/* Multi-column footer links section like screenshot */
.mega-links {
    background: #efe9e3;
    border-top: 1px solid #e2dbd4;
    margin-top: 32px
}

.mega-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 28px;
    z-index: 9999;
}

.mega h4 {
    font-size: 15px;
    letter-spacing: .5px;
    color: #3a3a3a;
    margin: 2px 0 10px
}

.mega ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.mega li {
    margin: 6px 0
}

.mega a {
    color: #444;
    text-decoration: none
}

    .mega a:hover {
        text-decoration: underline
    }

.input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
}

.input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
}

.btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #b00a14;
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
}

    .btn:hover {
        background-color: #8D080F;
        color: white;
    }

.info-text {
    color: #af1b23;
}

.popup-actions-text {
    background-color: #b00a14;
    color: white;
}
/* fixed: class selector */

.input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
}

.svg-line svg {
    display: block;
    margin: 8px auto 0; /* top, horizontal auto for centering, 0 bottom */
    width: 60%;
    height: auto;
}

.input-container span:before,
.input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: #b00a14;
    top: 50%;
    transform: translateY(-50%);
}

.input-container span:before {
    left: 50%;
}

.input-container span:after {
    right: 50%;
}

.input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
}

.input-container.focus span:before, .input-container.focus span:after {
    width: 50%;
    opacity: 1;
}

.contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
}

    .contact-info .title {
        color: #b00a14;
    }

.text {
    color: #333;
    margin: 1.5rem 0 2rem 0;
}
/* NOTE: generic .text; see conflicts */
.information {
    display: flex;
    color: black;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
}

.icon {
    width: 28px;
    margin-right: 0.7rem;
}

.social-media {
    padding: 2rem 0 0 0;
}

    .social-media p {
        color: #333;
    }

.social-icons {
    display: flex;
    margin-top: 0.5rem;
}

    .social-icons a {
        width: 35px;
        height: 35px;
        border-radius: 5px;
        background: linear-gradient(45deg, #b00a14, #b00a14);
        color: #fff;
        text-align: center;
        line-height: 35px;
        margin-right: 0.5rem;
        transition: 0.3s;
    }

        .social-icons a:hover {
            transform: scale(1.05);
        }

.contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid #b00a14;
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
}

/* Background images behind forms */
.background-behind-form { /* CSS2 full-screen, kept */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.9);
    z-index: -1;
    pointer-events: none;
}

.background-behind { /* CSS3 optional inner graphic */
    position: absolute;
    z-index: 0;
    max-width: 1100px;
    width: 90%;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.square {
    position: absolute;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(181%, 11%);
    opacity: 0.2;
}

.info-hov a:hover {
    text-decoration: underline !important;
}

.information.info-hov a {
    color: #b00a14 !important;
    text-decoration: underline !important;
}

/* =======================
   HERO / HOME (from CSS4)
   ======================= */
.what-we-offer {
    padding: 24px 20px; /* some breathing room */
    display: flex;
    justify-content: center;
}

    .what-we-offer > div {
        position: relative;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        padding: clamp(18px, 4vw, 36px);
        text-align: center;
        max-width: 1010px;
        overflow: hidden; /* clip the decorative glow */
    }
        .what-we-offer > div::after {
            content: "";
            position: absolute;
            top: -80px;
            right: -80px;
            width: 240px;
            height: 240px;

            filter: blur(28px);
            pointer-events: none;
            z-index: 0;
        }
    .what-we-offer h1 {
        font-size: 2rem;
        margin: 0 0 12px;
        position: relative;
        z-index: 1;
    }

    .what-we-offer .offer-text {
        /* override previous width rules so it reads like a card */
        width: auto;
        min-width: 0;
        max-width: 70ch;
        margin: 0 auto;
        font-size: 1.05rem;
        line-height: 1.75;
        color: #333;
        position: relative;
        z-index: 1;
    }

    /* optional: subtle divider under the heading */
    .what-we-offer h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        margin: 10px auto 12px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(176,10,20,.45), rgba(4,41,75,.35));
    }

/* small screens */
@media (max-width: 540px) {
    .what-we-offer > div {
        border-radius: 18px;
    }

    .what-we-offer h1 {
        font-size: 1.6rem;
    }
}
.section-divider {
    border-bottom: 1px solid #000; /* Line color */
    width: 80%; /* Let it shrink on small screens */
    min-width: 350px;
    max-width: 500px; /* Limit the length */
    margin: 0 auto; /* Center it */
}

.section-divider2 {
    border-bottom: 1px solid white; /* Line color */
    width: 80%; /* Let it shrink on small screens */
    min-width: 350px;
    max-width: 500px; /* Limit the length */
    margin: 0 auto; /* Center it */
}

.hero {
    height: 65vh;
    min-height: 505px;
    width: 100%;
    position: relative;
    background-image: url('https://tincknellfuels.com/images/tincknellsweb/trucksky2.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-text {
    z-index: 2;
    position: relative;
    text-align: left;
    margin-top: 150px;
    padding: 0 25px;
}

    .hero-text .line1, .hero-text .line2, .hero-text .line3 {
        color: white;
    }

    .hero-text h1 {
        margin: 0;
        padding: 0;
        font-size: 4.5vh;
    }

    .hero-text p {
        font-size: 3vh;
        margin: 0;
        padding: 0;
        max-width: 1170px;
    }

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #b00a14;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .hero-btn.red {
        background-color: #b00a14;
    }

    .hero-btn:hover {
        background-color: #000;
    }

.section1 {
    padding: 40px 0 0;
    position: relative;
    z-index: 1;
}

.stat-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.stat-card {
    background-color: #c22026;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.2;
}

.secsolar {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .secsolar.visible {
        opacity: 1;
        transform: translateY(0);
    }

.carousel-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background-color: white;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: max-content;
}

    .carousel-track img {
        width: auto;
        height: 200px;
        object-fit: contain;
        margin: 10px;
        border-radius: 8px;
        transition: transform 0.3s;
    }

        .carousel-track img:hover {
            transform: scale(1.05);
        }

.container-review {
    font-size: 1rem;
    max-width: 1010px;
    padding: 0 15px;
    margin: 10px auto 0;
}

/* Alternating content sections */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1010px;
    margin: 0 auto;
    padding: 20px;
}

.alt-section {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.alt-text {
    padding: 20px;
    color: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

    .alt-text h2 {
        margin-top: 0;
        font-size: 24px;
    }

    .alt-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .alt-text a {
        display: inline-block;
        padding: 10px 15px;
        border-radius: 6px;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
        color: white;
        margin-top: 10px;
        text-align: center;
    }

        .alt-text a:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            transform: translateY(-1px);
        }

.secimg img {
    display: block;
}

/* Theme box-shadows */
.alt-text.red {
    box-shadow: 4px 4px 2px rgba(139, 0, 0, 0.7);
}

.alt-text.heating {
    box-shadow: -4px 4px 2px rgba(100, 10, 10, 0.7);
}

.alt-text.solar {
    box-shadow: 4px 4px 2px rgba(25, 115, 38, 0.6);
}

.alt-text.elec {
    box-shadow: -4px 4px 2px rgba(10, 10, 70, 0.5);
}

.alt-text.store {
    box-shadow: 4px 4px 2px rgba(90, 0, 0, 0.6);
}

.alt-text.storage {
    box-shadow: -4px 4px 2px rgba(135, 60, 25, 0.5);
}

.alt-text.prop {
    box-shadow: 4px 4px 2px rgba(10, 40, 70, 0.5);
}

/* Simple slider */
.slider-container {
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slider-card {
    flex: 0 0 300px;
    height: 300px;
    margin-right: 10px;
    margin-left: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .fade-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =======================
   POPUPS (from CSS3)
   ======================= */
.popup-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 60%;
}

    .popup-buttons a {
        display: inline-block;
        padding: 12px 20px;
        width: 75%;
        background-color: #910813;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
        font-size: 1.2rem;
        z-index: 1;
        text-decoration: none;
        text-align: center;
        box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    }

        .popup-buttons a:hover {
            background-color: #73040e;
        }

#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.popup-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 25px 25px 55px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    width: 90%;
    line-height: 1.4rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    color: black;
    text-decoration: none;
}

    .popup-panel.active {
        display: block;
        transform: translate(-50%, -50%) scale(1);
        max-width: 750px;
    }

    .popup-panel h3, .popup-panel strong {
        color: #b00a14;
    }

    .popup-panel a {
        color: #af1b23;
        text-decoration: none;
    }

        .popup-panel a:hover {
            text-decoration: underline;
        }

.popup-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

    .popup-content button.close-popup {
        margin-top: 15px;
        padding: 8px 12px;
        background: #b00a14;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .popup-content p {
        margin-bottom: 1rem;
    }

.popup-map {
    margin-bottom: 10px;
}
/* fixed: class selector */

.popup-panel .close-popup.heating-close {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #b00a14;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .popup-panel .close-popup.heating-close:hover {
        background-color: #910813;
    }

#popupSFSelector a.get-directions-btn {
    color: white !important;
    text-align: center;
    justify-content: center;
    margin: 15px 0;
}

.get-directions-btn {
    background-color: #b00a14;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

    .get-directions-btn:hover {
        background-color: #910813;
        color: white;
        text-decoration: underline;
    }

/* =======================
   FOOTER (merged)
   ======================= */
.info-footer {
    position: relative;
    z-index: 1;
    background-color: #b00a14;
    color: white;
}

.container-footer {
    display: flex;
    justify-content: space-between;
    align-content: center;
    padding: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px; /* CSS5 */
}

.footerleft, .footerright {
    width: 48%;
}

.footerleft {
    margin-bottom: 1rem;
}

.thank-you-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.thank-line {
    font-size: 1.4rem;
    margin: 0 5px 10px 5px;
    font-style: italic;
    color: #000;
}

/* =======================
   MEDIA QUERIES (consolidated)
   ======================= */

/* <= 899px */
@media (max-width: 899px) {
    .alt-section img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
    }
}

/* <= 850px */
@media (max-width: 850px) {
    .form {
        grid-template-columns: 1fr;
    }

    .container {
        max-width: 650px;
        margin: 120px auto 0;
    }

    .contact-info:before {
        bottom: initial;
        top: -75px;
        right: 65px;
        transform: scale(0.95);
    }

    .contact-form:before {
        top: -7px;
        left: initial;
        right: 70px;
    }

    .contact-form h3 {
        margin-top: 5px;
    }

    .square {
        transform: translate(140%, 43%);
        height: 350px;
    }

    .text {
        margin: 1rem 0 1.5rem 0;
    }

    .social-media {
        padding: 1.5rem 0 0 0;
    }
}

/* <= 768px */
@media (max-width: 768px) {
    .hero text {
        margin-top: 0;
    }
    /* source typo kept */
    .hero-text h1 {
        font-size: 3vh;
    }

    .hero-text p {
        font-size: 2vh;
    }

    .hero {
        height: 55vh;
    }
}

@media (min-width: 768px) {
    .stat-card {
        width: 150px;
        height: 80px;
    }
}
/* >= 900px */
@media (min-width: 900px) {
    .alt-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: auto;
        gap: 0;
        margin: 0 auto;
        justify-content: center;
    }

        .alt-section:nth-child(even) {
            flex-direction: row-reverse;
        }

        .alt-section .alt-text {
            width: 55%;
            box-sizing: border-box;
        }

        .alt-section .secimg {
            box-sizing: border-box;
            width: 45%;
        }

        .alt-section img {
            width: 100%;
            height: 350px;
            object-fit: cover;
            display: block;
        }

    .alt-text {
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        max-height: 300px;
    }

        .alt-text h2 {
            font-size: 26px;
        }

        .alt-text p {
            font-size: 20px;
            margin-bottom: 0;
        }

        .alt-text a {
            font-size: 18px;
            margin-top: 20px;
        }
}

/* <= 767px  (TIMELINE + ACCORDION + SLIDER bits) */
@media (max-width: 767px) {
    /* Timeline */
    .sec-content {
        flex-direction: column !important;
        gap: 8px;
        margin: 20px 0;
    }

    .desc, .image, .node-wrapper {
        transform: translateY(-30px) !important;
    }

    .timeline-section.visible .desc,
    .timeline-section.visible .image,
    .timeline-section.visible .node-wrapper {
        transform: translateY(0) !important;
    }

    .timeline-section {
        height: 630px;
    }

    .desc h1 {
        font-size: 2.2rem;
    }

    .desc p {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .node {
        width: 14px;
        height: 14px;
    }

    .svg-container {
        transform: translateY(-60px);
    }

    /* Accordion form */
    .wrapper {
        padding: 0 10px;
    }



    .accordion {
        width: 100%;
        margin: 20px auto;
    }

        .accordion li {
            margin: 15px auto;
        }

    .checkbox-label {
        align-items: flex-start;
        width: 100%;
    }

        .checkbox-label .text-cell {
            width: 100%;
        }

        .checkbox-label .checkbox-cell {
            margin-top: 5px;
        }

    .intro h1 {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    /* Slider / trustindex */
    .slider-card {
        width: 90%;
    }

    .carousel-track img {
        width: 150px;
        height: 150px;
    }

    .trustindex-wrapper {
        max-width: 330px;
        width: 100%;
        padding: 0 10px;
        margin-top: 20px;
    }
}

/* <= 680px */
@media (max-width: 680px) {
    .popup-content {
        flex-direction: column;
    }

    .popup-panel.active {
        max-width: 400px;
        margin: 50px 0 0;
    }
}

/* <= 599px */
@media (max-width: 599px) {
    .popup-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .container-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footerleft, .footerright {
        width: 100%;
    }
}

/* >= 600px */
@media (min-width: 600px) {
    .container-footer {
        align-items: flex-start;
    }

    .footerleft {
        text-align: left;
    }

    .footerright {
        text-align: right;
    }

    .popup-content {
        gap: 20px;
        text-align: left;
        align-items: flex-start;
    }

    .popup-panel.active {
        max-width: 750px;
    }

    .popup-content > div:first-child {
        flex: 1;
    }

    .popup-content iframe {
        flex: 1;
    }
}

/* <= 534px */
@media (max-width: 534px) {
    .order-cal-btn {
        font-size: 3.5vw;
        padding: 10px 0;
    }

    .mega-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mega a, .mega h4 {
        font-size: 1.2rem;
    }
}

/* <= 480px (timeline + contact compact) */
@media (max-width: 480px) {
    /* timeline */
    .desc h1 {
        font-size: 1.8rem;
    }

    .desc p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .node {
        width: 10px;
        height: 10px;
    }

    /* contact */
    .container {
        padding: 1.5rem;
    }

    .contact-info:before, .square {
        display: none;
    }

    .contact-info {
        padding: 1.7rem 1.6rem;
    }

    .text, .information, .social-media p {
        font-size: 1rem;
        text-decoration: none;
        color: black;
    }

    .title {
        font-size: 1.15rem;
    }

    .social-post {
        display: flex;
        margin-top: 0.5rem;
    }

        .social-post a img {
            width: 35px;
            height: 35px;
            border-radius: 5px;
            transition: transform 0.3s ease;
        }

            .social-post a img:hover {
                transform: scale(1.3);
            }

    .input, .btn {
        padding: 0.45rem 1.2rem;
    }
}

/* Menu item vertical spacing by viewport height (CSS5) */
@media (max-height:785px) {
    #menu-slideout ul li a {
        padding: 10px 0 10px 10px;
        font-size: 1.6rem;
    }
}

@media (min-height:786px) {
    #menu-slideout ul li a {
        padding: 16px 0 16px 16px;
        font-size: 1.6rem;
    }
}
