:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --nav-h: 64px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68rem;
  --font: "Inter Variable", "Inter", ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-optical-sizing: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
}

.skip:focus {
  top: 0.75rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: block;
  flex: 0 0 auto;
}

.nav__brand img {
  display: block;
  width: min(168px, 42vw);
  height: auto;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--muted);
  text-decoration: none;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--measure));
  margin-inline: auto;
}

.hero {
  padding: 1.1rem var(--pad) 0;
}

.hero__stage {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 44rem);
  display: grid;
  align-items: end;
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem)
    clamp(2.2rem, 6vw, 4.2rem);
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
}

.hero__oculo {
  position: absolute;
  width: min(108vw, 46rem);
  height: auto;
  right: -6%;
  top: 46%;
  transform: translateY(-52%) rotate(16deg);
  color: var(--bg);
  opacity: 0.28;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__oculo {
    animation: oculo-drift 28s ease-in-out infinite alternate;
  }
}

@keyframes oculo-drift {
  from {
    transform: translateY(-52%) rotate(16deg);
  }
  to {
    transform: translateY(-48%) rotate(19deg);
  }
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero__kicker {
  margin: 0 0 0.7rem;
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  text-wrap: balance;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__lede {
  margin: 1.2rem 0 0;
  max-width: 34ch;
  text-wrap: pretty;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.band--ink {
  background: var(--ink);
  color: var(--bg);
}

.band--ink .lead,
.band--ink .step p,
.band--ink .service p {
  color: rgba(245, 245, 247, 0.64);
}

.band--follow {
  padding-top: 0;
}

.band--page {
  padding-top: 1rem;
}

.band h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.lead {
  margin: 0 0 2.4rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.servicos-band {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.4rem, 6vw, 4.2rem);
  overflow: visible;
}

.servicos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  align-items: center;
  overflow: visible;
}

@media (min-width: 820px) {
  .servicos {
    grid-template-columns: minmax(0, 0.88fr) minmax(17rem, 1.12fr);
  }
}

.servicos__copy h2 {
  margin-bottom: 1rem;
}

.servicos__copy h2 + h2,
.servicos__copy .servicos__list + h2 {
  margin-top: 2.1rem;
}

.servicos__list {
  margin: 0;
  padding: 0;
  max-width: 26rem;
  list-style: none;
}

.servicos__list li {
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}

.servicos__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.servicos__list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.servicos__list p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.servicos__art {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 19rem;
  pointer-events: none;
}

.servicos__art img {
  max-width: none;
}

.foto-glass {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

.foto-glass img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 24%,
    rgba(255, 255, 255, 0) 55%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.servicos__pecas {
  position: absolute;
  width: min(86%, 23rem);
  height: auto;
  aspect-ratio: 16 / 10;
  left: 0;
  top: 24%;
}

.servicos__chave {
  position: absolute;
  z-index: 2;
  width: min(125%, 30rem);
  right: -22%;
  top: -18%;
  transform: rotate(-32deg);
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.2));
}

.step h3,
.place h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p,
.place p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 1.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(245, 245, 247, 0.12);
  counter-increment: passo;
}

.step:last-child {
  border-bottom: 1px solid rgba(245, 245, 247, 0.12);
}

