/* Custom CSS - loaded deferred, extends Bootstrap 5 */

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 768px) {
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

/* Links */
a {
    color: var(--color-primary);
    transition: color .15s ease;
}
a:hover { color: #003d99; }

/* Section spacing */
.section-py { padding: 3rem 0; }
@media (min-width: 768px) {
    .section-py { padding: 4rem 0; }
}

/* Brand cards — premium redesign */
.brand-logo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem .75rem 1rem;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #e2e8f0, #cbd5e1) border-box;
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.03);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
    overflow: hidden;
    color: inherit;
}
/* Top accent line — hidden by default, slides in on hover */
.brand-logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent, #0891b2));
    border-radius: 0 0 4px 4px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
/* Shimmer sweep on hover */
.brand-logo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,.5) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform .6s ease;
    pointer-events: none;
    border-radius: 14px;
}
/* Hover state */
.brand-logo-card:hover {
    transform: translateY(-6px) scale(1.02);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--color-primary), var(--color-accent, #0891b2)) border-box;
    box-shadow:
        0 8px 28px rgba(0,82,204,.13),
        0 2px 8px rgba(0,82,204,.08);
    text-decoration: none;
    color: inherit;
}
.brand-logo-card:hover::before { width: 60%; }
.brand-logo-card:hover::after { transform: translateX(100%); }
/* Logo image */
.brand-logo-card img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(30%) opacity(.82);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    margin-bottom: .5rem;
}
.brand-logo-card:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.06);
}
/* Anchor text below logo — SEO-optimized */
.brand-logo-card .brand-anchor {
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -.01em;
    transition: color .3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-logo-card:hover .brand-anchor { color: var(--color-primary); }
/* Larger variant for hub pages */
.brand-logo-card--lg {
    padding: 1.75rem 1rem 1.25rem;
    border-radius: 20px;
}
.brand-logo-card--lg::before { border-radius: 0 0 6px 6px; }
.brand-logo-card--lg::after { border-radius: 18px; }
.brand-logo-card--lg img {
    max-height: 56px;
    margin-bottom: .75rem;
}
.brand-logo-card--lg .brand-anchor {
    font-size: .82rem;
    -webkit-line-clamp: 2;
}
@media (min-width: 768px) {
    .brand-logo-card .brand-anchor { font-size: .75rem; }
    .brand-logo-card--lg .brand-anchor { font-size: .85rem; }
}

/* Appliance cards v2 — modern redesign with product images */
.appliance-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1rem 1.15rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.02);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    height: 100%;
}
/* Subtle top gradient bar — always visible */
.appliance-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent, #0891b2));
    opacity: .25;
    transition: opacity .4s ease;
}
/* Image container with soft bg */
.appliance-card-v2__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    margin-bottom: .85rem;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}
.appliance-card-v2__img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
/* Anchor text — SEO optimized */
.appliance-card-v2__anchor {
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -.01em;
    transition: color .3s ease;
}
/* Hover state */
.appliance-card-v2:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0,82,204,.10), 0 2px 8px rgba(0,82,204,.06);
    text-decoration: none;
    color: inherit;
}
.appliance-card-v2:hover::before { opacity: 1; }
.appliance-card-v2:hover .appliance-card-v2__img {
    background: linear-gradient(145deg, #eff6ff, #e0f2fe);
}
.appliance-card-v2:hover .appliance-card-v2__img img {
    transform: scale(1.08);
}
.appliance-card-v2:hover .appliance-card-v2__anchor {
    color: var(--color-primary);
}
/* Responsive adjustments */
@media (min-width: 768px) {
    .appliance-card-v2 { padding: 1.75rem 1.25rem 1.25rem; }
    .appliance-card-v2__img { width: 170px; height: 170px; border-radius: 20px; }
    .appliance-card-v2__img img { width: 140px; height: 140px; }
    .appliance-card-v2__anchor { font-size: .82rem; }
}
@media (min-width: 1200px) {
    .appliance-card-v2 { padding: 2rem 1.5rem 1.5rem; }
    .appliance-card-v2__img { width: 200px; height: 200px; }
    .appliance-card-v2__img img { width: 170px; height: 170px; }
    .appliance-card-v2__anchor { font-size: .85rem; }
}

/* Location cards — coverage section */
.location-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    text-decoration: none;
    color: inherit;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    height: 100%;
}
.location-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(0,82,204,.10), 0 2px 8px rgba(0,82,204,.06);
    text-decoration: none;
    color: inherit;
}
.location-card__icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    opacity: .7;
    transition: opacity .3s ease;
}
.location-card:hover .location-card__icon { opacity: 1; }
.location-card__anchor {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
    letter-spacing: -.01em;
    transition: color .3s ease;
}
.location-card:hover .location-card__anchor { color: var(--color-primary); }

