/* 
   Chennai Interiors - Premium Style System
   Version: 2.0 - Layout Stabilization Pass
   Colors: White, Beige, Bronze/Wood, Soft Gold
   Typography: Playfair Display (Serif), Inter (Sans)
   Fixed: Hero grid layout, mega menu, FAQ accordion, 
          responsive system, duplicate overrides removed
*/

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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-white: #FFFFFF;
    --bg-beige: #F8F5F0;
    --text-dark: #1C1C1C;
    --text-muted: #666666;
    --accent: #8B6F47;
    --accent-light: #C4A484;
    --gold: #D4AF37;
    --line: rgba(28, 28, 28, 0.1);
    --container-max: 1400px;
    --section-spacing: 110px;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
h1 {
    font-size: clamp(2.8rem, 4.2vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.6;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 25px 0;
    transition: 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    flex: 2;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.header-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.nav-links li { position: relative; }

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1102;
    position: relative;
}

/* ============================================
   MEGA MENU — JS-only system, no CSS hover
   ============================================ */
.has-dropdown { position: relative; }

.mega-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1099;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 50px 0;
    border-top: 1px solid var(--line);
}

.has-dropdown.active .mega-menu {
    display: block;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.mega-menu-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mega-menu-info p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.7;
}

.mega-menu-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.mega-link-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid transparent;
    transition: 0.3s;
    border-radius: 4px;
}

.mega-link-item:hover {
    border-color: var(--line);
    background: var(--bg-beige);
}

.mega-link-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    opacity: 1;
}

.mega-link-item p {
    font-size: 0.78rem;
    opacity: 0.55;
    margin: 0;
    font-family: var(--font-sans);
}

/* ============================================
   HERO SECTION — Grid layout (fixes collapse)
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: clamp(120px, 10vw, 150px) 0 80px;
    background-color: var(--bg-beige);
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: contents;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding-left: 40px;
    text-align: left;
}

.hero-content h1 { text-align: left; }
.hero-content p { text-align: left; }
.hero-content .label { text-align: left; }

.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 700px;
    border-radius: 300px 0 0 300px;
    overflow: hidden;
    z-index: 1;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.scroll-explore {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.4;
}

.scroll-explore span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-explore .line {
    height: 1px;
    width: 40px;
    background: var(--text-dark);
}

/* ============================================
   TRUST STATS
   ============================================ */
