@font-face {
  font-family: Raleway;
  src: url("/assets/Raleway-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --clock-blue: #43627f;
  --navy: #243b50;
  --ink: #172e41;
  --cream: #fbf8f3;
  --sand: #e7d6c7;
  --line: #e2d7cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Raleway, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--clock-blue); outline-offset: 4px; }
h1:focus, h2:focus { outline: none; }

.shell {
  width: min(100% - 30px, 1200px);
  margin-inline: auto;
}

.site-header {
  min-height: 59px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand { display: block; max-width: 46%; padding-block: 8px; }
.brand img { display: block; width: min(153px, 100%); height: auto; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: .4em;
  font-size: .78rem;
  color: var(--navy);
  text-decoration: none;
}

.contact:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sand);
}

.hero-photo {
  display: block;
  width: 100%;
  height: clamp(104px, 32vw, 190px);
  object-fit: cover;
  object-position: center 39%;
}

.hero-copy { padding: 15px 16px 14px; }

.eyebrow {
  margin: 0;
  font: 700 .62rem/1.4 var(--sans);
  letter-spacing: .16em;
  color: var(--navy);
  text-transform: uppercase;
}

.hero h1 {
  margin: 7px 0 6px;
  font: 400 clamp(1.25rem, 6.35vw, 2.1rem)/1 var(--serif);
  letter-spacing: -.035em;
}

.hero h1 em { display: block; color: var(--navy); font-weight: 400; }
.hero-intro { font-size: .73rem; margin: 0; }

.catalogue { margin-top: 14px; }
.catalogue > h2 { margin: 0 0 8px; }
.cards { display: grid; gap: 8px; }

.bio-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.bio-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.bio-links a:hover { background: #f2e9df; }
.bio-links span { margin-left: auto; }
.bio-links svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linejoin: round;
}

.card {
  --photo-width: min(39%, 164px);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 66px;
  padding: 9px calc(var(--photo-width) + 10px) 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f2e9df;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.card-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--photo-width);
  height: 100%;
  object-fit: cover;
  object-position: center var(--photo-position, 50%);
  pointer-events: none;
  transition: transform .28s ease;
}

.card--optica { --photo-position: 28%; }
.card--relogios { --photo-position: 52%; }
.card--joias { --photo-position: 56%; }
.card--manutencoes { --photo-position: 65%; }

.card:nth-child(even) {
  background: #e5e9eb;
  border-color: #d6dee2;
}

@media (max-width: 739px) {
  .card:nth-child(even) { padding-inline: calc(var(--photo-width) + 11px) 10px; }
  .card:nth-child(even) .card-photo { left: 0; right: auto; }
}

.card-copy { display: grid; gap: 3px; }

.card-title {
  font: 400 1.36rem/1.05 var(--serif);
  letter-spacing: -.024em;
}

.card-description {
  font-size: .73rem;
  line-height: 1.28;
}

.card-arrow {
  flex: 0 0 auto;
  color: var(--navy);
  font: 400 1.16rem/1 var(--serif);
  transition: transform .22s ease;
}

.card:focus-visible { outline-offset: 2px; }
.card:focus-visible, .card:hover {
  border-color: #91a2ad;
  box-shadow: 0 5px 13px rgba(36, 59, 80, .08);
}

@media (hover: hover) {
  .card:hover .card-photo { transform: scale(1.04); }
  .card:hover .card-arrow { transform: translateX(2px); }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block: 17px 24px;
  color: var(--navy);
  font-size: .7rem;
}

.site-footer a { text-decoration: none; }


.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-size: .86rem;
  text-underline-offset: 4px;
}

.editorial-back { margin-bottom: 10px; }
.editorial { --editorial-rule: #d6c8ba; }

.editorial-hero {
  --feature-bg: var(--ink);
  --feature-fg: var(--cream);
  --feature-accent: var(--sand);
  display: grid;
  background: var(--feature-bg);
  color: var(--feature-fg);
}

#relogios .editorial-hero {
  --feature-bg: #e3eaed;
  --feature-fg: var(--ink);
  --feature-accent: var(--navy);
}

#joias .editorial-hero {
  --feature-bg: #eee0d3;
  --feature-fg: var(--ink);
  --feature-accent: #694a3b;
}

#manutencoes .editorial-hero { --feature-bg: #273d4d; }
#manutencoes .editorial-copy h2 { font-size: clamp(2.3rem, 5vw, 4.7rem); }

.editorial-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 70px);
}

.editorial-copy .eyebrow { color: var(--feature-accent); }
.editorial h2 {
  margin: 9px 0 18px;
  font: 400 clamp(2.55rem, 6.8vw, 5.15rem)/.98 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.editorial h2 em {
  display: block;
  color: var(--feature-accent, var(--navy));
  font-weight: 400;
}

.editorial-lead {
  max-width: 40ch;
  margin: 0 0 22px;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

.editorial-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: clamp(185px, 55vw, 300px);
  background: #e3d9ce;
}

.editorial-image img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--editorial-crop, 45%);
}

