/* ==========================================================================
   Swarn Nagri Vrindavan — Draw Result System
   Brand tokens + layout. Premium Indian real-estate aesthetic:
   navy + gold on cream, restrained use of gradients/animation.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #172C45;
  --navy-soft: #24405f;
  --gold: #C99218;
  --gold-dark: #8E6512;
  --cream: #FBF8EF;
  --white: #FFFFFF;
  --green: #187A50;
  --red: #B54141;

  --ink: var(--navy);
  --ink-muted: #5b6b80;
  --border-soft: #E4DCC6;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1160px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 18px 40px -20px rgba(23, 44, 69, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 30px;
  white-space: nowrap;
}
.btn-navy:hover { background: var(--navy-soft); }
.btn-navy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  border-radius: var(--radius-md);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ==========================================================================
   Header
  /* ==========================================================================
   Premium Header
   ========================================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 44, 69, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(23, 44, 69, 0.04);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 40px;
}

/* Brand */

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
  text-decoration: none;
  font-family: var(--font-display);
  transition: opacity 0.25s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-line1 {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  color: var(--navy);
  text-transform: uppercase;
}

.brand-line2 {
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-nav a {
  position: relative;
  color: var(--navy);
  padding: 9px 0;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.site-nav a:not(.nav-contact):hover {
  color: var(--gold-dark);
}

.site-nav a:not(.nav-contact):hover::after {
  width: 100%;
}

/* Active Navigation */

.site-nav .nav-active {
  color: var(--gold-dark);
  font-weight: 700;
}

.site-nav .nav-active::after {
  width: 100%;
}

/* Contact CTA */

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 23px !important;
  border: 1px solid var(--gold-dark);
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-contact:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(23, 44, 69, 0.16);
}

/* Mobile Toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(23, 44, 69, 0.12);
  border-radius: 3px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--navy);
  transition: all 0.25s ease;
}


/* ==========================================================================
   Premium Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(15, 30, 48, 0.52) 0%,
      rgba(15, 30, 48, 0.64) 55%,
      rgba(15, 30, 48, 0.78) 100%
    ),
    url('../images/hero-vrindavan.jpg') center center / cover no-repeat;

  background-color: var(--navy);
  color: var(--white);

  min-height: 570px;
  display: flex;
  align-items: center;
  padding: 105px 0 95px;

  text-align: center;
}

/* Subtle cinematic overlay */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.07),
      transparent 45%
    );
  pointer-events: none;
}

/* Bottom fade */

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 30, 48, 0.25)
  );

  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Small eyebrow */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.86);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

/* Heading */

.hero-heading {
  max-width: 900px;
  margin: 0 auto 18px;

  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.015em;

  color: var(--white);

  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.22);
}

/* Highlight if used */

.hero-heading span {
  color: var(--gold);
}

/* Subheading */

.hero-subheading {
  max-width: 620px;
  margin: 0 auto;

  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.75;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.88);

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Optional hero divider */

.hero-divider {
  width: 54px;
  height: 1px;
  margin: 27px auto 25px;
  background: var(--gold);
  opacity: 0.9;
}


/* ==========================================================================
   Premium Responsive Header + Hero
   ========================================================================== */

@media (max-width: 900px) {

  .header-inner {
    min-height: 70px;
    gap: 20px;
  }

  .site-nav {
    gap: 22px;
    font-size: 0.82rem;
  }

  .nav-contact {
    padding: 9px 17px !important;
  }

  .hero {
    min-height: 520px;
    padding: 90px 20px 80px;
  }

}


