/* =========================================================
   Melitta Solutions — Beekeeping site stylesheet
   ========================================================= */

:root {
  --honey: #f2a71b;
  --honey-dark: #c9820a;
  --honey-light: #ffd873;
  --dark: #2b1b0e;
  --dark-soft: #3e2c1c;
  --cream: #fff8e9;
  --cream-2: #fdeecb;
  --green: #4c7a3d;
  --green-dark: #365a2b;
  --white: #ffffff;
  --gray: #6b5d4f;
  --gray-light: #a8977f;
  --danger: #b3392c;
  /* Darker than --honey-dark specifically for small/normal-size text and
     text-on-honey use — --honey-dark (#c9820a) only reaches ~3:1 against
     the cream/white backgrounds it's used on, which fails WCAG 1.4.3's
     4.5:1 requirement for normal text. This variant holds 5.7:1+. */
  --honey-dark-text: #885807;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(43, 27, 14, 0.12);
  --shadow-sm: 0 4px 14px rgba(43, 27, 14, 0.08);
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--honey-dark-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-2); }
.section-dark {
  background: var(--dark);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .muted { color: #d8c6ac; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--honey-dark-text);
  margin-bottom: 12px;
}
.eyebrow::before { content: "🐝"; font-size: 1rem; }

.muted { color: var(--gray); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--honey); color: var(--dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--honey-dark); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 27, 14, 0.08);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--honey-light), var(--honey-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; color: var(--gray); letter-spacing: 0.05em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--dark-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a.active,
.nav-links a:hover { color: var(--honey-dark-text); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--dark);
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ---------- Season-aware swarm banner ---------- */
.season-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}
.season-banner a { color: var(--white); text-decoration: underline; }
.season-banner.peak { background: var(--danger); }
.season-banner.shoulder { background: var(--honey-dark-text); }
.season-banner.quiet { background: var(--dark-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,167,27,0.35), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(76,122,61,0.25), transparent 45%),
    var(--dark);
  color: var(--cream);
  padding: 90px 0 70px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.035) 87.5%, rgba(255,255,255,0.035)),
    linear-gradient(150deg, rgba(255,255,255,0.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.035) 87.5%, rgba(255,255,255,0.035)),
    linear-gradient(30deg, rgba(255,255,255,0.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.035) 87.5%, rgba(255,255,255,0.035)),
    linear-gradient(150deg, rgba(255,255,255,0.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.035) 87.5%, rgba(255,255,255,0.035));
  background-size: 64px 112px;
  background-position: 0 0, 0 0, 32px 56px, 32px 56px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.1rem; color: #e9dcc4; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; color: var(--cream); width: fit-content; margin-bottom: 20px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43,27,14,0.06);
}
.stat-card .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--honey-dark); }
.stat-card .label { font-size: 0.85rem; color: var(--gray); font-weight: 600; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43,27,14,0.06);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card .tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--green); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px; width: fit-content;
}
.program-card .tag.gold { background: var(--honey-dark-text); }
.program-card .tag.dark { background: var(--dark); }

/* ---------- Placeholder media tiles ---------- */
.placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--gray-light);
  background:
    repeating-linear-gradient(45deg, rgba(242,167,27,0.06) 0 10px, rgba(242,167,27,0.11) 10px 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray);
  gap: 6px;
  padding: 16px;
  min-height: 160px;
  aspect-ratio: 4 / 3;
}
.placeholder .ph-icon { font-size: 1.8rem; }
.placeholder .ph-label { font-weight: 700; font-size: 0.85rem; color: var(--dark-soft); }
.placeholder .ph-sub { font-size: 0.72rem; color: var(--gray); }
.placeholder.video::before { content: "▶"; }
.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.wide { aspect-ratio: 16 / 9; }
.placeholder.small { min-height: 100px; }

