/* ==========================================================================
   Plainstar Supply — brand tokens
   ========================================================================== */

:root {
  --color-blue: #1C3194;
  --color-red: #C8102E;
  --color-red-dark: #9C0C22;
  --color-navy: #0D1A5C;
  --color-white: #FFFFFF;
  --color-gray: #F4F4F4;
  --color-ink: #222222;
  --color-border: #E1E3EC;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 3px;
  --max-w: 1200px;

  --dur-fast: 150ms;
  --dur: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}
.section-title--light { color: var(--color-white); }
.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out) 150ms;
}
.section-title.is-visible::after { transform: scaleX(1); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0 0 var(--space-2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  min-height: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), letter-spacing var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { letter-spacing: 2.6px; }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur) var(--ease-out); }

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-18deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
}
.btn-call:hover .icon,
.btn-call:focus-visible .icon,
.mobile-call-bar:hover .icon,
.mobile-call-bar:focus-visible .icon {
  animation: phone-ring 550ms var(--ease-out);
}

.btn-primary {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-call {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-call:hover { background: var(--color-red-dark); }

.btn-lg { min-height: 56px; padding: 0 var(--space-4); font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--space-2);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
@media (min-width: 640px) { .brand-logo { height: 52px; } }
@media (min-width: 1024px) { .brand-logo { height: 64px; } }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.btn-nav { display: none; }
.btn-call { display: none; }
@media (min-width: 640px) {
  .btn-nav { display: inline-flex; }
  .btn-call { display: inline-flex; }
}

section[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  padding-block: var(--space-6);
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-navy);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,26,92,0.45), rgba(13,26,92,0.88));
  pointer-events: none;
}
.flag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Flag motion: one shared wave path morphs through phase keyframes (SMIL),
   so every stripe moves in unison like continuous cloth — straight at the
   pole side, amplitude growing until it whips at the free end, crests
   traveling left to right. */

.flag-star .star-core {
  opacity: 0.8;
  animation: star-breathe 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.flag-star .star-halo {
  opacity: 0.1;
  animation: star-glow 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes star-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes star-glow {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.5; }
}

.flag-sheen {
  animation: sheen-sweep 11s linear infinite;
}
@keyframes sheen-sweep {
  from { transform: translateX(-1100px); }
  to { transform: translateX(2600px); }
}
.hero-content { position: relative; color: var(--color-white); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  font-size: clamp(2.6rem, 1.7rem + 5vw, 5.2rem);
  margin-bottom: var(--space-3);
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  max-width: 58ch;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ==========================================================================
   Products
   ========================================================================== */

.products { background: var(--color-gray); padding-block: var(--space-7); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card--featured { grid-column: span 2; }
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-blue);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: transform var(--dur) var(--ease-out), border-top-width var(--dur) var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); border-top-width: 7px; }
.product-card--featured { border-top-color: var(--color-red); }

.product-photo-frame { border-radius: var(--radius); margin-bottom: var(--space-2); overflow: hidden; }

/* Product photo carousel */
.pcar { position: relative; height: 160px; overflow: hidden; }
.pcar-track { display: flex; height: 100%; transition: transform 350ms var(--ease-out); }
.pcar-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.pcar-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcar-slide--shot { background: #fff; }
.pcar-slide--shot img { object-fit: contain; padding: 12px; }
.pcar-slide--more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: repeating-linear-gradient(135deg, #1C3194 0px, #1C3194 34px, #16226e 34px, #16226e 68px);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  line-height: 1.2;
}
.pcar-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(13,26,92,0.72);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out);
}
.pcar-nav:hover { background: var(--color-red); }
@media (max-width: 767px) {
  .pcar-nav { width: 40px; height: 40px; }
}
.pcar-prev { left: 8px; }
.pcar-next { right: 8px; }
.pcar-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
}
.pcar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background-color var(--dur) var(--ease-out);
}
.pcar-dot.is-on { background: #fff; }

.product-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--color-white);
  background: var(--color-red);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: var(--space-1);
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--color-navy);
}

.spec-list { margin: var(--space-1) 0; display: flex; flex-direction: column; gap: 4px; }
.spec-list li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-blue);
}

.product-card p { margin: 0; color: var(--color-ink); font-size: 0.98rem; }

/* ==========================================================================
   Who We Serve
   ========================================================================== */

.who-we-serve {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy);
  padding-block: var(--space-7);
}
@media (min-width: 1080px) {
  .who-we-serve { padding-block: var(--space-7) calc(var(--space-7) + var(--space-4)); }
}
.serve-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 650ms var(--ease-out);
}
.serve-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,26,92,0.78), rgba(13,26,92,0.5) 45%, rgba(13,26,92,0.78));
  pointer-events: none;
}

.serve-hint {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: calc(var(--space-4) * -1 + 4px) 0 var(--space-4);
}

.serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .serve-grid { grid-template-columns: repeat(3, 1fr); } }

.serve-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 68px;
  text-align: left;
  background: rgba(10, 20, 80, 0.72);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  color: var(--color-white);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.serve-item:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.7); }
.serve-item.is-active { border-color: var(--color-red); background: rgba(10, 20, 80, 0.85); }

.serve-item--featured {
  background: var(--color-red);
  border-color: var(--color-red);
}
.serve-item--featured:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); }
.serve-item--featured.is-active { background: var(--color-red); border-color: var(--color-white); }

/* ==========================================================================
   Why Plainstar
   ========================================================================== */

.why-us { background: var(--color-white); padding-block: var(--space-5); overflow: hidden; }

/* --- spinning star border strips --- */
.star-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
  padding-inline: var(--space-3);
}
@media (min-width: 640px) { .star-strip { gap: 22px; } }
.star-strip--top { margin-bottom: var(--space-6); }
.star-strip--bottom { margin-top: var(--space-6); }
.strip-star {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform-origin: center;
  transform: rotate(var(--spin, 0deg));
}
@media (min-width: 640px) { .strip-star { width: 15px; height: 15px; } }
.strip-star:nth-child(even) { transform: rotate(calc(var(--spin, 0deg) * -1)); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card { border-top: 4px solid var(--color-red); padding-top: var(--space-2); }
.why-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  min-height: 48px;
}
.why-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--color-blue);
  opacity: 0.4;
  line-height: 1;
}
.why-icon { display: flex; align-items: center; }
.why-svg { height: 46px; width: auto; display: block; }
.why-svg--truck { height: 40px; }
.why-svg--cali { height: 54px; }
.why-svg--flag { opacity: 0.55; }

/* icon transform origins for hover motion */
.truck-wheel { transform-box: fill-box; transform-origin: center; }
.mini-flag { transform-box: fill-box; transform-origin: left center; }
.inv-top {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 350ms var(--ease-out);
}
.ca-star { transform-box: fill-box; transform-origin: center; }

.why-card:hover .truck-wheel { animation: wheel-spin 1.1s linear infinite; }
.why-card:hover .mini-flag { animation: mini-flag-wave 1.8s ease-in-out infinite; }
.why-card:hover .inv-top { transform: translateY(-5px); }
.why-card:hover .ca-star { animation: ca-star-shine 1.6s ease-in-out infinite; }

@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes mini-flag-wave {
  0%, 100% { transform: skewX(0deg) scaleX(1); }
  30% { transform: skewX(-5deg) scaleX(0.98); }
  65% { transform: skewX(4deg) scaleX(1.01); }
}
@keyframes ca-star-shine {
  0%, 100% { transform: scale(1); filter: none; }
  50% { transform: scale(1.32); filter: drop-shadow(0 0 3px rgba(200,16,46,0.7)); }
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.why-card p { margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   Service Area
   ========================================================================== */

.service-area {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy);
  padding-block: var(--space-5);
}
@media (min-width: 768px) {
  .service-area { padding-block: var(--space-7); }
}
.area-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 650ms var(--ease-out);
}
.area-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,26,92,0.84), rgba(13,26,92,0.62) 45%, rgba(13,26,92,0.84));
  pointer-events: none;
}
.area-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: center;
}
@media (min-width: 900px) {
  .area-layout {
    grid-template-columns: 1fr minmax(340px, 430px);
    gap: var(--space-6);
    align-items: start;
  }
}

.city-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(15, auto); /* 2 cols on mobile: 15 + 14 */
  grid-auto-columns: 1fr;
  column-gap: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.22);
}
@media (min-width: 900px) {
  .city-list { grid-template-rows: repeat(10, auto); column-gap: var(--space-4); } /* 3 cols: 10 + 10 + 9 */
}
.city-list li {
  border-bottom: 1px solid rgba(255,255,255,0.22);
  color: var(--color-white);
  padding: 10px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
  cursor: default;
  touch-action: manipulation;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
@media (min-width: 900px) {
  .city-list li { padding: 12px 4px; font-size: 1.1rem; }
}
.city-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background-color: rgba(255,255,255,0.55);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  vertical-align: middle;
}
.city-list li.is-active {
  color: var(--color-red);
  padding-left: 10px;
  border-color: var(--color-red);
}
.city-list li.is-active::before { background-color: var(--color-red); transform: scale(1.25); }

