/* ═══════════════════════════════════════════════════════════════════════
   QuettaWal — shared site theme
   Mirrors the Flutter app's visual language so the website and the app
   read as one product.

   Loaded AFTER each page's inline <style> so it wins on the shared
   components (equal specificity → later rule applies) while any
   page-unique rules still take effect.

   Each page sets --page-accent to its module colour — the same value the
   app uses for that service's tile in
   quettawal_mobile/lib/modules/home/views/home_view.dart
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --qw-primary:    #00695C;   /* AppColors.primary   */
  --qw-accent:     #1565C0;   /* AppColors.accent    */
  --qw-text:       #0D1B2A;   /* textPrimary         */
  --qw-muted:      #5A6A7A;   /* textSecondary       */
  --qw-bg:         #F7F9FC;   /* app scaffold bg     */
  --qw-surface:    #FFFFFF;
  --qw-radius:     14px;      /* app card radius     */
  --qw-tile-radius:16px;      /* app service tile    */
  --page-accent:   var(--qw-primary);   /* overridden per page */
}

body {
  background: var(--qw-bg);
  color: var(--qw-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Hero — matches the app's module headers: strong colour gradient,
      white text, rounded bottom corners ─────────────────────────────── */
.hero {
  background: var(--page-accent);
  background: linear-gradient(135deg,
              var(--page-accent),
              color-mix(in srgb, var(--page-accent) 72%, #000));
  color: #fff;
  border-radius: 0 0 28px 28px;
  text-align: center;
}
.hero h1, .hero h2 { color: #fff; }
.hero .sub, .hero p { color: rgba(255,255,255,0.82); }

/* Translucent chip, like the app's header badges */
.hero-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Buttons sitting on the coloured hero invert, as they do in the app */
.hero .btn-primary,
.hero .btn-white {
  background: #fff;
  color: var(--page-accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.hero .btn-primary:hover,
.hero .btn-white:hover { background: #fff; transform: translateY(-2px); }

/* ── Buttons elsewhere ───────────────────────────────────────────────── */
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary {
  background: var(--page-accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--page-accent) 35%, transparent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--page-accent) 82%, #000);
  transform: translateY(-2px);
}
.btn-white { background: #fff; color: var(--page-accent); font-weight: 700; }

/* ── Section headings ────────────────────────────────────────────────── */
.section-tag {
  background: color-mix(in srgb, var(--page-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--page-accent) 25%, #fff);
  color: var(--page-accent);
  border-radius: 20px;
  font-weight: 600;
}
.section-alt { background: var(--qw-bg); }

/* ── Cards — app style: white, soft shadow, no border ────────────────── */
.feature-card, .cat-card, .vehicle-card, .bill-card, .method-card,
.prayer-card, .venue-card, .biz-card, .partner-card, .category-card,
.emergency-card, .event-card, .rest-card, .dept-card, .hosp-card,
.source-card, .park-card, .type-card, .wallet-card, .weather-card {
  background: var(--qw-surface);
  border: none;
  border-radius: var(--qw-radius);
  box-shadow: 0 2px 6px rgba(13,27,42,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover, .cat-card:hover, .vehicle-card:hover, .bill-card:hover,
.method-card:hover, .prayer-card:hover, .venue-card:hover, .biz-card:hover,
.partner-card:hover, .category-card:hover, .emergency-card:hover,
.event-card:hover, .rest-card:hover, .dept-card:hover, .hosp-card:hover,
.source-card:hover, .park-card:hover, .type-card:hover, .wallet-card:hover,
.weather-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13,27,42,0.12);
}

/* Card headings pick up the page accent, as module screens do in the app */
.feature-card h4, .cat-card h4, .vehicle-card h4, .bill-card h4,
.venue-card h4, .biz-card h4, .partner-card h4, .category-card h4,
.emergency-card h4, .event-card h4, .rest-card h4, .dept-card h4,
.hosp-card h4, .source-card h4, .park-card h4, .type-card h4,
.wallet-card h4, .weather-card h4 {
  color: var(--qw-text);
  font-weight: 700;
}

/* ── Card icon — the app's service tile: solid colour rounded square,
      coloured glow, white top highlight, emoji centred ───────────────── */
.feature-card .icon, .feature-card .emoji,
.cat-card .emoji, .vehicle-card .emoji, .bill-card .emoji,
.venue-card .emoji, .biz-card .emoji, .partner-card .emoji,
.category-card .emoji, .emergency-card .emoji, .event-card .emoji,
.dept-card .emoji, .hosp-card .emoji, .source-card .emoji,
.park-card .emoji, .type-card .emoji, .weather-card .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--qw-tile-radius);
  background: var(--page-accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--page-accent) 40%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.25);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--page-accent);
  background: linear-gradient(135deg,
              var(--page-accent),
              color-mix(in srgb, var(--page-accent) 72%, #000));
  border-radius: 24px;
  color: #fff;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav-back:hover, .nav-logo:hover { color: var(--page-accent); }
