/* ==========================================================================
   CM Óculos — landing page
   ========================================================================== */

:root {
  --brand-400: #e3343b;
  --brand-500: #db1f29;
  --brand-600: #c1121d;
  --brand-700: #9b0a14;
  --brand-900: #5a0a11;
  --brand-950: #43070c;

  --ink: #171112;
  --ink-soft: #3f3a3a;
  --muted: #6e6462;
  --line: #f0ddd9;
  --surface: #ffffff;
  --bg: #fff9f7;
  --pink-surface: #fbedea;

  --container: 1160px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 20px;

  --shadow-card: 0 26px 50px -34px rgba(84, 10, 14, 0.5);
  --shadow-float: 0 22px 40px -22px rgba(60, 6, 10, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Evita rolagem horizontal sem quebrar o header sticky */
body {
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 96px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

::selection {
  background: rgba(219, 31, 41, 0.18);
  color: var(--brand-900);
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.script {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background-image: linear-gradient(135deg, #d91e27 0%, #b1101a 55%, #8e0710 100%);
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(157, 8, 18, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px -16px rgba(157, 8, 18, 0.85);
}

.btn--ghost {
  background-color: #fff;
  color: #b4131c;
  border-color: #efc9cc;
  box-shadow: 0 12px 26px -22px rgba(120, 10, 20, 0.7);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: #dda9ad;
  background-color: #fffafa;
}

.btn--light {
  background-color: #fff;
  color: #ad1019;
  box-shadow: 0 20px 35px -22px rgba(0, 0, 0, 0.5);
}

.btn--light:hover {
  transform: translateY(-2px);
  background-color: #fff5f4;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 221, 217, 0.65);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 36px -30px rgba(60, 6, 10, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 8px 18px -10px rgba(120, 10, 20, 0.6);
}

/* Recorte exato do círculo vermelho da logo (225x225, círculo em 41..186 / 33..178) */
.brand-mark img {
  position: absolute;
  left: -28.3%;
  top: -22.8%;
  width: 155.2%;
  height: auto;
  max-width: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav > a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--brand-500);
  transition: right 0.3s var(--ease-out);
}

.nav > a:not(.btn):hover {
  color: var(--brand-600);
}

.nav > a:not(.btn):hover::after {
  right: 0;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: #fff;
  color: var(--brand-700);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.menu-toggle:hover {
  border-color: #e2b7ba;
  background-color: #fff7f6;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon--close {
  display: none;
}

.site-header.is-open .menu-toggle .icon--menu {
  display: none;
}

.site-header.is-open .menu-toggle .icon--close {
  display: inline-block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 clamp(76px, 9vw, 124px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -12%;
  width: min(64vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(224, 48, 56, 0.12), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d3242b;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: #141010;
}

.hero-script {
  margin: 2px 0 0;
  font-size: clamp(2.55rem, 4.8vw, 3.95rem);
  line-height: 1.08;
  color: #b7131c;
}

.hero-lead {
  max-width: 480px;
  margin: 24px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Hero photo */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 16px;
}

.hero-frame {
  position: relative;
  width: min(100%, 468px);
  padding: 13px 11px 17px 15px;
  border-radius: 44px;
  background-image: linear-gradient(150deg, #e23b41 0%, #bb101b 52%, #83000c 100%);
  transform: rotate(-5deg);
  box-shadow: 0 50px 80px -42px rgba(120, 0, 12, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-photo {
  overflow: hidden;
  border-radius: 32px;
  background-color: #eedcd6;
  box-shadow: 0 24px 46px -28px rgba(60, 0, 6, 0.75);
  transform: rotate(1.2deg);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 26%;
}

.hero-badge {
  position: absolute;
  left: -6px;
  bottom: -8px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 22px 12px 14px;
  border-radius: 22px;
  background-color: #fff;
  box-shadow: var(--shadow-float);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 48px -24px rgba(60, 6, 10, 0.42);
}

.hero-badge__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-image: linear-gradient(140deg, #dc1f29, #8f0711);
  color: #fff;
}

.hero-badge__icon .icon {
  width: 20px;
  height: 20px;
}

.hero-badge__text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.hero-badge__text small {
  display: block;
  font-size: 0.74rem;
  color: #847674;
}

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-align: center;
  color: #191213;
}

.section-title .script {
  display: inline-block;
  font-size: 1.16em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand-600);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: clamp(64px, 8vw, 96px) 0;
  background-color: var(--pink-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(36px, 5vw, 54px);
}

.service-card {
  padding: 26px 24px 30px;
  border-radius: var(--radius-lg);
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 55px -30px rgba(84, 10, 14, 0.55);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background-image: linear-gradient(150deg, #dd2931, #90080f);
  color: #fff;
  box-shadow: 0 16px 26px -18px rgba(140, 6, 14, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.service-card__icon .icon {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #716563;
}

.lens-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 46px);
}

.lens-types__label {
  margin-right: 4px;
  font-size: 0.92rem;
  color: #7b6e6b;
}

.chip {
  padding: 9px 20px;
  border: 1px solid #f1d4d5;
  border-radius: 999px;
  background-color: #fff;
  color: #6e5f5d;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, color 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: #dca9ad;
  color: #b4131c;
}

/* ==========================================================================
   Home visit banner
   ========================================================================== */

.visit {
  padding: clamp(46px, 6vw, 74px) 0 clamp(54px, 7vw, 84px);
  background-color: #fff;
}

.visit-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4.6vw, 58px) clamp(26px, 4.6vw, 64px);
  border-radius: var(--radius-xl);
  background-image: linear-gradient(120deg, #de212c 0%, #b60f1a 46%, #8a0710 100%);
  color: #fff;
  box-shadow: 0 42px 72px -42px rgba(120, 6, 14, 0.75);
}

.visit-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.visit-watermark {
  position: absolute;
  top: -12%;
  right: clamp(6px, 3vw, 44px);
  width: clamp(140px, 17vw, 216px);
  height: auto;
  color: #fff;
  opacity: 0.1;
  stroke-width: 1.1;
  pointer-events: none;
}

.visit-card h2 {
  position: relative;
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.visit-card p {
  position: relative;
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.visit-card .btn {
  position: relative;
  margin-top: 30px;
}

/* ==========================================================================
   Location
   ========================================================================== */

.location {
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background-color: var(--bg);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(34px, 4.5vw, 52px);
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid #f7e7e4;
  border-radius: var(--radius-md);
  background-color: #fff;
  box-shadow: 0 22px 42px -36px rgba(84, 10, 14, 0.75);
}

.info-card__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #f7ddda;
  border-radius: 50%;
  background-color: #fff4f2;
  color: #c9161f;
}

.info-card__icon .icon {
  width: 21px;
  height: 21px;
}

.info-card h3 {
  margin: 2px 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #746663;
}

.info-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #be111b;
  transition: gap 0.25s var(--ease-out), color 0.25s ease;
}

.info-card a .icon {
  width: 15px;
  height: 15px;
}

.info-card a:hover {
  gap: 10px;
  color: #8f0710;
}

.location-script {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(38px, 5vw, 58px) 0 0;
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  text-align: center;
  color: #6d0c13;
}

.location-script .icon {
  width: 0.78em;
  height: 0.78em;
  fill: currentColor;
  stroke: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 26px 0;
  background-color: var(--brand-900);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark--footer {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.14);
}

.footer-social .icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-lead {
    max-width: 540px;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 22px;
    background-color: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 44px -34px rgba(60, 6, 10, 0.65);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav > a:not(.btn) {
    padding: 14px 2px;
    border-bottom: 1px solid #f7e9e6;
    font-size: 1rem;
  }

  .nav > a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 16px;
    align-self: flex-start;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .hero-script {
    margin-top: 6px;
  }

  .hero-frame {
    width: calc(100% - 32px);
    transform: rotate(-4deg);
  }

  .hero-badge {
    left: 4px;
    bottom: -12px;
    padding: 10px 16px 10px 12px;
    border-radius: 18px;
  }

  .hero-badge__icon {
    width: 36px;
    height: 36px;
  }

  .hero-badge__text strong {
    font-size: 0.95rem;
  }

  .hero-badge__text small {
    font-size: 0.68rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .service-card {
    padding: 22px 20px 24px;
  }

  .lens-types {
    justify-content: flex-start;
    gap: 8px;
  }

  .lens-types__label {
    width: 100%;
    margin-bottom: 2px;
  }

  .chip {
    padding: 8px 16px;
    font-size: 0.84rem;
  }

  .visit-card {
    border-radius: 26px;
  }

  .visit-card .btn {
    width: 100%;
  }

  .info-card {
    padding: 20px 20px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-brand p {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
  }

  .footer-social .icon {
    width: 20px;
    height: 20px;
  }
}
