/* Highland Remodeling – brand orange */
:root {
  --color-primary: #ee5c03;
  --color-primary-dark: #c74a02;
  --color-primary-light: #ff7433;
  --color-accent: #ff9547;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-bg-dark: #252525;
  --color-border: #e8e8e8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1200px;
  --header-height: 88px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(238, 92, 3, 0.15);
  --section-padding: 80px;
  --section-padding-sm: 48px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
::selection {
  background: rgba(238, 92, 3, 0.25);
  color: var(--color-text);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: radial-gradient(ellipse 140% 100% at 50% -30%, rgba(238, 92, 3, 0.05), transparent 50%),
              var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Public site: keep footer at bottom when content is short */
body:not(.admin-dash-body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.admin-dash-body) > main#content {
  flex: 1 0 auto;
  width: 100%;
}

body:not(.admin-dash-body) > .footer {
  flex-shrink: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s ease, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 92, 3, 0.4);
}
.btn-primary {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 2px 12px rgba(238, 92, 3, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(238, 92, 3, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: rgba(238, 92, 3, 0.08);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
}
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  min-height: var(--header-height);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}
.header-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
}
@media (min-width: 1200px) {
  .header-inner {
    max-width: none;
    width: 100%;
    padding-left: clamp(24px, 4vw, 64px);
    padding-right: clamp(24px, 4vw, 64px);
  }
}
.header-nav-cluster {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (min-width: 901px) and (max-width: 1199px) {
  .header-inner .logo {
    margin-left: -12px;
  }
}
.header-inner .logo {
  grid-column: 1;
  justify-self: start;
}
.header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.header-right .header-phone { margin-left: 0; }
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  padding: 0;
  border: none;
  box-shadow: none;
  max-height: 100%;
}
.logo:hover,
.logo:focus,
.logo:focus-visible {
  text-decoration: none;
  background: transparent !important;
  box-shadow: none;
}
.logo-img {
  display: block;
  height: auto;
  max-height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent !important;
  vertical-align: middle;
  border: none;
  box-shadow: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  padding: 6px 12px;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-item > a:hover,
.nav-item:focus-within > a {
  color: var(--color-primary);
  background: rgba(238, 92, 3, 0.06);
  text-decoration: none;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s var(--ease-out), visibility 0.22s, transform 0.22s var(--ease-out);
  transform-origin: top center;
  z-index: 100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover {
  background: rgba(238, 92, 3, 0.08);
  color: var(--color-primary);
  text-decoration: none;
}
.dropdown a:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.dropdown a:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-left: auto;
  text-decoration: none;
}
.header-phone-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.header-phone-icon svg {
  width: 1em;
  height: 1em;
}
.header .btn {
  padding: 12px 20px;
  font-size: 0.9375rem;
}
.header-phone:hover { text-decoration: none; }

/* Keep phone + button vertically centered in header (override any flex-start) */
.header-right {
  align-self: center;
}
.header-right .header-phone,
.header-right .btn {
  align-self: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  align-self: center;
}
.menu-toggle:hover { background: var(--color-bg-alt); }
.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 900px) {
  .header {
    overflow: visible;
  }
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
    column-gap: unset;
  }
  .header-inner .logo {
    flex: 0 0 auto;
    margin-left: 0;
    grid-column: unset;
    justify-self: unset;
  }
  .logo-img {
    max-height: 52px;
    max-width: min(200px, 46vw);
  }
  .header-nav-cluster {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-column: unset;
    justify-self: unset;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    z-index: 1001;
  }
  .header.nav-open .header-nav-cluster {
    display: flex;
  }
  .nav {
    display: block;
    width: 100%;
  }
  .header.nav-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .header.nav-open .nav-item > a {
    padding: 12px 14px;
    border-radius: 8px;
  }
  /* Services: collapsed until opened (phone menu) */
  .header.nav-open .nav-item.has-dropdown:not(.nav-dropdown-open) .dropdown {
    display: none;
  }
  .header.nav-open .nav-item.has-dropdown > a {
    position: relative;
    padding-right: 40px;
  }
  .header.nav-open .nav-item.has-dropdown > a::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.2s var(--ease-out), margin-top 0.2s var(--ease-out);
    pointer-events: none;
  }
  .header.nav-open .nav-item.has-dropdown.nav-dropdown-open > a::after {
    transform: rotate(225deg);
    margin-top: -1px;
  }
  .header.nav-open .nav-item.has-dropdown.nav-dropdown-open .dropdown {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 6px;
    margin-left: 14px;
    padding: 6px 0 6px 12px;
    border-left: 3px solid var(--color-primary);
    border-radius: 0;
    background: rgba(238, 92, 3, 0.04);
  }
  .header.nav-open .nav-item.has-dropdown.nav-dropdown-open .dropdown a {
    padding: 10px 12px;
  }
  .header-right {
    grid-column: unset;
    justify-self: unset;
    margin-left: auto;
    flex: 0 0 auto;
    gap: 8px;
  }
  .header-right .header-phone {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .header-right .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Same stacked gradients as committed styles (top vignette + charcoal/orange wash) */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, rgba(37, 37, 37, 0.92) 0%, rgba(37, 37, 37, 0.75) 50%, rgba(238, 92, 3, 0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  min-height: 0;
  padding: 56px 24px 32px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35), 0 0 48px rgba(0,0,0,0.12);
  letter-spacing: -0.02em;
}
.hero-tagline {
  margin: 0 0 32px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.96);
  font-weight: 500;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
  letter-spacing: 0.01em;
}
.hero-headline {
  text-align: center;
  margin-bottom: 28px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}
