/* Ateliê Tamareira
   Direction: an atelier notebook. Linen paper, the logo's navy ink, a red
   thread accent and brass from the mannequin stands. Sewing vocabulary is the
   ornament: dashed topstitch (pesponto) lines, a tape measure, hang tags. */

:root {
  --navy: #004172;
  --navy-deep: #002b4d;
  --ink: #12283f;
  --muted: #56616e;
  --linen: #f7f1e7;
  --paper: #fffcf6;
  --sand: #eadfcb;
  --sand-deep: #d6c4a4;
  --thread: #b8322e;
  --thread-soft: #f4b6a6;
  --brass: #a87a36;
  --brass-text: #85602a;
  --mist: #c7d8e8;
  --whatsapp: #1da851;
  --whatsapp-hover: #178f45;

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 4rem + 5vw, 136px);
  --header-h: 68px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-photo: 0 30px 60px -32px rgba(0, 43, 77, .5);

  --pattern-paper: radial-gradient(circle, var(--sand-deep) 1.2px, transparent 1.7px) 0 0 / 18px 18px, var(--sand);
}

/* ---------- Base ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  /* Declared per element so a local --stitch-color takes effect. */
  --stitch-x: repeating-linear-gradient(90deg, var(--stitch-color, var(--thread)) 0 8px, transparent 8px 13px);
  --stitch-y: repeating-linear-gradient(180deg, var(--stitch-color, var(--thread)) 0 8px, transparent 8px 13px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; color: var(--thread); }

h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.06; }

:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
::selection { background: var(--navy); color: #fff; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared pieces ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy);
}
.kicker::before { content: ""; width: 30px; height: 2px; background: var(--stitch-x); }
.kicker--light { color: var(--mist); --stitch-color: var(--thread-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: var(--sand); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.link-arrow span {
  text-decoration: underline 2px transparent; text-underline-offset: 6px;
  transition: text-decoration-color .2s var(--ease);
}
.link-arrow:hover span { text-decoration-color: var(--thread); }

.stars { display: inline-flex; gap: 2px; color: var(--brass); }
.stars .icon { width: 18px; height: 18px; }

/* A photo with a topstitched edge, like a patch sewn onto the page. */
.stitched { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-photo); }
.stitched::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1.5px dashed rgba(255, 255, 255, .82); border-radius: calc(var(--radius-lg) - 8px);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head p:not(.kicker) { color: var(--muted); }
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 95%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--sand); box-shadow: 0 10px 30px -24px rgba(0, 43, 77, .6); }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }

