/*
Theme Name: Vistara Infra
Theme URI: https://vistarainfra.com
Author: Vistara Infra
Author URI: https://vistarainfra.com
Description: Premium real estate landing page theme for Vistara Infra. Gold & dark minimal design with WhatsApp lead capture.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vistara-infra
*/

/* ========== BASE RESET & TOKENS ========== */
:root {
  --background: hsl(40, 20%, 98%);
  --foreground: hsl(220, 20%, 15%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(35, 80%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(40, 15%, 94%);
  --muted: hsl(40, 10%, 96%);
  --muted-foreground: hsl(220, 10%, 50%);
  --border: hsl(40, 15%, 90%);
  --input: hsl(40, 15%, 90%);
  --gold: hsl(35, 80%, 45%);
  --gold-light: hsl(35, 60%, 92%);
  --soft-cream: hsl(40, 30%, 96%);
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ========== UTILITY CLASSES ========== */
.section-padding { padding: 4rem 1rem; }
@media (min-width: 640px) { .section-padding { padding: 4rem 1.5rem; } }
@media (min-width: 768px) { .section-padding { padding: 6rem 1.5rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 2rem; } }
.container-narrow { max-width: 72rem; margin: 0 auto; }
.font-heading { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Inter', sans-serif; }

/* ========== ANIMATIONS ========== */
@keyframes fade-in-up { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse-soft { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 4s ease-in-out infinite; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ========== NAVBAR ========== */
.vi-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all 0.3s; }
.vi-navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.vi-navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 640px) { .vi-navbar-inner { padding: 1rem 1.5rem; } }
@media (min-width: 1024px) { .vi-navbar-inner { padding: 1rem 2rem; } }
.vi-nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .vi-nav-links { display: flex; } }
.vi-nav-link { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s; }
.vi-nav-link:hover { color: var(--foreground); }
.vi-btn-primary { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--primary); padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary-foreground); transition: all 0.2s; }
.vi-btn-primary:hover { opacity: 0.9; }
.vi-btn-primary-lg { padding: 1rem 2rem; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.vi-btn-primary-lg:hover { transform: scale(1.02); }
.vi-btn-outline { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 2px solid rgba(34,40,49,0.2); padding: 1rem 2rem; font-size: 1rem; font-weight: 600; color: var(--foreground); transition: all 0.2s; }
.vi-btn-outline:hover { background: rgba(34,40,49,0.05); transform: scale(1.02); }
.vi-mobile-toggle { display: block; background: none; cursor: pointer; color: var(--foreground); }
@media (min-width: 768px) { .vi-mobile-toggle { display: none; } }
.vi-mobile-menu { display: none; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 1rem 1.5rem; }
.vi-mobile-menu.open { display: block; }
@media (min-width: 768px) { .vi-mobile-menu { display: none !important; } }
.vi-mobile-menu a { display: block; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.vi-mobile-menu a:hover { color: var(--foreground); }
.vi-mobile-menu .vi-btn-primary { display: block; text-align: center; margin-top: 0.5rem; }

/* ========== HERO ========== */
.vi-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.vi-hero-bg { position: absolute; inset: 0; }
.vi-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.vi-hero-overlay { position: absolute; inset: 0; background: rgba(34,40,49,0.6); }
.vi-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vi-hero-content { position: relative; max-width: 42rem; padding-top: 8rem; }
.vi-hero-content .vi-label { color: var(--primary); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.vi-hero-content h1 { color: var(--card); font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .vi-hero-content h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .vi-hero-content h1 { font-size: 3.75rem; } }
.vi-hero-content .vi-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; max-width: 36rem; }

/* ========== CARDS & SECTIONS ========== */
.vi-card { background: var(--card); border-radius: 1rem; padding: 2rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.3s; }
.vi-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-4px); }
.vi-icon-box { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.vi-icon-box-primary { background: rgba(194,120,24,0.1); }
.vi-icon-box-gold { background: var(--gold-light); }
.vi-icon-box-dark { background: rgba(194,120,24,0.2); }
.vi-icon-box svg, .vi-icon-box i { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.vi-icon-box-lg { width: 4rem; height: 4rem; border-radius: 1rem; }
.vi-icon-box-lg svg, .vi-icon-box-lg i { width: 1.75rem; height: 1.75rem; }
.vi-label { color: var(--primary); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.vi-section-title { font-size: 1.875rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 1024px) { .vi-section-title { font-size: 2.25rem; } }
.vi-section-title-light { color: var(--card); }
.vi-text-muted { color: var(--muted-foreground); line-height: 1.7; }
.vi-bg-cream { background: var(--soft-cream); }
.vi-bg-dark { background: var(--foreground); }
.vi-bg-gold-light { background: var(--gold-light); }
.vi-bg-secondary { background: rgba(var(--secondary), 0.3); }
.vi-grid { display: grid; gap: 1.5rem; }
.vi-grid-2 { grid-template-columns: 1fr; }
.vi-grid-3 { grid-template-columns: 1fr; }
.vi-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .vi-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .vi-grid-2 { grid-template-columns: repeat(2, 1fr); } .vi-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vi-grid-3 { grid-template-columns: repeat(3, 1fr); } .vi-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.vi-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .vi-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.vi-gallery-item { overflow: hidden; border-radius: 0.75rem; }
.vi-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s; }
.vi-gallery-item:hover img { transform: scale(1.05); }

/* ========== PROJECT CARDS ========== */
.vi-project-card { background: var(--card); border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.07); transition: all 0.3s; }
.vi-project-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.12); transform: translateY(-4px); }
.vi-project-img { position: relative; overflow: hidden; }
.vi-project-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s; }
.vi-project-card:hover .vi-project-img img { transform: scale(1.05); }
.vi-project-tag { position: absolute; top: 1rem; left: 1rem; background: var(--primary); color: var(--primary-foreground); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; }
.vi-project-body { padding: 1.5rem; }
.vi-project-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.vi-project-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.vi-project-meta svg, .vi-project-meta i { width: 1rem; height: 1rem; color: var(--primary); }
.vi-pill { font-size: 0.75rem; background: var(--gold-light); color: var(--foreground); padding: 0.25rem 0.625rem; border-radius: 9999px; font-weight: 500; display: inline-block; }
.vi-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.vi-btn-block { display: block; width: 100%; text-align: center; border-radius: var(--radius); background: var(--primary); padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--primary-foreground); transition: opacity 0.2s; }
.vi-btn-block:hover { opacity: 0.9; }

