@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');
@import './tokens.css';

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================== VISUAL PLACEHOLDERS ==================== */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 25%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 20%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="dark"] {
  background: linear-gradient(135deg, #3F3F46 0%, #52525B 60%, #71717A 100%);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }

/* ==================== NAVIGATION ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo img { height: 40px; width: auto; }

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.nav-logo-text span {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 1rem 1.25rem 2rem;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  list-style: none;
}

.nav-menu.is-open { transform: translateY(0); }

.nav-menu a {
  display: block;
  padding: .75rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--color-secondary); }

.nav-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1.5rem;
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: .02em;
}

.nav-cta:hover { background: var(--color-accent); transform: scale(1.03); text-decoration: none; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #2D2D30 0%, #3F3F46 45%, #52525B 100%);
  transform-origin: center top;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
}

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

.hero-visual .visual-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: unset;
  opacity: .25;
  background: linear-gradient(135deg, #52525B 0%, #71717A 50%, #D97706 100%);
}

/* Tire tread texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.015) 0px,
    rgba(255,255,255,.015) 4px,
    transparent 4px,
    transparent 24px
  );
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 80px;
  right: 1.25rem;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  padding: .4rem .8rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.25rem 3rem;
  color: #fff;
}

.hero-content h1 { color: #fff; margin-bottom: 1rem; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-secondary);
  margin-bottom: .5rem;
  display: block;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: #52525B; border-color: #52525B; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-amber {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn-amber:hover { background: var(--color-accent); border-color: var(--color-accent); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-outline-amber {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-outline-amber:hover { background: var(--color-secondary); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-white:hover { background: #f4f4f5; border-color: #f4f4f5; }

/* ==================== SECTIONS LABELS ==================== */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-secondary);
  margin-bottom: .75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: #57534E;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ==================== CARDS ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.amber-border { border-left-color: var(--color-secondary); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card h3 { margin-bottom: .5rem; color: var(--color-primary); }

/* ==================== SERVICE CARDS ==================== */
.service-card {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-visual {
  height: 140px;
  background: linear-gradient(135deg, #3F3F46, #52525B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card-body { padding: 1.25rem; }
.service-card-body h3 { color: var(--color-primary); margin-bottom: .5rem; }
.service-card-body p { font-size: .95rem; color: #57534E; }
.service-card-body .price-tag {
  display: inline-block;
  margin-top: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ==================== HIGHLIGHT SECTION ==================== */
.highlight-section {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 2.5rem 2rem;
}

.highlight-section h2 { color: #fff; }
.highlight-section p { color: rgba(255,255,255,.85); }
.highlight-section .section-label { color: var(--color-secondary); }

/* ==================== STAT BAND ==================== */
.stat-band {
  background: var(--color-primary);
  color: #fff;
  padding: 2rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-item span {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin-top: .25rem;
  display: block;
}

/* ==================== CTA STRIP ==================== */
.cta-strip {
  background: var(--color-secondary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-strip h2 { color: #fff; margin-bottom: .75rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ==================== DARK SECTION ==================== */
.section-dark {
  background: #1C1917;
  color: #fff;
  padding: 3rem 0;
}

.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }
.section-dark .section-label { color: var(--color-secondary); }

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
}

.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; }

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}

.contact-line-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contact-line strong { display: block; color: var(--color-secondary); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }

.contact-line a { color: #fff; }
.contact-line a:hover { color: var(--color-secondary); text-decoration: none; }

.contact-form {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  padding: 2rem 1.5rem;
}

.contact-form h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .4rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #D6D3D1;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: #FAFAF9;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ==================== MAP PLACEHOLDER ==================== */
.map-placeholder {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #E7E5E4 0%, #D6D3D1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #78716C;
  font-size: .95rem;
  margin-top: 2rem;
  border: 1px solid #D6D3D1;
}

/* ==================== ABOUT ==================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text .section-label { margin-top: .5rem; }

.value-list {
  list-style: none;
  margin-top: 1.25rem;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #E7E5E4;
  font-size: .95rem;
}

.value-list li:last-child { border-bottom: none; }

.value-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==================== PHONE FLOAT ==================== */
.phone-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50px;
  padding: .75rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 20px rgba(217, 119, 6, .45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone-float:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(217, 119, 6, .6); text-decoration: none; color: #fff; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: #1C1917;
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.1;
}

.footer-logo-sub {
  font-size: .75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand p { font-size: .9rem; opacity: .75; margin-top: .75rem; }

.footer-links h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: .5rem; }
.footer-links ul a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color 0.2s; }
.footer-links ul a:hover { color: var(--color-secondary); text-decoration: none; }

.footer-contact p { font-size: .9rem; line-height: 1.9; }
.footer-contact a { color: var(--color-secondary); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
  opacity: .45;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}

/* ==================== TABLET (≥ 640px) ==================== */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 3rem 2rem 4rem; }
}

/* ==================== DESKTOP (≥ 1024px) ==================== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0;
    transform: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
  }

  .nav-menu a {
    border-bottom: none;
    padding: .4rem .9rem;
    font-size: .95rem;
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    margin-left: .5rem;
    padding: .5rem 1.2rem;
  }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
  }
}

/* ==================== SKIP TO CONTENT ==================== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus { top: .5rem; }

/* ==================== LOT 11 — ANIMATION PASS ==================== */

/* 1. Page slide transition */
@view-transition { navigation: auto; }

@keyframes vtOldOut {
  to { opacity: 0; transform: translateX(-14px); }
}
@keyframes vtNewIn {
  from { opacity: 0; transform: translateX(14px); }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 250ms ease-in vtOldOut; }
  ::view-transition-new(root) { animation: 320ms ease-out vtNewIn; }
}

/* 2. Logo entrance */
@keyframes logoIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-logo { animation: logoIn 0.5s cubic-bezier(.34,1.56,.64,1) both; }
}

/* 3. Nav desktop underline glide */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .nav-menu a:not(.nav-cta) {
    background-image: linear-gradient(var(--color-secondary), var(--color-secondary));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: color 0.2s, background-size 0.3s ease;
  }
  .nav-menu a:not(.nav-cta):hover,
  .nav-menu a:not(.nav-cta)[aria-current="page"] {
    background-size: 100% 2px;
    color: var(--color-secondary);
    text-decoration: none;
  }
}

/* 4. Visual placeholder shimmer */
.visual-placeholder { position: relative; overflow: hidden; }

@keyframes shimmerSweep {
  to { transform: translateX(400%); }
}

@media (prefers-reduced-motion: no-preference) {
  .visual-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.12) 50%,
      rgba(255,255,255,0) 100%
    );
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
  }
  .hero-visual .visual-placeholder::after { animation-duration: 7s; }
}