.main-nav { display: none; }
.main-nav a {
  position: relative; padding: 8px 0;
  font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--stitch-x); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--sand-deep); border-radius: 12px;
  background: transparent; color: var(--navy); cursor: pointer;
}
.menu-toggle:hover { border-color: var(--navy); }
.menu-toggle .icon { grid-area: 1 / 1; width: 24px; height: 24px; }
.menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav {
  display: flex; flex-direction: column; padding: 4px var(--gutter) 20px; border-top: 1px solid var(--sand);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 14px 2px; border-bottom: 1px dashed var(--sand-deep);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 960px) {
  .main-nav { display: flex; gap: 28px; }
  .menu-toggle, .mobile-nav { display: none; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 4vw, 72px) clamp(56px, 6vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 600px; }
.hero h1 { font-size: clamp(2.65rem, 1.5rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.hero__lead { max-width: 52ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.rating-line {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-top: 20px; border-top: 1px dashed var(--sand-deep);
  font-size: .9375rem; color: var(--muted); text-decoration: none;
}
.rating-line strong { color: var(--ink); }
.rating-line:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.hero__visual { position: relative; justify-self: center; width: min(100% - 24px, 460px); padding-bottom: 56px; }
.hero__pattern { position: absolute; inset: 40px -24px 16px 48px; border-radius: var(--radius-lg); background: var(--pattern-paper); }
.hero__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.hero__inset {
  position: absolute; left: -12px; bottom: 0; width: 38%;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%;
  border: 6px solid var(--linen); border-radius: var(--radius);
  box-shadow: 0 20px 40px -24px rgba(0, 43, 77, .55);
}

/* Hang tag: paper label, brass eyelet, red thread. */
.hangtag {
  position: absolute; right: -10px; top: 36px;
  display: flex; flex-direction: column; gap: 2px; min-width: 168px;
  padding: 26px 18px 14px;
  background: var(--paper); border-radius: 6px;
  box-shadow: 0 16px 30px -18px rgba(0, 43, 77, .6);
  transform: rotate(4deg); transform-origin: 50% -30px;
}
.hangtag::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--linen); box-shadow: 0 0 0 2.5px var(--brass);
}
.hangtag::after {
  content: ""; position: absolute; left: 50%; top: -30px;
  width: 1.5px; height: 42px; margin-left: -.75px; background: var(--thread);
}
.hangtag__kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); }
.hangtag__title { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.15; color: var(--navy); }
.hangtag__meta { font-size: .8125rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hangtag { animation: swing 1.6s .3s var(--ease) both; }
}
@keyframes swing {
  0% { transform: rotate(-10deg); }
  35% { transform: rotate(8deg); }
  60% { transform: rotate(2deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(4deg); }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero__inset { left: -44px; }
  .hangtag { right: -28px; top: 48px; }
}

/* ---------- Tape measure divider ---------- */

.tape {
  --u: 48px;
  display: flex; height: 46px; overflow: hidden;
  padding-left: calc(var(--u) / 2);
  background-color: #fbf6e9;
  background-image:
    linear-gradient(90deg, var(--ink) 1.5px, transparent 0),
    linear-gradient(90deg, var(--ink) 1px, transparent 0),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 50%, transparent) 1px, transparent 0);
  background-size: var(--u) 18px, calc(var(--u) / 2) 12px, calc(var(--u) / 10) 7px;
  background-repeat: repeat-x;
  border-block: 1px solid var(--sand-deep);
  box-shadow: 0 6px 16px -12px rgba(0, 43, 77, .35);
  position: relative; z-index: 1;
}
.tape span {
  flex: 0 0 var(--u); padding-top: 19px;
  font-size: .75rem; font-weight: 700; line-height: 1; text-align: center;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.tape .is-ten { color: var(--thread); }

/* ---------- Services ---------- */

.services { display: grid; gap: 40px; }
.services__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.services__intro p:not(.kicker) { max-width: 44ch; color: var(--muted); }
.services__photo { display: none; width: min(100%, 340px); margin-top: 20px; }
.services__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service {
  --stitch-color: var(--sand-deep);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 20px; align-items: start;
  padding: 26px 4px 24px;
  color: inherit; text-decoration: none;
  background: var(--stitch-x) left bottom / 100% 1.5px no-repeat;
}
.service-list li:first-child .service { box-shadow: inset 0 1.5px 0 var(--sand); }
.service:hover { --stitch-color: var(--thread); }
.service__num { padding-top: 7px; min-width: 2ch; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--brass-text); }
.service__title { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--navy); }
.service__text { display: block; max-width: 52ch; margin-top: 6px; font-size: 1rem; color: var(--muted); }
.service__cta { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 700; color: var(--thread); }
.service__go { width: 26px; height: 26px; margin-top: 8px; color: var(--navy); transition: transform .25s var(--ease), color .25s var(--ease); }
.service:hover .service__go { transform: translate(3px, -3px); color: var(--thread); }
.service:hover .service__cta { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 960px) {
  .services { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .services__intro { position: sticky; top: calc(var(--header-h) + 48px); }
  .services__photo { display: block; }
}

/* ---------- Gallery ---------- */

.filters {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) 28px; padding: 6px var(--gutter);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 44px; padding: 8px 18px;
  border: 1.5px solid var(--sand-deep); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 600 .9375rem/1 var(--font-body); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.works { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.work { position: relative; margin-bottom: 12px; break-inside: avoid; }
.work[hidden] { display: none; }
.work__open {
  display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--sand); cursor: zoom-in;
}
.work__open img { width: 100%; max-height: 560px; object-fit: cover; transition: transform .6s var(--ease); }
.work__open:hover img { transform: scale(1.03); }

.work__tag {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  display: flex; flex-direction: column;
  padding: 7px 11px 7px 22px; border-radius: 4px;
  background: var(--paper); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45);
  font-size: .78rem; line-height: 1.25; color: var(--ink);
  pointer-events: none;
}
.work__tag::before {
  content: ""; position: absolute; left: 8px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--linen); box-shadow: 0 0 0 1.5px var(--brass);
}
.work__tag span { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-text); }

@media (min-width: 720px) {
  .works { columns: 3; column-gap: 18px; }
  .work { margin-bottom: 18px; }
  .work__tag { left: 12px; bottom: 12px; font-size: .8125rem; }
}
@media (min-width: 1100px) {
  .works { columns: 4; column-gap: 20px; }
  .work { margin-bottom: 20px; }
}

/* ---------- About ---------- */

.about { display: grid; gap: 64px; align-items: center; }
.about__visual { position: relative; justify-self: center; width: min(100% - 24px, 420px); margin-top: 32px; }
.about__visual::before { content: ""; position: absolute; inset: -18px 32px 32px -18px; border-radius: var(--radius-lg); background: var(--pattern-paper); }
.about__photo img { width: 100%; aspect-ratio: 470 / 545; object-fit: cover; }

