@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --text: #1F1F1F;
  --muted: #4F4F4F;
  --accent: #8B6F47;
  --olive: #556B4F;
  --line: #D9D1C4;
  --soft: #EEE7DC;
  --shadow: 0 10px 28px rgba(31,31,31,.08);
  --radius: 12px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,247,241,.96);
  border-bottom: 1px solid rgba(217,209,196,.7);
  backdrop-filter: blur(8px);
}
.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { border-bottom-color: var(--accent); }

main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero {
  padding: 92px 0 62px;
  max-width: 900px;
}
.hero h1, .page-title {
  margin: 0 0 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.page-title { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.hero-rule, .section-rule {
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 30px;
}
.hero p, .intro p {
  max-width: 850px;
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
  padding: 0 0 90px;
}
.card {
  display: block;
  background: var(--surface);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,31,31,.12); }
.card-image { width: 100%; aspect-ratio: 1.95 / 1; object-fit: cover; }
.card-body { padding: 28px 30px 32px; }
.card h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-arrow { margin-top: 24px; color: var(--accent); font-size: 1.35rem; }

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
  padding: 78px 0 60px;
}
.page-hero-image {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.intro { padding-bottom: 28px; }
.intro p:last-child { margin-bottom: 0; }
.services { padding: 24px 0 90px; }
.services h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin: 0 0 18px;
}
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 700; }
td:last-child, th:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.clarification {
  margin-top: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.vastu-section { padding: 24px 0 44px; }
.vastu-section:last-of-type { padding-bottom: 90px; }
.vastu-section h2 { margin: 0 0 18px; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; }
.note { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index: 50;
}
.whatsapp svg { width: 29px; height: 29px; fill: currentColor; }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 50px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .nav { width: min(var(--max), calc(100% - 28px)); min-height: 66px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .86rem; }
  main { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding: 62px 0 42px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero p, .intro p { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; gap: 20px; padding-bottom: 58px; }
  .card-body { padding: 24px; }
  .page-hero { grid-template-columns: 1fr; gap: 30px; padding: 54px 0 38px; }
  .page-hero-image { order: -1; aspect-ratio: 1.7 / 1; }
  .services, .vastu-section:last-of-type { padding-bottom: 60px; }

  /* Mobile: keep the original three-column tables intact and inside the card. */
  .table-wrap { overflow: hidden; width: 100%; }
  table { width: 100%; min-width: 0; table-layout: fixed; }
  th, td {
    padding: 15px 10px;
    font-size: .92rem;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
    min-width: 0;
    vertical-align: middle;
  }
  th { white-space: normal; }
  td:last-child, th:last-child { white-space: nowrap; }
  .services table th:nth-child(1), .services table td:nth-child(1) { width: 52%; }
  .services table th:nth-child(2), .services table td:nth-child(2) { width: 20%; }
  .services table th:nth-child(3), .services table td:nth-child(3) { width: 28%; }
  .vastu-section table th:first-child, .vastu-section table td:first-child { width: 67%; }
  .vastu-section table th:last-child, .vastu-section table td:last-child { width: 33%; }
  .whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 500px) {
  .brand { font-size: 1rem; }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: .78rem; }
}
