/* =========================================================
   Sudarshan Luxury Stay — rebuild of sudarshanluxurystay.com
   Tokens and measurements: see SITE_SPEC.md §2
   ========================================================= */

:root {
  --red: #e3282c;
  --red-dark: #c81f23;
  --bg-soft: #f0f4fa;
  --white: #fff;
  --black: #000;
  --text: #444;
  --muted: #ddd;
  --price-text: #313439;
  --stat-yellow: #f8c93e;
  --whatsapp: #25d366;
  --hero-overlay: rgba(74, 25, 25, 0.7);

  --font: "PT Sans Narrow", "Arial Narrow", sans-serif;
  --font-price: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 50px;
  --radius-sm: 10px;
  --radius: 15px;
  --radius-lg: 20px;
  --header-h: 112px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h2 {
  font-size: 50px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.body-lg { font-size: 18px; line-height: 1.9; }

svg { fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--white);
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border: 1px solid var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--red); }

.icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--white);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  padding: 24px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { width: 206px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a:not(.btn) { font-size: 20px; line-height: 38px; color: var(--text); transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--red); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0; background: none;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--black); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Phone pill (hero + CTA banners) ---------- */
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 8px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}
.phone-pill-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
}
.phone-pill-icon svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: 200px 0 150px;
  min-height: 828px;
  display: flex;
  align-items: center;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; }
