/* Palette "Índigo". Change the colours here only. */
:root {
  --ink: #1e2a44;
  --paper: #f6f3ee;
  --sand: #e4e8ef;
  --rust: #9a4d24;
  --btn-ink: #151515; /* text on the green button */
  --green: #25d366; /* WhatsApp's own green */
  --green-dark: #1fbe5b;
  --green-edge: #128c4a;
  --line: #cfd5df;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gap: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0.85rem 0 0.25rem;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  /* The page covers the whole screen (viewport-fit=cover), so each section's
     colour reaches both edges. The text stays clear of the camera cut-out. */
  padding-right: max(var(--gap), env(safe-area-inset-right));
  padding-left: max(var(--gap), env(safe-area-inset-left));
}

.sprite {
  position: absolute;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  background: var(--paper);
}

/* Upright, iPhone Safari (iOS 26) paints the status bar area with the body's
   colour and ignores theme-color, so the body takes the header's colour. Not
   sideways: there it would frame the light sections in dark bands. */
@media (orientation: portrait) {
  body {
    background: var(--ink);
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: env(safe-area-inset-left);
}

/* Header: dark, so the green button is the brightest thing on the screen. */
.hero {
  padding: 1.5rem 0 2.5rem;
  background: var(--ink);
  color: var(--paper);
}

.hero :focus-visible {
  outline-color: var(--paper);
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.lead {
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
  max-width: 34rem;
}

/* Quote button: WhatsApp's green with dark text (white text on it is unreadable). */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  gap: 0.55rem;
  background: var(--green);
  color: var(--btn-ink);
  border: 1px solid var(--green-edge);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 0.4rem;
}

.btn:hover {
  background: var(--green-dark);
}

.btn__icon {
  flex: none;
}

.btn--after {
  margin-top: 1.5rem;
}

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

.shot {
  position: relative;
  margin: 0;
  background: var(--sand);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.shot--wide img {
  aspect-ratio: 3 / 2;
}

.shot--hero img {
  aspect-ratio: 4 / 3;
  object-position: 50% 80%;
}

/* Several photos of one product: swipe sideways, one photo at a time. */
.shots {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

/* With a mouse there is no swipe: show a thin scrollbar instead. */
@media (hover: hover) and (pointer: fine) {
  .shots {
    scrollbar-width: thin;
  }

  .shots::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .shots::-webkit-scrollbar-thumb {
    background: var(--ink);
  }
}

.shots .shot {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.shots__count {
  position: sticky;
  right: 0;
  align-self: flex-start;
  margin-left: -4.6rem;
  width: 4.6rem;
  flex: none;
  padding: 0.2rem 0;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* Label for photos that do not show Fayol's own garments. */
.shot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.1rem 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

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

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: var(--sand);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

.card p {
  font-size: 0.95rem;
}

.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 1.75rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}

.contact {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.contact dt {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact dd {
  margin: 0;
}

.maplink,
.walink {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.75rem 0 max(1.75rem, env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

.footer__logo {
  flex: none;
}

.footer__notice {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Tablet */
@media (min-width: 40rem) {
  .btn {
    display: inline-flex;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
}

/* Desktop */
@media (min-width: 60rem) {
  :root {
    --gap: 2rem;
  }

  .hero {
    padding: 2.5rem 0 4rem;
  }

  .shot--hero img {
    aspect-ratio: 1 / 1;
  }

  .hero__grid,
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps li {
    padding-left: 0;
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