@media (max-width: 899px) {
  .hero-copy-col {
    order: -1;
  }
  .hero-video-wrap {
    order: 1;
  }
}
.hero-video-wrap {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  /* Explicit min so layout never collapses (video is position:absolute). */
  min-width: min(280px, 92vw);
}
.hero-video-aspect {
  position: relative;
  width: min(280px, 92vw);
  max-width: min(280px, 92vw);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-video-aspect > video,
.hero-video-aspect > iframe,
.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.hero-video-aspect > video,
.hero-video-media {
  object-fit: cover;
}
.hero-copy-col {
  min-width: 0;
  width: 100%;
  max-width: min(320px, 90vw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy-col .hero-form {
  width: 100%;
  max-width: 340px;
}
.hero-copy-text-block {
  width: 100%;
  margin-top: clamp(18px, 3.5vh, 32px);
  padding-top: clamp(6px, 1.2vh, 14px);
}
.hero-area-text {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.32), 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}
.hero-area-subtext {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.02em;
}
.hero-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f5c518;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.hero-star {
  display: block;
  flex-shrink: 0;
}
.hero-google-line {
  color: rgba(255, 255, 255, 0.92);
}
@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 28px;
    width: 100%;
    max-width: min(880px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .hero-video-wrap {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-video-aspect {
    width: min(300px, 42vw);
    max-width: min(300px, 100%);
    margin: 0;
  }
  .hero-copy-col {
    margin: 0;
    justify-self: stretch;
    align-self: center;
    text-align: center;
    width: 100%;
    max-width: min(340px, 100%);
    padding: 0 4px 8px;
  }
  .hero-copy-text-block {
    margin-top: clamp(28px, 5vh, 48px);
  }
}
.hero-form {
  background: rgba(255, 255, 255, 0.98);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 64px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.6) inset;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease-out);
}
.hero-form:focus-within {
  box-shadow: 0 32px 72px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
.hero-form input[type="text"],
.hero-form input[type="tel"],
.hero-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-form input:hover {
  border-color: #ddd;
}
.hero-form input::placeholder { color: #999; }
.hero-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(238,92,3,0.2);
}
.hero-form .btn {
  margin-top: 2px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }

.hero-banner {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  margin-top: auto;
  padding: 12px 20px;
  /* Same gradient as .hero-bg */
  background: linear-gradient(
    165deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 45%,
    var(--color-primary-dark) 100%
  );
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Stats */
.stats {
  padding: 36px 0;
  background: var(--color-bg-dark);
}
@media (min-width: 768px) {
  .stats { padding: 56px 0; }
}
.stats-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  color: white;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stats-title::after { display: none; }
.stats-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 24px 32px;
  margin-bottom: 28px;
  padding: 0 16px;
}
.stat-metric {
  display: grid;
  row-gap: 8px;
  grid-template-rows: 40px minmax(2.125rem, auto) auto minmax(1.35em, auto);
  justify-items: center;
  align-content: start;
  text-align: center;
  color: white;
  flex: 1 1 140px;
  max-width: 320px;
  min-width: 0;
}
.stat-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin-bottom: 0;
  color: var(--color-primary-light);
}
.stat-metric-icon svg {
  display: block;
  flex-shrink: 0;
}
.stat-metric-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-metric-detail {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 2px;
}
/* Counties card uses same grid stack as other metrics: icon → value → label → detail */
.stat-metric--areas .stat-metric-detail {
  line-height: 1.35;
}
.stat-metric-divider {
  width: 1px;
  align-self: stretch;
  min-height: 6.5rem;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
@media (max-width: 639px) {
  .stat-metric-divider { display: none; }
  .stats-metrics { gap: 28px; }
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 24px 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 88px;
  text-align: left;
}
.stat-card::before { display: none; }
.stat-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(-4px);
  border-color: rgba(238, 92, 3, 0.35);
}
.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(238, 92, 3, 0.14);
  color: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.stat-card:hover .stat-card-icon {
  background: rgba(238, 92, 3, 0.22);
  transform: scale(1.05);
}
.stat-card-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.stat-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  margin: 0;
}
@media (min-width: 1024px) {
  .stat-card {
    padding: 22px 20px;
  }
  .stat-card-label {
    font-size: 0.9375rem;
  }
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-text);
  letter-spacing: -0.025em;
  position: relative;
  line-height: 1.2;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
  margin: 18px auto 0;
}
.cta .section-title::after,
.final-cta .section-title::after {
  background: rgba(255,255,255,0.8);
}
.protecting .section-title::after {
  background: var(--color-primary-light);
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 1.06rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Services */
.services { padding: var(--section-padding-sm) 0; }
@media (min-width: 768px) { .services { padding: var(--section-padding) 0; } }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
@media (min-width: 900px) { .services-grid { gap: 28px; } }
.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(238, 92, 3, 0.12);
  transform: translateY(-6px);
  border-color: rgba(238, 92, 3, 0.22);
}
.service-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover .service-image::after { opacity: 1; }
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-image img { transform: scale(1.05); }
.service-body { padding: 26px 24px; }
.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--color-text);
  font-weight: 600;
}
.service-body p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.service-link:hover { text-decoration: none; color: var(--color-primary-dark); }
.service-card-featured {
  background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 12px 40px rgba(238, 92, 3, 0.25);
}
.service-card-featured:hover {
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(238, 92, 3, 0.35);
}
.service-card-featured .service-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-card-featured .service-body h3,
.service-card-featured .service-body p { color: white; }
.service-card-featured .service-body p { flex: 1; }
.service-card-featured .service-link { color: rgba(255,255,255,0.95); }
.service-card-featured .service-link:hover { color: white; }
.service-card-featured-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  margin-top: auto;
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.service-card-featured-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Process */
.process {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) { .process { padding: var(--section-padding) 0; } }
.process-container .section-title { margin-bottom: 24px; }
.process-layout {
  display: block;
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
.process-nav {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .process-nav {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}
.process-nav-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}
.process-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-nav-list li { margin: 0 0 6px; }
.process-nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.process-nav-list a:hover {
  background: rgba(238, 92, 3, 0.08);
  color: var(--color-primary);
}
.process-nav-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.process-nav-bottom .process-nav-title { margin-bottom: 14px; }
.process-nav-bottom .process-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.process-nav-bottom .process-nav-list li { margin: 0; }
.process-step {
  text-align: center;
  padding: 30px 22px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(238, 92, 3, 0.18);
}
.process-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(238, 92, 3, 0.4);
}
.process-step-header .step-num { margin-bottom: 0; }
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}
.process-step p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; flex: 1; }
.process .btn { display: block; margin: 0 auto; }

/* CTA */
.cta {
  padding: var(--section-padding-sm) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
@media (min-width: 768px) { .cta { padding: var(--section-padding) 0; } }
.cta .section-title { color: white; }
.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  position: relative;
}
.cta .btn-primary {
  background: white;
  color: var(--color-primary);
  position: relative;
}
.cta .btn-primary:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }

/* Testimonials */
.testimonials {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) { .testimonials { padding: var(--section-padding) 0; } }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.testimonial-card {
  margin: 0;
  padding: 28px 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: var(--color-primary);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-name { font-weight: 600; color: var(--color-text); }
.testimonial-location { font-size: 0.875rem; color: var(--color-text-muted); }

/* Trust strip */
.trust-strip {
  padding: 24px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
}
.trust-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 16px;
  background: rgba(238, 92, 3, 0.08);
  border-radius: var(--radius-sm);
}

/* Warranty tiers */
.warranty-tiers {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) { .warranty-tiers { padding: var(--section-padding) 0; } }
.warranty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .warranty-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.warranty-tier {
  position: relative;
  padding: 28px 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.warranty-tier:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.warranty-tier-featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(238, 92, 3, 0.15);
}
.warranty-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
}
.warranty-tier h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--color-text);
}
.warranty-term {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}
.warranty-tier p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Reviews preview */
.reviews-preview {
  padding: var(--section-padding-sm) 0;
  text-align: center;
}

/* Customer Reviews (embed from Google Doc) */
.customer-reviews {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) {
  .customer-reviews { padding: var(--section-padding) 0; }
}
.bath-page-main .customer-reviews {
  background: var(--color-bg);
}
.reviews-embed-wrapper {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1px solid var(--color-border);
}
.reviews-iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  height: 60vh;
  border: none;
}
.reviews-open-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.95rem;
}
.reviews-open-link a {
  font-weight: 600;
}
.reviews-open-link a:hover {
  text-decoration: none;
}

.google-reviews-widget {
  margin-top: 24px;
  min-height: 200px;
}

/* Peace of mind */
.peace-of-mind {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
  text-align: center;
}
@media (min-width: 768px) { .peace-of-mind { padding: var(--section-padding) 0; } }
.peace-of-mind p { margin-bottom: 16px; }
.peace-of-mind .hero-banner {
  display: inline-block;
  margin: 16px 0;
  border-radius: 9999px;
  padding: 12px 28px;
}

/* Service areas */
.service-areas {
  padding: var(--section-padding-sm) 0;
  text-align: center;
}
.service-areas .section-intro {
  margin-bottom: 28px;
}
@media (min-width: 768px) { .service-areas { padding: var(--section-padding) 0; } }

.service-areas-map-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.service-areas-map-wrap::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.service-areas-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.service-areas-map-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-label {
  position: absolute;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.map-label-seattle { top: 24%; left: 52%; }
.map-label-portland { top: 76%; left: 48%; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.area-col {
  text-align: center;
}
.area-col h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: var(--color-primary);
}
.area-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.area-col li { font-size: 0.95rem; color: var(--color-text-muted); }

/* Protecting */
.protecting {
  padding: var(--section-padding-sm) 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
  color: white;
  text-align: center;
  position: relative;
}
.protecting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(238, 92, 3, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
@media (min-width: 768px) { .protecting { padding: var(--section-padding) 0; } }
.protecting .section-title { color: white; }
.protecting > .container > p {
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
  position: relative;
}
.priority-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
  position: relative;
}
.priority-card {
  background: rgba(255,255,255,0.08);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}
.priority-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.priority-card h4 {
  font-family: var(--font-heading);
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--color-primary-light);
}
.priority-card p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* Fence quiz */
.fence-quiz {
  padding: var(--section-padding-sm) 0;
  text-align: center;
  background: var(--color-bg-alt);
}
.fence-quiz p { max-width: 600px; margin: 0 auto; color: var(--color-text-muted); line-height: 1.6; }

/* Transformations */
.transformations { padding: var(--section-padding-sm) 0; }
@media (min-width: 768px) { .transformations { padding: var(--section-padding) 0; } }
.transform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .transform-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.transform-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.transform-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
  border-color: rgba(238, 92, 3, 0.2);
}
.transform-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.transform-card:hover img { transform: scale(1.05); }
.transform-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
  padding: 18px;
  background: white;
  text-align: center;
  font-weight: 600;
}