.hero-overlay { background: var(--hero-overlay); }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.hero h1 {
  font-size: 70px;
  line-height: 1;
  font-weight: 700;
  color: var(--white);
  max-width: 760px;
}
.hero-sub { margin-top: 24px; color: var(--muted); font-size: 20px; line-height: 24px; max-width: 700px; }
.hero-actions { display: flex; align-items: center; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.text-link { color: var(--muted); font-weight: 700; font-size: 20px; line-height: 32px; }
.text-link:hover { color: var(--white); }

/* ---------- Lead form card ---------- */
.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.lead-form h4 { font-size: 20px; line-height: 32px; font-weight: 700; color: var(--text); }
.lead-form label { display: flex; flex-direction: column; gap: 10px; font-size: 20px; line-height: 24px; color: var(--text); }
.lead-form input,
.lead-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f6f8;
  color: var(--black);
  font-family: var(--font);
  font-size: 18px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form input::placeholder { color: #999; }
.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23999'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.lead-form input:focus, .lead-form select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 40, 44, .15); }
.lead-form .is-invalid { border-color: var(--red); background: #fff3f3; }
.btn-submit {
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s;
}
.btn-submit:hover { background: var(--red-dark); }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.form-status { font-family: var(--font-ui); font-size: 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-success { color: #148a3a; }
.form-status.is-error { color: var(--red); }

/* ---------- Intro ---------- */
.intro { padding: 150px 0 125px; }
.intro-inner { display: grid; grid-template-columns: 583px 1fr; gap: 60px; align-items: center; }
.intro-images { display: flex; flex-direction: column; gap: 30px; }
.intro-images img { width: 100%; height: 166px; object-fit: cover; border-radius: var(--radius); }
.intro-copy h2 { margin-bottom: 24px; }
.intro-copy .body-lg + .body-lg { margin-top: 20px; }
.key-points { display: flex; gap: 60px; margin-top: 40px; flex-wrap: wrap; }
.key-point { display: flex; align-items: center; gap: 20px; }
.key-point h3 { font-size: 26px; line-height: 33.8px; font-weight: 700; color: var(--black); }

/* ---------- About ---------- */
.about { background: var(--red); padding: 0 0 90px; margin-top: 90px; }
.about-inner { display: grid; grid-template-columns: 646px 1fr; gap: 60px; align-items: end; }
.about-visual { position: relative; margin-top: -90px; }
.about-visual img { width: 100%; height: auto; max-height: 780px; object-fit: contain; object-position: bottom; }
.stat-card {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  background: var(--stat-yellow);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}
.stat-card strong { display: block; font-size: 50px; line-height: 1.25; font-weight: 700; }
.stat-card span { font-size: 20px; }
.about-copy { align-self: center; padding: 90px 0 0; }
.about-copy h2 { color: var(--white); margin-bottom: 24px; }
.about-copy p { color: var(--muted); margin-bottom: 40px; }

/* ---------- Separator ---------- */
.separator {
  height: 100px;
  background-color: var(--white);
  background-image: radial-gradient(circle, #d6d9df 2px, transparent 2.5px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}
.separator--soft { background-color: var(--bg-soft); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 70px; }
.section-head p { margin-top: 12px; }

/* ---------- Amenities ---------- */
.amenities { padding: 50px 0 100px; }
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  margin-bottom: 80px;
}
.amenity-grid li { display: flex; gap: 20px; align-items: center; }
.amenity-grid h4 { font-size: 20px; line-height: 32px; font-weight: 700; color: var(--black); }
.amenity-grid p { font-size: 20px; line-height: 24px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 50px;
  min-height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.3) 100%),
    url("assets/images/cta-terrace-bg.jpg") center / cover;
  color: var(--white);
}
.cta-banner h2 { font-size: 26px; line-height: 33.8px; color: var(--white); }
.cta-banner p { margin-top: 8px; font-family: var(--font-ui); font-size: 16px; }

/* ---------- Gallery ---------- */
.gallery { padding: 50px 0 100px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.gallery-item {
  padding: 0; border: 0; background: none;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Pricing ---------- */
.pricing { padding: 150px 0 120px; }
.price-list { display: flex; flex-direction: column; gap: 24px; max-width: 896px; margin: 0 auto; }
.price-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 40px;
  min-height: 183px;
  padding: 30px 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px #ececec, 0 8px 30px rgba(0, 0, 0, .05);
}
.price-plan h3, .price-plan .per { font-family: var(--font-price); font-size: 16px; line-height: 19.2px; font-weight: 700; color: #0f0f0f; }
.price { font-family: var(--font-price); font-size: 40px; line-height: 48px; font-weight: 700; color: var(--price-text); margin: 10px 0 4px; }
.price-features li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 34.2px; }
.price-features svg { width: 18px; height: 18px; flex: none; fill: #06f; }

.price-card--featured { background: var(--red); box-shadow: none; }
.price-card--featured,
.price-card--featured h3,
.price-card--featured .per,
.price-card--featured .price,
.price-card--featured li { color: var(--white); }
.price-card--featured .price-features svg { fill: var(--white); }

.price-note { text-align: center; font-size: 18px; line-height: 1.6; margin: 40px auto 0; max-width: 896px; }

/* ---------- Referral ---------- */
.referral { background: var(--red); padding: 100px 0; color: var(--white); }
.referral-inner { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.referral h2 { color: var(--white); margin-bottom: 20px; }
.referral-copy > p { font-size: 18px; line-height: 1.6; color: #fbe9e9; }
.referral-copy h4 { margin: 32px 0 16px; font-size: 26px; line-height: 33.8px; }
.steps { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.steps li {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 4px;
  font-size: 18px;
}
.steps span { font-size: 22px; font-weight: 700; min-width: 14px; }

/* ---------- Location ---------- */
.location { background: var(--bg-soft); padding: 150px 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 450px; background: #e5e3df; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.address { margin-top: 50px; text-align: center; font-style: normal; font-size: 18px; line-height: 1.6; }
.address strong { display: block; font-size: 26px; line-height: 33.8px; color: var(--black); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); padding: 100px 0; }
.site-footer img { width: 281px; height: auto; }
.site-footer p { margin: 24px 0 20px; font-size: 18px; }

/* ---------- WhatsApp widget ---------- */
.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; }
.wa-tooltip {
  position: relative;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .08);
  transition: opacity .3s, transform .3s;
}
.wa-tooltip::after {
  content: "";
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--white);
}
.wa-tooltip.is-swapping { opacity: 0; transform: translateY(4px); }
.wa-button {
  display: flex; align-items: center; gap: 12px;
  height: 60px;
  padding: 0 24px 0 20px;
  border-radius: 30px;
  background: var(--whatsapp);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .2s;
}
.wa-button:hover { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-nav {
  position: fixed;
  border: 0; background: rgba(255, 255, 255, .12); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 32px; line-height: 1;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Scroll reveal ---------- */
.will-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease-out, transform .7s ease-out; }
.will-reveal.is-visible, .will-reveal:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
  .site-nav { gap: 24px; }
  .hero-inner, .referral-inner { grid-template-columns: 1fr; gap: 50px; }
  .lead-form { max-width: 520px; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-copy { order: -1; }
  .intro-images img { height: 240px; }
  .about-inner { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card { grid-template-columns: 1fr 1.6fr; }
  .price-card .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 960px) {
  :root { --header-h: 88px; }
  .site-header { padding: 12px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid #eee; }
  .nav-cta { margin: 16px 0 0; }
}

@media (max-width: 809px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }
  h2 { font-size: 36px; }
  .logo img { width: 170px; }

  .hero { padding: 140px 0 80px; min-height: 0; }
  .hero h1 { font-size: 44px; }
  .hero-actions { gap: 20px; }
  .lead-form { padding: 22px; }

  .intro { padding: 80px 0; }
  .intro-images img { height: 190px; }
  .key-points { gap: 30px; }

  .about { margin-top: 60px; padding-bottom: 60px; }
  .about-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-visual { margin-top: -60px; max-width: 420px; margin-inline: auto; }
  .about-copy { padding-top: 20px; }
  .stat-card { padding: 24px 16px; }
  .stat-card strong { font-size: 40px; }

  .separator { height: 60px; }
  .section-head { margin-bottom: 40px; }
  .amenities, .gallery { padding: 40px 0 60px; }
  .amenity-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 50px; }

  .cta-banner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .cta-banner h2 { font-size: 24px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 50px; }

  .pricing { padding: 80px 0; }
  .price-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .price-card .btn { justify-self: stretch; }
  .price-features li { line-height: 1.5; align-items: flex-start; padding: 4px 0; }
  .price-features svg { margin-top: 4px; }

  .referral { padding: 70px 0; }
  .location { padding: 80px 0; }
  .map-frame { height: 320px; }
  .site-footer { padding: 60px 0 120px; }
  .site-footer img { width: 220px; }

  .wa-widget { right: 16px; bottom: 16px; }
  .wa-button { height: 54px; padding: 0 20px 0 16px; }
}
