/* Announcement bar above the header (Admin → Site → Top bar).
   Shared by the coming-soon page (React) and CMS pages (PHP); same markup in both.
   Styles: brand = Glass (follows light/dark theme), navy = Midnight (always dark), amber = Sunrise. */
@keyframes sdt-shine { to { background-position: 200% 0; } }
@keyframes sdt-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,169,59,.55); } 70% { box-shadow: 0 0 0 7px rgba(242,169,59,0); } 100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); } }
@keyframes sdt-in { from { opacity: 0; transform: translateY(-100%); } }

.sdt {
  --bg: linear-gradient(90deg, #E6F0FA 0%, #FFFFFF 30%, #FFFFFF 70%, #E6F0FA 100%);
  --fg: #142F49; --muted: #4F6278; --chip: #FFFFFF; --chip-b: #DCE6F0; --chip-h: #EEF5FB;
  --pill: rgba(255,255,255,.9); --pill-b: #DCE6F0; --shadow: 0 6px 18px rgba(20,47,73,.08);
  --tag-bg: linear-gradient(135deg, #2A77B1, #4B9BD6); --tag-fg: #FFFFFF; --dot: #C7D6E6; --dot-on: #2A77B1;
  --line: linear-gradient(90deg, transparent, #8CC4F2 20%, #2A77B1 40%, #F2A93B 60%, #8CC4F2 80%, transparent);
  position: relative; z-index: 60; width: 100%; background: var(--bg); color: var(--fg);
  font: 500 13px/1.3 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
  animation: sdt-in .5s cubic-bezier(.2,.8,.2,1) both;
}
[data-theme="dark"] .sdt-brand, .sdt-navy {
  --bg: linear-gradient(90deg, #0E2A45 0%, #07121F 32%, #07121F 68%, #0E2A45 100%);
  --fg: #E3ECF5; --muted: #9FB0C3; --chip: rgba(255,255,255,.05); --chip-b: rgba(140,196,242,.18); --chip-h: rgba(140,196,242,.12);
  --pill: rgba(255,255,255,.05); --pill-b: rgba(140,196,242,.22); --shadow: 0 8px 24px rgba(0,0,0,.35);
  --tag-bg: linear-gradient(135deg, #F2A93B, #F8C77A); --tag-fg: #241500; --dot: rgba(140,196,242,.3); --dot-on: #8CC4F2;
}
.sdt-navy { --bg: radial-gradient(600px 80px at 50% 120%, rgba(42,119,177,.45), transparent 70%), linear-gradient(90deg, #123A61, #0A1828 35%, #0A1828 65%, #123A61); }
.sdt-amber {
  --bg: linear-gradient(90deg, #F2A93B 0%, #F8C77A 50%, #F2A93B 100%);
  --fg: #2B1A00; --muted: #5A3B05; --chip: rgba(255,255,255,.4); --chip-b: rgba(43,26,0,.12); --chip-h: rgba(255,255,255,.65);
  --pill: rgba(255,255,255,.55); --pill-b: rgba(255,255,255,.7); --shadow: 0 6px 18px rgba(120,70,0,.18);
  --tag-bg: linear-gradient(135deg, #0C1E31, #2A77B1); --tag-fg: #FFFFFF; --dot: rgba(43,26,0,.2); --dot-on: #0C1E31;
  --line: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}
.sdt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); background-size: 200% 100%; animation: sdt-shine 7s linear infinite; opacity: .9; }
.sdt a, .sdt button { color: inherit; text-decoration: none; font: inherit; }
.sdt[hidden] { display: none; }

.sdt-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 46px; display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: 16px; }
.sdt-l, .sdt-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sdt-r { justify-content: flex-end; gap: 6px; }

/* contact chips */
.sdt-c { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--chip); border: 1px solid var(--chip-b); white-space: nowrap; font-weight: 600; transition: background-color .25s, transform .25s, border-color .25s; }
.sdt-c:hover { background: var(--chip-h); transform: translateY(-1px); }
.sdt-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: rgba(42,119,177,.14); color: #2A77B1; }
[data-theme="dark"] .sdt-brand .sdt-ic, .sdt-navy .sdt-ic { background: rgba(140,196,242,.16); color: #8CC4F2; }
.sdt-wa .sdt-ic { background: #25D366; color: #fff !important; box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.sdt-c span:last-child { font-variant-numeric: tabular-nums; }

/* announcement pill */
.sdt-mid { display: flex; justify-content: center; min-width: 0; }
.sdt-pill { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; min-width: 0; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--pill); border: 1px solid var(--pill-b); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sdt-live { width: 8px; height: 8px; border-radius: 50%; background: #F2A93B; flex: 0 0 auto; animation: sdt-pulse 2s infinite; }
.sdt-amber .sdt-live { background: #0C1E31; }
.sdt-track { position: relative; display: grid; min-width: 0; height: 32px; overflow: hidden; }
.sdt-m { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; transform: translateY(110%); opacity: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s; pointer-events: none; }
.sdt-m.on { transform: none; opacity: 1; pointer-events: auto; }
.sdt-m.out { transform: translateY(-110%); opacity: 0; }
.sdt-m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdt-tag { flex: 0 0 auto; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); }
.sdt-go { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fg); color: var(--chip-b); transition: transform .25s; }
.sdt-go svg { color: #fff; }
.sdt-amber .sdt-go svg { color: #F8C77A; }
[data-theme="dark"] .sdt-brand .sdt-go svg, .sdt-navy .sdt-go svg { color: #07121F; }
a.sdt-m:hover > span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.sdt-m:hover .sdt-go { transform: translateX(3px) rotate(-45deg); }
.sdt-dots { display: flex; align-items: center; gap: 4px; padding: 0 4px; flex: 0 0 auto; }
.sdt-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--dot); cursor: pointer; transition: width .35s, background-color .35s; }
.sdt-dots button.on { width: 16px; background: var(--dot-on); }

/* social + close */
.sdt-s, .sdt-x { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--chip-b); background: var(--chip); cursor: pointer; transition: transform .25s, background-color .25s, color .25s; }
.sdt-s:hover { transform: translateY(-2px); background: #2A77B1; border-color: #2A77B1; color: #fff; }
.sdt-x { border-color: transparent; background: transparent; color: var(--muted); margin-left: 4px; }
.sdt-x:hover { background: var(--chip-h); color: var(--fg); }
.sdt-sep { width: 1px; height: 18px; background: var(--chip-b); margin: 0 2px; }

@media (max-width: 1000px) { .sdt-mail { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sdt, .sdt::after, .sdt-live { animation: none; } .sdt-m { transition: none; } }
.sdt-ic svg{width:12px;height:12px}
.sdt-in { grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr); }
.sdt-pill { max-width: min(600px, 48vw); }
.sdt .sdt-wa .sdt-ic { background: #25D366 !important; color: #fff !important; }
/* email: round icon button, address in the tooltip */
.sdt-mail { width: 30px; padding: 0; justify-content: center; }
.sdt-mail span:last-child { display: none; }
.sdt-mail .sdt-ic { background: transparent !important; }

/* ---------- phones: full-width announcement, scrolling text, WhatsApp + close on the right ---------- */
@keyframes sdt-marq { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(calc(-1 * var(--dx, 0px))); } }
@media (max-width: 720px) {
  .sdt-in { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; height: 42px; padding: 0 8px 0 14px; }
  .sdt-mid { grid-column: 1; grid-row: 1; justify-content: flex-start; min-width: 0; }
  .sdt-pill { width: 100%; max-width: none; height: 42px; padding: 0; gap: 9px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sdt-track { flex: 1; height: 42px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .sdt-m { font-size: 12.5px; gap: 7px; }
  .sdt-m.scroll > span { flex: 0 0 auto; overflow: visible; text-overflow: clip; animation: sdt-marq var(--dur, 8s) ease-in-out infinite alternate; }
  .sdt-tag { font-size: 9px; padding: 2px 6px; }
  .sdt-go { width: 18px; height: 18px; }
  .sdt-dots, .sdt-mail, .sdt-s, .sdt-sep { display: none !important; }
  .sdt-l { grid-column: 2; grid-row: 1; }
  .sdt-r { grid-column: 3; grid-row: 1; display: flex; gap: 0; }
  .sdt-c { width: 32px; height: 32px; padding: 0; justify-content: center; border: 0; background: none; }
  .sdt-c span:last-child { display: none; }
  .sdt-wa .sdt-ic { width: 30px; height: 30px; box-shadow: 0 0 0 4px rgba(37,211,102,.16); }
  .sdt-wa .sdt-ic svg { width: 15px; height: 15px; }
  .sdt-x { width: 32px; height: 32px; margin-left: 2px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .sdt-m.scroll > span { animation: none; } }