/* FAQ */
.faq { padding: var(--section-padding-sm) 0; background: var(--color-bg-alt); }
@media (min-width: 768px) { .faq { padding: var(--section-padding) 0; } }
.faq .btn { margin-bottom: 32px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
  border-left: 3px solid transparent;
}
.faq-item:hover,
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-primary);
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-primary); }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.faq-answer p { margin: 0; padding: 0 20px 18px; color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Blog */
.blog-preview { padding: var(--section-padding-sm) 0; }
@media (min-width: 768px) { .blog-preview { padding: var(--section-padding) 0; } }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 36px;
  align-items: stretch;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.3s ease;
}
.blog-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(238, 92, 3, 0.15);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
.blog-card:hover img { transform: scale(1.04); }
.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
  padding: 16px 20px 4px;
  line-height: 1.35;
}
.blog-card-byline {
  margin: 0;
  padding: 0 20px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.blog-card-excerpt {
  padding: 0 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.blog-card p:not(.blog-card-excerpt):not(.blog-card-meta) {
  padding: 0 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.blog-link {
  display: inline-block;
  margin-top: auto;
  padding: 8px 20px 20px;
  font-weight: 600;
  color: var(--color-primary);
}
.blog-link:hover { text-decoration: none; }

/* Newsletter */
.newsletter-section {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) { .newsletter-section { padding: var(--section-padding) 0; } }
.newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 32px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; }
}
.newsletter-content .section-title {
  margin: 0 0 8px;
  text-align: left;
}
.newsletter-content .section-title::after { display: none; }
.newsletter-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.newsletter-form input[type="email"] {
  min-width: 200px;
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(238, 92, 3, 0.2);
}

/* Final CTA */
.final-cta {
  padding: var(--section-padding-sm) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}
@media (min-width: 768px) { .final-cta { padding: var(--section-padding) 0; } }
.final-cta .section-title { color: white; margin-bottom: 24px; position: relative; }

/* Footer */
.footer {
  padding: 60px 0 32px;
  background: var(--color-text);
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}
.footer a {
  color: rgba(255,255,255,0.92);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer a:hover {
  color: white;
  text-decoration: none;
  opacity: 1;
}
.footer-locations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
  margin-bottom: 36px;
  text-align: center;
}
.footer-location p { margin: 0; line-height: 1.55; }
.footer .btn { margin-bottom: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px 44px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: white;
  letter-spacing: 0.02em;
}
.footer-col ul { margin-bottom: 24px; }
.footer-col li { margin-bottom: 10px; }
.footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.footer .social-links a {
  font-weight: 600;
}
.footer-copy {
  text-align: center;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.contact-modal[aria-hidden="false"],
.contact-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.modal-inner {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-inner h2 { margin: 0 0 24px; font-family: var(--font-heading); font-size: 1.5rem; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-text); }

/* Service pages (Bath, Kitchen, Tile, Flooring) */
.service-page-hero {
  position: relative;
  min-height: clamp(340px, 58vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.service-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,37,37,0.88) 0%, rgba(37,37,37,0.7) 50%, rgba(238,92,3,0.6) 100%);
}
.service-page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  padding: 80px 24px 56px;
}
.service-page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}
.service-page-hero-inner > .service-page-hero-title:last-child {
  margin-bottom: 0;
}
.service-page-hero-tagline {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.bath-hero-intro {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.9);
}
/* Bath page: shorter hero band (~40% less than default service hero) */
.bath-page-main .service-page-hero {
  min-height: clamp(204px, 35vh, 432px);
}
.bath-page-main .service-page-hero-inner {
  padding: 48px 24px 36px;
}
.bath-page-main .service-page-hero-bg {
  background: linear-gradient(165deg, var(--color-primary-light) 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
}
.bath-page-main .service-page-hero-bg::after {
  display: none;
}
.service-page-content {
  padding: var(--section-padding) 0;
}
.service-prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.service-prose p {
  margin: 0 0 1.25em;
  color: var(--color-text);
}
.service-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.75em 0 0.6em;
}
.service-prose h2:first-of-type { margin-top: 0; }
.service-prose ul {
  list-style: disc;
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}
.service-prose li {
  margin-bottom: 0.4em;
  color: var(--color-text);
}
.service-cta-wrap {
  margin: 0;
}
.bath-model-tiers {
  padding-top: var(--section-padding-sm);
  padding-bottom: var(--section-padding);
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 900px) {
  .bath-model-tiers {
    padding-top: 56px;
  }
}
.bath-model-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .bath-model-tiers-grid {
    gap: 28px;
    max-width: var(--container);
  }
}
.bath-model-tier {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--color-border);
  padding: 0;
  transition: box-shadow 0.25s var(--ease-out);
}
@media (min-width: 900px) {
  .bath-model-tier {
    flex-direction: row;
    align-items: stretch;
    /* Text / image 50–50; min height so short copy centers, long copy can grow */
    min-height: clamp(260px, 30vw, 480px);
    height: auto;
    box-shadow: var(--shadow-md);
  }
  .bath-model-tier:has(.bath-model-tier-list),
  .bath-model-tier:has(.bath-model-tier-details) {
    min-height: clamp(420px, 48vw, 620px);
  }
}
.bath-model-tier:hover {
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .bath-model-tier:hover {
    box-shadow: var(--shadow-lg);
  }
}
.bath-model-tier-media {
  margin: 0;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  overflow: hidden;
  background: transparent;
}
@media (min-width: 900px) {
  .bath-model-tier-media {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: unset;
  }
}
.bath-model-tier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .bath-model-tier-media img {
    min-height: 0;
  }
}
.bath-model-tier-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 900px) {
  .bath-model-tier-content {
    order: -1;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    justify-content: center;
    justify-content: safe center;
    padding: clamp(20px, 3vw, 36px) clamp(24px, 3.5vw, 40px);
    text-align: left;
    border-right: 1px solid var(--color-border);
    background: var(--color-bg);
  }
}
.bath-model-tier-details {
  width: 100%;
  margin: 0;
}
.bath-model-tier-details-summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: 8px 28px 8px 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}
.bath-model-tier-details-summary::-webkit-details-marker {
  display: none;
}
.bath-model-tier-details summary::marker {
  content: '';
}
.bath-model-tier-details-summary:hover {
  color: var(--color-primary);
}
.bath-model-tier-details-summary:focus {
  outline: none;
}
.bath-model-tier-details-summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.bath-model-tier-details-summary::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.65;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out), opacity 0.15s ease;
}
.bath-model-tier-details-summary:hover::after {
  opacity: 1;
}
.bath-model-tier-details[open] .bath-model-tier-details-summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}
.bath-model-tier-details .bath-model-tier-list {
  margin-top: 10px;
}
@media (min-width: 900px) {
  .bath-model-tier-details-summary {
    display: none;
  }
  .bath-model-tier-details .bath-model-tier-list {
    margin-top: 0;
  }
}
.bath-model-tier-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  min-width: 0;
}
.bath-model-tier-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
  flex: 1 1 auto;
  min-width: 0;
}
@media (min-width: 900px) {
  .bath-model-tier-name {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
  }
}
.bath-model-tier-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
  text-align: right;
}
@media (min-width: 900px) {
  .bath-model-tier-head {
    justify-content: flex-start;
    gap: 10px 14px;
  }
  .bath-model-tier-name {
    flex: 0 1 auto;
  }
  .bath-model-tier-price {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    text-align: left;
  }
}
.bath-model-tier-head + .bath-model-tier-details,
.bath-model-tier-head + .bath-model-tier-list,
.bath-model-tier-head + .bath-model-tier-desc {
  margin-top: 14px;
}
.bath-model-tier-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.2em;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  flex-shrink: 0;
}
.bath-model-tier-list li {
  margin-bottom: 0.35em;
  padding-left: 0.15em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
.bath-model-tier-list li:last-child {
  margin-bottom: 0;
}
.bath-model-tier-list li.bath-model-tier-list-struck {
  color: var(--color-text-muted);
}
.bath-model-tier-list li.bath-model-tier-list-struck span {
  text-decoration: line-through;
  text-decoration-color: rgba(90, 90, 90, 0.55);
}
.bath-model-tier-list li.bath-model-tier-list-addon {
  list-style: none;
  margin-left: -1.2em;
  margin-right: 0;
  padding: 0.5em 0.65em 0.5em 0.85em;
  font-weight: 600;
  color: #0d6832;
  background: rgba(16, 122, 61, 0.14);
  line-height: 1.4;
  border-radius: var(--radius-sm);
}
.bath-model-tier-list li.bath-model-tier-list-addon--first {
  margin-top: 0.65em;
}
.bath-model-tier-list li.bath-model-tier-list-addon + .bath-model-tier-list-addon {
  margin-top: 6px;
}
@media (min-width: 900px) {
  .bath-model-tier-list {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}
.bath-model-tier-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}
.bath-model-tiers-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 20px auto 16px;
  line-height: 1.5;
}
.bath-model-tier-footer {
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}
.bath-model-tier-footer .btn {
  width: 100%;
  text-align: center;
}
.process-four {
  padding: var(--section-padding-sm) 0;
  /* Match bath tiers + service content (page white, not gray band) */
  background: var(--color-bg);
}
@media (min-width: 768px) {
  .process-four {
    padding: var(--section-padding) 0;
  }
}
.process-four .section-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.process-four-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .process-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
  }
}
@media (min-width: 900px) {
  .process-four-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 20px);
  }
}
.process-four-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(16px, 2.8vw, 26px) clamp(12px, 2vw, 20px);
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
  min-width: 0;
}
.process-four-step:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(238, 92, 3, 0.2);
}
.process-four-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 8vw, 40px);
  height: clamp(30px, 8vw, 40px);
  border-radius: 50%;
  background: rgba(238, 92, 3, 0.12);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 3.2vw, 1.125rem);
  line-height: 1;
  margin: 0 0 12px;
  flex-shrink: 0;
}
.process-four-step h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 2.4vw, 1.05rem);
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
  flex-shrink: 0;
}
.process-four-step-text {
  margin: 8px 0 0;
  font-size: clamp(0.65rem, 2vw, 0.8125rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
@media (max-width: 639px) {
  .process-four-step {
    padding: 18px 18px 20px;
  }
  .process-four-step h3 {
    font-size: 1.0625rem;
    line-height: 1.35;
  }
  .process-four-step-text {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
  .process-four-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin: 0 0 14px;
  }
}
@media (min-width: 768px) {
  .process-four-step h3 {
    font-size: clamp(0.9rem, 1.8vw, 1.08rem);
  }
  .process-four-step-text {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}
.bath-process-booking {
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}
.bath-model-tiers .bath-process-booking {
  margin-top: 0;
  padding-top: 44px;
  margin-bottom: 8px;
}
.bath-process-booking-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.bath-process-booking-lead {
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}
.bath-page-main .bath-process-form {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  backdrop-filter: none;
}
.bath-page-main .bath-process-form:focus-within {
  box-shadow: var(--shadow-lg);
}
.bath-package-picker {
  border: none;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
.bath-package-picker-legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0 0 12px;
  padding: 0;
}
.bath-package-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .bath-package-picker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
.bath-package-picker-option {
  display: block;
  cursor: pointer;
  margin: 0;
  position: relative;
}
.bath-package-picker-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  min-height: 72px;
  padding: 12px 8px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bath-package-picker-option:hover .bath-package-picker-option-inner {
  border-color: #c8c8c8;
}
.bath-package-picker-option input:checked + .bath-package-picker-option-inner {
  border-color: var(--color-primary);
  background: rgba(238, 92, 3, 0.09);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.bath-package-picker-option:has(input:focus-visible) .bath-package-picker-option-inner {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.bath-package-picker-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.bath-package-picker-price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.bath-timeline-option-inner {
  min-height: 4.5rem;
  padding-left: 6px;
  padding-right: 6px;
}
.bath-timeline-picker .bath-package-picker-name {
  font-size: 0.8125rem;
  line-height: 1.35;
  max-width: 100%;
}
@media (min-width: 520px) {
  .bath-timeline-picker .bath-package-picker-name {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}
.service-gallery {
  padding: 0 0 var(--section-padding);
}
/* Floating right menu (e.g. bath page) */
.floating-nav-right {
  display: none;
}
@media (min-width: 1024px) {
  .floating-nav-right {
    display: block;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 320px;
    z-index: 100;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    animation: floating-nav-slide-in 0.45s var(--ease-out) forwards;
  }
}
@keyframes floating-nav-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.floating-nav-inner {
  position: sticky;
  top: 24px;
}
.floating-nav-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.floating-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.floating-nav-list li { margin: 0 0 4px; }
.floating-nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.floating-nav-list a:hover {
  background: rgba(238, 92, 3, 0.08);
  color: var(--color-primary);
}
.floating-nav-cta {
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-primary) !important;
  background: rgba(238, 92, 3, 0.1) !important;
}
.floating-nav-cta:hover {
  background: rgba(238, 92, 3, 0.18) !important;
}

/* Bath page: menu scrolls with content (right column) */
.bath-page-main { padding: 0; }
.bath-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
@media (min-width: 1024px) {
  .bath-page-layout {
    grid-template-columns: 1fr 260px;
    gap: 0;
    align-items: start;
  }
}
.bath-page-content {
  min-width: 0;
}
.floating-nav-with-content {
  display: none;
}
@media (min-width: 1024px) {
  .floating-nav-with-content {
    display: block;
    padding: 24px 20px 48px;
    background: var(--color-bg-alt);
    border-left: 1px solid var(--color-border);
    animation: nav-move-right 0.5s var(--ease-out) forwards;
  }
  .floating-nav-with-content .floating-nav-inner {
    position: static;
  }
}
@keyframes nav-move-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-gallery .section-title { margin-bottom: 8px; }
.service-gallery .section-intro { margin-bottom: 24px; }
.service-gallery .transform-grid {
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .service-gallery .transform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: none;
  }
}
.service-gallery .transform-card {
  animation: gallery-card-move 0.55s var(--ease-out) forwards;
  opacity: 0;
}
.service-gallery .transform-card:nth-child(1) { animation-delay: 0.05s; }
.service-gallery .transform-card:nth-child(2) { animation-delay: 0.12s; }
.service-gallery .transform-card:nth-child(3) { animation-delay: 0.19s; }
.service-gallery .transform-card:nth-child(4) { animation-delay: 0.26s; }
.service-gallery .transform-card:nth-child(5) { animation-delay: 0.33s; }
.service-gallery .transform-card:nth-child(6) { animation-delay: 0.4s; }
@keyframes gallery-card-move {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.service-gallery .transform-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: var(--color-bg-alt);
  transform: scale(1.08);
  transition: transform 0.4s var(--ease-out);
}
.service-gallery .transform-card:hover img {
  transform: scale(1.12);
}

/* Legal pages (Terms, Privacy) */
.legal-page {
  padding: var(--section-padding-sm) 0 var(--section-padding);
  min-height: 60vh;
}
.legal-page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.legal-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-page-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}
.legal-prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-prose p {
  margin: 0 0 1.25em;
  color: var(--color-text);
}
.legal-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2em 0 0.6em;
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose ul {
  list-style: disc;
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}
.legal-prose li {
  margin-bottom: 0.5em;
  color: var(--color-text);
}
.legal-prose a:hover { text-decoration: underline; }

/* Multi-step project form (above services) */
.multistep-form-section {
  padding: var(--section-padding-sm) 0;
  background: var(--color-bg-alt);
}
@media (min-width: 768px) {
  .multistep-form-section { padding: var(--section-padding) 0; }
}
.multistep-section-head {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.multistep-section-head[hidden] {
  display: none !important;
}
.multistep-section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.multistep-section-eyebrow[hidden],
.multistep-section-title[hidden],
.multistep-section-lead[hidden] {
  display: none !important;
}
.multistep-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  line-height: 1.25;
}
.multistep-section-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.multistep-step-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
  padding: 0 0.5rem;
}
.multistep-step-strip[hidden] {
  display: none !important;
}
.multistep-step-strip-item {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}
.multistep-step-strip-item.is-done {
  background: rgba(238, 92, 3, 0.1);
  color: var(--color-primary-dark);
  border-color: rgba(238, 92, 3, 0.2);
}
.multistep-step-strip-item.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.multistep-step-subtitle {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.multistep-step-subtitle[hidden],
.multistep-step-help[hidden] {
  display: none !important;
}
.multistep-step-help {
  margin: -0.35rem 0 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.multistep-form-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.multistep-form-progress {
  height: 6px;
  background: rgba(238, 92, 3, 0.15);
  overflow: hidden;
}
.multistep-form-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}
.multistep-form-inner {
  padding: 2rem 1.5rem;
}
@media (min-width: 640px) {
  .multistep-form-inner { padding: 2.5rem 2.5rem; }
}
.multistep-form-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(238, 92, 3, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
}
.multistep-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) {
  .multistep-title { font-size: 2rem; }
}
.multistep-options {
  display: grid;
  gap: 0.75rem;
}
.multistep-options-2 { grid-template-columns: 1fr 1fr; }
.multistep-options-3 { grid-template-columns: repeat(3, 1fr); }
.multistep-options-4 { grid-template-columns: repeat(2, 1fr); }
.multistep-options-inline {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.multistep-options-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .multistep-options-4 { grid-template-columns: repeat(4, 1fr); }
}
.multistep-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 3px solid rgba(238, 92, 3, 0.2);
  border-radius: var(--radius);
  background: rgba(238, 92, 3, 0.06);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.multistep-option:hover {
  border-color: rgba(238, 92, 3, 0.4);
  background: rgba(238, 92, 3, 0.12);
}
.multistep-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(238, 92, 3, 0.35);
}
.multistep-option-emoji {
  font-size: 1.75rem;
  line-height: 1;
}
.multistep-option-row {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}
.multistep-option-row .multistep-option-emoji { font-size: 1.25rem; }
.multistep-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 3px solid rgba(238, 92, 3, 0.2);
  border-radius: var(--radius);
  background: rgba(238, 92, 3, 0.06);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.multistep-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}
