/* ==========================================================================
   Mandal Mitra — Shared Stylesheet
   Tokens sourced from mandal-mitra-color-scheme.md — never hardcode a hex
   outside this block.
   ========================================================================== */

:root {
  /* Primary */
  --orange-zest: #5E2638;
  --orange-zest-dark: #3E1826;
  --neon-citrus: #FF9E0F;
  --neon-citrus-deep: #E68300;
  --citrus-fizz: #FFCC99;

  /* Secondary */
  --champagne-glow: #F5E5CC;
  --berry-pop: #7D0000;

  /* Text & surfaces */
  --ink: #2B141C;
  --ink-soft: #6B5560;
  --white: #FFFFFF;
  --line: #EADFCF;

  /* Radii & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(43, 20, 28, 0.06);
  --shadow-lift: 0 8px 24px rgba(43, 20, 28, 0.14);

  /* Layout */
  --header-h: 60px;
  --max-w: 1100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--champagne-glow);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: 'Fraunces', Georgia, serif; margin: 0 0 0.4em; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--orange-zest);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--orange-zest);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(43,20,28,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}
.brand-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--neon-citrus);
  color: var(--orange-zest-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex: none;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  font-size: 0.82rem;
  min-height: 36px;
}
.lang-select option { color: var(--ink); }

.nav-toggle {
  background: transparent;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--orange-zest);
  border-top: 1px solid rgba(255,255,255,0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.site-nav.is-open { max-height: 480px; }
.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px;
  order: 2;
}
.site-nav a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  font-weight: 500;
}
.site-nav a.is-active { color: var(--neon-citrus); }
.site-nav a.nav-emergency { color: var(--citrus-fizz); font-weight: 700; }

.nav-search-wrap { padding: 12px 16px 0; order: 1; }
.header-search-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.header-search-input::placeholder { color: rgba(255,255,255,0.65); }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 4px;
    order: 1;
  }
  .site-nav a {
    border-bottom: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }
  .site-nav a:hover { background: rgba(255,255,255,0.08); }
  .nav-search-wrap { padding: 0; order: 2; }
  .header-search-input { width: 190px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }

.btn-citrus { background: var(--neon-citrus); color: var(--orange-zest-dark); }
.btn-citrus:hover { background: var(--neon-citrus-deep); color: var(--white); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-berry { background: var(--berry-pop); color: var(--white); }
.btn-berry:hover { background: color-mix(in srgb, var(--berry-pop) 80%, black); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--orange-zest) 0%, var(--orange-zest-dark) 100%);
  color: var(--white);
  padding: 48px 0 56px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,204,153,0.16);
  color: var(--citrus-fizz);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin-bottom: 10px;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.section-head p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* ---------- Stat / highlight cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-card .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  color: var(--neon-citrus);
  font-weight: 600;
}
.stat-card .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--citrus-fizz), var(--neon-citrus));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-zest-dark);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 1.15rem; }
.card-meta { color: var(--ink-soft); font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-block;
  background: var(--citrus-fizz);
  color: var(--orange-zest);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--orange-zest);
}
.field input[type="text"],
.field input[type="search"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  min-height: 46px;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--neon-citrus);
  outline-offset: 1px;
  border-color: var(--neon-citrus);
}
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 200px; }

.search-box { position: relative; margin-bottom: 24px; }

/* ---------- Map panel ---------- */
.map-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.map-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--champagne-glow);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-frame-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map-placeholder {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 20px;
}
.map-placeholder .icon { font-size: 2rem; margin-bottom: 8px; }

.status-msg {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  display: none;
}
.status-msg.is-visible { display: block; }
.status-msg.is-info { background: var(--citrus-fizz); color: var(--orange-zest); }
.status-msg.is-error { background: color-mix(in srgb, var(--berry-pop) 12%, white); color: var(--berry-pop); }

/* ---------- Emergency ---------- */
.emergency-banner {
  background: var(--berry-pop);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.emergency-banner h2 { color: var(--white); font-size: 1.3rem; }
.emergency-banner p { color: rgba(255,255,255,0.88); }

.contact-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-card .name { font-weight: 600; }
.contact-card .num { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--orange-zest-dark);
  color: rgba(255,255,255,0.8);
  padding: 36px 0 24px;
  margin-top: 40px;
}
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 {
  color: var(--citrus-fizz);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.footer-grid a { display: block; padding: 5px 0; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--neon-citrus); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.page-hero {
  background: var(--orange-zest);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 520px; margin: 8px auto 0; }