@media (max-width: 760px) {

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 12px 22px 20px;

    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(23, 44, 69, 0.06);
    border-bottom: 1px solid rgba(23, 44, 69, 0.08);

    box-shadow: 0 15px 30px rgba(23, 44, 69, 0.08);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(23, 44, 69, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-contact {
    margin-top: 10px;
    width: 100% !important;
  }

  .hero {
    min-height: 500px;
    padding: 80px 18px 70px;

    background:
      linear-gradient(
        180deg,
        rgba(15, 30, 48, 0.58),
        rgba(15, 30, 48, 0.80)
      ),
      url('../images/hero-vrindavan.jpg') center / cover no-repeat;
  }

  .hero-heading {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.12;
  }

  .hero-subheading {
    font-size: 0.94rem;
    line-height: 1.65;
    max-width: 500px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

}


@media (max-width: 420px) {

  .brand-line1 {
    font-size: 1rem;
  }

  .brand-line2 {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
  }

  .hero {
    min-height: 470px;
  }

  .hero-heading {
    font-size: 2.05rem;
  }

  .hero-divider {
    margin: 22px auto;
  }

}
/* ==========================================================================
   Search section
   ========================================================================== */
.search-section {
  padding: 64px 0 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 10px;
}
.section-description {
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.search-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.search-row {
  display: flex;
  gap: 12px;
}
.form-input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream);
}
.form-input:focus {
  border-color: var(--gold);
  background: var(--white);
}
.form-error {
  color: var(--red);
  font-size: 0.88rem;
  margin: 12px 0 0;
  min-height: 1em;
}
.form-error:empty { margin: 0; }

/* ==========================================================================
   Result cards (shared) — three states: selected / awaited / not-found
   ========================================================================== */
.result-section {
  padding: 12px 0 72px;
}
.result-container {
  display: flex;
  justify-content: center;
}
.result-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 52px 40px 44px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  animation: resultRise 0.45s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .result-card { animation: none; }
}
@keyframes resultRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* A thin top rule in the state color — restrained accent, not a gradient */
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.result-card-selected::before { background: var(--gold); }
.result-card-awaited::before  { background: var(--gold-dark); opacity: 0.75; }
.result-card-neutral::before  { background: var(--ink-muted); opacity: 0.45; }

.result-ribbon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(24,122,80,0.10);
  color: var(--green);
}
.ribbon-awaited { background: rgba(142,101,18,0.12); color: var(--gold-dark); }
.ribbon-neutral { background: rgba(91,107,128,0.10); color: var(--ink-muted); }

/* --- The seal: dashed registration-style ring + solid icon disc --- */
.result-seal {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
}
.seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.seal-ring circle {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 4 7;
}
.seal-success .seal-ring circle { stroke: var(--gold); }
.seal-awaited .seal-ring circle { stroke: var(--gold-dark); opacity: 0.65; }
.seal-neutral .seal-ring circle { stroke: var(--ink-muted); opacity: 0.4; }

.seal-disc {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-disc svg { width: 100%; height: 100%; }
.seal-success .seal-disc { background: var(--green); }
.seal-awaited .seal-disc { background: var(--gold); }
.seal-neutral .seal-disc { background: var(--navy-soft); opacity: 0.9; }

.result-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--navy);
  margin: 0 0 10px;
}
.result-form-number {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.result-form-number strong {
  color: var(--navy);
  font-weight: 700;
}
.result-message {
  font-size: 1.08rem;
  color: var(--navy);
  margin: 0 0 8px;
}
.result-submessage {
  color: var(--ink-muted);
  margin: 0 0 22px;
}

.badge-row { margin-bottom: 22px; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 999px;
}
.badge-success { background: var(--green); color: var(--white); }
.badge-awaited { background: var(--gold); color: var(--white); }

.result-details {
  text-align: left;
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
  padding-top: 24px;
}
.details-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 18px;
  text-align: center;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.privacy-notice {
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--cream);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 24px 0 0;
}

.back-link {
  margin-top: 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-brand p {
  margin-top: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding: 18px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ==========================================================================
   Admin (shared minimal styling — admin pages reuse tokens above)
   ========================================================================== */
.admin-body {
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--navy);
  margin: 0;
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--navy);
  color: var(--white);
  padding: 24px 18px;
  flex-shrink: 0;
}
.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-sidebar h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 24px;
}
.admin-main { flex: 1; padding: 28px 32px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-card .label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-table th { color: var(--ink-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 14px 0 6px;
}
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.admin-form textarea { min-height: 90px; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.alert-success { background: rgba(24,122,80,0.12); color: var(--green); }
.alert-error   { background: rgba(181,65,65,0.10); color: var(--red); }
.alert-info    { background: rgba(201,146,24,0.12); color: var(--gold-dark); }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
  color: var(--navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-contact { align-self: flex-start; }

  .hero { padding: 64px 0 56px; }
  .details-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
}

@media (max-width: 576px) {
  .search-row { flex-direction: column; }
  .btn-navy { width: 100%; }
  .result-card { padding: 36px 22px 32px; }
  .search-card { padding: 24px; }
  .result-seal { width: 84px; height: 84px; }
  .seal-disc { width: 56px; height: 56px; }
}
