@font-face {
  font-family: Kanit;
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/kanit-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Kanit;
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/kanit-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Kanit;
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/kanit-800-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Kanit;
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/kanit-800-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #05070d;
  --text: #e9eef5;
  --chrome: #d7dde5;
  --muted: #a9b6c8;
  --label: #cfe3ff;
  --glass-fill: rgb(10 22 42 / 76%);
  --glass-edge: color-mix(in srgb, var(--brand) 32%, transparent);
  --glass-light: rgb(255 255 255 / 8%);
  --space: 8px;
  --brand: #1f7bff;
  --headline-accent: #3d94ff;
  --focus: #7fc0ff;
  --shadow: rgb(0 0 0 / 48%);
  --whatsapp: #25d366;
  --whatsapp-hover: #48df81;
  --whatsapp-ink: #052e16;
  --white: #fff;
  --body-font: 'Barlow Semi Condensed', sans-serif;
  --display-font: Kanit, sans-serif;
  --gutter: clamp(12px, 3.1vw, 40px);
  --shell-width: 1200px;
  --floating-size: clamp(48px, calc(48px + (100vw - 320px) / 5), 56px);
  caret-color: var(--focus);
  scrollbar-color: var(--brand) var(--ground);
}

html {
  container-type: inline-size;
  background: var(--ground);
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  --wordmark-height: 48px;
  --wordmark-caption-size: .6875rem;
  --wordmark-caption-gap: 2px;
  --lockup-size: .75rem;
  --brand-pad-start: 24px;
  --brand-pad-end: 12px;
  --brand-height: calc(var(--wordmark-height) + var(--wordmark-caption-gap) + 1.2 * var(--wordmark-caption-size) + var(--brand-pad-start) + var(--brand-pad-end));
  --tab-font-size: clamp(.875rem, 4vw, 1rem);
  --tab-size: max(48px, calc(1.15 * var(--tab-font-size) + 16px));
  --tab-frame: 4px;
  --tab-pad-start: max(var(--space), env(safe-area-inset-top));
  --tab-pad-end: 6px;
  --tab-height: calc(var(--tab-size) + 2 * var(--tab-frame) + var(--tab-pad-start) + var(--tab-pad-end));
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 1rem/1.4 var(--body-font);
}

h1, h2, p, ul, figure { margin: 0; }
button { font: inherit; }
button:enabled { cursor: pointer; }
a { color: var(--focus); text-underline-offset: .18em; }

h1, h2 {
  font-family: var(--display-font);
  font-style: italic;
  line-height: 1.04;
}

h2 { font-size: clamp(1.5rem, 4.6vw, 2.25rem); }

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

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  max-width: 1440px;
  padding: var(--brand-pad-start) var(--space) var(--brand-pad-end);
}

/* Keep the plate behind the shared header after the brand leaves the hero. */
.brand + main #repair-panel .bench-plate { top: calc(-1 * (var(--brand-height) + var(--header-tab-flow, 0px))); }

.tab-bar:not([hidden]) + .brand + main { --header-tab-flow: var(--tab-height); }

.wordmark picture { display: block; }

.wordmark img {
  display: block;
  width: auto;
  height: var(--wordmark-height);
  aspect-ratio: 1838 / 781;
  color: var(--chrome);
  font: italic 800 1.5rem/1 var(--display-font);
}

.wordmark-caption {
  display: block;
  margin-block-start: var(--wordmark-caption-gap);
  color: var(--chrome);
  font-size: var(--wordmark-caption-size);
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.2;
}

.lockup {
  color: var(--chrome);
  font-size: var(--lockup-size);
  font-weight: 600;
  letter-spacing: .2em;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.glass-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  background-color: var(--glass-fill);
  box-shadow: inset 0 1px var(--glass-light);
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  font: italic 800 clamp(1.25rem, 6.15vw, 1.5rem)/1.08 var(--display-font);
  text-align: center;
  text-decoration: none;
}

.whatsapp:hover { background: var(--whatsapp-hover); }
.whatsapp svg { width: 22px; height: 22px; flex: none; fill: var(--white); }

.repair-details { margin-block-start: clamp(calc(7 * var(--space)), 8vw, calc(12 * var(--space))); }

