/* Visi Painting design-matched template. */
:root{--navy:#071e45;--ink:#0b2147;--orange:#ff6019;--muted:#f7f5f1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.45 "DM Sans",Arial,sans-serif;background:#fff}a{color:inherit;text-decoration:none}button{font:inherit}img{max-width:100%;display:block}.wrap{max-width:1180px;margin:auto;padding:0 35px}.skip{position:absolute;left:-9999px}.skip:focus{z-index:100;left:20px;top:10px;background:#fff;padding:10px}.header{background:#fff;position:relative;z-index:10}.head-inner{height:92px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand img{width:166px;height:auto}.nav{display:flex;gap:35px;align-items:center;font-weight:700;font-size:14px}.nav a:hover,.footer a:hover{color:var(--orange)}.head-actions{display:flex;align-items:center;gap:26px}.phone{font-size:17px;font-weight:800;white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:17px;border-radius:9px;font-weight:700;min-height:47px;padding:13px 24px;font-size:14px;text-align:center;transition:transform .2s,filter .2s}.btn:hover{transform:translateY(-2px);filter:brightness(.98)}.btn-orange{background:var(--orange);color:#fff;box-shadow:0 5px 12px #ff60192a}.btn-outline{border:1.5px solid var(--navy);color:var(--navy);background:#ffffffab}.top-cta{min-height:42px}.nav-toggle{display:none}.hero{height:397px;position:relative;background:#f8f7f5;overflow:hidden}.hero-photo{position:absolute;inset:0 0 0 30%;background-size:cover;background-position:center}.hero-wash{position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,#ffffff 24%,#fffffff0 32%,#ffffffa8 44%,#ffffff00 61%)}.hero-body{position:relative;z-index:1;height:100%;display:flex;align-items:center}.hero-copy{max-width:620px}.eyebrow{text-transform:uppercase;letter-spacing:4px;font-size:10px;font-weight:700;margin:0 0 11px}.color-bars{display:flex;gap:3px;width:max-content;margin:0 0 16px}.color-bars i{display:block;width:40px;height:4px;border-radius:5px}.color-bars i:nth-child(1){background:#40972e}.color-bars i:nth-child(2){background:#f00018}.color-bars i:nth-child(3){background:#ff641d}.color-bars i:nth-child(4){background:#0876cf}.hero h1,h2,h3{font-family:"Playfair Display",Georgia,serif}.hero h1{font-size:clamp(41px,5.5vw,70px);letter-spacing:-2.6px;line-height:.98;margin:0 0 10px;color:#071e45;font-weight:800}.hero-sub{font-size:22px;line-height:1.28;margin:0 0 21px}.hero-buttons{display:flex;gap:20px}.insured-pill{position:absolute;right:30px;bottom:23px;z-index:2;border-radius:25px;background:#fff;padding:8px 16px 8px 10px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;box-shadow:0 4px 20px #0002}.insured-pill span{background:#419b32;color:white;font-size:16px;border-radius:50%;height:26px;width:26px;text-align:center;line-height:26px}.trust-strip{background:#f8f7f4}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);min-height:65px;align-items:center}.trust-grid>div{display:flex;gap:23px;align-items:center;justify-content:center;font-size:14px;font-weight:700;border-right:1px solid #bdbdbd}.trust-grid>div:last-child{border:0}.trust-icon{font-size:37px;line-height:1;font-weight:400}.section{padding:22px 0 27px}.section-intro{text-align:center}.section-intro h2{font-size:43px;line-height:1.2;margin:0 0 5px;letter-spacing:-1.4px}.centered{margin:0 auto 10px}.section-intro p{font-size:17px;margin:0 0 20px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card img{width:100%;height:196px;object-fit:cover;border-radius:5px}.card-head{display:flex;align-items:center;justify-content:space-between;margin:5px 3px 0}.card-head h3{font-size:21px;line-height:1.1;margin:0}.card-head span{font-size:20px;font-weight:700}.service-card p{margin:4px 3px 0;font-size:14px;line-height:1.35}.detail-section{display:grid;grid-template-columns:48% 52%;background:#f8f7f5;min-height:335px}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-body{display:flex;align-items:center;justify-content:center;padding:24px 30px 16px 55px}.detail-content{max-width:545px}.detail-content h2{font-size:42px;letter-spacing:-1.2px;line-height:1.12;margin:0 0 6px}.detail-content .color-bars{margin-bottom:12px}.detail-intro{font-size:14px;line-height:1.4;max-width:480px;margin:0 0 15px}.values{display:grid;grid-template-columns:repeat(3,1fr)}.values>div{text-align:center;padding:0 11px;border-right:1px solid #d2d2d2}.values>div:first-child{padding-left:0}.values>div:last-child{border-right:0;padding-right:0}.value-symbol{font-size:33px;line-height:1.1}.green{color:#339b3b}.red{color:red}.blue{color:#077ad4}.values h3{font-size:17px;line-height:1.05;margin:7px 0 5px}.values p{font-size:12px;line-height:1.35;margin:0}.contact-cta{background:linear-gradient(105deg,#061d41 0%,#0d315d 100%);color:#fff}.cta-inner{display:flex;align-items:center;justify-content:space-between;min-height:137px;padding-top:14px;padding-bottom:12px}.cta-inner h2{font-size:37px;line-height:.98;letter-spacing:-1px;margin:0 0 8px}.cta-inner p{font-size:14px;margin:0}.cta-actions{display:flex;flex-direction:column;gap:5px;align-items:center;margin-right:80px}.cta-actions .btn{min-width:245px}.cta-phone{font-size:28px;font-weight:800;white-space:nowrap}.footer{background:#fff}.foot-inner{display:flex;align-items:center;justify-content:space-between;min-height:74px;gap:16px;font-size:14px}.footer-logo img{width:120px;height:auto}.foot-inner>a:not(:first-child){padding-right:25px;border-right:1px solid #8390a5}.social{display:flex;gap:15px;font-size:21px;font-weight:800}.social a{border:2px solid var(--navy);border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.inner-page{min-height:65vh;padding-top:35px;padding-bottom:60px}.inner-page h1{font-family:"Playfair Display",Georgia,serif}.inner-page a{color:#006cae}
@media(min-width:1180px){.hero{height:465px}.hero-photo{left:31%}.hero h1{font-size:74px}.hero-sub{font-size:24px}.section{padding:35px 0 43px}.service-card img{height:230px}.detail-section{min-height:385px}}
@media(max-width:960px){.wrap{padding:0 25px}.head-inner{gap:12px}.brand img{width:130px}.nav{gap:16px;font-size:12px}.phone{font-size:13px}.head-actions{gap:9px}.top-cta{padding:10px 12px}.hero h1{font-size:55px}.hero-sub{font-size:18px}.detail-body{padding-left:25px}.detail-content h2{font-size:34px}.cta-actions{margin-right:0}}
@media(max-width:720px){.wrap{padding:0 18px}.head-inner{height:76px}.brand img{width:123px}.head-actions .phone{display:none}.top-cta{font-size:12px;min-height:39px;padding:8px 12px}.nav-toggle{display:flex;order:3;flex-direction:column;gap:5px;justify-content:center;background:white;border:1px solid #d8dfe8;border-radius:5px;width:42px;height:40px;padding:9px}.nav-toggle span{height:2px;background:var(--navy);width:100%}.nav{display:none;position:absolute;left:0;right:0;top:76px;background:white;box-shadow:0 9px 17px #0002;padding:18px;flex-direction:column;align-items:flex-start;gap:17px;font-size:16px}.nav.is-open{display:flex}.head-actions{margin-left:auto}.hero{height:auto;min-height:565px;display:flex;align-items:flex-start}.hero-photo{inset:210px 0 0 0;background-position:center;background-size:cover}.hero-wash{background:linear-gradient(180deg,#fff 0%,#fff 32%,#fffffff2 43%,#ffffff00 72%)}.hero-body{align-items:flex-start;padding-top:35px;padding-bottom:240px}.hero h1{font-size:clamp(44px,9vw,60px)}.hero-sub{font-size:18px}.hero-buttons{flex-wrap:wrap;gap:10px}.hero-buttons .btn{min-height:44px;padding:11px 15px;font-size:12px}.insured-pill{bottom:16px;right:16px}.trust-grid{grid-template-columns:1fr;padding-top:12px;padding-bottom:12px}.trust-grid>div{justify-content:flex-start;border-right:0;border-bottom:1px solid #ddd;padding:11px 10px;font-size:14px}.trust-grid>div:last-child{border:0}.trust-icon{width:44px;text-align:center}.section{padding:35px 0}.section-intro h2{font-size:35px}.section-intro p{font-size:15px}.service-grid{grid-template-columns:1fr;gap:28px}.service-card img{height:auto;aspect-ratio:1.7;object-fit:cover}.card-head h3{font-size:23px}.service-card p{font-size:14px}.detail-section{display:block}.detail-image img{height:auto;aspect-ratio:1.45;object-fit:cover}.detail-body{padding:30px 18px 35px}.detail-content h2{font-size:36px}.detail-intro{font-size:15px}.values{gap:0}.values>div{padding:0 8px}.values h3{font-size:15px}.values p{font-size:11px}.cta-inner{display:block;padding:30px 18px;text-align:center}.cta-inner h2{font-size:35px}.cta-actions{margin-top:20px}.cta-phone{font-size:24px}.foot-inner{padding-top:22px;padding-bottom:22px;flex-wrap:wrap;justify-content:center;gap:18px;font-size:13px}.foot-inner>a:not(:first-child){padding-right:0;border-right:0}.footer-logo{width:100%;display:flex;justify-content:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}

/* Version 1.1: clean hero photograph; the original included text and a duplicate badge */
.hero-photo{left:36%;background-position:center center}
.hero-wash{background:linear-gradient(90deg,#fff 0%,#fff 27%,#fffffff2 37%,#ffffffb0 48%,transparent 66%)}
@media(min-width:1180px){.hero-photo{left:36%}}
@media(max-width:720px){.hero-photo{left:0;top:210px;background-position:center center}.hero-wash{background:linear-gradient(180deg,#fff 0%,#fff 32%,#fffffff2 43%,transparent 72%)}}

/* Visi Painting secondary pages / v1.3 */
.page-hero{background:linear-gradient(110deg,#f7f9fb 0%,#fff 55%,#edf3f8 100%);border-bottom:1px solid #e4e8ee}
.page-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:45px;padding-top:35px;padding-bottom:35px;min-height:335px}
.page-hero h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(38px,4.5vw,60px);line-height:1.1;margin:16px 0;color:#08214c}
.page-hero p:not(.eyebrow){font-size:19px;max-width:550px;margin:0 0 22px}
.page-hero img{width:100%;height:290px;object-fit:cover;border-radius:8px;box-shadow:0 14px 35px #091b3440}
.inner-page{padding-top:42px;padding-bottom:70px;min-height:280px}
.inner-page .com-content-article__body,.inner-page .contact,.inner-page article{font-size:17px;line-height:1.75;color:#183052}
.inner-page h2,.inner-page h3{font-family:"Playfair Display",Georgia,serif;color:#08214c;line-height:1.2}
.inner-page h2{font-size:30px;margin:36px 0 12px}.inner-page h3{font-size:22px}
.inner-page .visi-page-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0}
.inner-page .visi-page-grid .visi-page-card{border:1px solid #e4e8ee;border-radius:9px;overflow:hidden;background:#fff;box-shadow:0 6px 18px #061a3520}
.inner-page .visi-page-card img{width:100%;height:180px;object-fit:cover}
.inner-page .visi-page-card .visi-card-text{padding:18px}.inner-page .visi-page-card h3{margin:0 0 8px}
.inner-page .visi-callout{padding:26px;background:#f3f6fa;border-left:5px solid #fe641e;margin:30px 0;border-radius:0 8px 8px 0}
.inner-page .visi-callout h2{margin-top:0}
.inner-page .visi-callout a{font-weight:700}
.inner-page .com-content-article__info,.inner-page .article-info,.inner-page .article-info-term{display:none}
@media(max-width:720px){.page-hero-grid{grid-template-columns:1fr;gap:22px;padding-top:25px;padding-bottom:30px}.page-hero img{height:220px}.page-hero h1{font-size:40px}.inner-page .visi-page-grid{grid-template-columns:1fr}.inner-page{padding-top:28px;padding-bottom:44px}}
/* =========================================
   VISI PAINTING - CONTACT & ESTIMATE FORM
   Joomla 6
========================================= */

.com-contact {
    max-width: 1150px;
    margin: 40px auto 80px;
    padding: 35px;
    background: #ffffff;
    border-radius: 14px;
}

.com-contact h1,
.com-contact h2,
.com-contact h3 {
    color: #09244b;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

/* Contact Form Container */

.com-contact__form,
#contact-form {
    background: #f7f9fc;
    padding: 32px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
}

/* Form Labels */

#contact-form label {
    color: #09244b;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 7px;
}

/* Input Fields */

#contact-form input:not([type="checkbox"]):not([type="hidden"]),
#contact-form select,
#contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #09244b;
    font-size: 16px;
    box-sizing: border-box;
}

/* Focus Effects */

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #087bce;
    outline: 2px solid rgba(8,123,206,0.15);
    outline-offset: 1px;
}

/* Field Spacing */

#contact-form .control-group {
    margin-bottom: 20px;
}

/* Message Box */

#contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Submit Button */

#contact-form button[type="submit"],
#contact-form input[type="submit"] {
    background: #ff641c;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(255,100,28,0.18);
}

#contact-form button[type="submit"]:hover,
#contact-form input[type="submit"]:hover {
    background: #e9530c;
}

/* Mobile Responsive */

@media (max-width: 768px) {

    .com-contact {
        padding: 18px;
        margin: 20px auto;
    }

    .com-contact__form,
    #contact-form {
        padding: 20px;
    }

    #contact-form button[type="submit"],
    #contact-form input[type="submit"] {
        width: 100%;
    }
}
/* VISI PAINTING - TWO COLUMN CONTACT PAGE */

.visi-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 36px;
    align-items: start;
    margin: 45px auto 70px;
}

.visi-contact-sidebar {
    background: #09244b;
    color: #ffffff;
    padding: 35px;
    border-radius: 14px;
}

.visi-contact-sidebar h2,
.visi-contact-sidebar h3 {
    color: #ffffff;
}

.visi-contact-sidebar a {
    color: #ffffff;
    text-decoration: none;
}

.visi-contact-sidebar a:hover {
    color: #ff641c;
}

.visi-contact-info p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.visi-contact-badge {
    display: inline-block;
    background: #ffffff;
    color: #09244b;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 700;
}

.visi-contact-main {
    min-width: 0;
}

.visi-contact-main .com-contact {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .visi-contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .visi-contact-sidebar {
        padding: 25px;
    }
}
/* VISI PAINTING CONTACT PAGE FIX */

.visi-contact-layout {
    display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 30px;
    align-items: start;
    margin: 40px auto 70px;
}

.visi-contact-sidebar {
    background: #09244b;
    color: white;
    padding: 35px;
    border-radius: 12px;
}

.visi-contact-sidebar h2,
.visi-contact-sidebar h3 {
    color: white;
}

.visi-contact-sidebar a {
    color: white;
}

.visi-contact-main {
    min-width: 0;
    width: 100%;
}

.visi-contact-main .com-contact,
.visi-contact-main #contact-form {
    width: 100%;
    max-width: none;
}

@media (max-width: 768px) {
    .visi-contact-layout {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   VISI PAINTING - CONTACT PAGE FINAL DESIGN
========================================== */

/* Left Column Logo */

.visi-contact-logo {
    text-align: center;
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.visi-contact-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Contact Sidebar */

.visi-contact-sidebar {
    background: #09244b;
    color: #ffffff;
    padding: 35px;
    border-radius: 14px;
}

.visi-contact-sidebar h2,
.visi-contact-sidebar h3 {
    color: #ffffff;
}

/* Two Column Layout */

.visi-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 30px;
    align-items: start;
}

/* Right Column */

.visi-contact-main {
    width: 100%;
    min-width: 0;
}

.visi-contact-main .com-contact {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Form Container */

.visi-contact-main #contact-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile Layout */

@media (max-width: 768px) {

    .visi-contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .visi-contact-sidebar {
        padding: 25px;
    }

    .visi-contact-logo img {
        width: 170px;
    }
}
/* ==========================================
   VISI PAINTING - OUR WORK GALLERY
========================================== */

.visi-portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 15px 70px;
}

.visi-portfolio-intro {
    text-align: center;
    margin-bottom: 45px;
}

.visi-portfolio-intro h1 {
    color: #09244b;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 15px;
}

.visi-portfolio-intro p {
    max-width: 750px;
    margin: 0 auto;
    color: #536174;
    font-size: 17px;
    line-height: 1.7;
}

.visi-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.visi-project-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(9, 36, 75, 0.10);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.visi-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(9, 36, 75, 0.16);
}

.visi-project-card img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.visi-project-content {
    padding: 22px;
}

.visi-project-content h2 {
    color: #09244b;
    font-size: 23px;
    margin: 0 0 10px;
}

.visi-project-content p {
    color: #536174;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .visi-project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .visi-project-card img {
        height: 240px;
    }

    .visi-portfolio {
        padding: 20px 10px 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visi-project-card {
        transition: none;
    }

    .visi-project-card:hover {
        transform: none;
    }
}
/* ========================================
   VISI PAINTING - SERVICES LANDING PAGE
======================================== */

.visi-services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 15px 70px;
}

/* Introduction */

.visi-services-intro {
    text-align: center;
    margin-bottom: 45px;
}

.visi-services-intro h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 4vw, 46px);
    color: #09244b;
    margin-bottom: 20px;
}

.visi-services-intro p {
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: #536174;
}

/* Services Grid */

.visi-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.visi-service-box {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(9,36,75,0.10);
    transition: transform 0.25s ease;
}

.visi-service-box:hover {
    transform: translateY(-5px);
}

.visi-service-box img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.visi-service-box-content {
    padding: 28px;
}

.visi-service-box h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    color: #09244b;
    margin-bottom: 15px;
}