/* 5. Card hover spring lift */
@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  }
  .card:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 16px 40px rgba(63,63,70,.15);
  }
  .card .feature-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  }
  .card:hover .feature-icon { transform: scale(1.2) rotate(-5deg); }

  .service-card {
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(63,63,70,.15);
  }
}

/* 6. Button click flash */
.btn { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,.2);
    opacity: 0;
    pointer-events: none;
  }
  .btn:not(:active)::after { transition: opacity 0.4s ease; }
  .btn:active::after { opacity: 1; transition: none; }
}

/* 7. Focus ring */
@media (prefers-reduced-motion: no-preference) {
  :focus-visible {
    outline: 2.5px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline-offset 0.15s ease;
  }
}

/* 8. Phone float entrance + ambient glow */
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(217,119,6,.45); }
  50%       { box-shadow: 0 6px 28px rgba(217,119,6,.75); }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-float {
    animation:
      phoneIn  0.6s cubic-bezier(.34,1.56,.64,1) 1.1s both,
      phoneGlow 2s  ease-in-out                  1.7s infinite;
  }
}

/* 9. Enhanced fade-in easing */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    transition: opacity 0.65s cubic-bezier(.4,0,.2,1),
                transform 0.65s cubic-bezier(.22,1,.36,1);
  }
}

/* 10. Scroll-driven section reveal */
@keyframes sectionReveal {
  from { opacity: .5; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cta-strip {
      animation: sectionReveal 0.55s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .highlight-section {
      animation: sectionReveal 0.6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .stat-band {
      animation: sectionReveal 0.5s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* 11. Hero badge pulse */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: badgePulse 2.5s ease-in-out infinite; }
}

/* 12. Hero content staggered entrance */
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow     { animation: heroContentIn 0.70s cubic-bezier(.22,1,.36,1) 0.30s both; }
  .hero-content h1  { animation: heroContentIn 0.75s cubic-bezier(.22,1,.36,1) 0.44s both; }
  .hero-content > p { animation: heroContentIn 0.70s cubic-bezier(.22,1,.36,1) 0.58s both; }
  .hero-actions     { animation: heroContentIn 0.65s cubic-bezier(.22,1,.36,1) 0.72s both; }
}

/* 13. Service card icon bounce on hover */
@media (prefers-reduced-motion: no-preference) {
  .service-card-visual span {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(.22,1,.36,1);
  }
  .service-card:hover .service-card-visual span {
    transform: translateY(-6px) scale(1.15);
  }
}

/* 14. Button scale on hover (1.04 — replaces GSAP btn scale) */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px) scale(1.04); }
}

/* 15. CTA shimmer sweep on .btn-amber */
@keyframes ctaShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-amber {
    background-image: linear-gradient(
      105deg,
      var(--color-secondary) 40%,
      color-mix(in srgb, var(--color-secondary) 70%, #fff) 50%,
      var(--color-secondary) 60%
    );
    background-size: 200% auto;
    background-position: -200% center;
    transition: background-position 0s, transform 0.15s, box-shadow 0.2s;
  }
  .btn-amber:hover {
    background-position: 200% center;
    transition: background-position 0.6s ease, transform 0.15s, box-shadow 0.2s;
  }
}