#optica, #provador, #manutencoes-oculos { --editorial-crop: 31%; }
#relogios, #manutencoes-relogios { --editorial-crop: 54%; }
#joias, #manutencoes-joias { --editorial-crop: 57%; }
#manutencoes { --editorial-crop: 69%; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border: 0;
  border-radius: 2px;
  background: var(--clock-blue);
  color: var(--cream);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease;
}

.button:hover { background-color: var(--navy); }
#optica .button { background: var(--sand); color: var(--ink); }
#optica .button:hover { background-color: #fff0e2; }
#optica .button:focus-visible { outline-color: var(--sand); }

.editorial-section {
  display: grid;
  align-items: start;
  gap: 13px;
  margin: clamp(25px, 4vw, 48px) auto 12px;
}

.editorial-section h3, .service-copy h3 {
  margin: 0;
  font: 400 clamp(1.35rem, 3vw, 2.15rem)/1.15 var(--serif);
}

.editorial-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--editorial-rule);
  list-style: none;
}

.editorial-row {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid var(--editorial-rule);
  text-decoration: none;
}

a.editorial-row { transition: background-color .18s ease; }
a.editorial-row:hover { background: #f2e9df; }
.editorial-row strong { display: block; font: 400 1.22rem/1.2 var(--serif); }
.editorial-row small { display: block; margin-top: 3px; font-size: .85rem; line-height: 1.45; }
.editorial-index {
  color: var(--clock-blue);
  font: 700 .7rem/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
}
.row-arrow { color: var(--navy); padding-right: 7px; }
.editorial-secondary { justify-self: start; min-height: 44px; padding-block: 9px; text-underline-offset: 4px; }

.service-layout, .fitting-layout {
  display: grid;
  gap: 24px;
}

.service-copy h2, .fitting-copy h2 { font-size: clamp(2.45rem, 5.8vw, 4.35rem); }
.service-copy h3 { margin: 22px 0 10px; font-size: 1.28rem; }
.service-list { margin-bottom: 22px; }
.service-list .editorial-row { min-height: 45px; padding-block: 10px; }

.fitting-layout {
  gap: 0;
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
}

.fitting-copy { padding: clamp(19px, 4vw, 49px) 0; min-width: 0; }
.fitting-preview { margin: 0; min-width: 0; align-self: start; }
.fitting-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(162px, 48vw, 246px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #fffdf7 12%, #e6dacd 100%);
  border: 1px solid var(--editorial-rule);
}
.fitting-grid {
  position: absolute;
  inset: 12% -5%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #ffffff73, transparent 68%);
  transform: translate(var(--scene-x, 0px), var(--scene-y, 0px));
  pointer-events: none;
}
.fitting-placeholder {
  max-width: 24ch;
  margin: 28px;
  color: var(--navy);
  text-align: center;
}
.fitting-preview:not([data-renderer="idle"]) .fitting-placeholder { display: none; }
.fitting-preview[data-renderer="idle"] .fitting-fallback { display: none; }
.fitting-model, .fitting-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fitting-model { opacity: 0; pointer-events: none; --progress-bar-height: 0; }
.fitting-fallback {
  object-fit: contain;
  pointer-events: none;
  transition: transform .45s ease;
}
.fitting-preview[data-renderer="3d"] .fitting-model { opacity: 1; pointer-events: auto; }
.fitting-preview[data-renderer="3d"] .fitting-fallback { visibility: hidden; }
.fitting-preview[data-phase="formato"] .fitting-fallback { transform: scale(1.26); }
.fitting-preview[data-phase="lente"] .fitting-fallback { transform: translateX(-12%) scale(2); }
.fitting-stage-label {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 2px 6px;
  background: #fbf8f3e6;
  color: var(--navy);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.fitting-orbit { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 5px; }
.fitting-orbit button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--editorial-rule);
  border-radius: 2px;
  color: var(--navy);
  background: #fbf8f3e6;
  font: inherit;
  cursor: pointer;
}
.fitting-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
  padding-top: 7px;
  color: var(--navy);
  font-size: .78rem;
}
.fitting-preview figcaption small { font-size: .7rem; }
.fitting-hint { margin: 0 0 12px; color: var(--navy); font-size: .9rem; }

