*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Terracotta & Sand — warm, Indian, user-friendly ── */
  --bg:     #fdf6f0;        /* warm sand white */
  --bg2:    #ffffff;        /* pure white cards */
  --bg3:    #fef0e6;        /* soft terracotta tint */
  --bg4:    #fde3cc;        /* peach */

  --accent:     #c1440e;    /* terracotta — primary */
  --accent2:    #d4622e;    /* lighter terracotta hover */
  --accent3:    #5c4a38;    /* warm brown — secondary */
  --accent-dim: rgba(193,68,14,0.10);
  --green-dim:  rgba(92,74,56,0.08);

  --text:  #1c1008;         /* deep warm black */
  --text2: #5c4030;         /* warm brown */
  --text3: #9c7c6a;         /* muted warm */

  --border:  #f0d8c8;       /* soft peach border */
  --border2: rgba(193,68,14,0.28);

  --red:    #dc2626;
  --green:  #16a34a;
  --blue:   #1d4ed8;
  --yellow: #d97706;

  --radius:    12px;
  --radius-lg: 18px;
  --shadow:    0 4px 32px rgba(92,56,30,0.10);
  --shadow-sm: 0 2px 12px rgba(92,56,30,0.07);
  --shadow-card: 0 1px 4px rgba(92,56,30,0.07), 0 4px 16px rgba(92,56,30,0.05);

  --font-display: 'Poppins', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h: 66px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; color: var(--text); }
a { color: inherit; }
strong { color: var(--text); font-weight: 600; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 1rem;
  height: var(--nav-h); padding: 0 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(92,74,56,0.07);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}
.brand-icon { color: var(--accent); font-size: 1.4rem; }
.brand-name { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  padding: 0.35rem 0.65rem; border-radius: 7px;
  font-size: 0.8rem; font-weight: 500; transition: all 0.18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-dim); }
.nav-links a.active { color: var(--accent); font-weight: 600; background: var(--accent-dim); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border);
  color: var(--text2); font-size: 1.1rem; cursor: pointer;
  margin-left: auto; padding: 0.38rem 0.65rem; border-radius: 7px;
  transition: all 0.18s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.config-warn {
  display: none; background: #fffbeb; border-bottom: 1px solid #fcd34d;
  padding: 0.55rem 2rem; font-size: 0.8rem; color: #92400e;
}
.config-warn.show { display: block; }