.area-map { max-width: 360px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) { .area-map { max-width: 100%; margin-inline: 0; } }
.area-map svg { width: 100%; height: auto; display: block; }
.ca-outline {
  fill: var(--color-blue);
  stroke: rgba(255,255,255,0.65);
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-pin { cursor: pointer; touch-action: manipulation; }
.map-pin .pin-hit { fill: transparent; pointer-events: all; }
.map-pin .pin-dot {
  fill: var(--color-white);
  stroke: var(--color-navy);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.map-pin:hover .pin-dot,
.map-pin:focus-visible .pin-dot,
.map-pin.is-active .pin-dot {
  fill: var(--color-red);
  stroke: var(--color-white);
  transform: scale(1.7);
}
.map-pin:focus-visible .pin-dot { outline: none; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.contact-cta {
  background: var(--color-navy);
  color: var(--color-white);
  padding-block: var(--space-7);
  text-align: center;
  border-top: 4px solid var(--color-red);
}
.contact-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: var(--space-2);
}
.phone-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  color: var(--color-red);
  margin-bottom: var(--space-3);
}
.contact-meta { color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); }
.contact-meta p { margin: 4px 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--color-gray); color: var(--color-ink); padding-block: var(--space-5); border-top: 3px solid var(--color-red); }
@media (max-width: 767px) {
  /* clear the fixed call bar so the last footer line is never hidden */
  .site-footer { padding-bottom: calc(var(--space-5) + 72px); }
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1); }
.footer-inner a { display: inline-block; padding: 6px 8px; }
.footer-logo { display: block; height: 56px; width: auto; margin-bottom: var(--space-1); }
@media (min-width: 640px) { .footer-logo { height: 72px; } }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-red);
  margin: 0;
}
.footer-inner a { color: var(--color-blue); font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }
.footer-copy { opacity: 0.65; font-size: 0.85rem; margin-top: var(--space-2); }

/* ==========================================================================
   Mobile sticky call bar
   ========================================================================== */

.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 56px;
  padding: var(--space-1) var(--space-2);
  padding-bottom: max(var(--space-1), env(safe-area-inset-bottom));
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  touch-action: manipulation;
  transform: translateY(100%);
  transition: transform 550ms var(--ease-out);
}
.mobile-call-bar.is-in { transform: translateY(0); }
.mobile-call-bar .icon { width: 20px; height: 20px; }
@media (min-width: 768px) { .mobile-call-bar { display: none; } }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */

/* Entrance uses animation without a forwards fill: the settled state equals
   the element's normal computed style (opacity 1, transform none), so hover
   and :active transforms are NOT suppressed after the reveal plays. */
.reveal { opacity: 0; }
.reveal.is-visible {
  opacity: 1;
  animation: reveal-in var(--dur) var(--ease-out) backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.reveal-left.is-visible { animation-name: reveal-in-left; }
@keyframes reveal-in-left {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

.reveal-scale.is-visible { animation-name: reveal-in-scale; }
@keyframes reveal-in-scale {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.reveal-spring.is-visible {
  animation-name: reveal-in-spring;
  animation-duration: 480ms;
  animation-timing-function: var(--ease-spring);
}
@keyframes reveal-in-spring {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.product-grid .product-card:nth-child(1) { --delay: 0ms; }
.product-grid .product-card:nth-child(2) { --delay: 60ms; }
.product-grid .product-card:nth-child(3) { --delay: 120ms; }
.product-grid .product-card:nth-child(4) { --delay: 60ms; }
.product-grid .product-card:nth-child(5) { --delay: 120ms; }
.product-grid .product-card:nth-child(6) { --delay: 180ms; }

.serve-grid .serve-item:nth-child(2) { --delay: 60ms; }
.serve-grid .serve-item:nth-child(3) { --delay: 120ms; }
.serve-grid .serve-item:nth-child(4) { --delay: 60ms; }
.serve-grid .serve-item:nth-child(5) { --delay: 120ms; }
.serve-grid .serve-item:nth-child(6) { --delay: 180ms; }

.why-grid .why-card:nth-child(2) { --delay: 60ms; }
.why-grid .why-card:nth-child(3) { --delay: 120ms; }
.why-grid .why-card:nth-child(4) { --delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .section-title::after { transform: scaleX(1); transition: none; }
  .btn:active { transform: none; }
  .btn-call:hover .icon,
  .btn-call:focus-visible .icon,
  .mobile-call-bar:hover .icon,
  .mobile-call-bar:focus-visible .icon { animation: none; }
  .product-card:hover,
  .product-card:hover .product-photo { transform: none; }
  .mobile-call-bar { transform: none; transition: none; }
  .map-pin:hover .pin-dot,
  .map-pin:focus-visible .pin-dot,
  .map-pin.is-active .pin-dot { transform: none; }
  .city-list li.is-active { transform: none; }
  .flag-star .star-core,
  .flag-star .star-halo,
  .flag-sheen { animation: none; }
  .strip-star,
  .strip-star:nth-child(even) { transform: none; }
  .why-card:hover .truck-wheel,
  .why-card:hover .mini-flag,
  .why-card:hover .ca-star { animation: none; }
  .inv-top { transition: none; }
  .why-card:hover .inv-top { transform: none; }
}
