/* 60/30/10 — dark primary, light surfaces, red accent CTAs + brand blue highlights */
:root {
  --primary: #12151a;
  --primary-soft: #1c2129;
  --secondary: #f5f6f8;
  --secondary-muted: #e3e6eb;
  --text-on-primary: #f5f6f8;
  --text-on-secondary: #12151a;
  --muted: #8b939e;
  --accent: #e8262a;
  --accent-deep: #c41e22;
  --brand: #2ea3f2;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(18, 21, 26, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --bottom-bar-h: 4.25rem;
  --sheet-peek-h: 5.5rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text-on-primary);
  background: var(--primary);
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 9999;
  padding: 0.65rem 1rem;
  background: var(--secondary);
  color: var(--text-on-secondary);
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.75rem;
}

.app-shell {
  display: grid;
  grid-template-rows: 1fr auto auto;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Scrollable content only */
.app-main {
  overflow: hidden auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.85rem 0.85rem 0.5rem;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
}

.app-main--sub {
  padding-bottom: 1rem;
}

/* Floating menu */
.menu-fab {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: 0.75rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--text-on-secondary);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-fab span,
.menu-fab span::before,
.menu-fab span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-fab span::before,
.menu-fab span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-fab span::before {
  top: -6px;
}

.menu-fab span::after {
  top: 6px;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.25rem 1.25rem;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-drawer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-drawer__brand img {
  width: 2.75rem;
  height: auto;
}

.nav-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text-on-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.nav-drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
}

.nav-drawer__list a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--brand);
}

.nav-drawer__list a:not([aria-current="page"]):active {
  background: var(--primary-soft);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(12rem, 38vh, 18rem);
  margin-top: 2.5rem;
  box-shadow: var(--shadow);
}

.hero-card__media {
  position: absolute;
  inset: 0;
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 21, 26, 0.15), rgba(18, 21, 26, 0.88));
}

.hero-card__body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
}

.hero-card__logo {
  width: min(11rem, 58vw);
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  margin-bottom: 0.45rem;
}

h2 {
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.lead,
.section-intro,
.card p,
.review-card p {
  color: rgba(245, 246, 248, 0.78);
  margin: 0;
}

.section {
  margin-top: 1.15rem;
}

.section--surface {
  background: var(--secondary);
  color: var(--text-on-secondary);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.section--surface .lead,
.section--surface .section-intro,
.section--surface p {
  color: #5a6270;
}

.section--surface .eyebrow {
  color: var(--brand);
}

.service-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.service-tile {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-on-primary);
  text-decoration: none;
  font-weight: 700;
}

.service-tile small {
  font-weight: 500;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.section--surface .chip {
  background: var(--secondary-muted);
  color: var(--text-on-secondary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.65rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6270;
}

.bullet-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.bullet-list li::marker {
  color: var(--accent);
}

.review-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.review-card {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.review-card__stars {
  color: #f6c649;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.review-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 0.85rem 0 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--brand);
}

.site-footer__nap {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

/* Bottom action sheet (Bird-style) */
.action-sheet {
  position: relative;
  z-index: 30;
  background: var(--secondary);
  color: var(--text-on-secondary);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  touch-action: none;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: min(52dvh, 22rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.action-sheet.is-hidden {
  transform: translateY(calc(100% - var(--sheet-peek-h)));
}

.action-sheet.is-peek {
  transform: translateY(calc(100% - var(--sheet-peek-h)));
}

.action-sheet.is-expanded {
  transform: translateY(0);
}

.action-sheet__handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem 0;
  position: relative;
  flex-shrink: 0;
}

.action-sheet__handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #c5cad3;
  border: 0;
  cursor: grab;
}

.action-sheet__close {
  position: absolute;
  right: 0.65rem;
  top: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--secondary-muted);
  color: var(--text-on-secondary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.action-sheet__title {
  padding: 0 1rem 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.action-sheet__details {
  padding: 0 1rem 0.65rem;
  overflow: hidden auto;
  flex: 1;
  min-height: 0;
}

.action-sheet.is-peek .action-sheet__details,
.action-sheet.is-hidden .action-sheet__details {
  display: none;
}

.action-sheet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.action-sheet__col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6270;
  margin-bottom: 0.35rem;
}

.hours-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.hours-mini li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.copy-field {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
}

.copy-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6270;
}

.copy-field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.copy-field__row button {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: var(--primary);
  color: var(--text-on-primary);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-field__row button.is-copied {
  background: #1a7f3c;
}

.action-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 1rem calc(0.65rem + var(--safe-bottom));
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 0;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:active {
  background: var(--accent-deep);
}

.btn-muted {
  background: var(--secondary-muted);
  color: var(--text-on-secondary);
}

/* Sticky bottom nav */
.bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem calc(0.55rem + var(--safe-bottom));
  background: rgba(18, 21, 26, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 40;
}

.bottom-bar .btn {
  width: 100%;
}

.bottom-bar .btn-muted {
  background: var(--primary-soft);
  color: var(--text-on-primary);
  border: 1px solid var(--line);
}

/* Subpages */
.page-head {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-head .eyebrow {
  margin-bottom: 0.35rem;
}

.embed-page {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--primary);
}

.embed-page__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 0.85rem 0.65rem;
  background: var(--primary);
  border-bottom: 1px solid var(--line);
}

.embed-page__bar img {
  height: 2rem;
  width: auto;
}

.embed-page__bar a {
  margin-left: auto;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.9rem;
}

.embed-page iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body:has(.embed-page) {
  display: block;
  overflow: hidden;
}

body:has(.embed-page) .embed-page {
  width: 100%;
  max-width: none;
  height: 100dvh;
  box-shadow: none;
}

/* Larger screens — still mobile-first, centered phone frame */
@media (min-width: 32rem) {
  body {
    display: flex;
    justify-content: center;
    background: #0a0c0f;
  }

  .app-shell,
  .embed-page {
    width: min(100%, 26.5rem);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.45);
  }

  .menu-fab {
    left: max(0.75rem, calc(50% - 12.5rem));
  }

  .nav-drawer,
  .nav-backdrop {
    width: min(100%, 26.5rem);
    left: max(0px, calc(50% - 13.25rem));
  }

  .nav-drawer {
    transform: translateX(-105%);
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
