/* ============================================================
   Dra. Renata Tavares — LP "Galeria de Arte"
   Paleta: #FAF6F1 / #F0E6D9 / #C9A788 / #B25B3E / #6E3A1F / #2A1810
   Tipografia: Cormorant Garamond (display/serif) + Inter (sans)
   ============================================================ */

:root {
  --paper:       #FAF6F1;
  --paper-soft:  #F0E6D9;
  --sand:        #E5D6C2;
  --taupe:       #C9A788;
  --terracotta:  #B25B3E;
  --terracotta-dark: #8E4329;
  --brown:       #6E3A1F;
  --ink:         #2A1810;
  --ink-soft:    #4A3A30;
  --line:        rgba(110, 58, 31, 0.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --radius: 14px;

  --shadow-sm: 0 6px 18px -8px rgba(42, 24, 16, 0.18);
  --shadow-md: 0 18px 40px -16px rgba(42, 24, 16, 0.25);
  --shadow-lg: 0 30px 80px -24px rgba(42, 24, 16, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* textura de papel sutil */
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(178, 91, 62, 0.06), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(201, 167, 136, 0.10), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta-dark); }

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

/* ============ TIPOGRAFIA ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--brown);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
}

p { margin: 0 0 1.1em; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--terracotta);
}
.section-eyebrow--light { color: var(--paper-soft); }
.section-eyebrow--light::before { background: var(--paper-soft); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}
.section-title--light { color: var(--paper); }
.section-title--light em { color: var(--taupe); }

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

.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head--center .section-sub { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  background: rgba(178, 91, 62, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(178, 91, 62, 0.18);
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--terracotta);
  color: #fff !important;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--terracotta);
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}
.btn-primary--soft {
  background: var(--brown);
  border-color: var(--brown);
}
.btn-primary--soft:hover { background: var(--ink); border-color: var(--ink); }

.btn-primary--xl {
  padding: 20px 38px;
  font-size: 17px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  background: transparent;
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--paper-soft);
  border-color: var(--taupe);
  color: var(--brown);
}

.btn-ghost--header { padding: 11px 22px; font-size: 13.5px; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--ink);
  color: var(--paper-soft);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  gap: 16px;
}
.topbar-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-soft);
  opacity: .9;
}
.topbar-address:hover { color: var(--paper); opacity: 1; }
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-soft);
  font-weight: 500;
}
.topbar-cta:hover { color: #fff; }

@media (max-width: 720px) {
  .topbar-address span { display: none; }
  .topbar-address::after { content: "Como chegar"; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brown);
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand img { height: 48px; }
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: var(--terracotta); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--brown);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .btn-ghost--header { display: none; }
  .nav-toggle { display: block; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin: 22px 0 24px;
  color: var(--ink);
  line-height: 1.15;
}
.hero-lead {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.meta-label {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 220px;
}
.meta-divider {
  width: 1px; height: 40px;
  background: var(--line);
}

/* hero art (foto enquadrada — moldura clássica de museu) */
.hero-art {
  position: relative;
  z-index: 2;
}
.frame {
  position: relative;
  background: var(--paper);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.frame-mat {
  background: var(--paper-soft);
  padding: 18px;
  position: relative;
}
.frame-mat::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(110, 58, 31, 0.20);
  pointer-events: none;
}
.frame-mat img {
  width: 100%;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.frame-tag {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.frame-shadow {
  position: absolute;
  inset: 30px -20px -20px 30px;
  background: radial-gradient(ellipse, rgba(178, 91, 62, 0.14), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

/* pinceladas — impasto (Van Gogh) */
.brush { pointer-events: none; }

/* assinatura inline acima do eyebrow */
.brush--inline {
  display: block;
  width: 200px;
  height: 26px;
  margin-bottom: 18px;
}
.brush--inline-light {
  margin-inline: auto;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .hero { padding: 50px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .hero-meta { flex-wrap: wrap; gap: 18px; }
  .meta-divider { display: none; }
}

/* ============ SOBRE ============ */
.sobre {
  padding: 110px 0;
  position: relative;
  background-color: var(--paper-soft);
  background-image:
    linear-gradient(rgba(250, 246, 241, 0.78), rgba(245, 235, 220, 0.82)),
    url('../img/bg-arte-claro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.sobre-image {
  position: relative;
}
.sobre-image::before {
  content: "";
  position: absolute;
  inset: -20px -20px 20px 20px;
  background: var(--terracotta);
  opacity: 0.12;
  border-radius: 4px;
  z-index: 0;
}
.sobre-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--paper);
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.sobre-text blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--paper);
  border-left: 3px solid var(--terracotta);
  border-radius: 4px;
}
.sobre-text blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brown);
  margin: 0 0 8px;
  line-height: 1.4;
}
.sobre-text blockquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.credentials li {
  font-size: 13px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.credentials strong {
  color: var(--brown);
  font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 900px) {
  .sobre { padding: 70px 0; }
  .sobre-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============ PROCEDIMENTOS ============ */
.procedimentos {
  padding: 120px 0;
  position: relative;
}

.proc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.proc-cat {
  position: relative;
  padding: 44px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.proc-cat::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.proc-cat:hover {
  background: var(--paper-soft);
}
.proc-cat:hover::before { transform: scaleX(1); }

.proc-cat-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--terracotta);
}
.proc-cat-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--brown);
  margin: 0;
  line-height: 1.1;
}
.proc-cat-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: auto;
}