.multistep-photos-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}
.multistep-photos-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}
.multistep-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.multistep-photo-item {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
}
.multistep-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.multistep-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.multistep-photo-remove:hover { opacity: 1; }
.multistep-photo-remove svg { width: 10px; height: 10px; }
.multistep-photos-add {
  width: 5rem;
  height: 5rem;
  border: 3px dashed rgba(238, 92, 3, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(238, 92, 3, 0.08);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.multistep-photos-add:hover {
  border-color: var(--color-primary);
  background: rgba(238, 92, 3, 0.15);
  color: var(--color-primary-dark);
}
.multistep-photos-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.multistep-photos-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  font-style: italic;
}
.multistep-group { margin-bottom: 1.5rem; }
.multistep-group:last-of-type { margin-bottom: 0; }
.multistep-group-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.multistep-contact { display: flex; flex-direction: column; gap: 1rem; }
.multistep-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.multistep-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 3px solid rgba(238, 92, 3, 0.2);
  border-radius: var(--radius);
  background: rgba(238, 92, 3, 0.06);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.multistep-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}
.multistep-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.multistep-btn-back {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: color 0.2s;
}
.multistep-btn-back:hover { color: var(--color-text); }
.multistep-nav-spacer { flex: 1; }
.multistep-btn-next,
.multistep-btn-submit {
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 1rem;
}
.multistep-success {
  text-align: center;
  padding: 2rem 0;
}
.multistep-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: rgba(238, 92, 3, 0.15);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.multistep-success-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.multistep-success-text {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.multistep-success-thanks {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}
.multistep-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Blog cards (dynamic) */
.blog-card-media {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-media:hover {
  text-decoration: none;
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-card h3 a:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.blog-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  margin: 24px 0;
}

/* Blog listing page */
.blog-page-hero {
  padding: calc(var(--header-height) + 32px) 0 32px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .blog-page-hero { padding-bottom: 48px; }
}
.blog-page-eyebrow {
  font-size: 0.875rem;
  margin: 0 0 12px;
  color: var(--color-text-muted);
}
.blog-page-eyebrow a {
  color: var(--color-text-muted);
}
.blog-page-eyebrow a:hover {
  color: var(--color-primary);
}
.blog-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
  line-height: 1.2;
}
.blog-page-lead {
  margin: 0;
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.blog-page-list {
  padding-top: var(--section-padding-sm);
}

.blog-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 8px;
}
.blog-toolbar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.blog-toolbar-chip {
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-toolbar-chip:hover {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}
.blog-toolbar-chip.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}
.blog-toolbar-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  width: 100%;
  margin-top: 4px;
}

