/* ==========================================================================
   Ótica Focalize — design system
   ========================================================================== */

:root {
  --orange: #fa6207;
  --orange-dark: #d95400;
  --orange-light: #fff1e0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --ink: #1c1b1f;
  --ink-soft: #5a5a63;
  --ink-faint: #8a8a92;
  --surface: #ffffff;
  --surface-alt: #faf7f4;
  --surface-dark: #15161a;
  --surface-dark-soft: #202127;
  --border: #ececec;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(28, 27, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 27, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 27, 31, 0.16);

  --container: 1180px;
  --header-h: 84px;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
section { position: relative; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 88px 0; }
@media (max-width: 720px) {
  .section-pad { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
}

.section-sub {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(28, 27, 31, 0.18); }

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links a { width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--ink); }
  .nav-links a::after { background: var(--orange); }
  .site-header.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-whatsapp span.btn-label-full { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 122, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
}

.hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 800;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-lead {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-lead strong { color: var(--ink); }

.hero-badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.badge-orange { background: var(--orange); color: #fff; }
.badge-dark { background: var(--surface-dark); color: #ffe27a; }
.badge svg { width: 16px; height: 16px; }

.hero-cta { margin-top: 30px; }

.hero-media {
  display: flex;
  justify-content: center;
}
.hero-video {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-dark);
}
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Slider (loja) ---------- */
.slider { position: relative; margin-top: 44px; }
.slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 24px 14px;
  margin: 0 -24px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: min(72vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { transform: translateY(-50%) scale(1.06); box-shadow: var(--shadow-lg); }
.slider-prev { left: 4px; }
.slider-next { right: 4px; }
@media (max-width: 720px) {
  .slider-btn { display: none; }
}
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.slider-dots button.active { width: 24px; background: var(--orange); }

/* ---------- Sobre / mission cards ---------- */
.about-lead {
  max-width: 880px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}
.about-lead a { color: var(--orange); font-weight: 600; }

.value-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-light);
  border-radius: 14px;
}
.value-icon svg { width: 28px; height: 28px; fill: var(--orange); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Produtos ---------- */
.section-alt { background: var(--surface-alt); }

.product-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body h3 { font-size: 1.25rem; }
.product-body p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; flex: 1; }

/* ---------- Marcas / brands ---------- */
.brand-block { margin-top: 48px; }
.brand-block + .brand-block { margin-top: 44px; }
.brand-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 22px;
}
.brand-block img {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Laboratórios ---------- */
.lab-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
}
.lab-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lab-card img { max-width: 130px; width: 100%; }

/* ---------- Avaliações ---------- */
.reviews {
  background: var(--surface-dark);
  color: #fff;
  text-align: center;
}
.reviews .section-title { color: #fff; }
.reviews .section-sub { color: rgba(255,255,255,0.65); margin-left: auto; margin-right: auto; }
.review-card {
  margin: 40px auto 0;
  max-width: 360px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.review-stars { color: #ffb400; font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 10px; }

/* ---------- Endereço ---------- */
.contact {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 44px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact .eyebrow { color: #ffe4bf; }
.contact .section-title { color: #fff; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .ico svg { width: 20px; height: 20px; fill: #fff; }
.contact-info-item h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 4px; }
.contact-info-item p { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.6; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Parcerias ---------- */
.partners {
  background: var(--surface-alt);
  text-align: center;
}
.partners .section-sub { margin-left: auto; margin-right: auto; }
.partners .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.94rem; line-height: 1.6; margin-bottom: 20px; }
.footer-col h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col li { font-size: 0.9rem; line-height: 2; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social img { width: 22px; height: 22px; border-radius: 6px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float .wa-label {
  display: grid;
  grid-template-columns: 1fr;
}
.wa-float .wa-label span {
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  padding-left: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
