
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

h1.brand-logo-text, .brand-logo-text {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    font-style: italic;
}

html { scroll-padding-top: 100px; }
/********** Model-4 Interior Designing Studio - Biophilic & Sustainable Design **********/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500&family=Syne:wght@500;600;700;800&display=swap');

:root {
    --primary: #111111;
    --secondary: #EBE6DF;
    --light: #F4EFEB;
    --dark: #0A0A0A;
    --text: #333333;
    --text-muted: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* Preloader */
#spinner {
    opacity: 0; visibility: hidden; transition: opacity .5s ease-out, visibility 0s linear .5s; z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s; visibility: visible; opacity: 1;
}
.spinner-border { color: var(--primary) !important; }

/* Typography Helpers */
.model4-title { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: var(--dark); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-subtitle {
    display: inline-block; padding: 5px 15px; background: var(--light-green);
    color: var(--primary); font-size: 0.85rem; font-weight: 600;
    border-radius: 20px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.section-title { font-size: 2.8rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; line-height: 1.2; }

/* Buttons */
.btn-model4 {
    background: var(--primary); color: var(--white); padding: 14px 35px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; border: none; border-radius: 30px; transition: 0.3s;
    display: inline-block;
}
.btn-model4:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2); }
.btn-model4-outline {
    background: transparent; color: var(--primary); padding: 14px 35px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; border: 2px solid var(--primary); border-radius: 30px; transition: 0.3s;
    display: inline-block;
}
.btn-model4-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2); }

/* Navbar */
.model4-nav {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; transition: 0.4s; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.model4-nav.sticky-top { top: -100px; }
.model4-nav .navbar-brand h1 {
    font-size: 2rem; font-weight: 700; margin: 0; color: var(--primary);
    display: flex; align-items: center;
}
.model4-nav .navbar-brand h1 i { color: var(--secondary); margin-right: 10px; font-size: 2.2rem; }
.navbar-nav .nav-link {
    color: var(--dark); font-weight: 600; font-size: 0.95rem;
    padding: 10px 15px; margin: 0 5px; position: relative; transition: 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }
.navbar-nav .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: var(--secondary); border-radius: 3px; transition: 0.3s;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 20px; }

/* Hero Carousel */
.model4-hero .carousel-item { height: 100vh; min-height: 600px; position: relative; }
.model4-hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.model4-hero .carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(27, 67, 50, 0.9) 0%, rgba(45, 106, 79, 0.6) 100%);
    display: flex; align-items: center; z-index: 1; text-align: left;
}
.model4-hero .carousel-caption .container { max-width: 1200px; }
.model4-hero .carousel-control-prev,
.model4-hero .carousel-control-next { width: 5%; z-index: 5; opacity: 0; transition: 0.3s; }
.model4-hero:hover .carousel-control-prev,
.model4-hero:hover .carousel-control-next { opacity: 1; }
.model4-hero .carousel-control-prev-icon,
.model4-hero .carousel-control-next-icon {
    width: 3rem; height: 3rem; background-color: var(--primary); border-radius: 50%; background-size: 50%;
}

/* Sections */
.model4-section { padding: 100px 0; }
.bg-light-model4 { background: var(--light); }

/* About Images */
.about-img-wrap { position: relative; border-radius: 30px; overflow: hidden; }
.about-img-wrap img { width: 100%; object-fit: cover; border-radius: 30px; }
.about-experience {
    position: absolute; bottom: -30px; right: 30px; background: var(--white);
    padding: 30px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-align: center; border-bottom: 5px solid var(--secondary); z-index: 2;
}
.about-experience h2 { color: var(--primary); font-size: 3rem; margin: 0; line-height: 1; }
.about-experience p { font-weight: 600; color: var(--dark); margin: 0; }

/* Service Cards */
.service-card-model4 {
    background: var(--white); border-radius: 20px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.4s;
    border: 1px solid var(--border); height: 100%; position: relative;
    padding: 40px 30px; text-align: center; z-index: 1;
}
.service-card-model4::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0;
    background: var(--light-green); transition: 0.4s; z-index: -1; border-radius: 20px;
}
.service-card-model4:hover::before { height: 100%; }
.service-card-model4:hover { transform: translateY(-10px); border-color: transparent; box-shadow: 0 15px 30px rgba(45, 106, 79, 0.1); }
.service-icon-model4 {
    width: 80px; height: 80px; margin: 0 auto 25px;
    background: var(--primary); border-radius: 20px; transform: rotate(45deg);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 2rem; transition: 0.4s; box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);
}
.service-icon-model4 i { transform: rotate(-45deg); }
.service-card-model4:hover .service-icon-model4 { background: var(--secondary); box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3); }
.service-card-model4 h4 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card-model4 p { color: var(--text-light); margin-bottom: 25px; }
.btn-read-more {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background: var(--light); border-radius: 50%;
    color: var(--primary); transition: 0.3s;
}
.service-card-model4:hover .btn-read-more { background: var(--primary); color: var(--white); }