.trust-stats {
    padding: 80px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.trust-brands {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-list span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
}

.service-card {
    background: var(--bg-beige);
    padding: 50px 40px;
    transition: 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    border-color: var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-card a.serif {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.service-card a.serif:hover {
    gap: 12px;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: var(--bg-beige);
    padding: 40px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.testimonial-card:hover {
    border-color: var(--line);
    background: white;
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 560px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    transition: opacity 0.4s ease;
}

/* ============================================
   PROCESS GRID
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 60px;
}

.process-step {
    padding: 30px 25px;
    border-top: 2px solid var(--line);
    transition: border-color 0.3s;
}

.process-step:hover {
    border-top-color: var(--accent);
}

.step-number {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    opacity: 0.15;
    margin-bottom: 15px;
    display: block;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 24px 0;
    text-align: left;
    color: var(--text-dark);
    transition: color 0.3s;
}

.faq-trigger:hover {
    color: var(--accent);
}

.faq-trigger i,
.faq-trigger svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger i,
.faq-item.active .faq-trigger svg {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-beige);
    padding: 100px 0 50px;
    margin-top: 0;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.footer-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 25px;
    opacity: 0.5;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.65;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 6px;
}

.contact-info li {
    font-size: 0.9rem;
    margin-bottom: 14px;
    opacity: 0.65;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.45;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* ============================================
   MOBILE STICKY CTA BAR
   ============================================ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 1098;
}

.mobile-cta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid var(--line);
    transition: background 0.2s;
}

.mobile-cta-item:hover {
    background: var(--bg-beige);
}

.mobile-cta-item:last-child { border-right: none; }

.mobile-cta-item svg,
.mobile-cta-item i {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.reveal-fade.active {
    opacity: 1;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.desktop-only { display: block; }
.mobile-center { text-align: left; }

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {

    .container { padding: 0 30px; }

    /* Hero — switch to single column */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        padding-bottom: 60px;
        gap: 40px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-image-wrap {
        height: 420px;
        border-radius: 40px;
        margin: 0 30px;
        width: calc(100% - 60px);
    }

    /* Navigation — mobile drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1101;
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        gap: 30px;
    }

    .nav-links.active { right: 0; }

    .mobile-toggle { display: block; }

    .header-cta.desktop-only { display: none; }

    /* Mega menu — hidden on mobile */
    .mega-menu { display: none !important; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Process */
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

    :root { --section-spacing: 70px; }

    .container { padding: 0 20px; }

    h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    /* Hero */
    .hero {
        padding-top: 100px;
        gap: 30px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-image-wrap {
        height: 320px;
        border-radius: 20px;
        margin: 0 20px;
        width: calc(100% - 40px);
    }

    .hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 { font-size: 2.2rem; }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item { height: 380px; }

    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Mobile sticky CTA */
    .mobile-sticky-cta { display: flex; }

    body { padding-bottom: 65px; }

    .desktop-only { display: none !important; }

    .mobile-center {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* WhatsApp float — hide on mobile (sticky bar handles it) */
    .whatsapp-float { display: none; }
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    opacity: 0.55;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-beige);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: white;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   ABOUT PAGE — 2 COLUMN GRID
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

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

/* ============================================
   SERVICE DETAIL PAGE HERO
   ============================================ */
.service-hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: clamp(120px, 10vw, 150px) 0 80px;
    background-color: var(--bg-beige);
    overflow: hidden;
}

.service-hero-content {
    padding-left: 40px;
    text-align: left;
}

.service-hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 300px 0 0 300px;
    overflow: hidden;
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .service-hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        min-height: auto;
    }

    .service-hero-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .service-hero-image {
        height: 400px;
        border-radius: 40px;
        margin: 0 30px;
        width: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .service-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-hero-image {
        height: 300px;
        border-radius: 20px;
        margin: 0 20px;
        width: calc(100% - 40px);
    }
}
/* Premium Partners Section */
.brand-list {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.brand-item {
    display: flex;
    flex-direction: column;
    padding: 0 32px;
    gap: 4px;
}

.brand-item:first-child {
    padding-left: 0;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.brand-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
    flex-shrink: 0;
}

.trust-brands .label {
    margin-bottom: 0;
    margin-right: 32px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .brand-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .brand-divider { display: none; }
    .brand-item { padding: 0; }
}
/* Testimonials section — consistent left alignment */
.testimonials .section-header,
.section-header.reveal {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* FAQ section — full width, consistent */
.faq-item {
    text-align: left;
}

.faq-trigger {
    text-align: left;
}
/* Testimonials section — fully centred */
.testimonial-card {
    text-align: center;
}

.testimonial-card p {
    text-align: center;
}

.testimonial-card h4 {
    text-align: center;
}

.testimonial-card .label {
    text-align: center;
    margin: 0 auto;
}

.stars {
    text-align: center;
}
/* ============================================
   MOBILE SERVICE TILES — paste at bottom of style.css
   Controls the expand/collapse of service tiles
   in the mobile nav drawer on ALL pages
   ============================================ */

/* Service tile block — hidden by default */
.mob-services-block {
    display: none;
    width: 100%;
    padding: 0 10px 10px;
    text-align: left;
}

/* Show tiles when parent li has .mob-expanded */
.has-dropdown.mob-expanded .mob-services-block {
    display: block;
}

.mob-services-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.45;
    margin: 8px 0 10px;
    color: var(--text-dark);
}

.mob-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 10px;
}

.mob-service-tile {
    display: block;
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 11px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s, color 0.18s;
}

.mob-service-tile:active,
.mob-service-tile:hover {
    background: var(--accent);
    color: #fff;
}

.mob-view-all {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.5;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    margin-top: 4px;
}

/* Rotate chevron when expanded */
.has-dropdown.mob-expanded > a i,
.has-dropdown.mob-expanded > a svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Desktop: never show mob-services-block */
@media (min-width: 1025px) {
    .mob-services-block { display: none !important; }
}
/* ============================================
   MOBILE SERVICE TILES — paste at bottom of style.css
   Controls the expand/collapse of service tiles
   in the mobile nav drawer on ALL pages
   ============================================ */

/* Service tile block — hidden by default */
.mob-services-block {
    display: none;
    width: 100%;
    padding: 0 10px 10px;
    text-align: left;
}

/* Show tiles when parent li has .mob-expanded */
.has-dropdown.mob-expanded .mob-services-block {
    display: block;
}

.mob-services-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.45;
    margin: 8px 0 10px;
    color: var(--text-dark);
}

.mob-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 10px;
}

.mob-service-tile {
    display: block;
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 11px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s, color 0.18s;
}

.mob-service-tile:active,
.mob-service-tile:hover {
    background: var(--accent);
    color: #fff;
}

.mob-view-all {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.5;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    margin-top: 4px;
}

/* Rotate chevron when expanded */
.has-dropdown.mob-expanded > a i,
.has-dropdown.mob-expanded > a svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Desktop: never show mob-services-block */
@media (min-width: 1025px) {
    .mob-services-block { display: none !important; }
}
/* ================================================================
   CHENNAI INTERIORS INTERIORS — Style Additions
   Paste ALL of this at the very bottom of assets/css/style.css
   Fixes: mobile layout overflow, service tiles, FAQ, nav
   ================================================================ */


/* ── 1. MOBILE SERVICE TILES in nav drawer ── */

.mob-services-block {
    display: none;
    width: 100%;
    padding: 0 10px 10px;
    text-align: left;
}

.has-dropdown.mob-expanded .mob-services-block {
    display: block;
}

.mob-services-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.45;
    margin: 8px 0 10px;
    color: var(--text-dark);
}

.mob-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 10px;
}

