/* ══════════════════════════════════════════════════════════
   HERO BANNER IMAGE – Fixed / No Animation
   Overrides theme mainbanner to ensure it stays fixed
   and never animates or disappears on scroll
   ══════════════════════════════════════════════════════════ */

/* Fix the mainbanner so it stays in position on scroll */
.mainbanner,
.mainbanner_tab,
.mainbanner_mobile {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
}

/* Prevent AOS from hiding/animating the banner even if
   the JS fires before data-aos attrs were stripped */
.mainbanner[data-aos],
.mainbanner_tab[data-aos],
.mainbanner_mobile[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Disable ALL AOS transitions site-wide for performance.
   Sections appear immediately — no scroll-triggered hiding. */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ============================================================
   Auto Glass Canada – Homepage Additions
   File : homepage-additions.css
   Load on front page only alongside style_home.css

   THEME FONT SYSTEM (extracted from autoglasscanada theme):
   ─────────────────────────────────────────────────────────
   Font family   : "fm_primary"  → Karla Regular (all body/paragraph text)
   Bold font     : fm_secondary_bold → Karla + font-weight:bold (.fm_bold)
   Body size     : 16px
   Body color    : #424242
   Links         : color:#424242, text-decoration:none
   ─────────────────────────────────────────────────────────
   THEME COLORS (from bg_secondary, bg_primary, border_red):
   ─────────────────────────────────────────────────────────
   Theme red     : #da1d1d   (.bg_secondary, .border_red, .btn_secondary)
   Theme dark    : #262626   (.bg_primary, .road_section bg)
   Body text     : #424242
   Ash bg        : #f2f2f2   (.bg_ash)
   White         : #ffffff
   Heading dark  : #000000 / #141414
   h3 font-size  : 18px (theme override from style_home.css)
   .fs_30        : 30px
   .fs_19        : 19px
   box_shadow_1  : 0px 0px 16px 0px rgba(0,0,0,.14)
   ============================================================ */


/* ══════════════════════════════════════════════════════════
   SECTION 2 – HERO (dark navy + contact form)
   ══════════════════════════════════════════════════════════ */

.agc-hero {
    background: linear-gradient(135deg, #0b2545 0%, #163b6e 60%, #1a4e8a 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

/* ── Hero: Left copy ───────────────────────────────────── */

.agc-hero__copy {
    padding-right: 40px;
}

.agc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 158, 117, 0.18);
    border: 1px solid rgba(29, 158, 117, 0.4);
    color: #5dcaa5;
    font-family: "fm_primary";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.agc-hero__badge-dot {
    width: 7px;
    height: 7px;
    background: #5dcaa5;
    border-radius: 50%;
    display: inline-block;
    animation: agc-pulse 2s infinite;
}

@keyframes agc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.5); }
}

/* H1 – uses fm_secondary_bold (same as .fm_bold class) */
.agc-hero__h1 {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: clamp(28px, 3.8vw, 44px);
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.agc-hero__h1-accent {
    color: #5dcaa5;
    text-decoration: none;
    font-family: fm_secondary_bold;
    font-weight: bold;
}

.agc-hero__h1-accent:hover {
    color: #3db88a;
    text-decoration: underline;
}

/* Subheadline – fm_primary, theme body size */
.agc-hero__sub {
    font-family: "fm_primary";
    font-size: 16px;
    color: #9cb3d0;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Trust badge list */
.agc-hero__trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 28px;
    padding: 0;
    list-style: none;
}

.agc-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "fm_primary";
    font-size: 14px;
    color: #b0c8e4;
}

.agc-hero__check {
    color: #5dcaa5;
    font-weight: bold;
}

/* CTA buttons – match theme .btn_secondary style */
.agc-hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.agc-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #da1d1d;
    color: #ffffff;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, #da1d1d 50%, #262626 50%);
    transition: background-position 0.2s linear, color 0.2s linear;
    white-space: nowrap;
}

.agc-hero__btn-primary:hover {
    background-position: -107% 0;
    color: #ffffff;
    text-decoration: none;
}