/* Room Gallery */
.room-card-model4 {
    position: relative; overflow: hidden; border-radius: 20px;
    margin-bottom: 30px; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.room-card-model4 img { width: 100%; height: 350px; object-fit: cover; transition: 0.5s; }
.room-card-model4:hover img { transform: scale(1.05); filter: brightness(0.8); }
.room-card-model4 .room-info {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    background: var(--white); padding: 20px; border-radius: 15px;
    transform: translateY(20px); opacity: 0; transition: 0.4s;
    text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.room-card-model4:hover .room-info { transform: translateY(0); opacity: 1; }
.room-card-model4 h4 { margin: 0 0 5px; font-size: 1.3rem; color: var(--primary); }
.room-card-model4 p { margin: 0; font-size: 0.9rem; color: var(--text-light); }
.room-card-model4 .zoom-btn {
    position: absolute; top: 20px; right: 20px; width: 45px; height: 45px;
    background: var(--primary); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.5); transition: 0.4s; font-size: 1.2rem;
}
.room-card-model4:hover .zoom-btn { opacity: 1; transform: scale(1); }

/* Feature List */
.model4-feature-list { list-style: none; padding: 0; margin: 30px 0; }
.model4-feature-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; font-weight: 500; }
.model4-feature-list li i {
    width: 35px; height: 35px; background: var(--light-green); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; font-size: 0.9rem;
}

/* Statistics */
.stats-model4 { background: var(--primary); position: relative; padding: 80px 0; border-radius: 30px; margin: 0 20px; }
.stats-model4::before {
    content: ''; position: absolute; inset: 0; background: url('../img/carousel-1.jpg') center/cover;
    opacity: 0.1; border-radius: 30px;
}
.stat-item-model4 { text-align: center; position: relative; z-index: 1; }
.stat-item-model4 h2 { font-size: 4rem; color: var(--white); margin-bottom: 10px; font-weight: 700; }
.stat-item-model4 p { color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin: 0; }

/* Testimonials */
.testimonial-model4 .owl-item { padding: 0 15px; }
.testimonial-card-model4 {
    background: var(--light); padding: 40px; border-radius: 20px;
    position: relative; margin-top: 40px; text-align: center;
}
.testimonial-card-model4 img {
    width: 80px !important; height: 80px !important; border-radius: 50%;
    border: 5px solid var(--white); position: absolute; top: -40px; left: 50%;
    transform: translateX(-50%); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-card-model4 p { font-size: 1.1rem; color: var(--text); font-style: italic; margin: 30px 0 20px; }
.testimonial-card-model4 h5 { color: var(--primary); margin: 0; font-size: 1.2rem; }
.testimonial-card-model4 span { color: var(--secondary); font-size: 0.9rem; }
.testimonial-card-model4 .quote-icon {
    position: absolute; bottom: 20px; right: 30px; font-size: 4rem; color: var(--border); opacity: 0.5; z-index: 0;
}

/* Page Header */
.page-header-model4 {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(27, 67, 50, 0.8)), url('../img/carousel-2.jpg') center/cover;
    text-align: center; margin-bottom: 50px;
}
.page-header-model4 h1 { color: var(--white); font-size: 4rem; margin-bottom: 15px; }
.breadcrumb-model4 { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb-model4 li { color: var(--secondary); font-size: 1.1rem; font-weight: 500; }
.breadcrumb-model4 li a { color: var(--white); transition: 0.3s; }
.breadcrumb-model4 li a:hover { color: var(--secondary); }
.breadcrumb-model4 li::after { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin: 0 15px; color: rgba(255,255,255,0.5); }
.breadcrumb-model4 li:last-child::after { display: none; }

/* Portfolio Filter */
.portfolio-menu-model4 { text-align: center; margin-bottom: 40px; }
.portfolio-menu-model4 button {
    background: var(--light); border: none; font-family: 'Outfit', sans-serif;
    font-weight: 600; color: var(--text); padding: 10px 25px; border-radius: 30px;
    margin: 5px; transition: 0.3s;
}
.portfolio-menu-model4 button.active,
.portfolio-menu-model4 button:hover { background: var(--primary); color: var(--white); box-shadow: 0 5px 15px rgba(45, 106, 79, 0.2); }

/* Footer */
.footer-model4 { background: var(--dark); color: rgba(255,255,255,0.7); padding: 80px 0 30px; margin-top: 100px; }
.footer-model4 .navbar-brand h1 { color: var(--white); }
.footer-model4 p { line-height: 1.8; }
.footer-contact-model4 p { margin-bottom: 15px; display: flex; align-items: center; }
.footer-contact-model4 i { width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; }
.footer-links-model4 a { display: block; color: rgba(255,255,255,0.7); margin-bottom: 12px; transition: 0.3s; font-weight: 500; }
.footer-links-model4 a:hover { color: var(--secondary); transform: translateX(5px); }
.social-links-model4 a {
    display: inline-flex; width: 45px; height: 45px; background: rgba(255,255,255,0.1);
    color: var(--white); align-items: center; justify-content: center; margin-right: 10px;
    border-radius: 50%; transition: 0.3s; font-size: 1.1rem;
}
.social-links-model4 a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
.footer-bottom-model4 { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-top: 50px; text-align: center; }

/* Contact Form */
.contact-form-model4 { background: var(--white); padding: 50px; border-radius: 30px; box-shadow: 0 10px 50px rgba(0,0,0,0.05); }
.contact-form-model4 .form-control {
    padding: 15px 25px; border-radius: 30px; border: 1px solid var(--border);
    background: var(--light); font-family: 'Outfit', sans-serif; transition: 0.3s;
}
.contact-form-model4 .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.1); background: var(--white); }
.contact-form-model4 textarea.form-control { border-radius: 20px; min-height: 150px; }