.blog-featured-block {
  margin-bottom: 28px;
}
.blog-featured-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}
.blog-featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 14px 20px 0;
  line-height: 1.45;
}
.blog-card-meta--simple {
  padding-top: 12px;
  margin: 0;
  font-size: 0.75rem;
}
.blog-card-cat {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.blog-card-cat:hover {
  text-decoration: underline;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 4px;
}
.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.blog-card-tag:hover {
  background: rgba(238, 92, 3, 0.12);
  color: var(--color-primary-dark);
}
.blog-card--featured {
  border-color: rgba(238, 92, 3, 0.35);
  box-shadow: 0 8px 28px rgba(238, 92, 3, 0.1);
}

.blog-grid--main {
  margin-top: 8px;
}

/* Single blog post */
.blog-post-page {
  padding: calc(var(--header-height) + 24px) 0 var(--section-padding-sm);
}
.blog-post-container {
  max-width: 720px;
}
.blog-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.blog-post-meta-bar time {
  font-weight: 500;
  color: var(--color-text-muted);
}
.blog-post-meta-sep {
  opacity: 0.45;
}
.blog-post-meta-bar a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.blog-post-meta-bar a:hover {
  text-decoration: underline;
}
.blog-post-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.blog-post-readtime {
  font-size: 0.8rem;
}
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.blog-post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  text-decoration: none;
}
.blog-post-tag:hover {
  background: rgba(238, 92, 3, 0.12);
  color: var(--color-primary-dark);
}

.blog-post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--color-text);
}
.blog-post-admin-edit {
  margin: 0 0 18px;
}
.blog-post-admin-edit .btn {
  font-size: 0.875rem;
  padding: 8px 16px;
}
.blog-post-series {
  margin: 0 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.blog-post-author {
  font-weight: 600;
  color: var(--color-text-muted);
}
.blog-post-figure {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.blog-post-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}
.blog-article-body p {
  margin: 0 0 1.25em;
}
.blog-article-body p:last-child {
  margin-bottom: 0;
}
.blog-post-error {
  color: var(--color-text-muted);
  margin: 2rem 0;
}
.blog-post-back-wrap {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.blog-related {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.blog-related-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}
.blog-related-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) {
  .blog-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
.blog-related-card {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.blog-related-card a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.blog-related-card a:hover {
  color: var(--color-primary);
}
.blog-related-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}

/* Blog admin */
.admin-blog-body {
  min-height: 100vh;
  background: var(--color-bg-alt);
}
.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-gate-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  max-width: 400px;
  width: 100%;
}
.admin-gate-card h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.admin-gate-card > p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.admin-pin-error {
  color: #b42318;
  font-size: 0.875rem;
  margin: 8px 0 0;
  min-height: 1.25em;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.admin-topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.admin-back {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.admin-back:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.admin-topbar-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 140px;
}
.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.admin-topbar-logout {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0;
}
.admin-topbar-logout:hover {
  color: #b42318;
  text-decoration: none;
}
.admin-main {
  padding: 32px 0 80px;
}
.admin-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.admin-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 720px;
}
.admin-lead code {
  font-size: 0.85em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.admin-status {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  margin: 0 0 20px;
  min-height: 1.25em;
}
.admin-status--error {
  color: #b42318;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.admin-btn-danger-outline {
  border-color: rgba(180, 35, 24, 0.35);
  color: #b42318;
}
.admin-btn-danger-outline:hover {
  background: rgba(180, 35, 24, 0.06);
  border-color: #b42318;
}
.admin-table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.admin-posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-posts-table th,
.admin-posts-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-posts-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}
.admin-posts-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-posts-table code {
  font-size: 0.8rem;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.admin-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}
.admin-badge--on {
  background: rgba(238, 92, 3, 0.12);
  color: var(--color-primary-dark);
}
.admin-btn-edit {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 24, 31, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  padding: 0;
  animation: adminFadeIn 0.2s ease;
}
@keyframes adminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.admin-drawer[hidden] {
  display: none;
}
.admin-drawer-panel {
  width: 100%;
  max-width: 640px;
  background: #fafbfc;
  height: 100%;
  overflow-y: auto;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.12);
  animation: adminSlideIn 0.25s var(--ease-out);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}
