/* =========================================================
   ELANDS PROPERTIES — Design System
   Palakkad, Kerala real estate portal.
   Palette pulled directly from the brand mark: a lime-green
   to sky-blue gradient "e" map-pin. Signature motif: a small
   pin marker beside locations, and a green->blue gradient
   used as a sparing accent (buttons, active states, rule).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Brand colors, sampled from the logo --- */
  --brand-green:      #5CAE32;
  --brand-green-dark: #48901F;
  --brand-blue:       #0B84D6;
  --brand-blue-dark:  #08639F;
  --brand-gradient: linear-gradient(120deg, var(--brand-green) 0%, var(--brand-blue) 100%);

  /* --- Neutrals --- */
  --paper:      #FFFFFF;
  --paper-dim:  #F2F7FB;
  --ink:        #172230;
  --ink-soft:   #5B6773;
  --line:       #E3E9EE;
  --line-strong:#C9D2D9;

  /* --- Status colors --- */
  --status-sale:    var(--brand-green);
  --status-pending: #E08B23;
  --status-sold:    #8A93A0;

  /* --- Type --- */
  --font-display: 'Poppins', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* --- Layout --- */
  --max-width: 1200px;
  --gutter: 32px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Location pin — signature motif echoing the logo mark.
   Used inline before city/locality text throughout.
   ========================================================= */
.pin-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -1.5px;
  flex-shrink: 0;
}
.pin-icon path { fill: currentColor; }

/* =========================================================
   Top navigation
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  height: 42px;
  width: auto;
  display: none; /* shown by JS once COMPANY.logo is set */
}
.main-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
}
.main-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(23,34,48,0.10);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.22s ease;
    z-index: 60;
  }
  .main-nav.open {
    max-height: 400px;
    visibility: visible;
  }
  .main-nav a {
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
}

@media (max-width: 400px) {
  .brand-logo-img { height: 34px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--brand-gradient);
  color: #fff;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--brand-blue-dark);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--brand-blue); background: var(--paper-dim); filter: none; }
.btn-whatsapp {
  background: #25D366;
}
.btn-whatsapp:hover { background: #1EBE5A; filter: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 84px 0 68px;
  background: var(--paper-dim);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.10;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 16.5px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 12px 30px rgba(23,34,48,0.06);
}
.hero-stat { display: flex; justify-content: space-between; font-size: 13.5px; }
.hero-stat span:first-child { color: var(--ink-soft); }
.hero-stat .val { font-family: var(--font-mono); color: var(--brand-blue-dark); font-weight: 500; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
}

/* =========================================================
   Section headers
   ========================================================= */
.section { padding: 68px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue-dark);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  color: var(--ink);
}
.section-head .desc { font-size: 14.5px; color: var(--ink-soft); max-width: 44ch; }

/* =========================================================
   Simple search form (listings page)
   ========================================================= */
.search-form {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-form .form-group { margin-bottom: 0; }
.search-form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.search-form select, .search-form input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  min-width: 160px;
}
.search-form .search-field { flex: 1; min-width: 220px; }
.search-form .search-field input { width: 100%; }
.search-submit { height: 44px; white-space: nowrap; }
@media (max-width: 640px) {
  .search-form { flex-direction: column; align-items: stretch; }
  .search-form select, .search-form input, .search-submit { width: 100%; }
}
.results-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }

/* =========================================================
   Property grid & cards
   ========================================================= */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23,34,48,0.10);
  border-color: var(--line-strong);
}

.card-media { position: relative; }
.card-media-inner { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-dim); }
.card-media-inner img { width: 100%; height: 100%; object-fit: cover; }
.card-status {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  color: var(--white);
  background: var(--status-sale);
}
.card-status[data-status="pending"] { background: var(--status-pending); }
.card-status[data-status="sold"] { background: var(--status-sold); }
.card-status[data-status="rented"] { background: var(--status-sold); }
.card-status[data-status="for-rent"] { background: var(--brand-blue); }

.video-badge {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(11,25,40,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-badge svg { width: 15px; height: 15px; fill: #fff; }

.card-price {
  position: absolute;
  bottom: -14px; left: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(23,34,48,0.12);
}

.card-body { padding: 26px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--ink);
}
.card-address {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
}
.card-address strong { color: var(--ink); font-weight: 600; }

.card-specs {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.card-specs span strong { color: var(--ink); font-weight: 500; }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
}

/* =========================================================
   Property detail page
   ========================================================= */
.detail-hero { border-bottom: 1px solid var(--line); padding: 36px 0 0; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--brand-blue-dark); }

.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin-bottom: 34px;
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-gallery .g-main { grid-row: span 2; aspect-ratio: 4/3.1; overflow: hidden; }
.detail-gallery .g-sub { aspect-ratio: 4/2; overflow: hidden; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .detail-gallery .g-main { grid-row: auto; }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  padding: 0 0 80px;
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.detail-title-row h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--ink);
}
.detail-address { color: var(--ink-soft); font-size: 15px; display: flex; align-items: center; }
.detail-price {
  font-family: var(--font-mono);
  font-size: 25px;
  color: var(--brand-blue-dark);
  font-weight: 500;
  white-space: nowrap;
}