/* Lightbox */
.model4-lightbox {
    position: fixed; inset: 0; background: rgba(27, 67, 50, 0.95);
    z-index: 999999; display: none; align-items: center; justify-content: center;
}
.model4-lightbox.active { display: flex; }
.model4-lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.vlb-close, .vlb-prev, .vlb-next {
    position: absolute; background: rgba(255,255,255,0.1); border: none; color: var(--white);
    width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.vlb-close:hover, .vlb-prev:hover, .vlb-next:hover { background: var(--primary); color: var(--white); transform: scale(1.1); }
.vlb-close { top: 30px; right: 30px; }
.vlb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.vlb-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* Floats */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25d366; color: #fff; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3); z-index: 100;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.whatsapp-float:hover { background: #128C7E; color: #fff; transform: scale(1.1) translateY(-5px); }
.back-to-top { position: fixed; display: none; left: 30px; bottom: 30px; z-index: 99; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); border: none; box-shadow: 0 5px 15px rgba(45, 106, 79, 0.3); }
.back-to-top:hover { background: var(--dark); transform: translateY(-5px); }



/* --- POLIFORM DESIGN OVERRIDES --- */

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-logo-text {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Background */
body {
    background-color: var(--light) !important;
}

/* Rounded Cards & Images */
img {
    border-radius: 24px !important;
}
.service-item, .project-item, .team-item, .testimonial-item {
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.service-item img, .project-item img {
    border-radius: 24px 24px 0 0 !important;
}

/* Minimalist Buttons */
.btn {
    border-radius: 50px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    border: 1px solid #111111 !important;
}
.btn-primary {
    background-color: #111111 !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Black Footer */
.footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding-top: 80px !important;
    padding-bottom: 50px !important;
}
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5 {
    color: #ffffff !important;
}
.footer a {
    color: rgba(255,255,255,0.7) !important;
}
.footer a:hover {
    color: #ffffff !important;
}

/* Badges */
.badge {
    border-radius: 50px !important;
    padding: 8px 16px !important;
    background: var(--light) !important;
    color: #111111 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

/* --- POLIFORM LUXURY OVERRIDES --- */

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-logo-text, .section-title {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: -1px !important;
}

/* Base Body */
body {
    background-color: var(--light) !important;
    font-family: 'Outfit', sans-serif !important;
    color: var(--text) !important;
}

/* Poliform Buttons */
.btn-model4 {
    border-radius: 50px !important;
    background: var(--primary) !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    padding: 15px 35px !important;
    border: none !important;
}
.btn-model4:hover {
    background: var(--text) !important;
    transform: translateY(-2px) !important;
}

/* Extreme Border Radii on Images/Cards */
img {
    border-radius: 40px !important;
}
.model4-feature-item, .project-item, .service-item, .team-item {
    border-radius: 40px !important;
    overflow: hidden !important;
    background: #fff !important; /* contrast against cream background */
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
}

/* Glassmorphism Card (Hero) */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 30px;
}

/* Poliform Pill Badges */
.pill-badge {
    background: transparent;
    border: 1px solid #111;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.8rem;
    color: #111;
    display: inline-block;
    margin-bottom: 10px;
}

/* Floating Arrow Button */
.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.arrow-btn:hover {
    background: #444;
    transform: scale(1.1);
}

/* Footer Override */
.container-fluid.bg-dark {
    background-color: var(--dark) !important;
}
.container-fluid.bg-dark * {
    color: #fff !important;
}


/* Navbar Fix */
.model4-nav {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 1200px !important;
    border-radius: 50px !important;
    background: rgba(246, 244, 238, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 10px 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    z-index: 1000 !important;
}
.model4-nav .nav-link {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #111 !important;
}
.model4-nav.sticky-top {
    top: 20px !important;
}
.navbar-brand h1 {
    font-family: 'Syne', sans-serif !important;
    letter-spacing: -1px !important;
}


/* Fixes */
.navbar-toggler { border: none !important; }

/* Fix nav congestion */
.model4-nav .nav-item {
    margin: 0 15px !important;
    font-size: 0.9rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}
.model4-nav .navbar-nav {
    align-items: center;
}
.btn-model4 {
    margin-left: 20px !important;
}

/* Force hide any potential toggler or stray close buttons */
.navbar-toggler, .close, .btn-close {
    display: none !important;
}


/* Owl Carousel Luxury Overrides */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4) !important;
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: white !important;
    color: #111 !important;
}
.header-carousel .owl-nav [class*=owl-]:focus {
    outline: none !important;
}


/* --- Absolute Mobile Responsiveness Fixes --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100vw !important;
}

@media (max-width: 767.98px) {
    /* Reduce massive border radii on small screens */
    .position-relative.overflow-hidden {
        border-radius: 25px !important;
    }
    .room-card-model4 {
        border-radius: 25px !important;
    }
    
    /* Make the floating navbar pill fit nicely on mobile */
    .model4-nav {
        margin: 10px 15px !important;
        padding: 10px 15px !important;
        border-radius: 25px !important;
    }
    
    /* Ensure the hero container text stays away from the edges */
    .owl-carousel-item .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Adjust signature huge texts so they dont overflow horizontally */
    .display-1 {
        font-size: 3.5rem !important;
        word-wrap: break-word !important;
    }
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    /* Realign the luxury footer on mobile */
    .footer h1 {
        font-size: 3rem !important;
    }
}

