/* ==========================================================================
   Srilaksha Real Estate — Core Stylesheet
   Palette + type system derived from the supplied letterhead brand guide.
   ========================================================================== */

:root {
  --primary: #113F22;
  --primary-dark: #0A2A17;
  --primary-light: #1A5630;
  --gold: #A9812A;
  --gold-light: #D7C28A;
  --white: #FFFFFF;
  --off-white: #F7F8F6;
  --text: #202522;
  --text-light: #667069;
  --border: #E3E8E4;

  --font-heading: 'DM Sans', 'Poppins', sans-serif;
  --font-body: 'Inter', 'DM Sans', sans-serif;
  --font-np: 'Noto Sans Devanagari', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 20px rgba(17, 63, 34, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(17, 63, 34, 0.14);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section--soft { background: var(--off-white); }
.section--dark {
  background: var(--primary-dark);
  color: var(--white);
}
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.section--dark .muted { color: rgba(255,255,255,0.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-label {
  margin-bottom: 40px;
  max-width: 640px;
}

.section-label::after {
  content: "";
  display: block;
  width: 55px;
  height: 2px;
  background: var(--gold);
  margin-top: 16px;
}

.section-label--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label--center::after { margin-left: auto; margin-right: auto; }

.muted { color: var(--text-light); }

.lede {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(17,63,34,0.28); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #927019; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(169,129,42,0.32); }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--primary-dark);
}
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--primary-dark); border-color: var(--white); }

.btn-block { width: 100%; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17,63,34,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--primary-dark); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand-name { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */
/* NOTE: the hero photo is now set with inline `style="background-image:..."`
   directly on the <section class="hero"> element in each HTML page — not via
   a CSS custom property. This avoids a real browser quirk: a url() stored in
   a custom property and consumed inside an external stylesheet resolves
   relative to that STYLESHEET's folder (css/), not the HTML page, which is
   why the photo was silently 404'ing before. Keeping the image declaration
   inline guarantees it resolves relative to the HTML file itself. */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-content { max-width: 700px; padding: 140px 0 60px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lede { color: rgba(255,255,255,0.85); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Search module ---------- */
.search-module {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  margin-bottom: 40px;
}
.search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10,42,23,0.22);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr auto;
  gap: 16px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 8px; }
.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.search-field select, .search-field input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.search-field select:focus, .search-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.property-tag--rent { background: var(--gold); }
.property-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-price { font-family: var(--font-heading); font-weight: 700; color: var(--primary-dark); font-size: 1.15rem; }
.property-title { font-size: 1.05rem; margin: 0; }
.property-location { color: var(--text-light); font-size: 0.9rem; display: flex; gap: 6px; align-items: center; }
.property-meta {
  display: flex;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-light);
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.property-meta span { display: flex; align-items: center; gap: 6px; }
.property-body .btn { margin-top: 12px; }

/* Category / service cards */
.category-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }

.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.icon-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: var(--gold-light); }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}
.icon-card h3 { margin-bottom: 10px; }
.icon-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* Why us / stat strip */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-item { text-align: center; padding: 8px; }
.why-item .icon-badge { margin: 0 auto 16px; }
.why-item h3 { font-size: 1rem; }
.why-item p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.step-index {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.steps-connector {
  display: none;
}

/* Split section (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.85); margin: 0 auto 28px; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(169,129,42,0.35), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Filters bar (properties page) */
.filters-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 36px;
}
.filters-bar select, .filters-bar input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
}
.filters-bar input[type="text"] { flex: 1; min-width: 180px; }
.results-count { color: var(--text-light); font-size: 0.92rem; margin-bottom: 20px; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 22px 0 0;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 50px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.team-card .role { color: var(--gold); font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  margin-bottom: 18px;
  border: 2px solid var(--gold-light);
}

/* Vision / mission blocks */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--off-white);
  border-left: 3px solid var(--gold);
}

/* Locations */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.location-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}
.location-card.is-future { background: var(--off-white); border-style: dashed; }
.location-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.location-card.is-future .location-dot { background: var(--gold-light); }
.location-name { font-family: var(--font-heading); font-weight: 700; }
.location-status { font-size: 0.78rem; color: var(--text-light); }

/* Insights / blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.post-media { aspect-ratio: 16/10; background: var(--off-white); position: relative; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px; }
.post-category { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.post-body h3 { font-size: 1.05rem; }
.post-body p { color: var(--text-light); font-size: 0.92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-row .icon-badge { background: rgba(255,255,255,0.1); color: var(--gold-light); flex-shrink: 0; margin-bottom: 0; }
.contact-info-row strong { display: block; color: var(--white); }
.contact-info-row span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* Property detail page */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 14px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumbs img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--gold); }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0; padding: 24px; background: var(--off-white); border-radius: var(--radius-md); }
.spec-item { text-align: center; }
.spec-item strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--primary-dark); }
.spec-item span { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.95rem; }
.feature-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}
.price-banner { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 4px; }
.notice-box {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 20px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state h3 { color: var(--primary-dark); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 20px; top: 20px; }