@media (max-width: 739px) {
  .fitting-copy { display: contents; }
  .fitting-heading { grid-row: 1; padding-top: 19px; }
  .fitting-preview { grid-row: 2; }
  #provador-form, #provador-resultado { grid-row: 3; padding-bottom: 19px; }
}
.fitting-progress { margin: 24px 0; }
.provador-progress { margin: 0 0 5px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.fitting-progress progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #e1d8ce;
  accent-color: var(--clock-blue);
}
.fitting-progress progress::-webkit-progress-bar { background: #e1d8ce; }
.fitting-progress progress::-webkit-progress-value { background: var(--clock-blue); }
.fitting-progress progress::-moz-progress-bar { background: var(--clock-blue); }

.provador-step { min-width: 0; margin: 0 0 15px; padding: 0; border: 0; }
.provador-step legend, #provador-resultado h3 {
  margin: 0 0 13px;
  padding: 0;
  font: 400 clamp(1.42rem, 3vw, 1.85rem)/1.17 var(--serif);
}

.provador-choices { display: grid; border-top: 1px solid var(--editorial-rule); }
.provador-choices label {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--editorial-rule);
  cursor: pointer;
}
.provador-choices label:hover { background: #f3ebe3; }
.provador-choices label:has(input:checked) { background: #e5ebee; }
.provador-choices input { accent-color: var(--clock-blue); }
.provador-choices input:focus-visible { outline: 2px solid var(--clock-blue); outline-offset: 2px; }
.provador-error { margin: 0 0 14px; color: #9a2923; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; }
.provador button.text-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.provador button:focus-visible { outline: 2px solid var(--clock-blue); outline-offset: 4px; }
.result-kicker { margin: 23px 0 9px; }
.provador-suggestion { max-width: 47ch; margin: 0 0 15px; }
.provador-summary { margin: 0 0 20px; border-top: 1px solid var(--editorial-rule); }
.provador-summary div {
  display: grid;
  grid-template-columns: minmax(80px, 26%) 1fr;
  align-items: baseline;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--editorial-rule);
}
.provador-summary dt { font-size: .78rem; font-weight: 700; }
.provador-summary dd { margin: 0; font-size: .91rem; }

@media (max-width: 350px) {
  .site-header { min-height: 56px; }
  .catalogue { margin-top: 11px; }
  .cards { gap: 7px; }
  .card { min-height: 61px; padding-block: 6px; }
  .card-title { font-size: 1.2rem; }
  .card-description { font-size: .69rem; }
  .card-arrow { font-size: 1rem; }
}

@media (min-width: 740px) {
  .shell { width: min(100% - 64px, 1200px); }
  .site-header { min-height: 70px; }
  .brand img { width: 194px; }
  .contact { font-size: .88rem; }
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: clamp(209px, 23vw, 250px);
  }
  .hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56%;
    height: 100%;
    object-position: center 40%;
  }
  .hero-copy { padding: 26px 20px 26px 35px; width: 44%; }
  .hero h1 { font-size: clamp(2.08rem, 4.2vw, 3.85rem); margin: 12px 0 10px; }
  .eyebrow { font-size: .72rem; }
  .hero-intro { font-size: 1rem; }
  .catalogue { margin-top: 21px; }
  .catalogue > h2 { margin-bottom: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .card {
    --photo-width: min(43%, 238px);
    min-height: 110px;
    padding: 15px calc(var(--photo-width) + 16px) 15px 20px;
  }
  .card-copy { gap: 5px; }
  .card-title { font-size: clamp(1.55rem, 2.9vw, 2.18rem); }
  .card-description { font-size: .89rem; }
  .card-arrow { font-size: 1.32rem; }
  .bio-links a { padding-inline: 12px; font-size: .85rem; }
  .site-footer { padding-top: 21px; font-size: .77rem; }
  .editorial-hero { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
  .editorial-hero .editorial-image { min-height: clamp(360px, 38vw, 472px); }
  .editorial--reverse .editorial-hero { grid-template-columns: minmax(0, 53fr) minmax(0, 47fr); }
  .editorial--reverse .editorial-image { grid-area: 1 / 1; }
  .editorial-section {
    grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
    column-gap: clamp(24px, 5vw, 65px);
  }
  .editorial-secondary { grid-column: 2; }
  .service-layout {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: clamp(25px, 6vw, 80px);
  }
  .service-copy { padding-block: 20px; }
  .fitting-layout { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
  .fitting-copy { padding-right: clamp(20px, 5vw, 65px); }
  .fitting-preview { margin-top: clamp(20px, 4vw, 49px); }
  .fitting-stage { min-height: clamp(360px, 38vw, 485px); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #optica .editorial-image img {
      scale: 1.1;
      animation: optica-depth linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes optica-depth {
      from { translate: 0 6px; }
      to { translate: 0 -6px; }
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .editorial { animation: arrive .34s ease-out both; }
  .card { animation: arrive .38s ease-out both; }
  .card:nth-child(2) { animation-delay: 35ms; }
  .card:nth-child(3) { animation-delay: 70ms; }
  .card:nth-child(4) { animation-delay: 105ms; }
  @keyframes arrive {
    from { opacity: .55; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover .card-photo, .card:hover .card-arrow { transform: none; }
}