@media(max-width: 960px) {
  .navbar { padding: 0 1rem; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 1.25rem 1rem; overflow-y: auto;
    z-index: 199; gap: 0.2rem;
    border-top: 2px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.75rem 1rem; border-radius: 10px; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.5rem; border-radius: 9px; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
  white-space: nowrap; letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(232,97,10,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent2); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,97,10,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #ffedd5; color: var(--text2); font-weight: 500; font-size: 0.875rem;
  padding: 0.7rem 1.5rem; border-radius: 9px; text-decoration: none;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.18s; font-family: var(--font-body);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-green {
  background: var(--accent3); color: #fff;
  box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}
.btn-green:hover:not(:disabled) { background: #1e5438; box-shadow: 0 4px 14px rgba(45,106,79,0.35); }

.btn-danger { background: rgba(220,38,38,0.08); color: var(--red); border: 1.5px solid rgba(220,38,38,0.25); box-shadow: none; }
.btn-danger:hover { background: rgba(220,38,38,0.14); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; border-radius: 7px; }
.btn-block { width: 100%; padding: 0.9rem; font-size: 1rem; }

/* ── PAGE LAYOUT ── */
.page-header {
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, #fff8f2 0%, #fdf6f0 100%);
  border-bottom: 2px solid var(--border);
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--text); }
.page-header h1 span { color: var(--accent); }
.page-header p { color: var(--text2); margin-top: 0.35rem; max-width: 580px; font-size: 0.93rem; }
.page-body { padding: 2rem; max-width: 860px; }
.page-body-wide { padding: 2rem; max-width: 1100px; }
@media(max-width:768px) { .page-header, .page-body, .page-body-wide { padding: 1.25rem 1rem; } }

/* ── TABS ── */
.tabs {
  display: flex; gap: 0.3rem; margin-bottom: 1.75rem;
  flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab {
  padding: 0.55rem 1.1rem; border-radius: 9px 9px 0 0;
  border: 1.5px solid transparent; border-bottom: none;
  background: none; color: var(--text3);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.18s; position: relative; bottom: -2px;
}
.tab:hover { color: var(--text2); background: var(--bg3); }
.tab.active {
  background: #fff; color: var(--accent); font-weight: 600;
  border-color: var(--border); border-bottom-color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── CARDS ── */
.card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 2px 8px rgba(92,74,56,0.1), 0 6px 24px rgba(92,74,56,0.09); }
.card-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1.2rem; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.card-subtitle { font-size: 0.85rem; color: var(--text2); margin-bottom: 1.2rem; }
.card-sm { padding: 1.1rem; }

/* ── FORMS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  padding: 0.65rem 0.9rem; border-radius: 9px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,97,10,0.12);
  background: #fff;
}
.field input.error, .field select.error { border-color: var(--red); }
.field .hint { font-size: 0.75rem; color: var(--text3); }
.field textarea { resize: vertical; min-height: 88px; }
.field select option { background: #fff; color: var(--text); }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 10px; padding: 1.6rem;
  text-align: center; cursor: pointer; transition: all 0.2s;
  background: var(--bg3); position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent); background: var(--accent-dim);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-zone .uz-icon { font-size: 1.75rem; margin-bottom: 0.4rem; }
.upload-zone p { color: var(--text2); font-size: 0.875rem; }
.upload-zone .hint { font-size: 0.75rem; color: var(--text3); margin-top: 0.25rem; }
.upload-zone.has-file { border-color: var(--green); border-style: solid; background: rgba(22,163,74,0.05); }

/* ── ALERTS ── */
.alert {
  display: none; padding: 0.875rem 1rem; border-radius: 9px;
  font-size: 0.875rem; margin-top: 1rem; line-height: 1.5;
  align-items: flex-start; gap: 0.6rem;
}
.alert.show { display: flex; }
.alert-success { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1.5px solid #fecaca; color: #b91c1c; }
.alert-info    { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; }
.alert-warn    { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }

/* ── BADGES ── */
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem; border-radius: 100px;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef9c3; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-grey   { background: #f3f4f6; color: #6b7280; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.data-table th {
  text-align: left; padding: 0.65rem 0.9rem; color: var(--text3);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; border-bottom: 2px solid var(--border);
  background: var(--bg3); white-space: nowrap;
}
.data-table td {
  padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg3); }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1.5px solid var(--border); }

/* ── GRID CARDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }

/* ── SERVICE CARDS (homepage) ── */
.service-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  text-decoration: none; color: var(--text);
  transition: all 0.22s; position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232,97,10,0.15);
}
.sc-icon {
  font-size: 1.9rem; flex-shrink: 0; width: 48px; height: 48px;
  background: var(--bg3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.sc-body h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.18rem; color: var(--text); }
.sc-body p { font-size: 0.78rem; color: var(--text2); }
.sc-arrow { margin-left: auto; color: var(--text3); font-size: 1.1rem; transition: all 0.2s; flex-shrink: 0; }
.service-card:hover .sc-arrow { transform: translateX(4px); color: var(--accent); }

/* ── NOTICE BOARD ── */
.notice {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1rem 1.1rem; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--border);
  margin-bottom: 0.6rem; box-shadow: var(--shadow-card);
}
/* Notice type colour themes */
.notice.urgent   { border-color: #fca5a5; background: #fff5f5; }
.notice.event    { border-color: #a5b4fc; background: #f5f3ff; }
.notice.reminder { border-color: #86efac; background: #f0fdf4; }
.notice.info     { border-color: #fed7aa; background: #fffbeb; }

.notice-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.2rem 0.6rem; border-radius: 100px;
  flex-shrink: 0; margin-top: 2px;
  /* default = info orange */
  background: #ffedd5; color: #c2410c;
}
.notice.urgent   .notice-tag { background: #fee2e2; color: #b91c1c; }
.notice.event    .notice-tag { background: #ede9fe; color: #5b21b6; }
.notice.reminder .notice-tag { background: #dcfce7; color: #15803d; }
.notice.info     .notice-tag { background: #ffedd5; color: #c2410c; }

.notice-tag::before { margin-right: 0.25em; }
.notice-text { flex: 1; font-size: 0.875rem; color: var(--text2); }
.notice-date { font-size: 0.72rem; color: var(--text3); flex-shrink: 0; margin-top: 3px; }

/* ── SPINNER ── */
.spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 5px;
}
.spinner-dark { border-color: rgba(92,74,56,0.2); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LIVE BADGE ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  padding: 0.22rem 0.7rem; border-radius: 100px;
}
.live-dot {
  width: 6px; height: 6px; background: #16a34a; border-radius: 50%;
  animation: livepulse 1.6s infinite;
}
@keyframes livepulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.75)} }

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 2rem; border-top: 2px solid var(--border);
  text-align: center; background: #fef0e6;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.3rem; color: var(--accent3);
}
.footer p { color: var(--text3); font-size: 0.82rem; margin-bottom: 0.6rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── HERO (index) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  padding: 4rem;
  background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url(https://newprojects.99acres.com/projects/unknown/prime_hill_view/images/pydncm9z_med.webp);
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-graphic { position: relative; z-index: 1; }
.building-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 1.75rem;
  box-shadow: 0 8px 40px rgba(92,74,56,0.12);
  width: 100%;
}
@media(max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  .hero-graphic { display: block; width: 100%; }
  .building-card { max-width: 100%; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent3); background: var(--green-dim);
  border: 1px solid rgba(45,106,79,0.2);
  padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1.4rem;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800;
  line-height: 1.12; margin-bottom: 1.1rem; color: var(--text);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title strong { color: var(--accent3); font-weight: 800; }
.hero-sub {
  color: var(--text2); font-size: 1rem; max-width: 420px;
  margin-bottom: 2rem; line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }



/* ── SECTIONS ── */
.section { padding: 3.5rem 2rem; }
.section-wide { padding: 3.5rem 4rem; }
.section-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.section-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.75rem; }
@media(max-width:768px) { .section, .section-wide { padding: 2.25rem 1rem; } }

/* ── STAT BOXES ── */
.stat-box { background: var(--bg3); border-radius: 10px; padding: 1rem; text-align: center; border: 1px solid var(--border); }
.stat-val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--accent); display: block; }
.stat-lbl { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 0.2rem; display: block; }

/* ── ITEM CARDS ── */
.item-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; transition: all 0.2s; box-shadow: var(--shadow-card);
}
.item-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(232,97,10,0.1); }
.item-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.35rem; }
.item-card p { font-size: 0.8rem; color: var(--text2); margin-bottom: 0.2rem; }

