/* Kar Care Yelahanka landing page
   Layout follows hdcarstudio.in. Colours are sampled from the Kar Care logo. */

/* Tokens */
:root {
  --yellow: #FCCB07;              /* logo: car outline + YELAHANKA */
  --yellow-hover: #FFD52E;
  --yellow-glow: rgba(252, 203, 7, 0.45);
  --orange: #FA9705;              /* logo: diamonds */
  --black: #000000;
  --graphite: #141418;
  --white: #FFFFFF;
  --text-body: rgba(0, 0, 0, 0.62);
  --text-muted: #666666;
  --line: #E7E7E7;

  --container: 1196px;
  --gutter: 24px;
  --header-offset: 100px;
  --logo-height: 76px;
  --radius-card: 20px;
  --radius-media: 18px;
  --radius-pill: 999px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, figure { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.section-light :focus-visible { outline-color: var(--black); }

/* Shared pieces */
.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 1.5px;
  background: var(--orange);
  transform: rotate(45deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(32px, 4.3vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-sub {
  max-width: 60ch;
  margin-top: 16px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--text-body);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s, translate 0.35s var(--ease-out);
}
.btn .i { font-size: 16px; }
.btn .i-arrow { stroke-width: 2.5; transition: translate 0.35s var(--ease-out); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 18px var(--yellow-glow);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  box-shadow: 0 0 30px var(--yellow-glow);
  translate: 0 -2px;
}
.btn-primary:hover .i-arrow { translate: 3px 0; }

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

.btn-sm { min-height: 46px; padding: 12px 20px; font-size: 14px; }

.section-cta { margin-top: 34px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  transition: padding 0.35s var(--ease-out);
}
.site-header.is-scrolled .topbar { padding-block: 9px; }

.brand { display: inline-flex; flex: none; border-radius: 8px; }

/* Header and footer logos share one size at every breakpoint and scroll position. */
.logo,
.footer-logo { width: auto; height: var(--logo-height); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
}

.hero-media { position: absolute; inset: 0; z-index: -1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1A1A1F;
  background-image: url("../images/hero-kar-care-yelahanka-studio.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-inner { padding-block: 150px; }

.hero-content { max-width: 1000px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(34px, 3vw + 20px, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line > span { display: inline-block; text-wrap: balance; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-tag {
  position: absolute;
  right: max(106px, calc((100% - var(--container)) / 2));
  bottom: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* Sections */
.section { padding-block: 120px; }
.section-light { background: var(--white); }
/* Two white sections in a row share one gap instead of stacking two. */
.section-light + .section-light { padding-top: 0; }

.section-head { max-width: 100%; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

/* Content is top-aligned so titles line up across each row. */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 44px;
  min-height: 290px;
  padding: 40px 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  transition: border-color 0.35s, box-shadow 0.35s, translate 0.45s var(--ease-out);
}
.service-card:hover {
  translate: 0 -6px;
  border-color: rgba(252, 203, 7, 0.75);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.07);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.service-card p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--black);
  transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease-spring);
}
.icon-tile .i { font-size: 28px; stroke-width: 1.8; }
.service-card:hover .icon-tile { background: var(--black); color: var(--yellow); transform: rotate(-8deg); }

/* Split layout: media + content */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(48px, 6vw, 76px);
}
.split--media-right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split-content { align-self: center; }

/* Each image slot keeps one shape on every screen size, so a single photo size always fits:
   square 1200 x 1200 (default), portrait 1200 x 1500, landscape 1200 x 900. */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-media);
}
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--landscape { aspect-ratio: 4 / 3; }

/* Photo boxes: the photo fills its fixed-shape frame; the colour shows only while it loads */
.media {
  position: absolute;
  inset: 0;
  background-color: #ECECEC;
}
.media--dark { background-color: #1E1E23; }
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Why us */
.feature-list { display: grid; gap: 16px; margin-top: 32px; }

.feature-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: border-color 0.35s, box-shadow 0.35s, translate 0.45s var(--ease-out);
}
.feature-card:hover {
  translate: 0 -3px;
  border-color: rgba(252, 203, 7, 0.75);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}
.feature-card .icon-tile { width: 56px; height: 56px; border-radius: 12px; }
.feature-card .icon-tile .i { font-size: 26px; stroke-width: 1.9; }
.feature-card:hover .icon-tile { background: var(--black); color: var(--yellow); }
.feature-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.feature-card p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* About */
.about { background: var(--graphite); color: var(--white); }
.about .section-sub { color: rgba(255, 255, 255, 0.76); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 5.5vw, 72px);
}
.about-content { align-self: center; }

.checks { display: grid; gap: 24px; margin-top: 40px; }

.check-item { display: flex; align-items: flex-start; gap: 18px; }

.check {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
}
.check .i { font-size: 18px; stroke-width: 3; }

.check-item h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--yellow);
}
.check-item p {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.decade-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}
.decade-card .media-frame { flex: none; border-radius: 14px; }
.decade-body { padding: 30px 20px 18px; }
.decade-title {
  font-size: clamp(38px, 3.9vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--yellow);
}
.decade-sub {
  margin-top: 14px;
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

/* Get in touch */
.contact-head { display: grid; justify-items: center; text-align: center; }
.contact-head .section-title { margin-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(40px, 5.5vw, 72px);
  margin-top: 60px;
}

.map-block { position: relative; display: flex; flex-direction: column; }

.map-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: #EEEEEE;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-directions { position: absolute; right: 16px; bottom: 16px; }

.contact-info { align-self: center; }

.contact-title {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.contact-lede {
  margin-top: 10px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--text-body);
}

.contact-cards { display: grid; gap: 16px; margin-top: 30px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: border-color 0.35s, box-shadow 0.35s, translate 0.45s var(--ease-out);
}
.contact-card:hover {
  translate: 0 -3px;
  border-color: rgba(252, 203, 7, 0.75);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}
.contact-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.contact-card .icon-tile { width: 56px; height: 56px; border-radius: 12px; }
.contact-card .icon-tile .i { font-size: 25px; stroke-width: 1.9; }
a.contact-card:hover .icon-tile,
.contact-main:hover .icon-tile { background: var(--black); color: var(--yellow); }

.contact-text { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.contact-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.contact-value { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--black); }

/* Day ranges and times line up in two columns */
.contact-hours {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 20px;
  margin: 0;
}
.contact-hours div { display: contents; }
.contact-hours dt,
.contact-hours dd { margin: 0; font-size: 17px; line-height: 1.45; }
.contact-hours dt { font-weight: 600; color: var(--black); }
.contact-hours dd { font-weight: 500; color: #333333; }

.contact-action {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #F1F1F1;
  color: var(--black);
  transition: background-color 0.3s, color 0.3s, transform 0.45s var(--ease-spring);
}
.contact-action .i { font-size: 20px; stroke-width: 2.2; }
.contact-action--wa { background: var(--black); color: var(--white); }
.contact-action--wa .i { font-size: 24px; }
a.contact-card:hover .contact-action,
.contact-action--wa:hover { background: var(--yellow); color: var(--black); transform: scale(1.06); }

/* Footer */
.footer {
  padding-block: 84px 41px; /* bottom row sits level with the floating Call / WhatsApp buttons */
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: start;
  gap: 48px;
}

.footer-brand p {
  max-width: 400px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.footer-label {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--yellow);
}

.footer-contact { font-style: normal; }

.footer-links { display: grid; gap: 6px; max-width: 400px; }
.footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
.footer-links a .i { margin-top: 4px; font-size: 17px; color: var(--yellow); }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 60px;
  padding-top: 24px;
  /* Inset only as far as needed to keep the text clear of the corner buttons (24px + 58px + gap) */
  padding-inline: clamp(0px, calc(106px - (100vw - var(--container)) / 2), 82px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.66);
}

.profitcast-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.profitcast-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.profitcast-link:hover { color: var(--yellow); }
.profitcast-link:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Call + WhatsApp */
.quick-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 58px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  transition: box-shadow 0.3s, translate 0.35s var(--ease-out);
}