@keyframes adminSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fafbfc;
  z-index: 2;
}
.admin-drawer-head h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0;
}
.admin-drawer-close {
  border: none;
  background: var(--color-bg-alt);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}
.admin-drawer-close:hover {
  background: var(--color-border);
}
.admin-post-form {
  padding: 24px 24px 32px;
  background: #fafbfc;
}
.admin-field {
  margin-bottom: 20px;
}
.admin-field-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .admin-field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.admin-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.admin-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.admin-input,
.admin-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}
.admin-textarea {
  resize: vertical;
  min-height: 80px;
}
.admin-textarea--body {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}
.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.admin-post-form .admin-form-section {
  border: none;
  margin: 0;
  padding: 0 0 22px;
  min-width: 0;
}

.admin-post-form .admin-form-section + .admin-form-section {
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.admin-form-section-title {
  padding: 0;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.admin-hint-code {
  font-size: 0.85em;
  font-family: ui-monospace, monospace;
  background: var(--color-bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Log in / Sign up */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  box-sizing: border-box;
}
.auth-page-inner {
  width: 100%;
  max-width: 440px;
}
.auth-card {
  background: white;
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.auth-card--wide {
  max-width: 480px;
  margin: 0 auto;
}
.auth-card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
}
.auth-card-lead {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.auth-card-lead a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-card-lead a:hover { text-decoration: underline; }
.auth-inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--color-bg-subtle, #f4f4f5);
  color: var(--color-text);
  word-break: break-all;
}
.auth-form .admin-field:last-of-type {
  margin-bottom: 12px;
}
.auth-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0 0 16px;
  min-height: 1.25em;
}
.auth-switch {
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}
.auth-switch a {
  font-weight: 600;
}
/* —— Admin dashboard (blog CMS) —— */
.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;
}

.admin-dash-body.admin-blog-body {
  margin: 0;
  min-height: 100vh;
  background: #eceef2;
  --admin-ink: #1a1d24;
  --admin-muted: #5c6370;
  --admin-line: rgba(0, 0, 0, 0.08);
  --admin-surface: #ffffff;
  --admin-sidebar: #252830;
}

.admin-dashboard {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  position: relative;
}

.admin-dash-sidebar {
  /* Fixed rail — min/max stop flex/content from widening the bar */
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--admin-sidebar);
  color: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-dash-sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min-content;
  padding: 6px 3px 8px;
  box-sizing: border-box;
  max-width: 100%;
}

.admin-dash-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
  padding: 0;
}

.admin-dash-brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(238, 92, 3, 0.18);
}

.admin-dash-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.admin-dash-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.5625rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.15;
}

.admin-dash-brand-sub {
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.admin-dash-nav-label {
  display: block;
  font-size: 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 2px 1px;
}

.admin-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}

.admin-dash-nav-link {
  display: block;
  padding: 3px 3px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 0.5625rem;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.admin-dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.admin-dash-nav-link.is-active {
  background: rgba(238, 92, 3, 0.22);
  color: var(--color-primary-light);
  box-shadow: inset 0 0 0 1px rgba(238, 92, 3, 0.28);
}

.admin-dash-nav-link--ghost {
  font-weight: 500;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.48);
}

.admin-dash-nav-link--ghost:hover {
  color: var(--color-primary-light);
}

.admin-dash-sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 5px 1px 6px;
}

.admin-dash-sidebar-spacer {
  flex: 1;
  min-height: 6px;
}

.admin-dash-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 1px;
  width: 100%;
  padding: 4px 3px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-dash-sidebar-logout:hover {
  background: rgba(238, 92, 3, 0.18);
  border-color: rgba(238, 92, 3, 0.35);
  color: var(--color-primary-light);
}

.admin-dash-sidebar-logout-icon {
  opacity: 0.65;
  font-size: 0.55rem;
}

.admin-dash-shell {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eceef2;
}

.admin-dash-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px 10px;
  padding: 0.5rem 1.25rem 0.5rem 1rem;
  min-height: 2.75rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--admin-line);
  flex-wrap: wrap;
  box-sizing: border-box;
}

.admin-dash-topbar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  row-gap: 0.15rem;
}

.admin-dash-breadcrumb {
  margin: 0 0 2px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
}

.admin-dash-topbar-lead {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--admin-muted-2, #5c6470);
  max-width: 40rem;
}

.admin-dash-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--admin-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.admin-dash-btn-new {
  align-self: center;
  margin-top: 0;
  box-sizing: border-box;
  min-width: auto;
  min-height: 2rem;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.2;
}

/* Match outline buttons: primary had no border, so total height/width differed */
.admin-dash-btn-new.btn-primary {
  border: 2px solid transparent;
}

.admin-dash-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 48px 22px;
  scroll-behavior: smooth;
}

.admin-dash-status {
  margin: 16px 0 0;
  max-width: 900px;
  font-size: 0.8125rem;
  color: var(--color-primary-dark);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(238, 92, 3, 0.08);
  border: 1px solid rgba(238, 92, 3, 0.15);
}

.admin-dash-status:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
}
.admin-dash-status.admin-status--error,
.admin-dash-main .admin-status--error {
  background: rgba(180, 35, 24, 0.06);
  border-color: rgba(180, 35, 24, 0.2);
  color: #b42318;
}

.admin-dash-section {
  padding-top: 28px;
  scroll-margin-top: 72px;
}

.admin-dash-section--overview {
  padding-top: 18px;
}

body[data-admin-page="posts"] .admin-dash-section--overview {
  padding-top: 12px;
}

.admin-dash-section-head {
  margin-bottom: 16px;
}

.admin-dash-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
}

.admin-dash-section-head--posts {
  margin-bottom: 10px;
}

.admin-posts-menubar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.admin-posts-heading {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-ink, #1a1d24);
}

.admin-posts-menubar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-posts-menubar-search {
  flex: 1 1 12rem;
  min-width: min(100%, 9rem);
  max-width: 220px;
}

@media (min-width: 720px) {
  .admin-posts-menubar-search {
    margin-left: auto;
  }
}

.admin-posts-search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0 2px 0 10px;
  min-height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-posts-search-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(238, 92, 3, 0.15);
}

