:root {
  --orange: #fd7708;
  --accent: #eea62e;
  --orange-deep: #c45a06;
  --ink: #1c1917;
  --muted: #57534e;
  --cream: #fff7ed;
  --sand: #ffedd5;
  --paper: #ffffff;
  --line: #fdba74;
  --line-soft: #fed7aa;
  --ok: #047857;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 18px 50px rgba(196, 90, 6, 0.12);
  --radius: 18px;
  --nav-h: 92px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 80; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 16px; flex-wrap: wrap;
}
.site-menu {
  display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.brand img { height: 68px; width: auto; display: block; }
.brand span { font-size: 1.12rem; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { background: var(--sand); color: var(--orange-deep); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.phone-link { font-weight: 700; color: var(--ink); white-space: nowrap; }
.menu-btn {
  display: none; border: 0; background: var(--sand); color: var(--ink);
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff !important; font-weight: 700;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(253, 119, 8, 0.28); transition: 0.15s transform, 0.15s background;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--ink) !important; border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--sand); color: var(--orange-deep) !important; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  color: #fff;
}
.hero-media, .media-ph {
  position: absolute; inset: 0;
  background: #1c1917;
  overflow: hidden;
}
.hero-media { z-index: 0; }
.hero-video {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.35), rgba(28,25,23,0.62));
  pointer-events: none;
}
.sound-toggle {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(28,25,23,0.55); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.sound-toggle:hover { background: var(--orange); }
.sound-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.sound-toggle .icon-on { display: none; }
.sound-toggle.on .icon-off { display: none; }
.sound-toggle.on .icon-on { display: block; }
.hero-inner { position: relative; z-index: 1; padding: 72px 0 80px; width: min(1160px, calc(100% - 40px)); }
.kicker {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.05;
  margin: 16px 0 14px; letter-spacing: -0.04em; max-width: 16ch;
}
.hero p.lead { font-size: 1.18rem; max-width: 46ch; color: #fff7ed; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.video-ph {
  margin-top: 36px; border: 1px dashed rgba(255,255,255,0.45);
  border-radius: 20px; padding: 22px; background: rgba(0,0,0,0.18);
  display: flex; gap: 16px; align-items: center;
}
.play-orb {
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0;
}

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2, .page-hero h1, h1, h2, h3 {
  letter-spacing: -0.03em; line-height: 1.15;
}
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.icon-pill {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--sand); color: var(--orange-deep);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.badge {
  display: inline-block; background: var(--sand); color: var(--orange-deep);
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.badge-soon { background: #ffedd5; color: #9a3412; }
.badge-live { background: #d1fae5; color: #065f46; }

.page-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, #ffedd5, var(--cream));
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0; }
.crumbs { color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }

.media-card, .ph {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(145deg, #fdba74, #fd7708 40%, #9a3412);
  min-height: 220px; color: #fff; display: grid; place-items: end start;
}
.ph { min-height: 260px; }
.ph.has-img { background: #1c1917; min-height: 0; display: block; }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.card .ph { margin: -24px -24px 16px; border-radius: 0; }
.card .ph.has-img img { min-height: 200px; aspect-ratio: 16 / 10; }
.photo-still { border-radius: var(--radius); overflow: hidden; }
.photo-still img { width: 100%; display: block; object-fit: cover; max-height: 520px; }
.ph-label {
  padding: 16px 18px; font-size: 0.82rem; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  width: 100%;
}

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line-soft);
}
.list-check li:before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  color: var(--orange); font-weight: 800;
}

.logo-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.logo-chip {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 0.86rem; color: var(--muted);
}

.cta-band {
  background: linear-gradient(120deg, #fd7708, #eea62e);
  color: #fff; border-radius: 28px; padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2, .cta-band p { color: #fff; }

/* Forms */
form { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice {
  padding: 12px 14px; border-radius: 12px; font-weight: 600;
}
.notice.ok { background: #d1fae5; color: #065f46; }
.notice.err { background: #fee2e2; color: #991b1b; }
.hidden { display: none !important; }

/* Footer */
.site-footer {
  background: #1c1917; color: #ffedd5; padding: 48px 0 24px; margin-top: 40px;
}
.site-footer a { color: #fdba74; }
.site-footer a:hover { color: #eea62e; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.foot-brand img { height: 42px; background: #fff; border-radius: 10px; padding: 4px; }
.legal { border-top: 1px solid #44403c; margin-top: 28px; padding-top: 16px; color: #a8a29e; font-size: 0.85rem; }

/* Chat */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 18px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 30px rgba(253,119,8,0.4);
}
.chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 50;
  width: min(380px, calc(100% - 24px)); height: 520px;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line-soft); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: linear-gradient(120deg, #fd7708, #eea62e); color: #fff;
  padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between;
}
.chat-msgs { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 10px; background: #fff7ed; }
.msg { padding: 10px 12px; border-radius: 14px; max-width: 90%; font-size: 0.92rem; }
.msg.bot { background: #fff; border: 1px solid var(--line-soft); }
.msg.user { background: var(--orange); color: #fff; margin-left: auto; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); }
.chat-form input { flex: 1; }

/* Auth + portal */
.auth-card { max-width: 520px; margin: 20px auto 60px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px; font-weight: 800; cursor: pointer;
}
.tab.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.portal-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.side {
  background: #1c1917; color: #ffedd5; padding: 22px 14px;
}
.side a, .side button {
  display: block; width: 100%; text-align: left; color: #ffedd5;
  background: transparent; border: 0; padding: 10px 12px; border-radius: 10px;
  font-weight: 700; cursor: pointer; font: inherit;
}
.side a:hover, .side button:hover, .side a.on, .side button.on { background: #44403c; color: #fdba74; }
.portal-main { padding: 24px; background: var(--cream); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }

/* Calendar */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-week {
  display: grid; grid-template-columns: 64px repeat(7, 1fr);
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: #fff;
}
.cal-head, .cal-gutter, .cal-day {
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.cal-head { background: var(--sand); font-weight: 800; padding: 8px; text-align: center; font-size: 0.82rem; }
.cal-gutter { font-size: 0.7rem; color: var(--muted); padding: 2px 4px; }
.cal-day { min-height: 78px; position: relative; padding: 4px; }
.cal-week.step-30 .cal-day { min-height: 46px; }
.cal-week.step-15 .cal-day { min-height: 30px; }
.cal-week.step-15 .evt { font-size: 0.62rem; padding: 2px 4px; }
.cal-week.step-15 .cal-gutter { font-size: 0.62rem; }
.step-select { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-weight: 700; background: #fff; }
.evt {
  font-size: 0.72rem; border-radius: 8px; padding: 4px 6px; margin-bottom: 4px;
  color: #fff; font-weight: 700; cursor: pointer;
}
.evt-si { background: var(--orange); }
.evt-travel { background: #78716c; }
.evt-conflict { background: #b91c1c; }
.evt-pending { background: var(--accent); color: #1c1917; }
.cal-list .item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}

.back-link { background: none; border: 0; color: var(--orange); font-weight: 800; cursor: pointer; padding: 0 0 12px; font: inherit; }
.client-card { cursor: pointer; }
.client-card:hover { border-color: var(--orange); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

.article { max-width: 780px; }
.article p { font-size: 1.05rem; }
.resource-links a { display: block; padding: 8px 0; font-weight: 700; }

@media (max-width: 960px) {
  .grid-3, .grid-4, .split, .foot-grid, .portal-shell, .stat-row, .form-row { grid-template-columns: 1fr; }
  .menu-btn { display: grid; place-items: center; }
  .site-menu {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    background: #fff7ed;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line-soft);
  }
  .site-menu.open { display: flex; }
  .nav-links, .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex-wrap: nowrap;
  }
  .nav-links a, .nav-cta a, .nav-cta .phone-link {
    width: 100%; text-align: left; padding: 12px 4px;
  }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cal-week { display: none; }
  .brand img { height: 60px; }
  :root { --nav-h: 84px; }
}
@media (max-width: 640px) {
  .hero {
    display: block;
    min-height: 0;
    color: var(--ink);
    background: var(--cream);
    overflow: visible;
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .hero-video iframe {
    top: 0; left: 0;
    width: 100%; height: 100%;
    min-width: 0; min-height: 0;
    transform: none;
  }
  .hero-scrim { display: none; }
  .sound-toggle { top: 10px; right: 10px; width: 42px; height: 42px; }
  .hero-inner {
    padding: 22px 0 36px;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
  }
  .hero h1 { color: var(--ink); max-width: none; font-size: 2rem; }
  .hero p.lead { color: var(--muted); }
  .hero .kicker {
    color: var(--orange-deep);
    background: var(--sand);
    border-color: var(--line-soft);
  }
}