/* --- Absolute Perfect Mobile Header for Model-4 --- */
@media (max-width: 991.98px) {
    /* Transform floating pill into a sleek fixed top bar on mobile */
    .model4-nav {
        margin: 0 !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px);
        border: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        width: 100% !important;
        top: 0 !important;
        position: fixed !important;
        padding: 15px 20px !important;
        z-index: 9999 !important;
    }
    
    /* Give the body padding so the fixed header doesn't overlap the hero */
    body {
        padding-top: 75px !important;
    }

    /* Make the dropdown menu luxurious cream instead of dark blue */
    .navbar-collapse {
        background: #F8F5F0 !important;
        padding: 20px;
        margin-top: 15px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
    }
    
    /* Make the toggle button black to match the luxury theme */
    .navbar-toggler {
        background: #111 !important;
        border: none !important;
        outline: none !important;
        padding: 8px 12px !important;
    }
    
    /* Adjust dropdown links */
    .navbar-nav .nav-link {
        color: #111 !important;
        padding: 10px 0 !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    }
}


/* --- Fix missing menu icon and hide obstructing arrows on mobile --- */
@media (max-width: 991.98px) {
    /* Hide the carousel arrows on mobile to prevent obstructing text */
    .header-carousel .owl-nav {
        display: none !important;
    }
    
    /* Ensure the hamburger toggle is fully visible and styled */
    .navbar-toggler {
        display: block !important; /* Force it to show */
        background: transparent !important;
        border: 2px solid #111 !important;
        padding: 5px 10px !important;
        border-radius: 8px !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* --- Homeline Modulars Advanced Mobile Audits --- */
@media (max-width: 991.98px) {
    /* Navbar Top Fix */
    .model4-nav.sticky-top {
        top: 0 !important;
    }
    
    /* Touch Target Fixes */
    .btn, .btn-model4, .nav-link, .btn-link, .whatsapp-float, .social-links-model4 a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure padding for text alignment within buttons */
    .btn, .btn-model4 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Spacing & Padding Reduction */
    .model4-section, .page-header-model4, .stats-model4 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    .footer, .footer-model4 {
        padding-top: 60px !important;
    }
    
    /* Typography Adjustments */
    .model4-title { font-size: 2.8rem !important; }
    .section-title { font-size: 2.2rem !important; }
    h1, h2, .display-1, .display-3 {
        word-wrap: break-word !important;
        hyphens: auto;
    }
    
    /* Footer Copyright Stack */
    .copyright-footer {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Forms Optimization */
    .form-control {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        padding: 12px 20px;
    }
}
