/* ============================================================
   Óticas Miriam Calçadão — identidade visual
   ============================================================ */
:root {
  --cream:        #F4F0E6;
  --cream-soft:   #F8F5EE;
  --card:         #FBFAF5;
  --green:        #2C3A2E;
  --green-deep:   #212B22;
  --green-line:   #3A4A3B;
  --gold:         #B08E52;
  --gold-soft:    #C4A56A;
  --ink:          #29281F;
  --muted:        #6E6C60;
  --muted-light:  #9A978A;
  --line:         #E6E0D2;
  --wa:           #1F9D57;
  --wa-dark:      #2C3A2E;
  --star:         #D9A93A;

  --header-bg:    rgba(244,240,230,0.92);
  --nav-btn-bg:   rgba(244,240,230,0.88);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 6px;
}

/* ---------- modo escuro ---------- */
[data-theme="dark"] {
  --cream:        #1B1F1A;
  --cream-soft:   #20251F;
  --card:         #262B24;
  --ink:          #EDEAE0;
  --muted:        #ABA894;
  --muted-light:  #7D7A68;
  --line:         #34392F;
  --header-bg:    rgba(27,31,26,0.92);
  --nav-btn-bg:   rgba(27,31,26,0.85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.serif { font-family: var(--serif); }
.accent { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.12; }

.section-title {
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
}

.link-gold {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}
.link-gold:hover { gap: 0.85rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa      { background: var(--wa); color: #fff; }
.btn-wa:hover{ background: #1a8a4b; }
.btn-dark    { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--card); border-color: var(--gold); }
.btn-light   { background: var(--cream); color: var(--green); }
.btn-light:hover { background: #fff; }

.wa-icon { width: 18px; height: 18px; display: inline-block; fill: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  height: 84px;
}
.header-actions { display: flex; align-items: center; gap: 0.7rem; }

/* logo: troca para a versão branca em modo escuro (fundo do header escurece) */
.site-header .logo-dark { display: none; }
[data-theme="dark"] .site-header .logo-light { display: none; }
[data-theme="dark"] .site-header .logo-dark { display: block; }

/* ---------- alternador de tema ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { background: var(--card); border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.brand { text-align: center; line-height: 1; }
.brand .b-top    { font-size: 0.6rem; letter-spacing: 0.35em; color: var(--muted); text-transform: uppercase; }
.brand .b-main   { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.12em; color: var(--ink); font-weight: 500; }
.brand .b-sub    { font-size: 0.52rem; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.86rem; color: var(--ink); font-weight: 500;
  position: relative; padding: 0.2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: var(--gold); transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,36,28,0.86) 0%, rgba(28,36,28,0.55) 42%, rgba(28,36,28,0.12) 78%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4rem 32px; width: 100%; }
.hero-content { max-width: 520px; color: #fff; }
.hero h1 {
  color: #fff; font-size: 3.5rem; line-height: 1.08; font-weight: 500; margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--gold-soft); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.02rem; max-width: 34ch; margin: 0 0 2rem; }

/* ============================================================
   VENDA CONSULTIVA (split)
   ============================================================ */
.section { padding: 5.5rem 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.split h2 { font-size: 2.3rem; margin-bottom: 1.3rem; }
.split .lead { margin-bottom: 1.8rem; }
.highlight-phrase { color: var(--gold); font-size: 1.35rem; line-height: 1.45; margin: 0 0 1.4rem; max-width: 40ch; }
.media-frame { border-radius: var(--radius); overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   COLEÇÕES
   ============================================================ */
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.collections {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; margin: 2.8rem 0 2.4rem;
}
.col-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.col-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(40,40,30,0.10); }
.col-card .thumb { aspect-ratio: 1 / 1.05; overflow: hidden; }
.col-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.col-card .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.85rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.col-card .foot .arrow { color: var(--gold); }

/* ============================================================
   AMBIENTE
   ============================================================ */
.ambiente { background: var(--cream-soft); position: relative; }
.leaf {
  position: absolute; right: 2%; top: 10%; width: 180px; opacity: 0.25; pointer-events: none;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.rating-summary { display: inline-flex; align-items: center; gap: 1rem; margin: 1.4rem auto 0; }
.rating-summary .rating-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); font-weight: 600; }
.rating-summary .rating-meta { text-align: left; }
.rating-summary .rating-count { font-size: 0.82rem; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.review-meta .who-wrap { display: inline-flex; align-items: center; gap: 0.55rem; }
.review-meta .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.review-date { font-size: 0.75rem; color: var(--muted-light); text-align: left; }
.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.9rem; }
.review-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.review-meta { display: flex; align-items: center; justify-content: space-between; }
.review-meta .who { font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.g-icon { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 2rem; }
.dots span, .dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  padding: 0; border: none; cursor: pointer; transition: width 0.2s ease, background 0.2s ease;
}
.dots span.on, .dots button.on { background: var(--gold); width: 22px; border-radius: 4px; }

/* ============================================================
   ONDE ESTAMOS
   ============================================================ */
.local { display: grid; grid-template-columns: 1fr 1.15fr; }
.local-info { background: var(--green); color: #fff; padding: 4rem 3.5rem; }
.local-info .eyebrow { color: var(--gold-soft); }
.local-info h2 { color: #fff; font-size: 2rem; margin-bottom: 1.4rem; }
.local-info .addr { color: rgba(255,255,255,0.8); line-height: 1.9; font-size: 0.96rem; margin-bottom: 1.8rem; }
.local-info .addr .phone { display: inline-flex; align-items: center; gap: 0.5rem; }
.local-map { min-height: 380px; }
.local-map img { width: 100%; height: 100%; object-fit: cover; }
.pin { color: var(--gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--green-line);
}
.footer-brand .b-main { color: #fff; }
.footer-brand .b-top { color: rgba(255,255,255,0.6); }
.footer-brand .b-sub { color: var(--gold-soft); }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 1.1rem; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: 0.8rem; margin-top: 0.3rem; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--green-line); border-radius: 50%;
  display: grid; place-items: center; transition: 0.2s;
}
.socials a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-note { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; line-height: 1.6; }
.footer-note .heart { color: var(--gold-soft); flex-shrink: 0; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 0; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom .dev { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ============================================================
   LOGO OFICIAL
   ============================================================ */
.brand-logo { height: 44px; width: auto; }
.hero-logo   { height: 54px; margin-bottom: 2rem; }
.footer-logo { height: 46px; margin-bottom: 1.2rem; }

/* ============================================================
   CARROSSEL (ambiente e avaliações)
   ============================================================ */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }

/* galeria de fotos do ambiente */
.media-frame.carousel { aspect-ratio: 1000 / 545; }
.media-frame.carousel .carousel-track,
.media-frame.carousel .carousel-slide { height: 100%; }
.media-frame.carousel .carousel-slide { flex: 0 0 100%; }
.media-frame.carousel .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--nav-btn-bg); color: var(--green);
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: background 0.2s ease;
}
.carousel-nav:hover { background: #fff; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.ambiente .carousel-dots { margin-top: 1rem; }

/* trilho das avaliações — mantém a mesma grade de 4 colunas */
.reviews.carousel-track { display: flex; }
.reviews.carousel-track > .review-card { flex: 0 0 calc((100% - 3 * 1.2rem) / 4); }

/* ============================================================
   RODAPÉ — endereço e WhatsApp inline
   ============================================================ */
.footer-addr { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.7; margin: 0 0 1.2rem; }
.wa-inline { display: inline-flex; align-items: center; gap: 0.45rem; }

/* ============================================================
   RESPONSIVO (versão web degrada em telas menores)
   ============================================================ */
@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.reverse .media-frame { order: -1; }
  .collections { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .reviews.carousel-track > .review-card { flex: 0 0 calc((100% - 1.2rem) / 2); }
  .local { grid-template-columns: 1fr; }
  .local-map { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.6rem; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .reviews.carousel-track > .review-card { flex: 0 0 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .brand-logo { height: 38px; }
  .hero-logo { height: 46px; }
}
