/* =============================================
   Expert Painters — Custom Brand CSS
   expertpainters.com.au
   ============================================= */

/* --- Brand Color Overrides --- */
:root {
    --wallox-base:        #e8410b;
    --wallox-base-rgb:    232, 65, 11;
    --wallox-black:       #1a1a2e;
    --wallox-black-rgb:   26, 26, 46;
    --ep-gold:            #f5a623;
    --ep-light-bg:        #f8f9fa;
}

/* --- Typography --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Global Image Safety --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Global iframe responsive --- */
iframe {
    max-width: 100%;
}

/* =============================================
   HERO SLIDER — Text + Overlay Fixes
   (wallox default is light bg with dark text,
    we use a dark overlay so everything goes white)
   ============================================= */

/* Title text → white */
.main-slider-one__title__text {
    color: #fff !important;
}

/* Sub-title pill — keep dark text on white pill */
.main-slider-one__sub-title {
    color: var(--wallox-black) !important;
}

/* Hero paragraph text already set inline, ensure readable */
.main-slider-one__content p {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Allow buttons to wrap on smaller viewports — wallox sets overflow:hidden */
.main-slider-one__content {
    overflow: visible !important;
}
.main-slider-one__btn {
    overflow: visible !important;
    flex-wrap: wrap;
}

/* =============================================
   HERO SLIDER — Dark Overlay
   ============================================= */
.main-slider-one__item {
    position: relative;
}
.main-slider-one__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}
.main-slider-one__item > *:not(.main-slider-one__bg) {
    position: relative;
    z-index: 2;
}

/* =============================================
   FEATURE STRIP — reduce huge top padding
   ============================================= */
.feature-two--one {
    padding-top: 60px !important;
    padding-bottom: 50px !important;
}

/* =============================================
   ABOUT SECTION — shape overflow fix (all sizes)
   ============================================= */
.about-one {
    overflow: hidden;
}

/* =============================================
   HEADER / FOOTER / NAV
   ============================================= */

/* Header Logo Sizing */
.main-header .main-header__logo img {
    max-height: 55px;
    width: auto;
}

/* CTA Button */
.wallox-btn.wallox-btn--base {
    background-color: var(--wallox-base);
    border-color: var(--wallox-base);
}
.wallox-btn.wallox-btn--base:hover {
    background-color: #c73509;
    border-color: #c73509;
}

/* Topbar Phone Link */
.topbar-one__info__content[href^="tel:"],
.topbar-two__info__content[href^="tel:"] {
    font-weight: 700;
    font-size: 16px;
    color: var(--wallox-base);
}

/* =============================================
   COMPONENTS
   ============================================= */

/* Service Cards hover */
.service-one__item:hover .service-one__item__title a {
    color: var(--wallox-base);
}

/* Progress Bars */
.progress-box__bar__inner {
    background-color: var(--wallox-base) !important;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}
.breadcrumb {
    flex-wrap: wrap;
}

/* Accordion (FAQ) */
.accordion-button:not(.collapsed) {
    color: var(--wallox-base);
    background: #fff4f0;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 65, 11, 0.15);
}

/* Form Inputs */
.form-one__control input,
.form-one__control textarea {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: border-color 0.2s;
    font-size: 16px !important; /* prevent iOS zoom */
}
.form-one__control input:focus,
.form-one__control textarea:focus {
    border-color: var(--wallox-base);
    outline: none;
}

/* Sidebar Form */
.ep-sidebar-input::placeholder { color: rgba(255,255,255,0.5); }

/* Footer */
.main-footer {
    background: var(--wallox-black);
}
.footer-widget__title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.footer-widget__links li a:hover {
    color: var(--wallox-base);
    padding-left: 5px;
}

/* Maps iframe */
iframe[title*="Expert Painters"] {
    border-radius: 12px;
    width: 100%;
}

/* Gallery filter */
.filter-btn.active-btn {
    background: var(--wallox-base) !important;
    border-color: var(--wallox-base) !important;
    color: #fff !important;
}

/* Page Header */
.page-header h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Alerts */
.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* =============================================
   FLOATING CALL BUTTON
   ============================================= */
.ep-float-call {
    position: fixed;
    bottom: 25px;
    right: 20px;
    background: var(--wallox-base);
    color: #fff !important;
    border-radius: 50px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(232, 65, 11, 0.5);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse-cta 2.5s infinite;
}
.ep-float-call:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(232, 65, 11, 0.65);
    color: #fff !important;
}
.ep-float-call i { font-size: 18px; }