.home-service {
  display: flex;
  align-items: center;
  gap: clamp(calc(2 * var(--space)), 3vw, calc(4 * var(--space)));
  padding: 24px 16px;
}

.home-service h2, .contact-plaque h2 {
  font-size: clamp(1.5rem, 3.3vw, 3rem);
  font-weight: 800;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.home-service p {
  margin-block-start: var(--space);
  color: var(--label);
  font-size: clamp(1rem, 2.8vw, 1.375rem);
}

.line-icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--focus);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-service .line-icon {
  width: clamp(56px, 7vw, 88px);
  height: auto;
  aspect-ratio: 1;
  padding: clamp(12px, 1.6vw, 24px);
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, var(--glass-edge), var(--glass-fill) 80%);
  box-shadow: inset 0 1px var(--glass-light);
}

.promises-strip {
  margin-block-start: calc(2 * var(--space));
  padding: 8px;
}

.tool-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  list-style: none;
}

.tool-labels li {
  display: flex;
  align-items: center;
  gap: clamp(var(--space), 1.5vw, calc(2 * var(--space)));
  padding: 16px clamp(16px, 3vw, 48px);
  color: var(--label);
  font-size: clamp(.8125rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tool-labels li + li { border-block-start: 1px solid var(--glass-edge); }

@media (min-width: 600px) {
  .promises-strip { padding-block: calc(2 * var(--space)); }
  .tool-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-labels li + li {
    border-block-start: 0;
    border-inline-start: 1px solid var(--glass-edge);
  }
}

.contact-plaque {
  margin-block: clamp(calc(6 * var(--space)), 7vw, calc(11 * var(--space)));
  padding: 32px 16px;
  border-color: color-mix(in srgb, var(--brand) 67%, transparent);
  text-align: center;
}

.contact-plaque h2 span { color: var(--brand); }

.contact-lead {
  margin-block-start: var(--space);
  color: var(--label);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--space));
  margin-block-start: calc(3 * var(--space));
}

.contact-number {
  font: italic 800 clamp(1.75rem, 8.4vw, 4.25rem)/1.08 var(--display-font);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.contact-plaque .whatsapp, .driver-copy .whatsapp {
  min-height: 56px;
  padding: var(--space) calc(2 * var(--space));
  border-radius: 12px;
  font-size: clamp(1.0625rem, 5.2vw, 1.5rem);
}

@media (min-width: 960px) {
  .home-service { padding: 48px; }
  .contact-plaque { padding: 64px 48px; }
  .contact-number { font-size: clamp(3.25rem, 4.8vw, 4.25rem); }
  .contact-actions {
    flex-direction: row;
    justify-content: center;
    gap: calc(4 * var(--space));
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space) calc(2 * var(--space));
  padding-block: calc(2 * var(--space)) calc(4 * var(--space));
  border-block-start: 1px solid var(--glass-edge);
  color: var(--muted);
  font-size: .875rem;
}

.icon-library { position: absolute; }

.tab-bar {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: var(--tab-pad-start) var(--gutter) var(--tab-pad-end);
  background: var(--ground);
}

.tabs {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  padding: calc(var(--tab-frame) - 1px);
  border-radius: 12px;
}

.tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space);
  min-height: var(--tab-size);
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--label);
  font-size: var(--tab-font-size);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tabs .line-icon { width: 20px; height: 20px; color: currentColor; }
.tabs button:hover { background: var(--glass-edge); color: var(--white); }
.tabs [aria-selected='true'] {
  background: linear-gradient(180deg, #0b5ecb, #083a89);
  border-color: var(--brand);
  color: var(--white);
}

.driver {
  padding-block: var(--space) clamp(calc(6 * var(--space)), 6vw, calc(10 * var(--space)));
  background: var(--ground);
}

.driver-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  color: var(--label);
}