.proc-cta {
  margin-top: 70px;
  text-align: center;
  padding: 50px 30px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.proc-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 22px;
  max-width: 620px;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .procedimentos { padding: 80px 0; }
  .proc-cat { padding: 32px 24px 28px; min-height: auto; }
  .proc-cat-title { font-size: 1.6rem; }
}

/* ============ CONSULTÓRIO ============ */
.consultorio {
  padding: 120px 0;
  background: var(--paper-soft);
  position: relative;
}
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.consult-text { max-width: 500px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--terracotta);
}
.contact-list strong {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.contact-list a {
  color: var(--brown);
  font-size: 15.5px;
  line-height: 1.5;
}
.contact-list a:hover { color: var(--terracotta); }

/* gallery */
.consult-gallery { position: relative; }
.gallery-stage {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.gallery-img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.gallery-img.is-active { opacity: 1; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 246, 241, 0.9);
  color: var(--brown);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: all .2s ease;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  line-height: 1;
}
.gallery-arrow:hover { background: var(--terracotta); color: #fff; }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.gallery-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--taupe);
  border: 0;
  cursor: pointer;
  opacity: .5;
  transition: all .2s ease;
}
.gallery-dots button.is-active {
  background: var(--terracotta);
  opacity: 1;
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .consultorio { padding: 70px 0; }
  .consult-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============ CTA FINAL ============ */
.cta-final {
  position: relative;
  padding: 130px 0;
  background-color: #4A0F1F; /* fallback burgundy enquanto a imagem carrega */
  background-image:
    linear-gradient(rgba(40, 8, 18, 0.55), rgba(40, 8, 18, 0.55)),
    url('../img/bg-arte.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--paper-soft);
  overflow: hidden;
  text-align: center;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  padding: 0 20px;
}
.cta-inner .section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}
.cta-inner p {
  font-size: 1.05rem;
  margin-bottom: 36px;
  color: rgba(250, 246, 241, 0.85);
}
.cta-inner .btn-primary {
  background: var(--paper);
  color: var(--brown) !important;
  border-color: var(--paper);
}
.cta-inner .btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff !important;
}
.cta-small {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 241, 0.5);
}

@media (max-width: 720px) {
  .cta-final { padding: 80px 0; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(250, 246, 241, 0.6);
  padding: 60px 0 40px;
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-credentials {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 241, 0.7);
}
.footer-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-meta a {
  color: rgba(250, 246, 241, 0.85);
}
.footer-meta a:hover { color: var(--paper); }
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250, 246, 241, 0.45);
  max-width: 640px;
  margin: 0 auto;
}

/* ============ WHATSAPP FLOATING ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 16px 40px -10px rgba(37, 211, 102, 0.7);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============ FADE-UP ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
