/* ==========================================
   BIRLA ESTATES – FINAL RESPONSIVE THEME 2025
   Matches screenshots & birla.thanehome.com style
   ========================================== */

:root {
    --maroon: #4a0d4a;
    --dark-maroon: #2a082a;
    --gold: #ffd700;
    --light-bg: #f5f3ef;
    --text-dark: #222;
    --text-light: #f8f8f8;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: clamp(1.55rem, 3.8vw, 1.75rem);
    line-height: 1.7;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
}

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

.container {
    width: 92%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Headings – matches premium brochure style */
h1,
h2,
h3,
h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--maroon);
    line-height: 1.25;
}

h1 {
    font-size: clamp(3.8rem, 9vw, 7.2rem);
    letter-spacing: 0.4rem;
}

h2 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
}

h3 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

h4 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

/* Gold divider – exact style from screenshots */
.divider-gold {
    position: relative;
    height: 3px;
    margin: clamp(3rem, 6vw, 5rem) auto;
    max-width: 900px;
}

.divider-gold::before,
.divider-gold::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--gold);
}

.divider-gold::before {
    left: 0;
    width: 45%;
}

.divider-gold::after {
    right: 0;
    width: 45%;
}

.divider-gold .shield {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.divider-gold .shield span {
    color: var(--maroon);
    font-size: 2.8rem;
    font-weight: bold;
}

/* Hero */
.hero-brand {
    background: var(--maroon);
    color: white;
    padding: clamp(12rem, 20vw, 22rem) 0 clamp(8rem, 14vw, 16rem);
    text-align: center;
}

.hero-brand img {
    max-width: min(380px, 80vw);
    margin-bottom: 5rem;
}

/* Values Grid */
.values-section {
    background: var(--light-bg);
    padding: clamp(8rem, 12vw, 14rem) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
    text-align: center;
}

.value-item i {
    font-size: clamp(5rem, 12vw, 8rem);
    color: var(--maroon);
    margin-bottom: 2rem;
}

/* Legacy Section */
.legacy-section {
    padding: clamp(8rem, 12vw, 14rem) 0;
    background: white;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(5rem, 10vw, 8rem);
}

@media (min-width: 992px) {
    .legacy-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Vision & Mission */
.vision-mission-section {
    background: var(--maroon);
    color: white;
    padding: clamp(10rem, 14vw, 16rem) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(5rem, 10vw, 8rem);
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Map Section */
.map-section {
    padding: clamp(8rem, 12vw, 14rem) 0;
    text-align: center;
    background: white;
}

/* Projects Grid */
.projects-teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 768px) {
    .projects-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-teaser-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modal (Enquiry Popup) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: clamp(5%, 8%, 12%) auto;
    width: 92%;
    max-width: 620px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

/* Floating WhatsApp + Enquiry */
.whatsapp-float,
.enquiry-float {
    position: fixed;
    bottom: clamp(20px, 6vw, 40px);
    right: clamp(20px, 6vw, 40px);
    width: clamp(60px, 14vw, 80px);
    height: clamp(60px, 14vw, 80px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(30px, 8vw, 42px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    transition: all 0.3s;
}

.whatsapp-float {
    background: #25D366;
    color: white;
}

.enquiry-float {
    background: var(--maroon);
    color: white;
    bottom: clamp(100px, 20vw, 140px);
}

.whatsapp-float:hover,
.enquiry-float:hover {
    transform: scale(1.15);
}

/* Prevent overflow */
html,
body {
    overflow-x: hidden;
}

/* Modal open – lock scroll */
body.modal-open {
    overflow: hidden;
}