/* Mike's Carwash, Antipolo. One stylesheet, no framework, system fonts, no script.
   Brand colours were sampled from the two logo files: a yellow field, a teal-blue wordmark, charcoal car and text. */

:root {
  color-scheme: light;

  /* Colour. The yellow is the logo's own, so the badge sits on it without a seam. */
  --yellow: #ffff00;
  --teal: #187490;
  --teal-strong: #115b72;
  --ink: #292f35;
  --ink-soft: #454e56;
  --on-ink-soft: #d8dde1;
  --paper: #fffdea;
  --white: #fff;
  --focus: var(--ink);

  /* Type: system fonts, one fluid scale (about 1.25 per step). */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", var(--font);
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.12rem + 0.33vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.38rem + 0.62vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.63rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.7rem);

  /* Space, shape, depth, motion. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --section-pad: clamp(3rem, 2rem + 4.5vw, 5.5rem);
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --line: 2px solid var(--ink);
  --hard-s: 0 3px 0 var(--ink);
  --hard-m: 5px 5px 0 var(--ink);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1);
  --dock-h: 5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: calc(var(--dock-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font);
}

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

img {
  height: auto;
}

h1,
h2,
p,
ul,
address {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

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

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

/* Skip link */
.skip {
  position: absolute;
  top: 0;
  left: var(--space-4);
  z-index: 30;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

/* Display type: heavy and slanted, like the lettering on the sign */
h1,
h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-3);
}

p {
  text-wrap: pretty;
}

/* Buttons: one pill system. A second line holds the Tagalog label. */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: var(--space-2) var(--space-6);
  border: var(--line);
  border-radius: 999px;
  background: var(--teal);
  box-shadow: var(--hard-s);
  color: var(--white);
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms var(--ease-swift), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn__tl {
  font-size: var(--step--1);
  font-weight: 600;
}

.btn--ink {
  background: var(--ink);
  color: var(--yellow);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
}

.btn:active {
  box-shadow: 0 1px 0 var(--ink);
  transform: translateY(2px);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--teal-strong);
    box-shadow: 0 4px 0 var(--ink);
    transform: translateY(-1px);
  }

  .btn--ink:hover {
    background: var(--ink-soft);
  }

  .btn--yellow:hover {
    background: var(--white);
  }

  .btn--ghost:hover {
    background: var(--yellow);
  }
}

/* Plain links */
.link {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--teal-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  .link:hover {
    text-decoration-color: currentcolor;
    text-decoration-thickness: 0.2em;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-8) 0 calc(var(--space-12) + 1.75rem);
  background: var(--yellow);
  text-align: center;
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
}

.hero__logo {
  width: min(64vw, 15rem);
  border-radius: 50%;
  box-shadow: var(--hard-m);
}

.hero__copy {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  max-width: 36rem;
}

.status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem var(--space-3);
  padding: 0.4rem var(--space-4);
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.3;
}

.status__dot {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
}

.status [lang="tl"] {
  color: var(--teal-strong);
  font-weight: 700;
}

.hero__lead {
  max-width: 28ch;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
}

.tagline {
  padding: 0.3rem var(--space-4);
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-2deg);
}

.hero__actions {
  margin-top: var(--space-2);
}

.wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(1.5rem, 4.5vw, 3.5rem);
  fill: var(--paper);
}

/* Sections */
.section {
  padding-block: var(--section-pad);
}

.section--paper {
  background: var(--paper);
}

.section--yellow {
  background: var(--yellow);
}

.section--ink {
  --focus: var(--yellow);
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
}

.section-head__tl,
.section-head__lead {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
}

.section-head__tl {
  color: var(--teal-strong);
}

/* How it works */
.cards {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4);
  border: var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--hard-m);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: var(--line);
  border-radius: var(--radius-s);
  background: var(--yellow);
}

.card p {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
}

.card strong {
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

/* Vehicles */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.45rem var(--space-4);
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--hard-s);
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.3;
}

.fit {
  margin-top: var(--space-6);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
}

.fit [lang="tl"] {
  display: block;
  color: var(--teal-strong);
  font-weight: 700;
}

/* Good to know */
.chips + .cards {
  margin-top: var(--space-6);
}

.card__body {
  display: grid;
  gap: var(--space-2);
}

.card .card__tl {
  color: var(--teal-strong);
  font-size: var(--step-0);
  font-weight: 700;
}

.chips strong {
  font-weight: 900;
}

/* Where */
.where {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.where h2 {
  margin-bottom: var(--space-6);
  color: var(--yellow);
}

.where__place {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.where__pin {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}

address {
  font-style: normal;
}

.where__street {
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.35;
}

.where__landmark {
  margin-top: var(--space-2);
}

.where__landmark + .where__landmark {
  margin-top: 0;
  color: var(--on-ink-soft);
}

.where__actions {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.section--ink .link {
  color: var(--yellow);
}

/* Contact and review */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-6);
}

.panel {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--hard-m);
}

.panel h2 {
  font-size: var(--step-2);
}

.panel__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel__actions {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  margin-top: auto;
}

/* Footer */
.footer {
  position: relative;
  padding: calc(var(--space-12) + 1rem) 0 calc(var(--space-8) + var(--dock-h));
  background: var(--yellow);
  text-align: center;
}

.footer .wave {
  top: -1px;
  bottom: auto;
  transform: scaleY(-1);
}

.footer .wrap {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}

.footer__hello {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.footer__family {
  font-size: var(--step-1);
  font-weight: 700;
}

.footer__name,
.footer__web {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

/* Sticky contact bar: the Messenger button and the Facebook Page link, always in reach */
.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right)) calc(var(--space-2) + env(safe-area-inset-bottom)) max(var(--space-3), env(safe-area-inset-left));
  border-top: var(--line);
  background: var(--paper);
}

.dock .btn {
  flex: 1 1 auto;
  min-height: 3.5rem;
  padding-inline: var(--space-3);
}

.dock__fb {
  display: flex;
  flex: 0 0 6.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  font-size: var(--step--1);
  line-height: 1.25;
  text-align: center;
}

/* Not-found page */
.nf {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--space-8) 0;
  place-items: center;
  background: var(--yellow);
  text-align: center;
}

.nf__main {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  width: min(100% - 2rem, 30rem);
}

.nf__logo {
  width: min(48vw, 9rem);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
}

.nf h1 {
  font-size: var(--step-3);
}

.nw {
  white-space: nowrap;
}

/* Wider screens */
@media (min-width: 48rem) {
  .hero {
    padding: var(--space-12) 0 calc(var(--space-12) + 3rem);
    text-align: left;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
    justify-items: start;
  }

  .hero__logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 22rem);
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    justify-items: start;
  }

  .where {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-12);
  }

  .footer {
    padding-bottom: calc(var(--space-8) + var(--dock-h));
  }

  .dock {
    right: var(--space-6);
    bottom: var(--space-6);
    left: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .dock .btn {
    flex: none;
    min-width: 16rem;
    box-shadow: var(--hard-m);
  }

  .dock__fb {
    display: none;
  }
}

@media (max-width: 22.5rem) {
  .dock .btn {
    padding-inline: var(--space-2);
    font-size: var(--step--1);
  }

  .dock__fb {
    flex-basis: 5.5rem;
  }
}

@media (min-width: 56rem) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--space-6);
  }

  .card {
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status__dot {
    animation: pulse 2.4s var(--ease-swift) infinite;
  }

  @keyframes pulse {
    0%,
    100% {
      box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 45%, transparent);
    }

    60% {
      box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--teal) 0%, transparent);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

@media print {
  .dock,
  .wave {
    display: none;
  }
}
