/*
Theme Name: Hello Elementor Child
Description: Customized Child Theme for Real Terra India - Boutique Real Estate Advisory (Pan-India Scope).
Author: Real Terra UI Engineering
Template: hello-elementor
Version: 1.1.0
*/

/* ==========================================================================
   REAL TERRA INDIA - GLOBAL STYLESHEET
   Identity: Boutique Real Estate Advisory (Pan-India)
   Theme: Clean, Corporate, Premium (Savills Inspired)
   Global Palette: Pure White Backgrounds, Professional Green, Gold Accents
   
   NOTE: Header and Footer CSS are handled directly inside their respective 
   Elementor HTML Widgets to prevent global conflicts.
========================================================================== */

:root {
    /* Brand Colors */
    --brand-green: #2C5F2D;
    --brand-green-dark: #1A3A1B;
    --brand-gold: #C9A961;
    --brand-gold-dark: #b0914c;
    
    /* Backgrounds (Strictly Light for Pages) */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F0F2F5;
    
    /* Typography Colors */
    --text-dark: #1A1A1A;
    --text-body: #4A4A4A;
    --text-muted: #777777;
    --text-white: #FFFFFF;
    
    /* Borders & UI */
    --border-light: #EAEAEA;
    --border-medium: #CCCCCC;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(44, 95, 45, 0.08); /* Subtle green tint shadow */
    
    /* Fonts & Utils */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 2px;
    --radius-md: 4px;
}

/* ==========================================================================
   1. WORDPRESS & ELEMENTOR SPECIFIC FIXES
========================================================================== */
.elementor-widget-heading h1, 
.elementor-widget-heading h2, 
.elementor-widget-heading h3, 
.elementor-widget-heading h4, 
.elementor-widget-heading h5, 
.elementor-widget-heading h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.elementor-widget-text-editor {
    font-family: var(--font-body);
    color: var(--text-body);
}

.elementor-section-filled { 
    background-color: var(--bg-white); 
}

/* Pan-India Utility Classes for Elementor Builder */
.rti-boutique-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-green);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   2. RESET & BASE (Enforcing Light Theme)
========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-white); /* Strict White Background */
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. TYPOGRAPHY & TEXT UTILITIES
========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

p  { margin-bottom: 1.5rem; }
a  { text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img{ max-width: 100%; height: auto; display: block; }

/* Text Utilities */
.text-dark    { color: var(--text-dark); }
.text-body    { color: var(--text-body); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: var(--text-white); }
.text-green   { color: var(--brand-green); }
.text-gold    { color: var(--brand-gold); }
.text-center  { text-align: center; }
.text-small   { font-size: 0.9rem; }
.font-weight-bold { font-weight: 600; }
.tracking-wide { letter-spacing: 2px; }
.text-uppercase { text-transform: uppercase; }

/* ==========================================================================
   4. LAYOUT & SPACING
========================================================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 6rem 0; position: relative; }
.bg-light { background-color: var(--bg-light); }
.bg-gray { background-color: var(--bg-gray); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }

.align-center { align-items: center; }
.relative     { position: relative; }

.m-0  { margin: 0; }
.mb-05{ margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.p-2  { padding: 1.5rem; }
.p-3  { padding: 2rem; }
.p-4  { padding: 3rem; }

/* ==========================================================================
   5. UI COMPONENTS (Cards & Badges for Light Theme)
========================================================================== */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    padding: 2.5rem;
    height: 100%;
}

.card:hover {
    border-color: rgba(44, 95, 45, 0.3); /* Subtle green border on hover */
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-green { background: var(--brand-green); color: var(--text-white); }
.badge-gold  { background: var(--brand-gold); color: var(--text-dark); }
.badge-outline { border: 1px solid var(--brand-green); color: var(--brand-green); }

/* ==========================================================================
   6. GLOBAL BUTTONS
========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

/* Primary Green Button */
.btn-primary {
    background: var(--brand-green);
    color: var(--text-white);
}
.btn-primary:hover {
    background: var(--brand-green-dark);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.25);
    transform: translateY(-2px);
}

/* Gold Accent Button */
.btn-gold {
    background: var(--brand-gold);
    color: var(--text-dark);
}
.btn-gold:hover {
    background: var(--brand-gold-dark);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border-color: var(--brand-green);
    color: var(--brand-green);
}
.btn-outline:hover {
    background: var(--brand-green);
    color: var(--text-white);
}

.btn-block { display: flex; width: 100%; text-align: center; }

/* ==========================================================================
   7. UTILITIES (Ticker & Miscellaneous)
========================================================================== */
/* Continuous Market Ticker (Pan-India) */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0.8rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: scrollTicker 30s linear infinite;
}

.ticker-track span {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.mx-2 { margin-left: 2rem; margin-right: 2rem; }

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
.ticker-wrapper:hover .ticker-track { animation-play-state: paused; }

/* ==========================================================================
   8. RESPONSIVE GRID OVERRIDES
========================================================================== */
@media (max-width: 992px) {
    .section { padding: 4.5rem 0; }
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
    .container { padding: 0 1.5rem; }
    .card { padding: 2rem 1.5rem; }
    .btn { width: 100%; } /* Full width buttons on mobile */
}