/* Mobile-first, high-contrast, senior-friendly styling */

:root {
  --font-scale: 1;
  --color-primary: #8a1c1c;
  --color-primary-dark: #5c1010;
  --color-accent: #d4a017;
  --color-bg: #fffaf0;
  --color-text: #1a1a1a;
  --color-border: #d9c9a3;
}

* { box-sizing: border-box; }

html { font-size: calc(18px * var(--font-scale)); }

body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', 'Mukta', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.site-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 6px;
}

.site-nav a.nav-cta {
  background: var(--color-accent);
  color: #1a1a1a;
  border-radius: 6px;
  font-weight: 700;
  padding: 8px 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions button {
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 6px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.call-btn {
  background: var(--color-accent);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* Buttons & CTAs */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-height: 48px;
  text-align: center;
}

.btn:hover, .btn:focus {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: var(--color-accent);
  color: #1a1a1a;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

/* Forms */
label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 14px;
}

input, select, textarea {
  width: 100%;
  font-size: 1.1rem;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  min-height: 48px;
}

textarea { min-height: 100px; }

/* Anti-spam honeypot: kept in the DOM but hidden from real users */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Panchang page --- */
.panchang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.anga-card .anga-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 4px 0;
}

.anga-card .anga-sub {
  font-size: 0.95rem;
  color: #555;
  margin: 2px 0;
}

.sky {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f3f7ff;
}

.sky-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0;
}

.pan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.pan-table th, .pan-table td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
  font-size: 1rem;
}

.q-good { background: #e6f5e6; }
.q-bad { background: #fde6e6; }
.q-mid { background: #fff5e0; }

.pan-note {
  font-size: 0.95rem;
  color: #6a4a00;
  background: #fff8e8;
  border: 1px solid #e6d28a;
  border-radius: 6px;
  padding: 10px 12px;
}

details.card > summary {
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 0;
}

/* Calendar / slot picker */
.slot-day {
  margin-bottom: 18px;
}

.slot-day h3 {
  margin-bottom: 8px;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-btn {
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.slot-btn.selected {
  background: var(--color-primary);
  color: #fff;
}

.slot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: #2b2b2b;
  color: #fff;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
}

.site-footer a { color: var(--color-accent); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  flex: 0 0 auto;
}

.hero-text { flex: 1 1 260px; }

.hero-text .btn { margin-right: 10px; margin-top: 8px; }

/* Trust strip */
.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.trust-item {
  flex: 1 1 120px;
  text-align: center;
  margin-bottom: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 14px;
  cursor: pointer;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 84px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 20;
}

/* Sticky bottom action bar (mobile only) */
.mobile-actionbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--color-border);
  z-index: 20;
}

.mobile-actionbar a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
}

.mobile-actionbar a.primary {
  background: var(--color-primary);
  color: #fff;
}

/* Larger tap targets on small screens */
@media (max-width: 600px) {
  .site-nav a { font-size: 1.15rem; }
  .btn { width: 100%; }
  .hero-photo { width: 140px; height: 140px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
  }
  .site-nav.open { display: flex; }

  .mobile-actionbar { display: flex; }
  body { padding-bottom: 60px; } /* room for the sticky bar */
  .whatsapp-float { bottom: 74px; }
}