/* ========== STATS ========== */
.vi-stat-value { font-size: 2.25rem; font-weight: 700; color: var(--card); margin-bottom: 0.25rem; line-height: 1.1; }
.vi-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.3; }

/* Stats Grid - force proper grid */
.vi-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 1024px) {
    .vi-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Stat Cards */
.vi-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(194,120,24,0.15);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 160px;
}
.vi-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(194,120,24,0.15);
}
.vi-stat-card .vi-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vi-stat-card .vi-icon-box svg,
.vi-stat-card .vi-icon-box i {
    width: 1.25rem;
    height: 1.25rem;
}


/* ========== QUALIFY FORM ========== */
.vi-form-card { background: var(--card); border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid var(--border); padding: 1.5rem; }
@media (min-width: 640px) { .vi-form-card { padding: 2.5rem; } }
.vi-question-num { width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: rgba(194,120,24,0.15); color: var(--primary); font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vi-question-label { font-size: 1.125rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.vi-radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
.vi-radio-option { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; border-radius: var(--radius); border: 1px solid var(--input); padding: 0.75rem; font-size: 0.75rem; transition: all 0.2s; min-height: 48px; word-wrap: break-word; }
@media (min-width: 640px) { .vi-radio-option { padding: 0.75rem 1rem; font-size: 0.875rem; } }
.vi-radio-option:hover { border-color: rgba(194,120,24,0.4); }
.vi-radio-option.selected { border-color: var(--primary); background: rgba(194,120,24,0.1); color: var(--foreground); }
.vi-radio-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.vi-radio-option svg { width: 1rem; height: 1rem; flex-shrink: 0; color: rgba(150,150,150,0.3); }
.vi-radio-option.selected svg { color: var(--primary); }
.vi-input { width: 100%; border-radius: var(--radius); border: 1px solid var(--input); background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: 'Inter', sans-serif; outline: none; transition: box-shadow 0.2s; }
.vi-input:focus { box-shadow: 0 0 0 3px rgba(194,120,24,0.15); }
.vi-textarea { resize: none; }

/* ========== CONTACT ========== */
.vi-contact-card { background: var(--card); padding: 2rem; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid var(--border); }

/* ========== FOOTER ========== */
.vi-footer { background: var(--foreground); }
.vi-footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .vi-footer-inner { flex-direction: row; } }
.vi-footer-brand { font-size: 1.25rem; font-weight: 700; color: var(--card); }
.vi-footer-brand span { color: var(--primary); }
.vi-footer-links { display: flex; gap: 1.5rem; }
.vi-footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.vi-footer-links a:hover { color: var(--card); }
.vi-footer-copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ========== WHATSAPP BUTTON ========== */
.vi-whatsapp-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; display: flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: #25D366; padding: 0.875rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: transform 0.2s; }
.vi-whatsapp-btn:hover { transform: scale(1.05); }
.vi-whatsapp-btn svg { width: 1.25rem; height: 1.25rem; }
.vi-whatsapp-label { display: none; }
@media (min-width: 640px) { .vi-whatsapp-label { display: inline; } }

/* ========== RESPONSIVE TEXT CENTER ========== */
.vi-text-center { text-align: center; }
@media (min-width: 768px) { .vi-hero-content { text-align: left; } }
.vi-cta-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .vi-cta-buttons { flex-direction: row; justify-content: center; } }