.agc-hero__btn-icon {
    font-size: 16px;
}

.agc-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #ffffff;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.agc-hero__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    text-decoration: none;
}

/* ── Hero: Right contact form card ─────────────────────── */

.agc-hero__form-wrap {
    padding-left: 10px;
}

.agc-hero__form-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 28px 24px;
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.18);
}

/* Form title – "Get a Free Quote in 60 Seconds"
   Uses fm_secondary_bold like .fm_bold in theme */
.agc-hero__form-title {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 16px;
    color: #141414;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.agc-hero__form-divider {
    border: none;
    border-top: 2px solid #da1d1d;
    margin: 0 0 20px 0;
}

/* Labels – uppercase, small, theme body font */
.agc-hero__form-label {
    display: block;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 12px;
    color: #424242;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}

/* Required asterisk – theme red */
.agc-hero__required {
    color: #da1d1d;
    font-weight: bold;
    margin-left: 1px;
}

.agc-hero__form-group {
    margin-bottom: 14px;
}

/* Inputs and textarea – match theme input style */
.agc-hero__form-control {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: "fm_primary";
    font-size: 14px;
    color: #424242;
    background: #ffffff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.agc-hero__form-control:focus {
    outline: none;
    border-color: #da1d1d;
    box-shadow: 0 0 0 3px rgba(218, 29, 29, 0.12);
}

.agc-hero__form-control::placeholder {
    color: #adb5bd;
    font-family: "fm_primary";
    font-size: 14px;
}

.agc-hero__form-row {
    margin: 0 -6px;
}

.agc-hero__form-row .col-md-6 {
    padding: 0 6px;
}

/* Textarea */
.agc-hero__form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit – matches .btn_secondary_lg exactly but full-width */
.agc-hero__form-submit {
    width: 100%;
    padding: 10px 20px;
    color: #ffffff;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, #da1d1d 50%, #262626 50%);
    transition: background-position 0.2s linear, color 0.2s linear;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.agc-hero__form-submit:hover,
.agc-hero__form-submit:focus {
    background-position: -107% 0;
    outline: none;
}

.agc-hero__form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════
   TRUST BAR (below hero)
   ══════════════════════════════════════════════════════════ */

.agc-trust-bar {
    background: #262626;
    border-top: 3px solid #da1d1d;
    padding: 20px 0;
}

.agc-trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.agc-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agc-trust-bar__icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    line-height: 40px;
}

.agc-trust-bar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

/* Bold label – .fm_bold equivalent */
.agc-trust-bar__label {
    color: #ffffff;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.agc-trust-bar__sub {
    font-family: "fm_primary";
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}


/* ══════════════════════════════════════════════════════════
   SECTION 3 – SERVICES GRID (6 cards)
   "Complete Auto Glass Solutions Across the GTA"
   ══════════════════════════════════════════════════════════ */

.agc-services {
    background: #ffffff;
}

.agc-services__grid {
    row-gap: 24px;
}

.agc-services__col {
    display: flex;
}

/* Cards – match .item.box_shadow_1 style from theme */
.agc-service-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 28px 22px 24px;
    -webkit-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.agc-service-card:hover {
    transform: translateY(-4px);
    -webkit-box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.14);
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.14);
}

/* Icon wrapper – dark circle like .icon in theme */
.agc-service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.4s ease;
}

.agc-service-card:hover .agc-service-card__icon {
    background: #da1d1d !important;
}