@keyframes pulse-cta {
    0%, 100% { box-shadow: 0 4px 20px rgba(232, 65, 11, 0.5); }
    50%       { box-shadow: 0 4px 30px rgba(232, 65, 11, 0.8); }
}

/* =============================================
   MOBILE — Tablet ≤ 991px
   ============================================= */
@media (max-width: 991px) {

    /* Hero padding — wallox default 180px/200px is too extreme */
    .main-slider-one__item {
        padding-top: 120px !important;
        padding-bottom: 100px !important;
    }

    .main-slider-one__title__box .main-slider-one__title__text {
        font-size: 40px !important;
    }

    /* Hide decorative floating shapes — prevent overflow */
    .main-slider-one__element-one,
    .main-slider-one__element-two,
    .main-slider-one__element-three {
        display: none !important;
    }

    /* Feature strip */
    .feature-two--one {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
    }

    /* About shapes — hide to prevent horizontal overflow */
    .about-one__shape,
    .about-one__shape-two {
        display: none !important;
    }

    /* Topbar — hide address */
    .topbar-one__info__item:first-child {
        display: none !important;
    }

    /* Stats counter */
    .funfact-one__count { font-size: 36px !important; }

    /* Footer */
    .footer-widget__title { font-size: 18px; }
}

/* =============================================
   MOBILE — Large Phone ≤ 767px
   ============================================= */