.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  border: 1px solid rgba(43,27,14,0.15);
  background: var(--white);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  color: var(--dark-soft);
}
.filter-btn.active, .filter-btn:hover { background: var(--honey); border-color: var(--honey); color: var(--dark); }

/* ---------- Timeline / list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list li::before { content: "🍯"; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(43,27,14,0.18);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--honey-dark);
  box-shadow: 0 0 0 3px rgba(242,167,27,0.25);
}
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note {
  font-size: 0.8rem; color: var(--gray); background: var(--cream-2);
  padding: 12px 14px; border-radius: var(--radius-sm); margin-top: 16px;
}
#form-status { margin-top: 14px; font-weight: 600; font-size: 0.9rem; }
#form-status.ok { color: var(--green-dark); }
#form-status.err { color: var(--danger); }

/* ---------- Contact card ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .card-icon { flex-shrink: 0; }

/* ---------- Auth / login ---------- */
.auth-wrap {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(242,167,27,0.15), transparent 45%),
    var(--cream);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  border: 1px solid rgba(43,27,14,0.06);
}
.auth-card .brand-mark { margin: 0 auto 16px; }
.auth-tabs { display: flex; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--gray); }
.auth-tab.active { background: var(--honey); color: var(--dark); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-light); font-size: 0.78rem; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(43,27,14,0.12); }
.password-strength { height: 5px; border-radius: 4px; background: rgba(43,27,14,0.1); margin-top: 8px; overflow: hidden; }
.password-strength span { display: block; height: 100%; width: 0%; background: var(--danger); transition: width 0.2s, background 0.2s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #d8c6ac;
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d8c6ac; }
.site-footer a:hover { color: var(--honey); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: #a8977f;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: #25d366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { text-decoration: none; transform: scale(1.06); }
.wa-float-secondary {
  position: fixed;
  bottom: 92px; right: 30px;
  z-index: 200;
  background: var(--white);
  color: #128c4a;
  border: 2px solid #25d366;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.wa-float-secondary:hover { text-decoration: none; transform: scale(1.08); }
.wa-float-tag {
  position: fixed; bottom: 96px; right: 84px; z-index: 200;
  background: var(--dark); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; opacity: 0.85; pointer-events: none;
  white-space: nowrap;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,12,6,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 300; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-box {
  background: var(--cream); border-radius: var(--radius);
  max-width: 560px; width: 100%; padding: 34px; text-align: center; position: relative;
}
.lightbox-close {
  position: absolute; top: 14px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray);
}

/* ---------- FAQ accordion (faq.html) ----------
   Uses native <details>/<summary> — keyboard-operable and announced
   correctly by screen readers with zero custom JS required. */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(43,27,14,0.1);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--dark);
  padding: 16px 34px 16px 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 12px;
  font-size: 1.3rem; line-height: 1; color: var(--honey-dark-text);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:focus-visible {
  outline: 3px solid var(--honey-dark-text);
  outline-offset: 3px;
}
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Banner / notice ---------- */
.notice {
  background: var(--cream-2);
  border-left: 4px solid var(--honey-dark);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--dark-soft);
}
.notice.green { border-color: var(--green); }

/* ---------- Breadcrumb / page header ---------- */
.page-head {
  background: var(--cream-2);
  padding: 46px 0;
  border-bottom: 1px solid rgba(43,27,14,0.08);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--dark); color: var(--white);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Keyboard focus for custom clickable tiles ---------- */
/* .placeholder[data-title] tiles and .cert-thumb are made keyboard-operable
   in JS (role="button", tabindex="0", Enter/Space handling) — this gives
   that keyboard focus a visible indicator (WCAG 2.4.7). */
.placeholder[data-title]:focus-visible,
.cert-thumb:focus-visible {
  outline: 3px solid var(--honey-dark-text);
  outline-offset: 3px;
}