/* Icon colour variants */
.agc-service-card__icon--orange { background: #fef2ec; color: #da1d1d; }
.agc-service-card__icon--green  { background: #eaf3de; color: #3a7a2e; }
.agc-service-card__icon--blue   { background: #e6f1fb; color: #1a5fa6; }
.agc-service-card__icon--yellow { background: #faeeda; color: #8a6000; }
.agc-service-card__icon--pink   { background: #fbeaf0; color: #a02040; }
.agc-service-card__icon--purple { background: #eeedfe; color: #5040b4; }

/* Card title – fm_secondary_bold, theme dark, uppercase like .why_choose_us h4 */
.agc-service-card__title {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 18px;
    color: #141414;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Card text – fm_primary, #424242, 16px */
.agc-service-card__text {
    font-family: "fm_primary";
    font-size: 16px;
    color: #424242;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Learn More link – matches .text_secondary + theme link style */
.agc-service-card__link {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 14px;
    color: #da1d1d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap 0.18s, color 0.18s;
    text-transform: uppercase;
}

.agc-service-card__link:hover {
    gap: 8px;
    color: #da1d1d;
    text-decoration: none;
}


/* ══════════════════════════════════════════════════════════
   SECTION 5 – HOW IT WORKS (4 Steps)
   ══════════════════════════════════════════════════════════ */

.agc-steps {
    background: #f2f2f2;
}

.agc-steps__row {
    position: relative;
    padding-top: 20px;
}

/* Desktop connector line */
.agc-steps__track {
    display: none;
}

@media (min-width: 992px) {
    .agc-steps__track {
        display: block;
        position: absolute;
        top: 47px;
        left: calc(12.5% + 28px);
        right: calc(12.5% + 28px);
        height: 2px;
        background: #dee2e6;
        z-index: 0;
    }
}

.agc-steps__col {
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

/* Step number circles – theme dark #262626 / red #da1d1d */
.agc-step__num {
    width: 56px;
    height: 56px;
    background: #262626;
    color: #ffffff;
    border-radius: 50%;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 3px solid #ffffff;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 1;
}

/* Step 1 uses theme red */
.agc-step__num--active {
    background: #da1d1d;
    box-shadow: 0px 0px 16px 0px rgba(218, 29, 29, 0.35);
}

/* Step title – fm_secondary_bold, theme dark */
.agc-step__title {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 18px;
    color: #141414;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Step text – fm_primary, #424242, 16px */
.agc-step__text {
    font-family: "fm_primary";
    font-size: 16px;
    color: #424242;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Links in steps – theme red, no underline */
.agc-step__text a {
    color: #da1d1d;
    text-decoration: none;
    font-family: "fm_primary";
}

.agc-step__text a:hover {
    text-decoration: underline;
    color: #da1d1d;
}


/* ══════════════════════════════════════════════════════════
   SECTION 6 – BOTTOM CTA BAND (theme red #da1d1d)
   "Cracked Windshield? Get It Fixed Today."
   ══════════════════════════════════════════════════════════ */

.agc-cta-band {
    background: #da1d1d;
    padding: 60px 24px;
    text-align: center;
}

/* CTA title – fm_secondary_bold, white */
.agc-cta-band__title {
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: clamp(22px, 3vw, 33px);
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.25;
}

/* CTA subtext – fm_primary, white */
.agc-cta-band__sub {
    font-family: "fm_primary";
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.agc-cta-band__btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Outlined call button – matches .btn_secondary dark variant */
.agc-cta-band__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.15) 50%, #262626 50%);
    background-size: 200% 100%;
    background-position: 100%;
    color: #ffffff;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: background-position 0.2s linear, border-color 0.2s;
    white-space: nowrap;
}

.agc-cta-band__btn-outline:hover {
    background-position: -107% 0;
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
}

/* Solid white button */
.agc-cta-band__btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-image: linear-gradient(to right, #ffffff 50%, #262626 50%);
    background-size: 200% 100%;
    background-position: 100%;
    color: #da1d1d;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 4px;
    border: 2px solid #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-position 0.2s linear, color 0.2s;
    white-space: nowrap;
}

.agc-cta-band__btn-solid:hover {
    background-position: -107% 0;
    color: #ffffff;
    text-decoration: none;
}


/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════ */

.btn_faq_toggle {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    font-family: fm_secondary_bold;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    color: #141414;
    text-align: left;
}

.btn_faq_toggle:focus-visible {
    outline: 2px solid #da1d1d;
    outline-offset: 3px;
    border-radius: 2px;
}

.faq-icon {
    font-family: fm_secondary_bold;
    font-size: 1.4rem;
    line-height: 1;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: #da1d1d;
}

.faq-item {
    border-color: #dee2e6;
}

/* FAQ answer – fm_primary body text */
.faq-answer {
    font-family: "fm_primary";
    font-size: 16px;
    color: #424242;
    line-height: 1.75;
}

.faq-answer p {
    margin-bottom: 0;
    font-family: "fm_primary";
    font-size: 16px;
    color: #424242;
}

.faq-answer a {
    color: #da1d1d;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
    color: #da1d1d;
}


/* ══════════════════════════════════════════════════════════
   BLOG SECTION – background images via CSS class
   (replaces inline style="" attributes)
   ══════════════════════════════════════════════════════════ */

.blog-img-adas {
    background-image: url('https://www.autoglasscanada.ca/wp-content/uploads/2021/12/auto_glass_canada_blog1.webp');
}

.blog-img-insurance {
    background-image: url('https://www.autoglasscanada.ca/wp-content/uploads/2021/12/auto_glass_canada_blog2.webp');
}


/* ══════════════════════════════════════════════════════════
   WHY WORK WITH US – bg3 image via class
   ══════════════════════════════════════════════════════════ */

.why_work_with_us_bg {
    background-image: url('https://www.autoglasscanada.ca/wp-content/uploads/2021/12/bg3.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


/* ══════════════════════════════════════════════════════════
   MISC HELPERS
   ══════════════════════════════════════════════════════════ */

/* Locations list links */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-unstyled li a {
    font-family: "fm_primary";
    font-size: 16px;
    color: #da1d1d;
    text-decoration: none;
}

.list-unstyled li a:hover {
    text-decoration: underline;
    color: #da1d1d;
}

/* Review read-less button hidden by default */
.review-read-less-btn {
    display: none;
}




/* ── File upload input – styled like original inputfile-2 ── */
.agc-hero__file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.agc-hero__file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "fm_primary";
    font-size: 13px;
    color: #424242;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f8f8;
    transition: background 0.2s;
}

.agc-hero__file-label:hover {
    background: #f0f0f0;
    border-color: #da1d1d;
    color: #da1d1d;
}

.agc-hero__file-label svg {
    fill: currentColor;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   FORM VALIDATION – Inline error messages + field states
   ══════════════════════════════════════════════════════════ */

/* Error message text shown below field */
.agc-form-error {
    display: block;
    font-family: "fm_primary";
    font-size: 12px;
    font-weight: 600;
    color: #da1d1d;
    margin-top: 4px;
    padding-left: 2px;
    line-height: 1.4;
}

/* Red border on invalid field */
.agc-form-control--error {
    border-color: #da1d1d !important;
    box-shadow: 0 0 0 3px rgba(218, 29, 29, 0.12) !important;
}

/* Green submit button on success */
.agc-hero__form-submit--success {
    background-image: linear-gradient(to right, #2a7a2a 50%, #1a5a1a 50%) !important;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .agc-hero {
        padding: 48px 0 56px;
    }
    .agc-hero__copy {
        padding-right: 0;
        margin-bottom: 36px;
    }
    .agc-hero__form-wrap {
        padding-left: 0;
    }
    .agc-trust-bar__inner {
        justify-content: flex-start;
        gap: 20px 40px;
    }
}

@media (max-width: 767px) {
    .agc-hero__h1 {
        font-size: 26px;
    }
    .agc-hero__trust-list {
        gap: 8px 14px;
    }
    .agc-hero__ctas {
        flex-direction: column;
    }
    .agc-hero__btn-primary,
    .agc-hero__btn-secondary {
        text-align: center;
        justify-content: center;
    }
    .agc-trust-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .agc-steps__col {
        padding: 0 8px;
    }
    .agc-service-card__title {
        font-size: 16px;
    }
    .agc-cta-band__btns {
        flex-direction: column;
        align-items: center;
    }
    .agc-cta-band__btn-outline,
    .agc-cta-band__btn-solid {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