.step::before {
  content: counter(passo);
  color: rgba(245, 245, 247, 0.38);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.nota {
  margin-top: 2rem;
  max-width: 36rem;
  color: rgba(245, 245, 247, 0.64);
  font-size: 1rem;
}

.nota strong {
  color: var(--bg);
  font-weight: 600;
}

.processo {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 820px) {
  .processo {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.processo__foto {
  position: relative;
  margin: 0 0 1.8rem;
  overflow: visible;
}

.processo__foto .foto-glass img {
  aspect-ratio: 16 / 10;
  object-position: 18% 45%;
  height: auto;
}

.processo__rolamento {
  position: absolute;
  width: min(42%, 9.5rem);
  left: -1.4rem;
  bottom: -1.7rem;
  transform: rotate(-22deg);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
}

.place {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 720px) {
  .place {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.place__foto {
  position: relative;
  margin: 0;
  overflow: visible;
}

.place__foto .foto-glass img {
  aspect-ratio: 5 / 4;
  object-position: 32% 58%;
  height: auto;
}

.place__aro {
  position: absolute;
  width: min(48%, 11rem);
  right: -1.6rem;
  bottom: -1.1rem;
  transform: rotate(18deg);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.place__block + .place__block,
.place .maps + .place__block {
  margin-top: 1.6rem;
}

.hours {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hours li + li {
  margin-top: 0.35rem;
}

.maps {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.maps:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.whatsapp svg {
  display: block;
  flex: 0 0 auto;
}

.whatsapp:hover {
  background: #1dae56;
  text-decoration: none;
  color: #fff;
}

#contacto {
  scroll-margin-top: 5.5rem;
}

.page-hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.grupo + .grupo {
  margin-top: 2.6rem;
}

.grupo h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.acordeao {
  border-top: 1px solid var(--line);
}

.acordeao details {
  border-bottom: 1px solid var(--line);
}

.acordeao summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.acordeao summary::-webkit-details-marker {
  display: none;
}

.acordeao summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.acordeao details[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.acordeao details p {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--muted);
}

.site-foot {
  padding: 2.4rem 0 3.2rem;
  border-top: 1px solid var(--line);
}

.site-foot p {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  :root {
    --nav-h: auto;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.85rem var(--pad) 0.7rem;
  }

  .nav__links {
    justify-content: flex-start;
    gap: 0.35rem 1rem;
  }

  .hero__stage {
    min-height: 32rem;
    border-radius: 22px;
  }

  .hero__oculo {
    right: -18%;
    width: 120vw;
  }

  .servicos {
    display: flex;
    flex-direction: column;
  }

  .servicos__art {
    min-height: 24rem;
    margin: 1rem 0 0.2rem;
  }

  .servicos__list {
    max-width: none;
  }

  .servicos__pecas {
    width: calc(100% - 1rem);
    height: auto;
    left: 0;
    top: 3.2rem;
  }

  .servicos__chave {
    width: min(48%, 14.5rem);
    right: -0.15rem;
    left: auto;
    top: -0.7rem;
    transform: rotate(-28deg);
  }

  .processo__rolamento {
    left: -0.4rem;
    bottom: -1.1rem;
    width: 6.8rem;
  }

  .place__foto .foto-glass img {
    aspect-ratio: 16 / 11;
  }

  .place__aro {
    width: 7.2rem;
    right: -0.6rem;
    bottom: -0.8rem;
  }
}

/* Aberto / Encerrado (horario.js) */
.estado-horario {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  margin: 0 0 0.9rem;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 1rem;
  line-height: 1.3;
}

.estado-horario[hidden] {
  display: none;
}

.estado-horario i {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.estado-horario strong {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.estado-horario span {
  opacity: 0.8;
}

.estado-horario--aberto {
  background: rgba(48, 209, 88, 0.16);
  color: #1d7a3a;
}

.estado-horario--aberto i {
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
}

.estado-horario--encerrado {
  background: rgba(255, 69, 58, 0.14);
  color: #c0271d;
}

.estado-horario--encerrado i {
  background: #ff453a;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.25);
}

/* No topo escuro: letras claras. */
.hero .estado-horario--aberto {
  background: rgba(48, 209, 88, 0.18);
  color: #7ff0a1;
}

.hero .estado-horario--encerrado {
  background: rgba(255, 69, 58, 0.2);
  color: #ff9b94;
}

.hero .estado-horario {
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.1rem;
}

/* Mais específico que os parágrafos do bloco de contacto, que os pintavam de cinzento. */
.place .estado-horario--aberto {
  color: #1d7a3a;
}

.place .estado-horario--encerrado {
  color: #c0271d;
}

/* Cabeçalho: menos vazio por cima e, no telemóvel, o aro sobe para não passar por trás do texto. */
.hero__stage {
  min-height: min(70vh, 40rem);
}

@media (max-width: 600px) {
  .hero__stage {
    min-height: 31rem;
  }

  .hero__oculo {
    width: 92vw;
    right: -14%;
    top: 26%;
    opacity: 0.22;
  }
}