.driver-photo img:not(.is-broken) {
  /* Leave the browser's fallback text line unmasked even without JS. */
  --driver-photo-mask: linear-gradient(#000 1.5em, transparent 1.5em),
    radial-gradient(ellipse 50% 50%, #000 80%, transparent);
  mix-blend-mode: lighten;
  -webkit-mask-image: var(--driver-photo-mask);
  mask-image: var(--driver-photo-mask);
}

.driver-photo figcaption {
  width: fit-content;
  margin-inline: auto;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.driver-copy {
  padding: calc(4 * var(--space)) max(calc(2 * var(--space)), var(--gutter));
}

@media (max-width: 599px) {
  .driver-copy > :not(.whatsapp) {
    padding-inline-end: calc(var(--floating-size) - 12px + env(safe-area-inset-right));
  }
}

.driver-copy h2 {
  font-size: clamp(1.875rem, 9.5vw, 3.375rem);
  font-weight: 800;
  letter-spacing: -.024em;
  text-wrap: balance;
}

.driver-copy p:not(.driver-lead) {
  max-width: 65ch;
  margin-block-start: var(--space);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
}

.driver-lead {
  margin-block-start: var(--space);
  color: var(--label);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

.driver-notes {
  display: grid;
  gap: var(--space);
  margin-block: calc(3 * var(--space));
  padding: 0;
  list-style: none;
}

.driver-notes li {
  display: flex;
  align-items: center;
  gap: var(--space);
}

.driver-notes .line-icon { color: var(--headline-accent); }

.driver-copy .whatsapp { width: 100%; }

.floating-whatsapp {
  position: fixed;
  z-index: 3;
  top: 57%;
  right: 0;
  translate: 0 -50%;
  width: calc(var(--floating-size) + env(safe-area-inset-right));
  min-height: var(--floating-size);
  padding: 0 env(safe-area-inset-right) 0 0;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 6px 18px var(--shadow);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  stroke: var(--whatsapp-ink);
  stroke-width: .7;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

[role='tabpanel']:focus-visible { outline-offset: -3px; }

@media (min-width: 960px) {
  /* The three zones need more room when the root text size grows. */
  @container (min-width: 60rem) {
    body {
      --wordmark-height: 60px;
      --wordmark-caption-size: .75rem;
      --lockup-size: clamp(.8125rem, 1.045vw, .9375rem);
      --tab-width: min(40vw, 33.5rem);
      --tab-font-size: 1.125rem;
      --tab-pad-start: max(calc(2 * var(--space)), env(safe-area-inset-top));
      --tab-pad-end: calc(2 * var(--space));
      --brand-pad-start: calc(var(--tab-pad-start) - 2px);
      --brand-pad-end: calc(var(--tab-pad-end) - 2px);
      display: grid;
      grid-template-columns: minmax(0, 1fr) var(--tab-width) minmax(0, 1fr);
    }
    .tab-bar {
      grid-area: 1 / 2;
      align-self: center;
      padding-inline: 0;
      background: transparent;
    }
    .tabs .line-icon { width: 24px; height: 24px; }
    .brand {
      grid-area: 1 / 1 / 2 / -1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) var(--tab-width) minmax(0, 1fr);
      padding-inline: 0;
    }
    main { grid-area: 2 / 1 / 3 / -1; }
    .tab-bar:not([hidden]) + .brand + main {
      --header-tab-flow: max(0px, var(--tab-height) - var(--brand-height));
    }
    .wordmark { justify-self: start; }
    .lockup { grid-column: 3; justify-self: end; }
  }

  .driver {
    display: grid;
    grid-template-columns: min(55vw, 760px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 2vw, 32px);
    width: calc(100% - 2 * var(--gutter));
    max-width: calc(var(--shell-width) + 4 * var(--gutter));
    margin-inline: auto;
    padding-block-start: calc(5 * var(--space));
  }

  .driver-copy { max-width: 29rem; padding: 0; }
  .driver-copy h2 {
    max-width: min-content;
    font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  }
  .driver-copy .whatsapp { width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { view-transition-name: none; }
  main { view-transition-name: panel; }
  .tab-bar { view-transition-name: tab-bar; }
  .floating-whatsapp { view-transition-name: floating-whatsapp; }

  ::view-transition { pointer-events: none; }
  ::view-transition-group(panel) { animation-duration: 170ms; }
  ::view-transition-group(tab-bar), ::view-transition-group(floating-whatsapp),
  ::view-transition-new(tab-bar), ::view-transition-new(floating-whatsapp) { animation: none; }
  ::view-transition-old(tab-bar), ::view-transition-old(floating-whatsapp) { display: none; }
}
