:root{
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,.7);
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, .10);

  --brand: #ff7a18;
  --accent: #22c55e;

  --shadow-sm: 0 6px 18px rgba(15,23,42,.08);
  --shadow-md: 0 14px 34px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 80px rgba(15,23,42,.18);

  --radius: 18px;
  --radius-lg: 24px;

  --container: 1120px;
}

.ym-theme *{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;

  background:
    radial-gradient(900px 480px at 12% 8%, rgba(255,122,24,.16), transparent 55%),
    radial-gradient(900px 520px at 72% 0%, rgba(34,197,94,.14), transparent 55%),
    linear-gradient(#ffffff, var(--bg));
}

.ym-theme a{ color: inherit; }
.ym-theme img{ max-width: 100%; display:block; }

.ym-theme .container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Buttons */
.ym-theme .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ym-theme .btn:active{ transform: translateY(1px); }

.ym-theme .btn-primary{
  color: #0b1220;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(255,122,24,.70));
  box-shadow: 0 12px 26px rgba(34,197,94,.16);
  border-color: rgba(34,197,94,.22);
}
.ym-theme .btn-primary:hover{ box-shadow: 0 18px 38px rgba(34,197,94,.22); }

.ym-theme .btn-ghost{
  background: rgba(255,255,255,.85);
  border-color: var(--border);
  color: var(--text);
}
.ym-theme .btn-ghost:hover{ background: #fff; box-shadow: var(--shadow-sm); }

.ym-theme .btn-full{ width: 100%; }
.ym-theme .btn-small{ padding: 9px 12px; font-size: 14px; }

/* HERO */
.ym-theme .hero{
  padding: 56px 0 30px;
}

.ym-theme .hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items:center;
}

.ym-theme .eyebrow{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  box-shadow: var(--shadow-sm);
}

.ym-theme .hero h1{
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ym-theme .accent{
  background: linear-gradient(90deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ym-theme .lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 64ch;
}

.ym-theme .hero-ctas{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ym-theme .quick-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ym-theme .chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  color: var(--text);
  font-weight: 750;
}
.ym-theme .chip:hover{ background: #fff; box-shadow: var(--shadow-sm); }

.ym-theme .trust-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ym-theme .trust-badge{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  font-weight: 750;
  color: var(--muted);
}

.ym-theme .hero-visual{ display:flex; justify-content:flex-end; }

.ym-theme .hero-image-card{
  width: min(520px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.ym-theme .hero-image{
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.02);
}

.ym-theme .hero-image-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(15,23,42,.55), rgba(15,23,42,0));
  pointer-events:none;
}

.ym-theme .hero-image-overlay{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:grid;
  gap: 10px;
  z-index: 2;
}

.ym-theme .hero-stat{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.ym-theme .stat-big{ font-weight: 900; }
.ym-theme .stat-small{ color: var(--muted); font-weight: 700; }

/* Sections */
.ym-theme .section{ padding: 52px 0; }
.ym-theme .section.tight{ padding: 18px 0 42px; }
.ym-theme .section.alt{
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ym-theme .section-head h2{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.ym-theme .section-head p{
  margin: 0 0 22px;
  color: var(--muted);
}

.ym-theme .muted{ color: var(--muted); }

/* Pills */
.ym-theme .pill-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ym-theme .pill{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.ym-theme .pill-title{ font-weight: 900; margin-bottom: 4px; }
.ym-theme .pill-text{ color: var(--muted); font-weight: 650; }

/* Cards */
.ym-theme .cards{ display:grid; gap: 14px; }
.ym-theme .cards-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ym-theme .card{
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.ym-theme .card h3{ margin: 0 0 8px; font-size: 18px; }
.ym-theme .card p{ margin: 0 0 12px; color: var(--muted); }

.ym-theme .card-link{
  color: var(--text);
  font-weight: 850;
  text-decoration:none;
}
.ym-theme .card-link:hover{ text-decoration: underline; }

/* Image cards */
.ym-theme .rich-cards .card{ padding: 0; overflow: hidden; }
.ym-theme .card-media img{
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.ym-theme .card-body{ padding: 16px; }

/* Mini cards */
.ym-theme .card-mini .mini-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.18);
  margin-bottom: 10px;
  font-size: 18px;
}

/* Split section */
.ym-theme .split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:center;
}

.ym-theme .figure{
  margin: 0;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ym-theme .figure img{
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.ym-theme .caption{
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 650;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.7);
}

/* Checklist */
.ym-theme .checklist{
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.ym-theme .checklist li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: var(--muted);
  font-weight: 650;
}
.ym-theme .checklist li::before{
  content: "✓";
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.18);
  color: var(--text);
  font-weight: 900;
  flex: 0 0 auto;
}

/* Gallery */
.ym-theme .gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ym-theme .gallery-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
}
.ym-theme .gallery-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.ym-theme .gallery-meta{
  padding: 14px;
}
.ym-theme .gallery-meta h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.ym-theme .gallery-meta p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

/* Contact */
.ym-theme .contact-card{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.ym-theme .bullets{ margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

.ym-theme .form{ display:grid; gap: 12px; }
.ym-theme .form label{
  display:grid;
  gap: 6px;
  font-weight: 800;
  color: var(--text);
}
.ym-theme input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
.ym-theme input:focus, textarea:focus{
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.ym-theme .form-note{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.ym-theme .footer{
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.6);
}
.ym-theme .footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.ym-theme .footer-links{ display:flex; gap: 14px; }
.ym-theme .footer a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 750;
}
.ym-theme .footer a:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 980px){
.ym-theme   .hero-grid{ grid-template-columns: 1fr; }
.ym-theme   .hero-visual{ justify-content:flex-start; }
.ym-theme   .hero-image{ height: 360px; }

.ym-theme   .pill-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ym-theme   .cards-3{ grid-template-columns: 1fr; }
.ym-theme   .gallery{ grid-template-columns: 1fr; }
.ym-theme   .split{ grid-template-columns: 1fr; }
.ym-theme   .contact-card{ grid-template-columns: 1fr; }

.ym-theme   .footer-inner{ flex-direction: column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
.ym-theme   *{ scroll-behavior:auto !important; transition:none !important; }
}

/* FIX: keep success/green pill text WHITE inside ym-theme */
.ym-theme .btn,
.ym-theme a,
.ym-theme button{
  /* don't force global text black for buttons */
}

.ym-theme .btn-success,
.ym-theme .btn.btn-success,
.ym-theme .bg-success,
.ym-theme .badge.bg-success{
  color: #fff !important;
}
.ym-theme .btn-success *,
.ym-theme .bg-success *,
.ym-theme .badge.bg-success *{
  color: #fff !important;
  fill: #fff !important;
}

/* FIX: keep Speak button text + icon WHITE inside ym-theme */
.ym-theme .btn-speak,
.ym-theme .speak-btn,
.ym-theme button[data-action="speak"],
.ym-theme a[data-action="speak"]{
  color:#fff !important;
}

.ym-theme .btn-speak *,
.ym-theme .speak-btn *,
.ym-theme button[data-action="speak"] *,
.ym-theme a[data-action="speak"] *{
  color:#fff !important;
  fill:#fff !important;
  stroke:#fff !important;
}

/* FORCE: Speak button text + icon WHITE (Bootstrap Icons megaphone) */
.ym-theme button:has(.bi-megaphone-fill),
.ym-theme a:has(.bi-megaphone-fill){
  color:#fff !important;
}

.ym-theme button:has(.bi-megaphone-fill) .bi,
.ym-theme a:has(.bi-megaphone-fill) .bi,
.ym-theme button:has(.bi-megaphone-fill) *,
.ym-theme a:has(.bi-megaphone-fill) *{
  color:#fff !important;
}

/* Speak: keep ONLY the megaphone icon black, text stays white */
.ym-theme .bi.bi-megaphone-fill,
.ym-theme .bi-megaphone-fill,
.ym-theme .bi.bi-megaphone-fill::before,
.ym-theme .bi-megaphone-fill::before{
  color:#000 !important;
}