.mob-service-tile {
    display: block;
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 11px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s, color 0.18s;
}

.mob-service-tile:active,
.mob-service-tile:hover {
    background: var(--accent);
    color: #fff;
}

.mob-view-all {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.5;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    margin-top: 4px;
}

/* Rotate chevron when expanded */
.has-dropdown.mob-expanded > a i,
.has-dropdown.mob-expanded > a svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Desktop: never show mob-services-block */
@media (min-width: 1025px) {
    .mob-services-block { display: none !important; }
}


/* ── 2. MOBILE LAYOUT FIXES — service detail pages ── */

@media (max-width: 768px) {

    /* Fix ANY inline 2-column grid → single column on mobile.
       Targets the "Built for Our Climate" and similar sections
       that use style="display:grid; grid-template-columns:1fr 1fr" */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Also catch 3-column grids used in some sections */
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Fix sections that use display:grid without a class */
    [style*="display: grid"],
    [style*="display:grid"] {
        gap: 24px !important;
    }

    /* Prevent any content from overflowing viewport */
    main section,
    main .container,
    main [class*="grid"],
    main [style*="grid"] {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Service hero: stack vertically, full width */
    .service-hero {
        grid-template-columns: 1fr !important;
        padding-top: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-height: auto !important;
        gap: 0 !important;
    }

    .service-hero-content {
        padding: 40px 20px 30px !important;
        text-align: left !important;
        order: 1;
    }

    .service-hero-content h1 {
        font-size: clamp(1.9rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
    }

    .service-hero-content .btn {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
    }

    /* Hero buttons: stack vertically */
    .service-hero-content [style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .service-hero-image {
        order: 2;
        height: 280px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Section padding on mobile */
    .section {
        padding: 60px 0 !important;
    }

    /* Section header max-width */
    .section-header {
        max-width: 100% !important;
    }

    /* Portfolio grid: single column on mobile */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .portfolio-item {
        height: 260px !important;
    }

    /* Materials / features grid items: full width, proper padding */
    .services-grid .reveal,
    .services-grid > div {
        padding: 30px 20px !important;
    }

    /* FAQ: full width, no overflow */
    .faq-item {
        width: 100%;
        overflow: hidden;
    }

    .faq-trigger {
        font-size: 0.9rem !important;
        padding: 20px 0 !important;
        gap: 12px;
    }

    .faq-content p {
        font-size: 0.88rem !important;
        line-height: 1.75 !important;
    }

    /* Contact-info list used in service pages */
    .contact-info {
        gap: 12px !important;
    }

    /* CTA section buttons: stack */
    [style*="display: flex"][style*="justify-content: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    [style*="min-width: 230px"],
    [style*="min-width: 220px"] {
        min-width: unset !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Tablet: fix 2-col grids too */
@media (max-width: 1024px) {
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    [style*="gap: 80px"],
    [style*="gap:80px"] {
        gap: 40px !important;
    }
}


