/* Selvam Moi Transaction — public marketing/booking page.
   Distinct premium identity: near-black navy background, warm gold accents,
   elegant serif headings. Deliberately does not reuse the admin sidebar
   layout or its light card theme. */

:root {
  --home-bg: #0b0d16;
  --home-bg-alt: #12141f;
  --home-surface: #161a27;
  --home-gold: #d4af6a;
  --home-gold-bright: #e8c98a;
  --home-gold-dark: #a9813f;
  --home-text: #f3efe6;
  --home-text-muted: #b7b2a6;
  --home-border: rgba(212, 175, 106, 0.28);
  --home-heading-font: Georgia, 'Cambria', 'Times New Roman', serif;
}

body.home-page {
  background: var(--home-bg);
  color: var(--home-text);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.home-page h1, .home-page h2, .home-page h3 {
  font-family: var(--home-heading-font);
  color: var(--home-gold-bright);
  letter-spacing: 0.01em;
}

.home-page section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--home-gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---- Scroll-reveal (fade + slight upward translate) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Ornamental divider (gold flourish between sections) ---- */
.ornament-divider {
  max-width: 220px;
  margin: 0 auto;
  color: var(--home-gold);
  padding: 0 24px;
}
.ornament-divider svg { display: block; width: 100%; height: 20px; }

/* ---- Header ---- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 22, 0.82);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-header.scrolled {
  background: rgba(11, 13, 22, 0.96);
  border-bottom-color: var(--home-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.home-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-brand {
  font-family: var(--home-heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--home-gold-bright);
  letter-spacing: 0.02em;
}
.home-brand img {
  max-height: 44px;
  display: block;
}
.home-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle-home { display: inline-flex; gap: 6px; margin: 0; }
.lang-toggle-home button {
  border: 1px solid var(--home-border);
  background: transparent;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--home-text-muted);
}
.lang-toggle-home button.active {
  background: var(--home-gold);
  color: #241a05;
  border-color: var(--home-gold);
  font-weight: 600;
}

.btn.btn-gold {
  background: linear-gradient(135deg, var(--home-gold-bright), var(--home-gold-dark));
  color: #241a05;
  box-shadow: 0 6px 20px rgba(212, 175, 106, 0.22);
}
.btn.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(212, 175, 106, 0.32); }
.btn.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--home-gold);
  color: var(--home-gold-bright);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.btn.btn-outline-gold:hover { background: rgba(212, 175, 106, 0.12); }

/* ---- Hero ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 130px 24px 100px;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 106, 0.14), transparent 60%),
    linear-gradient(180deg, var(--home-bg) 0%, var(--home-bg-alt) 100%);
  max-width: none;
  overflow: hidden;
}
/* Subtle repeating diamond lattice, gold at very low opacity — pure CSS, no images */
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(45deg, rgba(212, 175, 106, 0.05) 25%, transparent 25%, transparent 75%, rgba(212, 175, 106, 0.05) 75%),
    linear-gradient(45deg, rgba(212, 175, 106, 0.05) 25%, transparent 25%, transparent 75%, rgba(212, 175, 106, 0.05) 75%);
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
  mask-image: radial-gradient(ellipse at top, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black, transparent 75%);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  margin: 0 0 18px;
}
.hero p {
  color: var(--home-text-muted);
  font-size: 18px;
  margin: 0 0 36px;
}

/* ---- Features ---- */
.features h2 { text-align: center; font-size: 32px; margin: 0 0 44px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--home-gold);
  box-shadow: 0 16px 40px rgba(212, 175, 106, 0.16);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 106, 0.35), rgba(212, 175, 106, 0.08));
  border: 1px solid var(--home-border);
}
.feature-card h3 { font-size: 18.5px; margin: 0 0 10px; }
.feature-card p { color: var(--home-text-muted); font-size: 14px; margin: 0; }

/* ---- Contact ---- */
.contact { background: var(--home-bg-alt); max-width: none; text-align: center; }
.contact h2 { font-size: 30px; margin-bottom: 30px; }
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 30px;
  padding: 10px 20px;
  color: var(--home-text);
  font-size: 14.5px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.contact-item:hover { border-color: var(--home-gold); color: var(--home-gold-bright); transform: translateY(-2px); }
.contact-item .icon { display: inline-flex; align-items: center; font-size: 16px; line-height: 0; }
.contact-item-whatsapp { border-color: rgba(37, 211, 102, 0.35); }
.contact-item-whatsapp:hover { border-color: #25d366; color: #25d366; }

/* ---- Booking form ---- */
.booking { max-width: none; }
.booking-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
}
.booking-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 40px 36px;
}
.booking-card h2 { text-align: center; font-size: 28px; margin: 0 0 8px; }
.booking-subtitle { text-align: center; color: var(--home-text-muted); margin: 0 0 28px; }
.booking-card .form-group label { color: var(--home-text); }
.booking-card .form-control:focus {
  border-color: var(--home-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.22);
}
.booking-card textarea.form-control { resize: vertical; }

.booking-side {
  background: linear-gradient(160deg, rgba(212, 175, 106, 0.10), rgba(212, 175, 106, 0.02));
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 34px 30px;
  position: sticky;
  top: 96px;
}
.booking-side h3 { font-size: 20px; margin: 0 0 12px; }
.booking-side p { color: var(--home-text-muted); font-size: 14.5px; margin: 0 0 24px; }
.booking-side-contact { display: flex; flex-direction: column; gap: 12px; }
.booking-side-contact .contact-item { justify-content: flex-start; }

.booking-confirmation {
  text-align: center;
  padding: 20px 10px;
}
.booking-confirmation .check {
  font-size: 46px;
  color: var(--home-gold-bright);
  margin-bottom: 10px;
}
.booking-confirmation h3 { margin: 0 0 10px; }
.booking-confirmation p { color: var(--home-text-muted); }

/* ---- Footer ---- */
.home-footer {
  border-top: 1px solid var(--home-border);
  padding: 32px 24px;
  text-align: center;
}
.home-footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  font-family: var(--home-heading-font);
  color: var(--home-gold-bright);
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--home-text-muted); font-size: 13.5px; }
.footer-social a .icon { display: inline-flex; align-items: center; line-height: 0; }
.footer-social a:hover { color: var(--home-gold-bright); }
.footer-copyright { color: var(--home-text-muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-side { position: static; }
}

@media (max-width: 620px) {
  .home-header-inner { flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 20px 64px; }
  .booking-card { padding: 30px 20px; }
  .booking-side { padding: 26px 22px; }
  .home-page section { padding: 56px 18px; }
}