.visi-service-box p {
    font-size: 16px;
    line-height: 1.7;
    color: #536174;
    margin-bottom: 22px;
}

/* Orange Buttons */

.visi-service-button {
    display: inline-block;
    background: #ff641c;
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    transition: background 0.2s ease;
}

.visi-service-button:hover {
    background: #e9530c;
}

/* Bottom CTA */

.visi-services-cta {
    margin-top: 55px;
    padding: 55px 30px;
    background: #09244b;
    border-radius: 14px;
    text-align: center;
    color: #ffffff;
}

.visi-services-cta h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 15px;
}

.visi-services-cta p {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

/* Mobile */

@media (max-width: 768px) {

    .visi-services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .visi-service-box img {
        height: 240px;
    }

    .visi-service-box-content {
        padding: 22px;
    }

    .visi-services-cta {
        padding: 35px 20px;
    }

    .visi-services-cta h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visi-service-box {
        transition: none;
    }

    .visi-service-box:hover {
        transform: none;
    }
}
/* =========================================
   VISI PAINTING — MOBILE IMPROVEMENTS
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Prevent oversized images */

img {
    max-width: 100%;
    height: auto;
}

/* Mobile service cards */

@media (max-width: 768px) {

    .visi-services-grid,
    .visi-project-grid {
        grid-template-columns: 1fr;
    }

    .visi-service-box img,
    .visi-project-card img {
        height: 230px;
        object-fit: cover;
    }

    /* Contact page */

    .visi-contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .visi-contact-sidebar {
        padding: 25px;
    }

    .visi-contact-main {
        width: 100%;
        min-width: 0;
    }

    /* Buttons */

    .visi-service-button,
    .visi-estimate-btn {
        max-width: 100%;
        text-align: center;
    }

    /* Service headings */

    .visi-services-intro h1,
    .visi-portfolio-intro h1 {
        font-size: 30px;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
/* =========================================
   VISI PAINTING - ACCESSIBILITY IMPROVEMENT
   Accessible orange buttons
========================================= */

.btn-orange,
.top-cta,
.visi-estimate-btn,
.visi-service-button,
#contact-form button[type="submit"] {
    background-color: #c2410c !important;
    color: #ffffff !important;
}

/* Hover */

.btn-orange:hover,
.top-cta:hover,
.visi-estimate-btn:hover,
.visi-service-button:hover,
#contact-form button[type="submit"]:hover {
    background-color: #9a3412 !important;
    color: #ffffff !important;
}

/* Keyboard accessibility */

.btn-orange:focus-visible,
.top-cta:focus-visible,
.visi-estimate-btn:focus-visible,
.visi-service-button:focus-visible {
    outline: 3px solid #09244b;
    outline-offset: 3px;
}
/* =========================================
   VISI PAINTING - MOBILE LAYOUT FIX
   Joomla 6 / visi_exact
========================================= */

@media screen and (max-width: 768px) {

    /* Prevent horizontal overflow */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .wrap,
    .inner-page,
    .visi-services-page,
    .visi-portfolio {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Services page */
    .visi-services-page {
        padding: 24px 16px 50px;
    }

    .visi-services-grid,
    .visi-project-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px;
    }

    .visi-service-box,
    .visi-project-card {
        width: 100%;
        min-width: 0;
    }

    .visi-service-box img,
    .visi-project-card img {
        display: block;
        width: 100%;
        height: 225px;
        object-fit: cover;
    }

    .visi-service-box-content {
        padding: 22px;
    }

    /* Readable mobile headings */
    .visi-services-intro h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .visi-services-intro p {
        font-size: 16px;
        line-height: 1.65;
    }

    .visi-service-box h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .visi-service-box p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Larger buttons */
    .visi-service-button,
    .visi-estimate-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        max-width: 100%;
        box-sizing: border-box;
        padding: 13px 20px;
        font-size: 15px;
        line-height: 1.4;
        text-align: center;
    }

    /* Contact form */
    .visi-contact-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Footer */
    .foot-inner {
        flex-wrap: wrap;
    }
}
/* Visi Painting mobile header refinements */

