/* ==========================================================================
   The Detailing Mafia Poonamallee | Landing Page
   Layout follows hdcarstudio.in. Palette is sampled from the logo, which uses
   exactly three inks: #FF0000, #000000 and #FFFFFF.
   ========================================================================== */

:root{
  /* brand, from the logo */
  --red:        #FF0000;   /* logo red: large fills, icons, glows */
  --red-600:    #E00000;   /* hover, and fills behind small white text (5.0:1) */
  --red-700:    #B80000;   /* pressed */
  --red-ink:    #C40000;   /* red text on white (6.3:1) */
  --red-glow:   rgba(255, 0, 0, .5);

  --ink:        #0A0A0A;
  --ink-2:      #111111;   /* dark band */
  --black:      #000000;   /* footer */
  --muted:      #585858;   /* secondary text on white (7.1:1) and on the tint (6.6:1) */
  --line:       #E6E6E6;
  --line-dark:  rgba(255, 255, 255, .14);
  --surface:    #FFFFFF;
  --tint:       #F5F5F5;   /* alternating light band */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1196px;
  --gutter: 24px;
  --section-pad: clamp(76px, 9vw, 120px);
  --logo-h: 72px;           /* header and footer logo, always the same */
  --radius-card: 20px;
  --radius-media: 18px;

  --ease-out:    cubic-bezier(.22, 1, .36, 1);   /* quint */
  --ease-expo:   cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  /* z-index scale */
  --z-header: 100;
  --z-progress: 110;
  --z-float: 200;
  --z-skip: 400;
}

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

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
body{
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Both elements, or mobile browsers still widen the layout viewport to fit
   anything that pokes past the edge. `clip` (unlike `hidden`) does not turn
   body into a scroll container, so position: sticky keeps working. */
@supports (overflow: clip){ html, body{ overflow-x: clip; } }

img, picture, svg{ display: block; max-width: 100%; }
/* Safety net: an image squeezed by max-width keeps its proportions. Every image
   on the page today is sized by a class rule, which wins over this one. */
img{ height: auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p{ overflow-wrap: break-word; }
p{ text-wrap: pretty; }
address{ font-style: normal; }
::selection{ background: var(--red); color: #fff; }

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap{ white-space: nowrap; }

.skip-link{
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: 10px;
  background: var(--red-600); color: #fff; font-weight: 700;
  transition: top .3s var(--ease-out);
}
.skip-link:focus{ top: 12px; }

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

/* ============================== shared type ============================== */
.pill{
  display: inline-flex; align-items: center;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--red-600);
  color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
}

.section-title{
  margin: 18px 0 0;
  font-size: clamp(30px, calc(2.6vw + 16px), 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-sub{
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ============================== buttons ============================== */
.btn{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .005em;
  white-space: nowrap;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .45s var(--ease-out),
    box-shadow .45s var(--ease-out),
    background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn svg{ width: 18px; height: 18px; flex: none; }
.btn-sm{ min-height: 46px; padding: 0 20px; font-size: 14.5px; }

.btn-primary{
  overflow: hidden;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px -12px var(--red-glow);
}
/* light sweep on hover */
.btn-primary::after{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn .arrow{ transition: transform .45s var(--ease-out); }

.btn-ghost{
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .04);
}
.btn-dark{
  background: var(--ink);
  color: #fff;
}

@media (hover: hover){
  .btn-primary:hover{
    background: var(--red-600);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px var(--red-glow);
  }
  .btn-primary:hover::after{
    transform: translateX(120%);
    transition: transform .9s var(--ease-out);
  }
  .btn:hover .arrow{ transform: translateX(4px); }
  .btn-ghost:hover{ background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
  .btn-dark:hover{ background: #262626; transform: translateY(-2px); }
}
.btn:active{ transform: translateY(0) scale(.97); }
.btn-primary:active{ background: var(--red-700); }

/* ============================== scroll progress ============================== */
.scroll-progress{
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-progress);
  height: 3px; pointer-events: none;
}
.scroll-progress span{
  display: block; height: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ============================== header ============================== */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  transition:
    background-color .45s var(--ease-out),
    box-shadow .45s var(--ease-out),
    -webkit-backdrop-filter .45s var(--ease-out),
    backdrop-filter .45s var(--ease-out);
}
.topbar{
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  transition: padding .45s var(--ease-out);
}
/* The logo height comes from --logo-h, the same token the footer logo uses,
   so the two are always identical. It does not shrink on scroll. */
.brand{
  position: relative;
  display: block;
  flex: none;
  height: var(--logo-h);
  aspect-ratio: 791 / 558;
}
.brand-logo,
.brand-logo img{ position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-logo{ transition: opacity .45s var(--ease-out); }
.brand-logo--dark{ opacity: 0; }

/* scrolled: the header turns white and the original logo takes over */
.site-header.is-scrolled{
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 40px -28px rgba(0, 0, 0, .45);
}
.site-header.is-scrolled .topbar{ padding-block: 10px; }
.site-header.is-scrolled .brand-logo--light{ opacity: 0; }
.site-header.is-scrolled .brand-logo--dark{ opacity: 1; }

/* ============================== hero ============================== */
.hero{
  position: relative;
  display: flex; align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  /* 40px blurred preview of hero-banner.jpg (~500 bytes): shows until the photo arrives,
     so the hero is never a black box while loading */
  background: #070707 url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA4KCw0LCQ4NDA0QDw4RFiQXFhQUFiwgIRokNC43NjMuMjI6QVNGOj1OPjIySGJJTlZYXV5dOEVmbWVabFNbXVn/2wBDAQ8QEBYTFioXFypZOzI7WVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVn/wAARCAAWACgDASIAAhEBAxEB/8QAGgABAQACAwAAAAAAAAAAAAAAAAQDBQECBv/EACQQAAICAgEEAQUAAAAAAAAAAAECAAMEEQUSITFBBhMiUmGR/8QAFgEBAQEAAAAAAAAAAAAAAAAAAQAC/8QAGBEBAQADAAAAAAAAAAAAAAAAAQARITH/2gAMAwEAAhEDEQA/AO9KoMW2sqrBx7Egs4mq1Qugo3vtMHDZXXikPYWZWPdj6l9t46QFYb343LFLQYubncG7ri39dQPephtZtW+V8hcFKY9a/l2J0P7NXmEsK18s7elkOPXTa9jMuSG0SdjSwFe0lgyMR7MhrXUAk7KJ27GIpuUciqlie5H6iNXoqMGipHZKkHqVrSiMoCKOoeh4iIWqfksB82sLXZ9F6zsMs1GRx+fb9rZ7ED0dxEiU0Nxh8KVuFljqxHjW4iIMF//Z") 50% 50% / cover no-repeat;
}
.hero-media{ position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slides{ position: absolute; inset: -4% 0; }
.slide{
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.12);
  clip-path: inset(0 0 0 100%);
}
.slide.is-active{ opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
.slide.is-leaving{ z-index: 1; opacity: 1; transform: scale(1); clip-path: inset(0 100% 0 0); }
/* a single banner is on screen from the first paint (no wipe in from black);
   it only settles from a slight zoom */
.slide:only-child{ opacity: 1; clip-path: none; }
.slide picture,
.slide img{ display: block; width: 100%; height: 100%; }
.slide img{ object-fit: cover; object-position: 50% 50%; }
html:not(.js) .slide:first-child{ opacity: 1; transform: none; clip-path: none; }

.hero-overlay{
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .74) 38%, rgba(0, 0, 0, .5) 62%, rgba(0, 0, 0, .22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 24%, transparent 66%, rgba(0, 0, 0, .62) 100%);
}

.hero-inner{ padding-top: 150px; padding-bottom: 150px; }
.hero-content{ max-width: 880px; }

.hero-badge{
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.hero-badge-dot{
  position: relative;
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--red);
}
.hero-badge-dot::after{
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
}

.hero-title{
  margin: 26px 0 0;
  font-size: clamp(34px, calc(3vw + 22px), 60px);   /* ~45px at 768, ~53px at 1024, 60px from 1280 */
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.034em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55);
}
.hero-title .line{
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero-title .line > span{ display: inline-block; }
.line--accent{ color: var(--red); }

.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-foot{ position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 48px); }
.hero-foot .container{ display: flex; justify-content: flex-end; }
.hero-indicators{ display: flex; align-items: center; gap: 14px; }
.indicator-rule{
  position: relative; overflow: hidden;
  width: 2px; height: 26px; border-radius: 2px;
  background: rgba(255, 255, 255, .24);
}
.indicator-rule i{
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleY(0); transform-origin: top;
}
.indicator-rule i.is-running{ animation: ruleFill var(--slide-ms, 5200ms) linear both; }
.indicator-list{ position: relative; display: block; width: 240px; height: 24px; overflow: hidden; }
.indicator-list span{
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  position: absolute; inset: 0;
  display: flex; align-items: center;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.indicator-list span.is-active{ opacity: 1; transform: none; }
.indicator-list span.is-leaving{ opacity: 0; transform: translateY(-100%); }

@keyframes ruleFill{ to{ transform: scaleY(1); } }

/* ============================== sections ============================== */
.section{ padding-block: var(--section-pad); background: var(--surface); }
.section--tint{ background: var(--tint); }

.section-head{ display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- services ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 60px);
}
/* content sits at the top so titles line up across a row whatever the copy length */
.service-card{
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 46px;
  padding: 40px 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  transition: transform .5s var(--ease-out), border-color .35s ease, box-shadow .5s var(--ease-out);
}
.service-card h3{ margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
.service-card p{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.icon-tile{
  display: grid; place-items: center; flex: none;
  width: 58px; height: 58px;
  border-radius: 15px;
  background: var(--red);
  color: #fff;
  transition: transform .55s var(--ease-out), background-color .35s ease;
}
.icon-tile svg{ width: 28px; height: 28px; }

@media (hover: hover){
  .service-card:hover{
    transform: translateY(-6px);
    border-color: rgba(255, 0, 0, .35);
    box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .3);
  }
  .service-card:hover .icon-tile{ background: var(--ink); transform: rotate(-8deg) scale(1.06); }
}

/* ---------- split (image + copy) ---------- */
.split{
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
}
.split--reverse{ grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
.split-media{
  position: relative;
  overflow: hidden;
  aspect-ratio: 500 / 519;
  border-radius: var(--radius-media);
}
.split-media--tall{ aspect-ratio: 500 / 626; }
.split-media > picture{ position: absolute; inset: 0; display: block; }
.split-media img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.split-content .section-head{ align-items: flex-start; }

.feature-cards{ 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: #fff;
  transition: transform .5s var(--ease-out), border-color .35s ease, box-shadow .5s var(--ease-out);
}
.feature-card .icon-tile{ width: 54px; height: 54px; border-radius: 13px; }
.feature-card .icon-tile svg{ width: 25px; height: 25px; }
.feature-text{ min-width: 0; }
.feature-card h3{ margin: 0 0 3px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.feature-card p{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (hover: hover){
  .feature-card:hover{
    transform: translateY(-3px);
    border-color: rgba(255, 0, 0, .35);
    box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .3);
  }
  .feature-card:hover .icon-tile{ background: var(--ink); transform: rotate(-8deg); }
}

/* ---------- about (dark) ---------- */
.about{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section-pad);
  background: var(--ink-2);
  color: #fff;
}
.about::before{
  content: ""; position: absolute; z-index: -1;
  top: -460px; right: -320px;
  width: 960px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 0, 0, .17), transparent);
  pointer-events: none;
}
.about .section-sub{ color: rgba(255, 255, 255, .76); }

.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: stretch;
  gap: clamp(40px, 6vw, 80px);
}
.about-features{ display: grid; gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.about-feature{ display: flex; align-items: flex-start; gap: 18px; }
.check{
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; margin-top: 1px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.check svg{ width: 17px; height: 17px; }
.about-feature h3{ margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.about-feature p{ margin: 0; color: rgba(255, 255, 255, .74); font-size: 15.5px; line-height: 1.65; }

.stat-card{
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(32px, 4.6vw, 60px);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.stat-title{
  margin: 0;
  color: var(--red);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.stat-sub{
  margin: 16px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
.stat-list{ margin: auto 0 0; padding: 36px 0 0; list-style: none; }
.stat-row{
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 16.5px; font-weight: 600; line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}
.stat-row:last-child{ padding-bottom: 0; }
.stat-row .dot{
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.stat-row .dot svg{ width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}
.faq-intro{ position: sticky; top: 120px; }
.faq-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.faq-list{ display: grid; gap: 14px; }
.faq-item{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .35s ease, box-shadow .5s var(--ease-out);
}
.faq-item.is-open{ border-color: rgba(255, 0, 0, .38); box-shadow: 0 24px 44px -32px rgba(0, 0, 0, .35); }
.faq-q{ margin: 0; font-size: inherit; }
.faq-q button{
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%;
  padding: 20px 20px 20px 24px;
  border-radius: 16px;
  text-align: left;
  font-size: 16.5px; font-weight: 700; line-height: 1.45;
  color: var(--ink);
  transition: color .3s ease;
}
.faq-icon{
  position: relative; flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #F1F1F1;
  transition: background-color .35s ease, transform .55s var(--ease-out);
}
.faq-icon::before,
.faq-icon::after{
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .55s var(--ease-out), background-color .35s ease;
}
.faq-icon::after{ transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon{ background: var(--red); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after{ background: #fff; }
.faq-item.is-open .faq-icon::after{ transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover){
  .faq-q button:hover{ color: var(--red-ink); }
  .faq-item:not(.is-open) .faq-q button:hover .faq-icon{ background: #E6E6E6; }
}

.faq-a{ display: grid; grid-template-rows: 1fr; }
.faq-a-inner{ overflow: hidden; }
.faq-a p{ margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* collapsed state only exists with JS, so the answers stay readable without it */
.js .faq-a{ grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.js .faq-item.is-open .faq-a{ grid-template-rows: 1fr; }
.js .faq-a-inner{ visibility: hidden; transition: visibility 0s linear .55s; }
.js .faq-item.is-open .faq-a-inner{ visibility: visible; transition-delay: 0s; }
.js .faq-a p{ opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .5s var(--ease-out); }
.js .faq-item.is-open .faq-a p{ opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- contact ---------- */
.contact-head{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-head .section-title{ margin-top: 0; }
.contact-head .section-sub{ margin-inline: auto; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.map{ position: relative; min-height: 460px; }
.map-inner{
  position: absolute; inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: #E8E8EA;
}
.map iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open{ position: absolute; right: 16px; bottom: 16px; z-index: 1; }

.contact-right{ display: flex; flex-direction: column; justify-content: center; }
.contact-right h3{
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em;
}
.contact-right .lede{ margin: 10px 0 28px; color: var(--muted); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; }
.contact-cards{ display: grid; gap: 14px; }

.contact-card{ position: relative; }
.card-label{ display: block; margin-bottom: 3px; color: var(--red-ink); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.card-value,
.contact-card address{ display: block; color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.5; text-wrap: balance; }
.stretched{ position: static; }
.stretched::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible{ outline: none; }
.contact-card:has(.stretched:focus-visible){ outline: 2px solid var(--red); outline-offset: 3px; }

.card-go,
.card-wa{
  display: grid; place-items: center; flex: none;
  margin-left: auto;
  border-radius: 50%;
  transition: background-color .3s ease, color .3s ease, transform .5s var(--ease-out);
}
.card-go{ width: 42px; height: 42px; background: #F1F1F1; color: var(--ink); }
.card-go svg{ width: 18px; height: 18px; }
.card-wa{ position: relative; z-index: 1; width: 48px; height: 48px; background: var(--ink); color: #fff; }
.card-wa svg{ width: 22px; height: 22px; }
@media (hover: hover){
  .contact-card:hover .card-go{ background: var(--red); color: #fff; transform: translate(2px, -2px); }
  .card-wa:hover{ background: var(--red); transform: scale(1.06); }
}

/* ============================== footer ============================== */
.footer{ padding: clamp(64px, 7vw, 84px) 0 32px; background: var(--black); color: #fff; }
.footer-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: start;
  gap: 48px;
}
.footer-logo{ display: block; height: var(--logo-h); aspect-ratio: 791 / 558; }
.footer-logo img{ width: 100%; height: 100%; }
.footer-brand p{ margin: 26px 0 0; max-width: 400px; color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.6; }

.footer-label{ margin: 0 0 12px; color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.footer-contact{ font-style: normal; }
.footer-links{ display: grid; gap: 6px; max-width: 400px; margin: 0; padding: 0; list-style: none; }
.footer-links a{
  display: inline-flex; align-items: flex-start; gap: 12px;
  /* 44px tall tap area for the phone number; the negative margin takes the
     extra padding back out, so the layout is exactly what 6px gave. */
  padding-block: 9px; margin-block: -3px;
  color: rgba(255, 255, 255, .9);
  font-size: 16px; line-height: 1.6;
  transition: color .25s ease;
}
.footer-links .i{ flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--red); }
@media (hover: hover){ .footer-links a:hover{ color: var(--red); } }

.footer-bottom{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .66);
  font-size: 14.5px;
}
.footer-bottom p{ margin: 0; text-wrap: balance; }
.profitcast-link{ position: relative; color: rgba(255, 255, 255, .85); transition: color .25s ease; }
.profitcast-link::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--red);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease-out);
}
@media (hover: hover){
  .profitcast-link:hover{ color: var(--red); }
  .profitcast-link:hover::after{ transform: scaleX(1); transform-origin: left center; }
}

/* ============================== floating call + WhatsApp ============================== */
.fab{
  position: fixed; bottom: 28px; z-index: var(--z-float);
  display: flex; align-items: center;
  height: 60px; padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 34px -14px var(--red-glow), 0 8px 18px -8px rgba(0, 0, 0, .35);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity .5s var(--ease-out),
    transform .9s var(--ease-expo),
    background-color .3s ease,
    box-shadow .45s var(--ease-out);
}
.fab--call{ left: 28px; }
.fab--wa{ right: 28px; flex-direction: row-reverse; }
.fab::before,
.fab::after{
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid var(--red);
  opacity: 0;
  pointer-events: none;
}
.fab-ico{ display: grid; place-items: center; width: 24px; height: 24px; }
.fab-ico svg{ width: 24px; height: 24px; }
.fab-label{
  display: block;
  max-width: 0; overflow: hidden;
  opacity: 0;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: max-width .55s var(--ease-out), opacity .3s ease, margin .55s var(--ease-out);
}
.fab:focus-visible{ outline-offset: 5px; }
@media (hover: hover){
  .fab:hover{ background: var(--red-600); box-shadow: 0 20px 40px -14px var(--red-glow), 0 8px 18px -8px rgba(0, 0, 0, .35); }
  .fab:hover .fab-label{ max-width: 120px; opacity: 1; }
  .fab--call:hover .fab-label{ margin-left: 10px; }
  .fab--wa:hover .fab-label{ margin-right: 10px; }
  .fab:hover::before,
  .fab:hover::after{ animation: none; opacity: 0; }
}
.fab:active{ transform: scale(.95); }

/* ============================== sticky mobile CTA bar ============================== */
.mobile-bar{ display: none; }
/* content-sized buttons share the spare width, so both labels fit down to 320px */
.mb-btn{
  position: relative;
  overflow: hidden;
  display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px;
  min-width: 0;
  min-height: 52px;
  padding: 12px 8px;
  border-radius: 999px;
  font-size: clamp(13px, 3.6vw, 14px); font-weight: 700; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-out), background-color .3s ease;
}
.mb-btn svg{ width: 16px; height: 16px; flex: none; }
.mb-btn--book{ background: var(--red); color: #fff; }
.mb-btn--directions{ background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .8); }
.mb-btn:active{ transform: scale(.97); }
.mb-btn--directions:active{ background: rgba(255, 255, 255, .1); }
.mb-btn--book::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .42) 50%, transparent 65%);
  transform: translateX(-120%);
}

/* ============================== motion ============================== */
@media (prefers-reduced-motion: no-preference){

  /* header drops in on load */
  .js .site-header{ animation: headerIn 1s var(--ease-expo) both; }

  /* hero: the banner settles from a slow zoom, the copy rises line by line */
  .slide{ transition: opacity .9s var(--ease-out), clip-path 1.4s var(--ease-in-out), transform 9s linear; }
  .slide.is-leaving{ transition: clip-path 1.4s var(--ease-in-out), transform 9s linear; }

  /* The copy's entrance is pure CSS, so it plays from the first paint even when
     main.js is slow to arrive on a mobile connection. */
  .js .hero [data-hero]{ animation: heroIn 1.1s var(--ease-expo) var(--hd, 0ms) both; }
  .js .hero-title .line > span{ animation: lineIn 1.25s var(--ease-expo) var(--hd, 0ms) both; }
  .hero-badge-dot::after{ animation: dotPulse 2.4s var(--ease-out) 1.2s infinite; }

  /* scroll reveals: each type fits what it reveals */
  .js [data-reveal]{
    transition-property: opacity, transform, filter, clip-path;
    transition-duration: 1s;
    transition-timing-function: var(--ease-expo);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal]:not(.is-in){ opacity: 0; }
  .js [data-reveal="rise"]:not(.is-in){ transform: translate3d(0, 30px, 0); }
  .js [data-reveal="blur"]:not(.is-in){ transform: translate3d(0, 18px, 0); filter: blur(10px); }
  .js [data-reveal="left"]:not(.is-in){ transform: translate3d(-32px, 0, 0); }
  /* never further than the smallest gutter (20px), so nothing starts off-canvas */
  .js [data-reveal="right"]:not(.is-in){ transform: translate3d(20px, 0, 0); }
  .js [data-reveal="pop"]:not(.is-in){ transform: scale(.8); }
  .js [data-reveal="scale"]:not(.is-in){ transform: translate3d(0, 24px, 0) scale(.95); }
  .js [data-reveal="card"]:not(.is-in){ transform: translate3d(0, 56px, 0) scale(.97); }
  .js [data-reveal="card"] .icon-tile{ transition: transform .8s var(--ease-expo) calc(var(--d, 0ms) + 220ms), background-color .35s ease; }
  .js [data-reveal="card"]:not(.is-in) .icon-tile{ transform: scale(.4) rotate(-25deg); }

  /* map: a clip-path wipe while it settles from a zoom (the section photos
     have no entrance). The wipe sits on the first child, never on the observed wrapper:
     IntersectionObserver counts a fully clipped target as not intersecting,
     so clipping the wrapper itself would stop the reveal from ever firing. */
  .js [data-reveal^="wipe"]:not(.is-in){ opacity: 1; }
  .js [data-reveal^="wipe"] > :first-child{
    clip-path: inset(0 0 0 0 round var(--radius-media));
    transition:
      clip-path 1.35s var(--ease-in-out) var(--d, 0ms),
      transform 1.9s var(--ease-expo) var(--d, 0ms);
  }
  .js [data-reveal^="wipe"]:not(.is-in) > :first-child{ transform: scale(1.2); }
  .js [data-reveal="wipe-up"]:not(.is-in) > :first-child{ clip-path: inset(100% 0 0 0 round var(--radius-media)); }

  /* floating buttons and the phone bar arrive just after the hero copy. Pure CSS
     (not waiting on main.js); the backwards fill only holds the start state during
     the delay, so the buttons' own :active and hover transforms work afterwards. */
  .js .fab{ animation: fabIn .9s var(--ease-expo) 1s backwards; }

  /* floating buttons: ripple rings and a periodic nudge */
  .fab.is-visible::before{ animation: fabRipple 2.8s var(--ease-out) infinite; }
  .fab.is-visible::after{ animation: fabRipple 2.8s var(--ease-out) .95s infinite; }
  .fab--wa.is-visible::before{ animation-delay: 1.4s; }
  .fab--wa.is-visible::after{ animation-delay: 2.35s; }
  .fab--call.is-visible .fab-ico{ animation: phoneRing 4.2s ease-in-out 1.6s infinite; }
  .fab--wa.is-visible .fab-ico{ animation: iconPulse 4.2s var(--ease-out) 3.7s infinite; }

  /* mobile bar */
  .mobile-bar.is-visible .mb-btn--book::after{ animation: sheen 4s var(--ease-in-out) 1.4s infinite; }
}

@keyframes headerIn{ from{ opacity: 0; transform: translate3d(0, -18px, 0); } to{ opacity: 1; transform: none; } }
@keyframes heroIn{
  from{ opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
  to{ opacity: 1; transform: none; filter: blur(0); }
}
@keyframes lineIn{ from{ transform: translate3d(0, 108%, 0); } to{ transform: none; } }
@keyframes dotPulse{ 0%{ opacity: .7; transform: scale(.6); } 100%{ opacity: 0; transform: scale(1.9); } }
@keyframes fabIn{ from{ opacity: 0; transform: translate3d(0, 28px, 0) scale(.6); } to{ opacity: 1; transform: none; } }
@keyframes barUp{ from{ transform: translate3d(0, 110%, 0); } to{ transform: none; } }
@keyframes fabRipple{ 0%{ opacity: .6; transform: scale(1); } 100%{ opacity: 0; transform: scale(1.65); } }
@keyframes phoneRing{
  0%, 14%, 100%{ transform: rotate(0); }
  2%{ transform: rotate(-16deg); }
  4%{ transform: rotate(14deg); }
  6%{ transform: rotate(-12deg); }
  8%{ transform: rotate(9deg); }
  10%{ transform: rotate(-5deg); }
  12%{ transform: rotate(2deg); }
}
@keyframes iconPulse{ 0%, 14%, 100%{ transform: scale(1); } 6%{ transform: scale(1.2); } }
@keyframes sheen{ 0%{ transform: translateX(-120%); } 45%, 100%{ transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .slide:first-child{ opacity: 1; transform: none; clip-path: none; }
  .indicator-rule i{ transform: scaleY(1); }
}

/* ============================== responsive ============================== */
@media (max-width: 1100px){
  .split{ grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .split--reverse{ grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .about-grid{ grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .faq-grid{ grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .service-card{ padding: 34px 28px 30px; }
}

/* where the container edge meets the floating buttons, lift the slide ticker
   above them (at the footer, main.js raises the buttons instead) */
@media (min-width: 768px) and (max-width: 1379.98px){
  .hero-foot{ bottom: 116px; }
}

@media (max-width: 900px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .split,
  .split--reverse{ grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--reverse .split-media{ order: -1; }
  .split-media,
  .split-media--tall{ aspect-ratio: 16 / 10; }

  .about-grid{ grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .faq-grid{ grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .faq-intro{ position: static; }
  .contact-grid{ grid-template-columns: minmax(0, 1fr); }
  .map{ min-height: 360px; }

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

/* phone: logo centred on its own, CTAs move to a sticky bar */
@media (max-width: 767.98px){
  :root{ --gutter: 20px; --logo-h: 58px; }
  html{ scroll-padding-top: 82px; }

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

  /* copy centred between the header and the floating buttons (as Kar Care Yelahanka) */
  .hero-inner{ padding-top: 128px; padding-bottom: calc(232px + env(safe-area-inset-bottom)); }
  .hero-badge{ font-size: 13px; padding: 9px 16px 9px 13px; }
  .hero-title{ margin-top: 22px; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.08; }
  .hero-cta{ display: none; }   /* on phones these two buttons live in the sticky bar */
  .slide img{ object-position: 70% 50%; }   /* the car sits right of centre in the banner */
  .hero{ background-position: 70% 50%; }
  .hero-overlay{
    background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .64) 40%, rgba(0, 0, 0, .7) 68%, rgba(0, 0, 0, .86) 100%);
  }

  /* service name: right aligned, 20px above the WhatsApp button (87px + 54px + 20px),
     white with the badge's red dot (red text is too weak over the photo's bumper) */
  .hero-foot{ bottom: calc(161px + env(safe-area-inset-bottom)); }
  .hero-foot .container{ justify-content: flex-end; }
  .indicator-rule{ display: none; }
  .indicator-list{ width: 260px; }
  .indicator-list span{ justify-content: flex-end; gap: 10px; color: #fff; }
  .indicator-list span::before{ content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

  .fab{ bottom: calc(87px + env(safe-area-inset-bottom)); height: 54px; padding: 0 15px; }
  .fab--call{ left: 16px; }
  .fab--wa{ right: 16px; }
  .fab-ico,
  .fab-ico svg{ width: 24px; height: 24px; }

  .mobile-bar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float);
    display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 12, .92);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  /* compact cards: icon and title share a row, copy runs full width below */
  .services-grid{ grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-card{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 16px;
    padding: 22px 20px 24px;
  }
  .service-card > div{ display: contents; }
  .service-card .icon-tile{ width: 50px; height: 50px; border-radius: 13px; }
  .service-card .icon-tile svg{ width: 24px; height: 24px; }
  .service-card h3{ margin: 0; font-size: 18px; }
  .service-card p{ grid-column: 1 / -1; }

  .card-go{ display: none; }

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

  .stat-row{ font-size: 15.5px; }

  .faq-q button{ padding: 18px 16px 18px 18px; font-size: 16px; gap: 14px; }
  .faq-a p{ padding: 0 18px 20px; font-size: 15px; }
  .faq-actions .btn{ flex: 1 1 0; }

  .map{ min-height: 300px; }
  .map-open{ right: 12px; bottom: 12px; }
  .contact-card{ align-items: center; }
  .card-value,
  .contact-card address{ font-size: 15.5px; }

  /* footer: one column, everything left aligned. The floating buttons stay beside the
     sticky bar (54px tall, 87px up), so the bottom padding keeps the last line above them. */
  .footer{ padding-bottom: calc(157px + env(safe-area-inset-bottom)); }
  .footer-grid{ justify-items: start; text-align: left; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; margin-top: 44px; font-size: 14px; }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference){
  .js .mobile-bar{ animation: barUp .9s var(--ease-expo) .9s backwards; }
}

/* short phones (e.g. 320 x 568): trim the hero padding so the hero still fits the
   screen, keeping the slide name clear of the floating buttons */
@media (max-width: 767.98px) and (max-height: 620px){
  .hero-inner{ padding-top: 108px; padding-bottom: calc(210px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px){
  .split-media,
  .split-media--tall{ aspect-ratio: 4 / 3; }
}

@media (max-width: 380px){
  .btn{ padding: 0 20px; font-size: 14.5px; }
  .faq-actions{ flex-direction: column; }
}