/* ========== ABOUT GRID ========== */
.vi-about-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .vi-about-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; } }
.vi-about-img { border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vi-about-features { display: flex; flex-direction: column; gap: 1rem; }
.vi-about-feature { display: flex; align-items: center; gap: 0.75rem; }
.vi-about-feature-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.vi-about-feature-icon svg, .vi-about-feature-icon i { width: 1.25rem; height: 1.25rem; color: var(--primary); }

/* ========== MOBILE OPTIMIZATION ========== */
@media (max-width: 639px) {
  /* Prevent text overflow everywhere */
  body { overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word; }
  
  /* Hero text sizing for small screens */
  .vi-hero-content h1 { font-size: 1.75rem; line-height: 1.25; }
  .vi-hero-content .vi-subtitle { font-size: 1rem; }
  .vi-hero-content { padding-top: 6rem; }
  
  /* Section titles on mobile */
  .vi-section-title { font-size: 1.5rem; }
  
  /* Buttons full width and properly aligned on mobile */
  .vi-cta-buttons { align-items: stretch; }
  .vi-cta-buttons .vi-btn-primary-lg,
  .vi-cta-buttons .vi-btn-outline { width: 100%; text-align: center; padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
  
  /* Radio option boxes - proper text wrapping */
  .vi-radio-option { min-height: 2.75rem; padding: 0.625rem 0.75rem; font-size: 0.8125rem; line-height: 1.4; white-space: normal; word-break: break-word; }
  .vi-radio-grid { gap: 0.5rem; }
  
  /* Form inputs */
  .vi-input { font-size: 1rem; padding: 0.75rem; }
  
  /* Cards spacing */
  .vi-card { padding: 1.5rem; }
  
  /* About section image */
  .vi-about-img { aspect-ratio: 16/10; }
  
  /* Stats: 2 columns on mobile */
  .vi-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .vi-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .vi-stat-card { min-height: 140px; padding: 1.25rem 0.75rem; }
  
  /* Footer */
  .vi-footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .vi-footer-links { justify-content: center; }
  
  /* Gallery 2 columns with smaller gap */
  .vi-gallery-grid { gap: 0.5rem; }
  
  /* Stats value sizing */
  .vi-stat-value { font-size: 1.75rem; }
}

/* Ensure radio options don't overflow on any screen */
.vi-radio-option { max-width: 100%; box-sizing: border-box; }
.vi-radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