/* ---------- Reduced motion (WCAG 2.2.2 / 2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
  .wizard-step { animation: none; }
}

/* ---------- Triage wizard (report-swarm.html) ---------- */
.wizard-progress {
  height: 8px; background: var(--cream-2); border-radius: 999px;
  overflow: hidden; margin-bottom: 30px;
}
.wizard-progress-bar { height: 100%; background: var(--honey); width: 8%; transition: width 0.25s ease; }
.wizard-step { display: none; animation: fadeIn 0.2s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step-counter { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--honey-dark-text); margin-bottom: 10px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
@media (max-width: 600px) { .option-grid { grid-template-columns: 1fr; } }
.option-pill {
  border: 2px solid rgba(43,27,14,0.15); background: var(--white);
  border-radius: var(--radius-sm); padding: 16px 18px; text-align: left;
  cursor: pointer; font-weight: 700; color: var(--dark-soft);
  display: flex; align-items: center; gap: 10px; transition: all 0.15s ease;
}
.option-pill:hover { border-color: var(--honey); }
.option-pill.selected { border-color: var(--honey-dark); background: var(--cream-2); color: var(--dark); }
.option-pill { position: relative; }
/* Keep the radio input focusable/keyboard-operable (arrow keys + space to
   choose) instead of `display: none`, which removes it from the tab order
   entirely and made this whole step keyboard-inaccessible. Visually hidden,
   but still reachable by keyboard and screen readers. */
.option-pill input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.option-pill:focus-within {
  outline: 3px solid var(--honey-dark-text);
  outline-offset: 2px;
}
.option-pill .opt-icon { font-size: 1.2rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.wizard-alert {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fdeceb; border-left: 4px solid var(--danger); color: #7a2a20;
  font-size: 0.88rem; font-weight: 600; display: none;
}
.wizard-alert.show { display: block; }
.wizard-alert.green { background: #eaf3e6; border-color: var(--green); color: var(--green-dark); }
.summary-list { list-style: none; padding: 0; margin: 0 0 20px; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px dashed rgba(43,27,14,0.14); font-size: 0.9rem;
}
.summary-list li span:first-child { color: var(--gray); font-weight: 600; }
.summary-list li span:last-child { font-weight: 700; text-align: right; }
.emergency-banner {
  background: #2b1b0e; color: #ffe9d6; border-radius: var(--radius);
  padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 30px; border: 1px solid #4a3320;
}
.emergency-banner .em-icon { font-size: 1.6rem; }
.emergency-banner strong { color: #fff; }

/* ---------- Certification cards ---------- */
.cert-card { display: flex; flex-direction: column; gap: 14px; }
.cert-thumb {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(43,27,14,0.1);
  cursor: pointer; position: relative;
}
.cert-thumb img { width: 100%; display: block; transition: transform 0.2s ease; }
.cert-thumb:hover img { transform: scale(1.03); }
.cert-meta { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.85rem; color: var(--gray); }
.cert-meta li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(43,27,14,0.08); }
.cert-meta li span:last-child { font-weight: 700; color: var(--dark-soft); }
.cert-lightbox {
  position: fixed; inset: 0; background: rgba(20,12,6,0.92);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 24px;
}
.cert-lightbox.open { display: flex; }
.cert-lightbox img { max-width: min(90vw, 700px); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.cert-lightbox-close {
  position: absolute; top: 20px; right: 24px; background: var(--white); border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}

/* ---------- Rescue log table ---------- */
.log-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(43,27,14,0.1); }
table.log-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.88rem; }
table.log-table th {
  text-align: left; background: var(--cream-2); color: var(--dark-soft);
  padding: 12px 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  position: sticky; top: 0;
}
table.log-table td { padding: 12px 16px; border-top: 1px solid rgba(43,27,14,0.08); vertical-align: top; }
table.log-table tr:hover td { background: var(--cream-2); }
.log-table .loc { font-weight: 700; color: var(--dark-soft); }
.log-search { margin-bottom: 16px; }

/* ---------- Trust badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid rgba(43,27,14,0.12);
  padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--dark-soft);
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