.handnote {
  position: absolute; right: -6px; top: -46px;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-hand); font-size: 1.9rem; font-weight: 600; line-height: 1;
  color: var(--thread); transform: rotate(-6deg);
}
.handnote__arrow {
  order: 2; width: 56px; height: 42px; margin: 4px 0 0 -6px;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 580px; }
.about__copy > p:not(.kicker) { color: var(--muted); text-wrap: pretty; }
.pullquote { position: relative; margin: 8px 0; padding-left: 24px; }
.pullquote::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--stitch-y); }
.pullquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.2; color: var(--navy); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(64px, 8vw, 120px); }
  .handnote { right: -72px; top: -40px; }
}

/* ---------- Reviews ---------- */

.reviews { display: grid; gap: 40px; }
.reviews__score { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.score { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.score__value { font-family: var(--font-display); font-size: clamp(4.2rem, 3rem + 4vw, 6.5rem); line-height: .9; color: var(--navy); }
.score__meta { display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; color: var(--muted); }

.review-list {
  list-style: none; display: grid; gap: 14px;
  grid-auto-flow: column; grid-auto-columns: min(84%, 340px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
}
.review {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 30px 24px 22px; scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius);
}
.review::before {
  content: "\201C"; position: absolute; top: 2px; right: 18px;
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--thread);
}
.review p { padding-right: 28px; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.review footer {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--sand-deep); font-size: .8125rem; color: var(--muted);
}
.review footer strong { display: block; font-size: .9375rem; color: var(--navy); }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--sand); color: var(--navy); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
}

@media (min-width: 720px) {
  .review-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 960px) {
  .reviews { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .reviews__score { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* ---------- How it works ---------- */

.section--navy { background: var(--navy); color: #d3e0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy h2 em { color: var(--thread-soft); }

.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .55) 0 8px, transparent 8px 14px);
}
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding-left: 70px; }
/* A four-hole sewing button marks each step. */
.step__button {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, var(--navy) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 62% 38%, var(--navy) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 38% 62%, var(--navy) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 62% 62%, var(--navy) 0 2.6px, transparent 3.2px),
    var(--paper);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--sand-deep), 0 0 0 6px var(--navy);
}
.step__num { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.step h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.15; }
.step p { max-width: 36ch; }

.closing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.closing__quote {
  flex: 1 1 320px; max-width: 24ch;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.2; color: #fff; text-wrap: balance;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .steps::before {
    left: 22px; right: 0; top: 21px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 8px, transparent 8px 14px);
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  .step { padding: 76px 0 0; }
  .step__button { top: 0; }
}

/* ---------- Visit ---------- */

.visit { display: grid; gap: 40px; }
.visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.open-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: #e4f2e7; color: #1d5f33; font-size: .875rem; font-weight: 700;
}
.open-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.open-status.is-closed { background: #f6e3df; color: #8e2a24; }
.open-status[hidden] { display: none; }

.visit__list { display: flex; flex-direction: column; gap: 22px; width: 100%; margin: 4px 0 0; }
.visit__list > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.visit__list dt { padding-top: 1px; color: var(--navy); }
.visit__list dt .icon { width: 24px; height: 24px; }
.visit__list dd { margin: 0; }
address { font-style: normal; line-height: 1.55; }

.hours { width: 100%; max-width: 360px; border-collapse: collapse; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px dashed var(--sand-deep); font-weight: 500; text-align: left; }
.hours td { font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child > * { border-bottom: 0; }
.hours tr.is-today th { font-weight: 700; }
.hours tr.is-today th::after {
  content: "hoje"; margin-left: 8px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--thread);
}
.hours__note { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.phone { font-size: 1.125rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.map { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--sand); border-radius: var(--radius-lg); background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 960px) {
  .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .map { min-height: 500px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: #c9d7e4; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer h3 { margin-bottom: 14px; font-size: 1.375rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li > a, .site-footer li > span { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-footer li > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .muted { font-size: .875rem; color: #9fb3c6; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__base .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 96px; font-size: .8125rem; color: #9fb3c6;
}
.site-footer__base a { color: #c9d7e4; }

@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__base .container { padding-bottom: 20px; }
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--whatsapp-hover); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 20, 34, .93); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 16px 96px; }
.lightbox__figure img {
  width: auto; height: auto; max-width: min(92vw, 1000px); max-height: calc(100dvh - 200px);
  object-fit: contain; border-radius: 8px;
}
.lightbox figcaption { max-width: 60ch; font-size: .9375rem; text-align: center; color: #d3e0ec; }

.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: calc(50% - 64px); bottom: 24px; }
.lightbox__next { right: calc(50% - 64px); bottom: 24px; }

@media (min-width: 720px) {
  .lightbox__figure { padding-bottom: 32px; }
  .lightbox__figure img { max-height: calc(100dvh - 140px); }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; translate: 0 -50%; }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