/* Service info box — sales CTA */
.service-info-box {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
}
.service-info-box__header {
    background: linear-gradient(135deg, var(--color-primary), #003d99);
    padding: .85rem 1.25rem;
    text-align: center;
}
.service-info-box__badge {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.service-info-box__body {
    padding: 1.25rem;
}
.service-info-box__hours {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.service-info-box__label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: .35rem;
}
.service-info-box__value {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: var(--color-dark);
}
.service-info-box__extra {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
}
.service-info-box__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem;
    margin-bottom: 1rem;
    background: #16a34a;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.service-info-box__phone:hover {
    background: #15803d;
    color: #fff;
    transform: scale(1.02);
    text-decoration: none;
}
.service-info-box__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: .85rem;
}
.service-info-box__feature {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
}
.service-info-box__feature span { font-size: .85rem; }
.service-info-box__note {
    text-align: center;
    font-size: .72rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* FAQ accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--color-hero-bg);
    color: var(--color-primary);
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: 0 0 0 .25rem rgba(26,86,219,.15);
}
.accordion-body { color: #4b5563; line-height: 1.7; }

/* Trust badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}
.trust-badge-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

/* Benefits section */
.benefit-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
}

/* Link clouds (legacy - kept for any remaining usage) */
.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.link-cloud a {
    display: inline-block;
    padding: .35rem .85rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(26,86,219,.06);
    border-radius: 100px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.link-cloud a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Intro section appliance image */
.intro-appliance-img {
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
    display: inline-block;
}
.intro-appliance-img img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.08));
}
/* Intro section brand logo image */
.intro-brand-img {
    padding: 2.5rem 3rem;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
    display: inline-block;
}
.intro-brand-img img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.06));
}
/* Keywords list in intro */
.intro-keywords-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.intro-keywords-list li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.intro-keywords-list li::before {
    content: '\2713';
    color: var(--color-primary);
    font-weight: 700;
}

/* Problem urgency badge */
.problem-urgency-badge {
    display: inline-block;
    padding: .2rem .6rem;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    flex-shrink: 0;
}

/* Tip cards */
.tip-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.02);
    padding: 1.5rem;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,82,204,.08), 0 2px 8px rgba(0,82,204,.04);
}
.tip-card__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}
.tip-card__icon {
    font-size: 1.25rem;
}
.tip-card__step {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-primary);
    background: rgba(26,86,219,.08);
    padding: .2rem .5rem;
    border-radius: 6px;
}

/* Breadcrumb */
.breadcrumb-item a { text-decoration: none; }
.breadcrumb { font-size: .85rem; }

/* Problems list */
.problem-card {
    border-left: 4px solid var(--color-secondary);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-card);
}
.problem-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }

/* CTA phone section */
.cta-phone {
    background: linear-gradient(135deg, var(--color-primary) 0%, #003d99 100%);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}
.cta-phone h2 { color: #fff; }
.cta-phone .btn {
    font-size: 1.1rem;
    padding: .75rem 2rem;
}

/* Offcanvas form */
.offcanvas-bottom {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}
.offcanvas-bottom::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 8px auto 0;
}

/* Cloud section highlight badge */
.cloud-section-highlight {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(26,86,219,.06);
    padding: .45rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(26,86,219,.12);
}

/* Footer links hover */
footer a:hover { color: #fff !important; }