/* Pulse ring */
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: fab-pulse 2.6s ease-out infinite;
}
.fab--wa::before { animation-delay: 1.3s; }

.fab-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
}
.fab-icon .i { font-size: 26px; }
.fab--call .fab-icon .i { animation: phone-ring 4.5s ease-in-out 2.5s infinite; }
.fab--wa .fab-icon .i { animation: wa-bounce 4.5s ease-in-out 4.75s infinite; }

.fab-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.5s var(--ease-out), opacity 0.3s, padding 0.5s var(--ease-out);
}

@media (hover: hover) and (min-width: 768px) {
  .fab:hover { translate: 0 -2px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34); }
  .fab:hover::before { animation: none; }
  .fab:hover .fab-label { max-width: 160px; opacity: 1; }
  .fab--call:hover .fab-label { padding-right: 22px; }
  .fab--wa:hover .fab-label { padding-left: 22px; }
}

/* Sticky Book Free Inspection + Get Directions bar: mobile only */
.mobile-cta { display: none; }

@keyframes fab-pulse {
  0% { transform: scale(0.92); opacity: 0.75; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes phone-ring {
  0%, 80%, 100% { transform: rotate(0); }
  83% { transform: rotate(-16deg); }
  86% { transform: rotate(14deg); }
  89% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  95% { transform: rotate(-4deg); }
}

@keyframes wa-bounce {
  0%, 82%, 100% { transform: scale(1); }
  87% { transform: scale(1.18); }
  92% { transform: scale(0.94); }
  96% { transform: scale(1.04); }
}

@keyframes fab-shine {
  0% { transform: translateX(-110%); }
  22%, 100% { transform: translateX(110%); }
}

/* Motion: hero intro (html.is-ready is set by main.js once fonts load) */
html.js .site-header,
html.js [data-intro] { opacity: 0; }
html.js .hero-title .line > span { transform: translateY(110%); }
html.js .hero-bg { transform: scale(1.1); }
html.js .quick-actions .fab { opacity: 0; }

html.js.is-ready .site-header { animation: fade-down 0.9s var(--ease-out) both; }
html.js.is-ready [data-intro] { animation: rise 0.95s var(--ease-out) var(--d, 0s) both; }
html.js.is-ready .hero-title .line > span { animation: line-up 1.1s var(--ease-out) var(--d, 0s) both; }
html.js.is-ready .hero-bg { transform: scale(1); transition: transform 6s cubic-bezier(0.2, 0.6, 0.2, 1); }
html.js.is-ready .quick-actions .fab { animation: fab-pop 0.8s var(--ease-spring) 1.2s both; }
html.js.is-ready .quick-actions .fab--wa { animation-delay: 1.35s; }

/* Motion: scroll reveals (main.js adds .is-in as elements enter the viewport) */
html.js [data-reveal] { opacity: 0; }
html.js [data-reveal].is-in { animation: rise 1s var(--ease-out) calc(var(--i, 0) * 110ms) both; }
html.js [data-reveal="left"].is-in { animation-name: rise-left; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-left {
  from { opacity: 0; transform: translate3d(-30px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-down {
  from { opacity: 0; transform: translate3d(0, -24px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(110%); }
  to { transform: none; }
}
@keyframes fab-pop {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.3); }
  to { opacity: 1; transform: none; }
}
@keyframes bar-up {
  from { transform: translate3d(0, 110%, 0); }
  to { transform: none; }
}

/* Tablet landscape */
@media (max-width: 1099.98px) {
  .section { padding-block: 96px; }
  .hero-content { max-width: 760px; }
}

/* Tablet portrait */
@media (max-width: 959.98px) {
  .split,
  .split--media-right,
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 44px; }
  .about-grid { gap: 48px; }

  /* Stacked: heading and copy first, photo after, in every section. */
  .split .media-frame { order: 2; }

  /* Narrow screens show a slice of the wide hero photo; keep the blue Jeep in frame */
  .hero-bg { background-position: 66% center; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
  .service-card { min-height: 270px; padding: 34px 28px; }

  /* Contact details first, map after */
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; }
  .contact-info { order: -1; }
  .map-frame { min-height: 380px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Tablet portrait: the decade card sits side by side instead of a tall stack */
@media (min-width: 600px) and (max-width: 959.98px) {
  .decade-card { flex-direction: row; align-items: center; gap: 8px; }
  .decade-card .media-frame { flex: 0 0 56%; }
  .decade-body { flex: 1 1 auto; padding: 24px 22px; }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root { --gutter: 20px; --header-offset: 84px; --logo-height: 62px; --mobile-bar-h: 73px; --fab-lift: calc(var(--mobile-bar-h) + 14px + env(safe-area-inset-bottom, 0px)); }

  .topbar { justify-content: center; padding-block: 12px; }
  .topbar .btn { display: none; }
  .site-header.is-scrolled .topbar { padding-block: 8px; }

  .section { padding-block: 76px; }

  .hero-inner { padding-block: 128px 232px; }
  .hero-badge { gap: 10px; padding: 9px 16px 9px 14px; font-size: 13px; }
  .hero-title { margin-top: 22px; font-size: clamp(30px, 8.2vw, 40px); }
  /* The sticky bar carries Book Free Inspection and Get Directions on mobile */
  .hero-cta,
  .map-directions { display: none; }
  .hero-tag { right: var(--gutter); bottom: calc(var(--fab-lift) + 54px + 20px); font-size: 14px; }

  .section-title { margin-top: 16px; }
  .section-cta { margin-top: 28px; }

  .contact-head { justify-items: start; text-align: left; }

  /* Room for the floating Call / WhatsApp row between the copyright and the sticky bar */
  .footer { padding-bottom: calc(var(--fab-lift) + 54px + 20px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 44px; padding-inline: 0; }

  /* Floating Call / WhatsApp stay in the corners, lifted above the sticky bar */
  .quick-actions { right: 16px; bottom: var(--fab-lift); left: 16px; }
  .fab { height: 54px; }
  .fab-icon { width: 54px; height: 54px; }
  .fab-icon .i { font-size: 24px; }

  /* Sticky Book Free Inspection + Get Directions bar */
  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 12, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
  /* Content-sized buttons share the spare width, so both labels fit down to 360px */
  .mobile-cta .btn {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    min-height: 52px;
    padding: 12px 8px;
    font-size: clamp(13px, 3.6vw, 14px);
  }
  .mobile-cta .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: none;
  }
  .mobile-cta .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
    transform: translateX(-110%);
    pointer-events: none;
    animation: fab-shine 5s ease-in-out 2s infinite;
  }

  html.js .mobile-cta { transform: translate3d(0, 110%, 0); }
  html.js.is-ready .mobile-cta { animation: bar-up 0.8s var(--ease-out) 0.9s both; }
}

@media (max-width: 599.98px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; gap: 22px; padding: 28px 24px; }
  .service-card .icon-tile { width: 52px; height: 52px; border-radius: 12px; }
  .service-card .icon-tile .i { font-size: 25px; }

  .map-frame { min-height: 320px; }
  .contact-card,
  .contact-main { align-items: flex-start; gap: 14px; }
  .contact-card { padding: 16px; }
  .contact-card .icon-tile { width: 48px; height: 48px; border-radius: 10px; }
  .contact-card .icon-tile .i { font-size: 22px; }
  .contact-value { font-size: 16px; }
  .contact-action { width: 42px; height: 42px; }
  a.contact-card .contact-action { display: none; } /* whole card is the link; give the address room */
  .contact-hours { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .contact-hours dt,
  .contact-hours dd { font-size: 16px; }
  .contact-hours div + div dt { margin-top: 8px; }

  .feature-card { align-items: flex-start; gap: 14px; padding: 16px; }
  .feature-card .icon-tile { width: 48px; height: 48px; border-radius: 10px; }
  .feature-card .icon-tile .i { font-size: 22px; }

  .decade-body { padding: 24px 10px 10px; }
}

/* Reduced motion: keep every state change, drop the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  html.js .hero-bg { transform: none; }
}

@media print {
  .site-header,
  .quick-actions,
  .mobile-cta { display: none; }
  html.js [data-reveal],
  html.js [data-intro],
  html.js .hero-title .line > span { opacity: 1; transform: none; clip-path: none; animation: none; }
}