/* ── ADMIN ── */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg3); }
.admin-login-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 22px;
  padding: 3rem 2.5rem; width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 8px 40px rgba(92,74,56,0.12);
}

/* ── STEP COUNTER ── */
.steps { counter-reset: steps; }
.step { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.85rem; counter-increment: steps; }
.step::before {
  content: counter(steps); min-width: 26px; height: 26px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; flex-shrink: 0; margin-top: 3px;
}
.step p { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

/* ── MISC ── */
.divider { border: none; border-top: 1.5px solid var(--border); margin: 1.5rem 0; }
.mono { font-family: monospace; }
.text-accent { color: var(--accent); }
.text-green  { color: var(--accent3); }
.text-muted  { color: var(--text2); }
.text-dim    { color: var(--text3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── PRINT ── */
@media print {
  .navbar, .tabs, .btn-primary, .btn-outline, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE APP UI  — kicks in at ≤ 600px
   Replaces hamburger nav with a bottom tab bar, tightens
   spacing, adds safe-area insets for notch / home-bar devices.
══════════════════════════════════════════════════════════════ */
@media(max-width: 600px) {

  /* ── Safe area & scroll ───────────────────────────────────── */
  :root { --nav-h: 56px; --tab-bar-h: 62px; }
  html, body { overscroll-behavior-y: none; }
  body {
    padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px));
  }

  /* ── Top navbar — compact, no hamburger ──────────────────── */
  .navbar {
    height: var(--nav-h);
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle  { display: none !important; }
  .nav-links   { display: none !important; } /* replaced by bottom bar */
  .nav-brand   { font-size: 0.92rem; }
  .brand-icon  { font-size: 1.2rem; }

  /* ── Bottom tab bar ──────────────────────────────────────── */
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -4px 20px rgba(92,74,56,0.10);
    z-index: 300;
    align-items: stretch;
  }
  .mobile-tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text3);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.2rem;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab-bar a .tab-icon { font-size: 1.35rem; line-height: 1; }
  .mobile-tab-bar a.active    { color: var(--accent); }
  .mobile-tab-bar a:active    { background: var(--accent-dim); border-radius: 10px; }

  /* ── Page header ─────────────────────────────────────────── */
  .page-header {
    padding: 1.25rem 1rem 1rem;
  }
  .page-header h1 { font-size: 1.4rem; }

  /* ── Body padding ────────────────────────────────────────── */
  .page-body, .page-body-wide { padding: 1rem; }

  /* ── Cards ───────────────────────────────────────────────── */
  .card { padding: 1.1rem; border-radius: 14px; margin-bottom: 1rem; }
  .card-title { font-size: 1rem; margin-bottom: 1rem; }

  /* ── Hero ────────────────────────────────────────────────── */
  .hero {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }
  .hero-title { font-size: 1.75rem; }
  .hero-sub   { font-size: 0.875rem; margin-bottom: 1.25rem; }
  .hero-cta   { gap: 0.6rem; }
  .hero-cta .btn-primary, .hero-cta .btn-outline {
    flex: 1; font-size: 0.82rem; padding: 0.65rem 0.75rem;
  }

  /* ── Services grid → 2-col ───────────────────────────────── */
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .service-card { padding: 0.9rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .service-card .sc-icon { width: 38px; height: 38px; font-size: 1.4rem; }
  .service-card .sc-body h3 { font-size: 0.78rem; }
  .service-card .sc-body p  { display: none; } /* hide desc on mobile */
  .service-card .sc-arrow   { display: none; }

  /* ── Buttons ─────────────────────────────────────────────── */
  .btn-primary, .btn-outline { font-size: 0.875rem; padding: 0.7rem 1rem; border-radius: 10px; }
  .btn-block { border-radius: 12px; padding: 0.875rem; font-size: 0.95rem; }

  /* ── Forms ───────────────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea {
    font-size: 1rem; /* prevents iOS zoom on focus */
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  /* ── Tabs ────────────────────────────────────────────────── */
  .tabs { gap: 0.2rem; }
  .tab  { font-size: 0.78rem; padding: 0.45rem 0.75rem; }

  /* ── Section wide ────────────────────────────────────────── */
  .section-wide { padding: 1.5rem 1rem; }
  .section-title { font-size: 1.2rem; }

  /* ── Tables — horizontal scroll ──────────────────────────── */
  .table-wrap { border-radius: 10px; }
  .data-table th, .data-table td { padding: 0.6rem 0.7rem; font-size: 0.78rem; }

  /* ── Notices ─────────────────────────────────────────────── */
  .notice { padding: 0.75rem 0.9rem; }
  .notice-text { font-size: 0.82rem; }

  /* ── Badges ──────────────────────────────────────────────── */
  .badge { font-size: 0.62rem; }

  /* ── Footer ──────────────────────────────────────────────── */
  .footer { padding: 1.5rem 1rem; font-size: 0.78rem; }
}

/* Desktop — hide the bottom bar ─────────────────────────── */
@media(min-width: 601px) {
  .mobile-tab-bar { display: none; }
}