.dim-callouts {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0 34px;
}
.dim-callouts div {
  flex: 1;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
}
.dim-callouts div:last-child { border-right: none; }
.dim-callouts .n { font-size: 19px; color: var(--ink); display: block; }
.dim-callouts .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.detail-desc { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 34px; }
.detail-desc p { margin: 0 0 16px; }

.detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 14px;
}
.feature-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.detail-sidebar { border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23,34,48,0.06);
}
.agent-card { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.agent-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--paper-dim); }
.agent-card .name { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--ink); }
.agent-card .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-sidebar .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.mls-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); line-height: 1.9; }

/* =========================================================
   About page
   ========================================================= */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 68px 0 88px;
}
@media (max-width: 820px) { .about-layout { grid-template-columns: 1fr; } }
.about-photo { aspect-ratio: 3/3.6; overflow: hidden; background: var(--paper-dim); border-radius: var(--radius); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  margin: 0 0 22px;
  color: var(--ink);
}
.about-copy p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 18px; }
.credential-list {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.credential-list div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; }
.credential-list .k { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 68px 0 88px;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info h1 { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 0 0 18px; color: var(--ink); }
.contact-info p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 30px; }
.contact-detail { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-blue-dark); width: 110px; flex-shrink: 0; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 14px; }
#form-success {
  display: none;
  padding: 16px 18px;
  background: var(--paper-dim);
  border-left: 3px solid var(--brand-green);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
#form-success.show { display: block; }
#form-error {
  display: none;
  padding: 16px 18px;
  background: #FDEEEE;
  border-left: 3px solid #D64545;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  color: #8A2A2A;
}
#form-error.show { display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-brand img { height: 22px; width: auto; display: none; }
.footer-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-social { margin-top: 0; }
.footer-social a { width: 32px; height: 32px; }
.footer-social svg { width: 15px; height: 15px; }
.footer-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.footer-location { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.footer-links { display: flex; gap: 22px; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-blue); }

/* =========================================================
   Share button + popover (property detail page)
   ========================================================= */
.share-wrap { position: relative; display: inline-block; margin-top: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.share-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(23,34,48,0.12);
  padding: 8px;
  min-width: 190px;
  z-index: 30;
  text-align: left;
}
.share-popover.open { display: block; }
.share-popover a, .share-popover button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.share-popover a:hover, .share-popover button:hover { background: var(--paper-dim); }

/* =========================================================
   YouTube video embed (property detail page)
   ========================================================= */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--ink);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =========================================================
   Social links (footer / contact)
   ========================================================= */
.social-links { display: flex; gap: 16px; margin-top: 18px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-links a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

/* =========================================================
   Map embed (property detail page)
   ========================================================= */
.map-embed {
  margin: 16px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   Lightbox — full-screen photo viewer
   ========================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,20,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); color: #fff; border: none;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono); font-size: 13px;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* =========================================================
   Testimonials (homepage)
   ========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.testimonial-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* =========================================================
   News
   ========================================================= */
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news-item:first-child { padding-top: 0; }
.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-top: 3px;
}
.news-item-body h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin: 0 0 6px; color: var(--ink); line-height: 1.35; }
.news-item-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .news-item { flex-direction: column; gap: 6px; } }

.news-post-layout { max-width: 700px; margin: 0 auto; padding-bottom: 90px; }
.news-post-body h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 10px 0 22px; color: var(--ink); }
.news-post-body p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }

/* =========================================================
   Services / NRI page
   ========================================================= */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-copy { order: 2; }
.service-block.reverse .service-visual { order: 1; }
@media (max-width: 820px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-copy { order: 1; }
  .service-block.reverse .service-visual { order: 2; }
}
.service-copy .index { font-family: var(--font-mono); font-size: 12px; color: var(--brand-blue-dark); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.service-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin: 0 0 16px; color: var(--ink); }
.service-copy p { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; }
.service-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.service-list li { padding-left: 22px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.service-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-gradient); }
.service-visual {
  aspect-ratio: 4/3;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-strong);
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip div { padding: 22px; border-right: 1px solid var(--line); text-align: center; }
.stat-strip div:last-child { border-right: none; }
.stat-strip .n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand-blue-dark); margin-bottom: 4px; }
.stat-strip .l { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
