/* Shree Jain Visha Oshwal Seva Samaj - main site.
   The palette is taken from the forms so the two feel like one organisation. */

:root {
  --maroon: #7a1224;
  --maroon-dark: #5a0d1a;
  --gold: #d4a418;
  --gold-light: #f4e4b0;
  --cream: #fdf8ee;
  --ink: #2b2320;
  --muted: #7a6f63;
  --border: #e6d9b8;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  /* Noto Sans Gujarati first for the Gujarati runs; the Latin fallbacks carry
     everything else. No web font is loaded: on a slow phone that is one more
     round trip before any text appears, and both scripts are already present
     on Indian Android and iOS. */
  font-family: "Segoe UI", "Noto Sans Gujarati", Tahoma, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--maroon);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------- hero ------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border-bottom: 5px solid var(--gold);
  color: #fff;
  text-align: center;
  padding: 56px 20px 40px;
}
.hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
.hero h1 {
  margin: 14px 0 2px;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 700;
}
.hero-en {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  opacity: 0.95;
}
.hero-sub {
  margin: 10px 0 0;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.lang-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0.8;
}
.lang-btn.is-active {
  background: #fff;
  color: var(--maroon);
  font-weight: 600;
  opacity: 1;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--maroon-dark); }
.btn-primary:hover { background: #e8b829; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ------------------------------ sections ------------------------------ */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 20px;
}
.section-alt { background: #fff; max-width: none; }
.section-alt > * { max-width: 900px; margin-left: auto; margin-right: auto; }

.section h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--maroon-dark);
}
.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin: 8px 0 18px;
}
.lede { margin: 0 0 18px; color: var(--muted); }

/* ------------------------------- cards ------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.section-alt .card { background: var(--cream); }
.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--maroon);
}
.card p { margin: 0; font-size: 0.92rem; color: var(--ink); }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover {
  border-color: var(--maroon);
  transform: translateY(-2px);
}
.card-cta {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--maroon);
}

/* Content the Samaj has still to supply. Deliberately conspicuous: a
   placeholder that blends in is a placeholder that ships. */
.placeholder,
.placeholder-card {
  border: 1px dashed var(--gold);
  background: #fffdf5;
}
.placeholder {
  border-radius: var(--radius);
  padding: 16px 18px;
}
.placeholder strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.placeholder p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ------------------------------ contact ------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--maroon);
}
.address { margin: 0 0 10px; font-size: 0.94rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 10px; }
/* A comfortable tap target: these are phone numbers, tapped on a phone. */
.contact-list a {
  display: inline-block;
  padding: 3px 0;
  font-weight: 600;
  color: var(--maroon);
}
.muted { display: block; color: var(--muted); font-size: 0.82rem; }

a { color: var(--maroon); }

/* ------------------------------- footer ------------------------------- */
.site-footer {
  background: var(--maroon-dark);
  color: #fff;
  text-align: center;
  padding: 26px 20px;
  font-size: 0.86rem;
}
.site-footer p { margin: 2px 0; }
.site-footer p:last-child { opacity: 0.75; font-size: 0.8rem; }

/* ------------------------------- phones ------------------------------- */
@media (max-width: 560px) {
  .hero { padding: 62px 16px 32px; }
  .hero h1 { font-size: 1.3rem; }
  .section { padding: 32px 16px; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}

/* ===================================================================
   Coming soon page
   The full one-pager lives in draft/full-site.html; these rules are for
   the holding page that stands in until its content arrives.
   =================================================================== */
.soon-body {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-dark) 65%);
}
.soon {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 54px 20px 32px;
  text-align: center;
  color: #fff;
}
.soon-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 7px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.soon h1 {
  margin: 16px 0 2px;
  font-size: 1.5rem;
  line-height: 1.35;
}
.soon-en {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}
.soon-badge {
  display: inline-block;
  margin: 20px 0 0;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(212,164,24,0.15);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}
.soon-lede {
  margin: 14px auto 26px;
  max-width: 420px;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.85);
}

.soon-forms { display: grid; gap: 12px; text-align: left; }
.soon-card {
  display: block;
  padding: 16px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.soon-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--gold);
}
.soon-card-title { display: block; font-weight: 700; font-size: 1rem; }
.soon-card-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
}
.soon-card-cta {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
}

.soon-contact {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.9rem;
}
.soon-contact-head {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon-contact .address { color: rgba(255,255,255,0.8); margin: 0 0 4px; }
.soon-contact a { color: #fff; }
.soon-contact .contact-list { margin-top: 14px; }
.soon-contact .contact-list li { margin-bottom: 8px; }
.soon-contact .contact-list a { color: var(--gold-light); }
.soon-contact .muted { color: rgba(255,255,255,0.6); }

.soon-foot {
  margin: 26px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 480px) {
  .soon { padding: 62px 16px 28px; }
  .soon h1 { font-size: 1.25rem; }
}