@media (max-width: 767px) {

    /* Hero */
    .main-slider-one__item {
        padding-top: 90px !important;
        padding-bottom: 70px !important;
    }
    .main-slider-one__title__box .main-slider-one__title__text {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .main-slider-one__title {
        margin-bottom: 20px !important;
    }
    .main-slider-one__content p {
        font-size: 15px !important;
        margin-bottom: 22px !important;
    }
    .main-slider-one__btn {
        gap: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .main-slider-one__btn a {
        min-width: 180px;
        text-align: center;
    }

    /* Feature strip */
    .feature-two--one {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
    .feature-two__item {
        gap: 12px !important;
        padding: 14px 16px !important;
    }
    .feature-two__item__icon {
        max-width: 46px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
        flex-shrink: 0;
    }
    .feature-two__item__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* About funfact badge — reposition to not overflow on medium screens */
    .about-one__funfact {
        left: 10px !important;
        bottom: 10px !important;
        min-height: 200px !important;
        gap: 12px !important;
    }

    /* Inline-style h1s on page heroes */
    h1[style*="font-size:48px"], h1[style*="font-size: 48px"] {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
    h1[style*="font-size:42px"], h1[style*="font-size: 42px"] {
        font-size: 28px !important;
    }

    /* Section headings */
    .sec-title__title { font-size: 26px !important; }
    h2[style*="font-size:32px"] { font-size: 22px !important; }

    /* Stats */
    .funfact-one__count { font-size: 30px !important; }

    /* Topbar — hide email too */
    .topbar-one__info__item:nth-child(2) { display: none !important; }

    /* Footer */
    .footer-widget__title { font-size: 16px; }

    /* Sticky bar — add bottom padding so footer isn't hidden */
    body { padding-bottom: 72px; }
}

/* =============================================
   MOBILE — Phone ≤ 575px
   ============================================= */
@media (max-width: 575px) {

    /* ── Hero ── */
    .main-slider-one__item {
        padding-top: 70px !important;
        padding-bottom: 55px !important;
    }
    .main-slider-one__title__box .main-slider-one__title__text {
        font-size: 26px !important;
        letter-spacing: -0.01em !important;
        line-height: 1.2 !important;
    }
    .main-slider-one__title {
        margin-bottom: 16px !important;
    }
    .main-slider-one__sub-title {
        font-size: 11px !important;
        padding: 4px 14px !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.05em !important;
    }
    .main-slider-one__content p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
    }
    .main-slider-one__btn {
        gap: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .main-slider-one__btn a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 13px 20px !important;
        font-size: 14px !important;
    }

    /* ── Feature strip ── */
    .feature-two--one {
        padding-top: 32px !important;
        padding-bottom: 24px !important;
    }
    .feature-two__item {
        gap: 10px !important;
        padding: 12px 14px !important;
        border-radius: 60px !important;
    }
    .feature-two__item__icon {
        max-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        flex-shrink: 0;
    }
    .feature-two__item__title {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }

    /* ── About section ── */
    .about-one {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    /* Hide funfact badge on small screens — it overlaps the image */
    .about-one__funfact {
        display: none !important;
    }
    .about-one__thumb img {
        border-radius: 20px !important;
    }
    .about-one .sec-title { padding-bottom: 10px !important; }
    .sec-title__title { font-size: 22px !important; line-height: 1.3 !important; }
    .about-one__top__text { font-size: 14px !important; margin-bottom: 16px !important; }
    .about-one__list__item { font-size: 14px !important; }
    .about-one__list__item + .about-one__list__item { margin-top: 6px !important; }
    .about-one__client { margin-top: 20px !important; padding-top: 20px !important; }

    /* ── Topbar — hide on mobile ── */
    .topbar-one { display: none !important; }

    /* ── Header logo ── */
    .main-header .main-header__logo img { max-height: 40px; }

    /* ── All page hero h1s ── */
    h1[style*="font-size:48px"], h1[style*="font-size: 48px"] {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
    h1[style*="font-size:42px"], h1[style*="font-size: 42px"] {
        font-size: 24px !important;
    }

    /* ── Headings ── */
    .sec-title__title           { font-size: 22px !important; }
    h2[style*="font-size:32px"] { font-size: 20px !important; }
    h3[style*="font-size:26px"] { font-size: 18px !important; }
    h4[style*="font-size:22px"] { font-size: 17px !important; }
    h4[style*="font-size:20px"] { font-size: 16px !important; }

    /* ── Body text ── */
    p[style*="font-size:18px"], p[style*="font-size: 18px"] { font-size: 14px !important; }
    p[style*="font-size:17px"], p[style*="font-size: 17px"] { font-size: 14px !important; }
    p[style*="font-size:16px"], p[style*="font-size: 16px"] { font-size: 14px !important; }
    p[style*="color:rgba(255,255,255,0.8)"]                  { font-size: 14px !important; }
    p[style*="color:rgba(255,255,255,0.85)"]                 { font-size: 14px !important; }

    /* ── Stats counter ── */
    .funfact-one__count { font-size: 28px !important; }
    .funfact-one__item p { font-size: 13px !important; }

    /* ── Section padding ── */
    section[style*="padding:80px 0"], section[style*="padding: 80px 0"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    section[style*="padding:60px 0"], section[style*="padding: 60px 0"] {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    /* ── Container gutter ── */
    .container { padding-left: 16px; padding-right: 16px; }
    .row { --bs-gutter-x: 16px; }

    /* ── All forms: prevent iOS zoom ── */
    input, textarea, select { font-size: 16px !important; }
    select[style*="height:60px"], select.form-control { height: 50px !important; }

    /* ── Sidebar form ── */
    div[style*="padding:35px"], div[style*="padding: 35px"] { padding: 20px !important; }
    div[style*="padding:30px"], div[style*="padding: 30px"] { padding: 18px !important; }
    div[style*="padding:28px"], div[style*="padding: 28px"] { padding: 18px !important; }

    /* ── Maps iframe ── */
    iframe[src*="google.com/maps"] { height: 250px !important; }

    /* ── Footer ── */
    .main-footer__logo img { max-width: 140px; }
    .footer-widget__title  { font-size: 15px; }

    /* ── Float button ── */
    .ep-float-call {
        bottom: 16px;
        right: 12px;
        padding: 11px 16px;
        font-size: 13px;
        gap: 8px;
    }
    .ep-float-call i { font-size: 15px; }

    /* ── Breadcrumb ── */
    .breadcrumb { font-size: 13px; }
}

/* =============================================
   MOBILE — Small Phone ≤ 480px
   ============================================= */
@media (max-width: 480px) {

    .main-slider-one__title__box .main-slider-one__title__text {
        font-size: 22px !important;
    }

    h1[style*="font-size:48px"] { font-size: 22px !important; }
    .sec-title__title           { font-size: 20px !important; }
    .funfact-one__count         { font-size: 26px !important; }

    /* Quote form padding */
    div[style*="padding:36px"], div[style*="padding: 36px"] {
        padding: 16px 14px !important;
    }
}

/* =============================================
   MOBILE — Very Small ≤ 380px
   ============================================= */
@media (max-width: 380px) {

    .main-slider-one__title__box .main-slider-one__title__text {
        font-size: 19px !important;
    }
    h1[style*="font-size:48px"] { font-size: 19px !important; }
    .sec-title__title           { font-size: 18px !important; }
    .funfact-one__count         { font-size: 22px !important; }

    .ep-float-call { padding: 10px 13px; font-size: 12px; }
    .container     { padding-left: 12px; padding-right: 12px; }
}