@media (max-width: 768px) {

    .header .head-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .header .brand img {
        width: 145px;
        height: auto;
    }

    .header .nav-toggle {
        display: flex !important;
    }

    .header .head-actions,
    .header .head-actions .top-cta {
        width: 100%;
    }

    .header #main-nav.open {
        display: flex !important;
    }

    .header #main-nav a {
        font-size: 16px;
        padding: 14px 16px;
    }
}
/* VISI PAINTING — MOBILE HEADER POSITION FIX */

@media screen and (max-width: 768px) {

  .header .head-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
  }

  .header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header .brand img {
    width: 145px;
    height: auto;
  }

  .header .nav-toggle {
    position: static !important;
    grid-column: 2;
    grid-row: 1;
    width: 46px;
    height: 46px;
    margin: 0;
    z-index: 2;
  }

  .header .head-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .header .head-actions .top-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .header #main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
  }

  .header #main-nav.open {
    display: flex !important;
  }
}
/* ============================================
   VISI PAINTING - FINAL MOBILE HEADER
   Joomla 6 - visi_exact
============================================ */

@media screen and (max-width: 768px) {

    /* Header container */

    .header {
        position: relative !important;
        background: #ffffff;
        z-index: 1000;
    }

    .header .head-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 48px !important;
        grid-template-rows: auto auto auto;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
    }

    /* ROW 1 - Logo */

    .header .brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        position: static !important;
        display: block !important;
        margin: 0 !important;
        min-width: 0;
    }

    .header .brand img {
        display: block;
        width: 145px !important;
        max-width: 100%;
        height: auto !important;
    }

    /* ROW 1 - Hamburger beside logo */

    .header .nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;

        grid-column: 2 !important;
        grid-row: 1 !important;

        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none !important;

        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 8px !important;

        background: #ffffff !important;
        border: 1px solid #d8e0e9 !important;
        border-radius: 8px !important;
        cursor: pointer;
        z-index: 2;
    }

    .header .nav-toggle span {
        display: block !important;
        width: 23px !important;
        height: 3px !important;
        background: #09244b !important;
        border-radius: 3px;
    }

    /* ROW 2 - Free Estimate */

    .header .head-actions {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }

    .header .head-actions .phone {
        display: none !important;
    }

    .header .head-actions .top-cta {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 9px;
    }

    /* ROW 3 - Collapsible Navigation */

    .header #main-nav {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;

        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;

        background: #ffffff !important;
        box-shadow: none !important;
    }

    /* Show navigation when hamburger is opened */

    .header #main-nav.open {
        display: flex !important;
    }

    .header #main-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 600;
        color: #09244b;
        text-decoration: none;
    }

    .header #main-nav a:hover,
    .header #main-nav a:focus-visible {
        background: #f1f5f9;
        border-radius: 6px;
    }

}