.admin-posts-search-icon {
  display: flex;
  color: var(--admin-muted, #5c6370);
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-posts-search-input.admin-dash-search {
  flex: 1;
  min-width: 0;
  padding: 6px 10px 6px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8125rem;
}

.admin-posts-search-input.admin-dash-search:focus {
  outline: none;
  box-shadow: none;
}

.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Segmented status control (like a tab strip) */
.admin-filter-chips--segmented {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #eceef1;
}

.admin-filter-chips--segmented .admin-filter-chip {
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding: 5px 11px;
  font-size: 0.72rem;
  background: transparent;
  color: var(--admin-muted, #5c6370);
}

.admin-filter-chips--segmented .admin-filter-chip:last-child {
  border-right: none;
}

.admin-filter-chips--segmented .admin-filter-chip:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--admin-ink, #1a1d24);
}

.admin-filter-chip {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--admin-muted, #5c6370);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-filter-chip--compact {
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
}

.admin-filter-chip:hover {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--admin-ink, #1a1d24);
}

.admin-filter-chip.is-active {
  background: var(--admin-ink, #1a1d24);
  border-color: var(--admin-ink, #1a1d24);
  color: #fff;
}

.admin-filter-chips--segmented .admin-filter-chip.is-active {
  background: #fff;
  color: var(--admin-ink, #1a1d24);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.admin-filter-chip--compact.is-active {
  background: var(--admin-ink, #1a1d24);
  border-color: var(--admin-ink, #1a1d24);
  color: #fff;
}

.admin-dash-table-caption {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--admin-muted, #5c6370);
}

.admin-dash-section-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.admin-dash-section-desc {
  margin: 0;
  max-width: 640px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.admin-dash-search-label {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}

.admin-dash-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  background: #fff;
  box-shadow: none;
}

.admin-dash-search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(238, 92, 3, 0.15);
}

.admin-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-dash-cards--dashboard {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

@media (min-width: 640px) {
  .admin-dash-cards--dashboard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.admin-dash-dashboard-row {
  margin-bottom: 22px;
}

.admin-dash-panel--dashboard {
  margin: 0;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-dash-panel--dashboard .admin-dash-panel-head {
  margin-bottom: 12px;
}

.admin-dash-forms-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .admin-dash-forms-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dash-forms-stat {
  text-align: center;
  padding: 10px 8px;
  background: #f4f5f7;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-dash-forms-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--admin-ink, #1a1d24);
  line-height: 1.15;
}

.admin-dash-forms-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-muted, #5c6370);
}

.admin-dash-forms-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--admin-muted, #5c6370);
  line-height: 1.45;
}

.admin-dash-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dash-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(238, 92, 3, 0.2);
}

.admin-dash-card--accent {
  border-color: rgba(238, 92, 3, 0.25);
  background: linear-gradient(160deg, #fff 0%, rgba(238, 92, 3, 0.08) 100%);
}

.admin-dash-card-label {
  margin: 0 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.admin-dash-card-value {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.admin-dash-card-value--sm {
  font-size: 1rem;
  font-weight: 700;
}

.admin-dash-card-hint {
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.admin-dash-layout--overview {
  display: block;
}

.admin-dash-layout-main {
  min-width: 0;
}

.admin-dash-meta-line {
  margin: -6px 0 20px;
  font-size: 0.78rem;
  color: var(--admin-muted, #5c6370);
  line-height: 1.5;
}

.admin-dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-dash-panel-head .admin-dash-panel-title {
  margin: 0;
}

.admin-dash-panel-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.admin-dash-panel-link:hover {
  text-decoration: underline;
}

.admin-dash-panel--recent {
  max-width: none;
}

.admin-dash-slug {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  word-break: break-word;
}

.admin-dash-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .admin-dash-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-dash-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px 20px 16px;
}

.admin-dash-panel--recent {
  max-width: 720px;
}

.admin-dash-panel--tip {
  background: linear-gradient(180deg, #fff 0%, #f3f4f7 100%);
}

.admin-dash-panel-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.admin-dash-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-dash-recent-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-dash-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.admin-dash-recent-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-dash-recent-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.8125rem;
}

.admin-dash-recent-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.admin-dash-recent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-dash-recent-link {
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-dash-recent-edit {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f4f7;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.admin-dash-recent-edit:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: rgba(238, 92, 3, 0.06);
  text-decoration: none;
}

.admin-dash-panel-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.admin-dash-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.admin-dash-steps li {
  margin-bottom: 6px;
}

.admin-dash-table-wrap {
  margin-top: 6px;
}

.admin-dash-table-wrap.admin-table-wrap {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-dash-table-wrap .admin-posts-table th,
.admin-dash-table-wrap .admin-posts-table td {
  padding: 10px 12px;
  font-size: 0.8125rem;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.admin-dash-table-wrap .admin-posts-table th {
  font-size: 0.68rem;
  padding: 10px 12px;
  background: #f4f5f7;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.admin-dash-table-wrap .admin-posts-table td {
  background: #fff;
}

.admin-dash-table-wrap .admin-posts-table tbody tr:hover td {
  background: #fafbfc;
}

.admin-dash-table-wrap .admin-posts-table code {
  background: #eef0f3;
}

.admin-dash-td-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--admin-muted, #5c6370);
  font-size: 0.78rem;
}

.admin-dash-td-actions {
  width: 1%;
  text-align: right;
}

.admin-category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
}

.admin-category-filters--menubar:not([hidden]) {
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  max-width: 100%;
}

@media (max-width: 719px) {
  .admin-category-filters--menubar:not([hidden]) {
    flex-basis: 100%;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
}

.admin-category-filters-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-muted, #5c6370);
  margin-right: 2px;
  flex-shrink: 0;
}

.admin-featured-star {
  color: #c9a227;
  font-size: 1rem;
  line-height: 1;
}

.admin-dash-td-cat {
  max-width: 120px;
  color: var(--admin-muted, #5c6370);
  font-size: 0.78rem;
}

.admin-dash-td-tags {
  max-width: 160px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--admin-muted, #5c6370);
  word-break: break-word;
}

.admin-dash-td-feat {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

.admin-btn-icon-text {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--admin-ink, #1a1d24);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-btn-icon-text:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: rgba(238, 92, 3, 0.06);
}

/* Public: hero / modal estimate forms */
.hero-form-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.hero-form-status:empty {
  display: none;
  margin: 0;
}

.hero-form-status--ok {
  color: #0d6832;
  font-weight: 600;
}

.hero-form-status--err {
  color: #b42318;
  font-weight: 600;
}

/* Admin: forms management */
body.admin-forms-page {
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(238, 92, 3, 0.07), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 40%, rgba(30, 58, 95, 0.04), transparent 50%),
    var(--color-bg);
}

.admin-forms-main {
  max-width: 920px;
}

.admin-forms-topbar {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.admin-forms-topbar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: 0 4px 4px 0;
}

.admin-forms-preview-btn {
  font-size: 0.75rem;
  padding: 5px 12px;
  min-height: 2rem;
  border-radius: 8px;
  font-weight: 600;
}

.admin-forms-panel {
  position: relative;
  padding: 22px 22px 24px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(26, 29, 36, 0.05);
  backdrop-filter: blur(8px);
}

.admin-forms-panel .admin-dash-section-head {
  margin-bottom: 18px;
}

.admin-forms-panel .admin-dash-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* URL cards */
.admin-forms-url-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .admin-forms-url-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.admin-forms-url-card {
  padding: 16px 16px 14px;
  background: linear-gradient(165deg, #fff 0%, #fafaf9 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.admin-forms-url-card:focus-within {
  border-color: rgba(238, 92, 3, 0.45);
  box-shadow: 0 0 0 1px rgba(238, 92, 3, 0.15), 0 8px 24px rgba(238, 92, 3, 0.08);
}

.admin-forms-url-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-forms-url-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: linear-gradient(145deg, rgba(238, 92, 3, 0.2), rgba(238, 92, 3, 0.08));
  border: 1px solid rgba(238, 92, 3, 0.25);
  border-radius: 10px;
}

.admin-forms-url-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-ink, #1a1d24);
  margin: 0 0 4px;
  cursor: pointer;
}

.admin-forms-url-lead {
  margin: 0;
  font-size: 0.78rem;
  color: var(--admin-muted, #5c6370);
  line-height: 1.4;
}

.admin-forms-url-input {
  width: 100%;
  font-size: 0.875rem;
}

.admin-forms-url-actions {
  margin-top: 18px;
  padding-top: 4px;
}

/* Flow overview */
.admin-forms-flow-block {
  margin-bottom: 22px;
}

.admin-forms-flow-heading {
  margin-bottom: 12px;
}

.admin-forms-flow-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.admin-forms-flow-h {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-ink, #1a1d24);
  letter-spacing: -0.02em;
}

.admin-multistep-flow {
  margin: 0;
  padding: 18px 16px 20px;
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-multistep-flow-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-multistep-flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-multistep-flow-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-multistep-flow-step:first-child {
  padding-top: 0;
}

.admin-multistep-flow-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3d4f63 0%, #2a3544 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(42, 53, 68, 0.25);
}

.admin-multistep-flow-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.admin-multistep-flow-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--admin-ink, #1a1d24);
  line-height: 1.35;
}

.admin-multistep-flow-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-muted, #5c6370);
  margin-top: 4px;
  font-weight: 500;
}

/* Editor */
.admin-forms-editor-shell {
  margin-top: 8px;
  padding: 18px 16px 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
}

.admin-forms-editor-shell-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-ink, #1a1d24);
  letter-spacing: -0.02em;
}

.admin-multistep-editor {
  max-width: none;
}

body.admin-forms-page .admin-multistep-block {
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s var(--ease-out);
}

body.admin-forms-page .admin-multistep-block[open] {
  box-shadow: 0 4px 20px rgba(26, 29, 36, 0.07);
  border-color: rgba(238, 92, 3, 0.22);
}

body.admin-forms-page .admin-multistep-block summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

body.admin-forms-page .admin-multistep-block summary::-webkit-details-marker {
  display: none;
}

body.admin-forms-page .admin-multistep-block summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
  flex-shrink: 0;
}

body.admin-forms-page .admin-multistep-block[open] summary::before {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(238, 92, 3, 0.25);
}

.admin-multistep-block-inner {
  padding: 0 16px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-multistep-block .admin-field {
  margin-top: 12px;
}

.admin-multistep-hint {
  font-size: 0.72rem;
  color: var(--admin-muted, #5c6370);
  margin: 4px 0 0;
  line-height: 1.4;
}

.admin-multistep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-multistep-actions--strip {
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(238, 92, 3, 0.06) 0%, rgba(238, 92, 3, 0.02) 100%);
  border: 1px solid rgba(238, 92, 3, 0.18);
  border-radius: var(--radius);
  gap: 12px;
}

.admin-forms-inbox-surface {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-forms-panel--inbox .admin-forms-inbox-surface .admin-dash-table-wrap {
  border: none;
  border-radius: 0;
}

body.admin-forms-page .admin-forms-panel--inbox .admin-posts-table thead th {
  background: linear-gradient(180deg, #f4f5f7 0%, #e8eaee 100%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--admin-muted, #5c6370);
  font-weight: 700;
}

@media (max-width: 640px) {
  .admin-forms-panel {
    padding: 16px 14px 18px;
    border-radius: var(--radius);
  }

  .admin-forms-flow-h {
    font-size: 1rem;
  }
}

.admin-multistep-advanced {
  margin-top: 24px;
  padding: 14px 16px;
  background: #fafbfc;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  max-width: 720px;
}
.admin-multistep-advanced-summary {
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}
.admin-multistep-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  min-height: 200px;
}
.admin-textarea.admin-input {
  min-height: 100px;
  resize: vertical;
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-forms-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-forms-source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef0f3;
  color: var(--admin-muted, #5c6370);
}

.admin-forms-source--hero {
  background: rgba(238, 92, 3, 0.12);
  color: var(--color-primary-dark);
}

.admin-forms-source--multistep {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-forms-source--bath {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.admin-forms-summary {
  font-size: 0.8125rem;
  max-width: 320px;
}

.admin-forms-table-wrap[hidden] {
  display: none !important;
}

.admin-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-dash-toolbar .btn {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.admin-dash-toolbar .btn-outline {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.admin-dash-toolbar .btn-outline:hover {
  background: #f8f9fb;
  border-color: rgba(0, 0, 0, 0.14);
}

.admin-dash-data-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 720px;
}

.admin-dash-data-note code {
  font-size: 0.8em;
  background: #bcc1cd;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-dash-data-note--boxed {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 720px;
}

.admin-data-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .admin-data-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.admin-data-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.admin-data-card--risk {
  border-color: rgba(180, 35, 24, 0.12);
  background: linear-gradient(180deg, #fff 0%, rgba(180, 35, 24, 0.03) 100%);
}

.admin-data-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--admin-ink, #1a1d24);
}

.admin-data-card--risk .admin-data-card-icon {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.admin-data-card-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-ink, #1a1d24);
}

.admin-data-card-desc {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--admin-muted, #5c6370);
  line-height: 1.5;
  flex: 1;
}

.admin-data-card-btn {
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 8px 14px;
}

.admin-dash-td-title {
  font-weight: 500;
  max-width: 240px;
}

.admin-dash-td-title--click {
  cursor: pointer;
  color: var(--admin-ink, #1a1d24);
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: 4px;
  outline: none;
}

.admin-dash-td-title--click:hover {
  color: var(--color-primary-dark);
  background: rgba(238, 92, 3, 0.08);
}

.admin-dash-td-title--click:focus-visible {
  box-shadow: 0 0 0 2px rgba(238, 92, 3, 0.45);
}

.admin-dash-nav--site {
  margin-top: 2px;
}

/* Mobile / tablet: hide rail, use topbar menu + off-canvas drawer */
.admin-dash-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 10px 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.admin-dash-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}
.admin-dash-menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 92, 3, 0.4);
}
.admin-dash-menu-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}
.admin-dash-menu-toggle-bars::before,
.admin-dash-menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.admin-dash-menu-toggle-bars::before {
  top: -7px;
}
.admin-dash-menu-toggle-bars::after {
  top: 7px;
}

.admin-dash-backdrop {
  display: none;
}

body.admin-menu-open {
  overflow: hidden;
}

@media (max-width: 879px) {
  .admin-dash-menu-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    margin: 0 6px 0 0;
    border-radius: 8px;
  }

  .admin-dash-menu-toggle-bars,
  .admin-dash-menu-toggle-bars::before,
  .admin-dash-menu-toggle-bars::after {
    width: 18px;
  }

  .admin-dash-menu-toggle-bars::before {
    top: -6px;
  }

  .admin-dash-menu-toggle-bars::after {
    top: 6px;
  }

  .admin-dash-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 350;
    margin: 0;
    padding: 0;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 18, 28, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .admin-dash-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .admin-dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 90vw);
    min-width: 0;
    max-width: none;
    z-index: 360;
    transform: translateX(-100%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    pointer-events: none;
  }

  .admin-dash-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
  }

  /* Readable drawer (same comfort as wide desktop rail) */
  .admin-dash-sidebar .admin-dash-sidebar-inner {
    padding: 16px 14px 20px;
  }

  .admin-dash-sidebar .admin-dash-brand {
    margin-bottom: 16px;
    gap: 8px;
  }

  .admin-dash-sidebar .admin-dash-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .admin-dash-sidebar .admin-dash-brand-name {
    font-size: 0.8125rem;
  }

  .admin-dash-sidebar .admin-dash-brand-sub {
    font-size: 0.65rem;
  }

  .admin-dash-sidebar .admin-dash-nav {
    gap: 2px;
    margin-bottom: 8px;
  }

  .admin-dash-sidebar .admin-dash-nav-link {
    font-size: 0.8125rem;
    padding: 10px 12px;
    line-height: 1.25;
  }

  .admin-dash-sidebar .admin-dash-nav-link--ghost {
    font-size: 0.75rem;
  }

  .admin-dash-sidebar .admin-dash-sidebar-divider {
    margin: 10px 0 12px;
  }

  .admin-dash-sidebar .admin-dash-sidebar-logout {
    padding: 10px 12px;
    font-size: 0.75rem;
    gap: 6px;
  }
}

@media (max-width: 879px) and (prefers-reduced-motion: reduce) {
  .admin-dash-sidebar,
  .admin-dash-backdrop {
    transition: none;
  }
}

@media (min-width: 880px) {
  .admin-dash-sidebar {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }

  .admin-dash-sidebar-inner {
    padding: 16px 14px 20px;
  }

  .admin-dash-brand {
    margin-bottom: 16px;
    gap: 8px;
  }

  .admin-dash-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .admin-dash-brand-name {
    font-size: 0.8125rem;
  }

  .admin-dash-brand-sub {
    font-size: 0.65rem;
  }

  .admin-dash-nav {
    gap: 2px;
    margin-bottom: 8px;
  }

  .admin-dash-nav-link {
    font-size: 0.8125rem;
    padding: 8px 10px;
    line-height: 1.25;
  }

  .admin-dash-nav-link--ghost {
    font-size: 0.75rem;
  }

  .admin-dash-sidebar-divider {
    margin: 10px 0 12px;
  }

  .admin-dash-sidebar-logout {
    padding: 8px 10px;
    font-size: 0.75rem;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .admin-dash-main {
    padding: 0 12px 28px;
  }
  .admin-dash-topbar {
    padding: 0.45rem 10px 0.45rem 8px;
  }
}
