/*
Theme Name: Estética Alencar
Theme URI: https://esteticaalencar.com.br
Author: Estética Alencar
Author URI: https://esteticaalencar.com.br
Description: Tema institucional para a Clínica Alencar — Biomedicina Estética, desenvolvido a partir da identidade visual oficial da marca (Verde Figueira, Terracota Suave, Marfim Mineral, Bege Mineral e Grafite Quente), com tipografia Bodoni Moda e Manrope. Página inicial em formato one-page com seções editáveis pelo Personalizador do WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estetica-alencar
Tags: custom-menu, featured-images, one-column, translation-ready
*/

/* ==========================================================================
   0. FONTES, VARIÁVEIS E RESET
   ========================================================================== */

:root{
  --verde: #34483F;
  --verde-escuro: #263831;
  --terracota: #B77D6F;
  --terracota-escuro: #9c6659;
  --marfim: #F4F0E8;
  --bege: #CFC2B1;
  --grafite: #302C29;
  --branco: #FFFFFF;

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-organic: 63% 37% 54% 46% / 43% 37% 63% 57%;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body{
  margin: 0;
  background: var(--marfim);
  color: var(--grafite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: var(--serif); font-weight: 500; color: var(--verde); }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracota);
  font-weight: 600;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terracota);
  display: inline-block;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--terracota); color: var(--branco); }
.btn-primary:hover{ background: var(--terracota-escuro); transform: translateY(-2px); }
.btn-outline{ border-color: var(--verde); color: var(--verde); background: transparent; }
.btn-outline:hover{ background: var(--verde); color: var(--branco); transform: translateY(-2px); }
.btn-light{ border-color: rgba(255,255,255,.55); color: var(--branco); }
.btn-light:hover{ background: var(--branco); color: var(--verde); }

.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   1. HEADER
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,240,232,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(48,44,41,.08);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
}
.site-logo img{ height: 52px; width: auto; }

.primary-nav ul{
  display: flex;
  gap: 34px;
  align-items: center;
}
.primary-nav ul li{ margin-right: 34px; }
.primary-nav ul li:last-child{ margin-right: 0; }
.primary-nav a{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--verde);
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--terracota);
  transition: right .3s ease;
}
.primary-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.header-actions .btn{ padding: 12px 24px; font-size: .82rem; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 24px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--verde);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span{ top: 11px; }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-open .nav-toggle span{ background: transparent; }
.nav-open .nav-toggle span::before{ transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after{ transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero{
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero .container{
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.hero-copy{ flex: 1 1 480px; min-width: 0; }
.hero-visual{ flex: 1 1 380px; min-width: 0; max-width: 460px; }
.hero-copy h1{
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 18px 0 26px;
}
.hero-copy p{
  max-width: 52ch;
  color: var(--grafite);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.hero-copy p.hero-sign{
  font-family: var(--serif);
  font-style: italic;
  color: var(--verde);
  font-size: 1.15rem;
  margin-top: 24px;
}
.hero-actions{ display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-visual{ position: relative; }
.hero-ribbon{ position: absolute; inset: -14% -22% auto auto; width: 130%; opacity: .55; z-index: 0; pointer-events: none; }
.hero-frame{
  position: relative;
  z-index: 1;
  border-radius: var(--radius-organic);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 70px -30px rgba(38,56,49,.45);
}
.hero-frame img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-blob{
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  background: var(--bege);
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  right: -12%;
  bottom: -12%;
  z-index: 0;
}
.hero-credential{
  position: absolute;
  left: -34px;
  bottom: 36px;
  z-index: 2;
  background: var(--branco);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px -18px rgba(38,56,49,.35);
  max-width: 230px;
}
.hero-credential strong{ display: block; font-family: var(--serif); color: var(--verde); font-size: 1.05rem; }
.hero-credential span{ font-size: .78rem; color: var(--grafite); opacity: .75; }

/* ==========================================================================
   3. VALUE STRIP
   ========================================================================== */

.value-strip{
  border-top: 1px solid rgba(48,44,41,.1);
  border-bottom: 1px solid rgba(48,44,41,.1);
}
.value-strip .container{
  display: flex;
  flex-wrap: wrap;
}
.value-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 34px 26px;
  border-left: 1px solid rgba(48,44,41,.1);
  flex: 1 1 280px;
  min-width: 0;
}
.value-item:first-child{ border-left: none; padding-left: 0; }
.value-item svg{ flex-shrink: 0; width: 34px; height: 34px; color: var(--terracota); }
.value-item h3{ font-size: 1.05rem; margin-bottom: 6px; }
.value-item p{ font-size: .88rem; color: var(--grafite); opacity: .8; }

/* ==========================================================================
   4. TRATAMENTOS
   ========================================================================== */

.section{ padding: 108px 0; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 14px 0 16px; line-height: 1.12; }
.section-head p{ color: var(--grafite); opacity: .85; font-size: 1.02rem; }

.treatments-grid{ display: flex; flex-wrap: wrap; gap: 28px; }
.treatment-card{
  flex: 1 1 300px;
  min-width: 0;
  padding: 40px 30px;
  border: 1px solid rgba(52,72,63,.14);
  border-radius: 28px 8px 28px 8px;
  background: var(--branco);
  transition: border-color .3s ease, transform .3s ease;
}
.treatment-card:hover{ border-color: var(--terracota); transform: translateY(-6px); }
.treatment-card .icon-wrap{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--marfim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.treatment-card svg{ width: 28px; height: 28px; color: var(--verde); }
.treatment-card h3{ font-size: 1.3rem; margin-bottom: 12px; }
.treatment-card p{ font-size: .92rem; color: var(--grafite); opacity: .82; margin-bottom: 18px; }
.treatment-card .card-link{ font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: var(--terracota); }

/* ==========================================================================
   5. MANIFESTO
   ========================================================================== */

.manifesto{
  position: relative;
  background: var(--verde);
  color: var(--branco);
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}
.manifesto-ribbon{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; }
.manifesto .container{ position: relative; z-index: 1; }
.manifesto blockquote{
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto;
  font-style: italic;
}
.manifesto blockquote .accent{ color: var(--terracota); font-style: normal; }
.manifesto cite{ display: block; margin-top: 28px; font-style: normal; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* ==========================================================================
   6. PROCESSO (AVALIAÇÃO)
   ========================================================================== */

.process{ background: var(--branco); }
.process-grid{ display: flex; flex-wrap: wrap; gap: 30px; position: relative; }
.process-grid::before{
  content: "";
  position: absolute;
  top: 22px; left: 6%; right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--bege) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process-step{ position: relative; z-index: 1; flex: 1 1 220px; min-width: 0; }
.process-num{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--branco);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.process-step h3{ font-size: 1.05rem; margin-bottom: 10px; }
.process-step p{ font-size: .88rem; color: var(--grafite); opacity: .8; }

/* ==========================================================================
   7. PRESENÇA DIGITAL
   ========================================================================== */

.presence{ background: var(--marfim); }
.presence-grid{ display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 46px; }
.presence-card{
  flex: 1 1 280px;
  min-width: 0;
  padding: 34px;
  background: var(--branco);
  border-radius: 20px;
  border: 1px solid rgba(52,72,63,.1);
}
.presence-icon{
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--verde);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.presence-icon svg{ width: 22px; height: 22px; color: var(--verde); }
.presence-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.presence-card p{ font-size: .88rem; color: var(--grafite); opacity: .8; }

.presence-tagline{
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--verde);
  padding: 30px 0 6px;
  border-top: 1px solid rgba(52,72,63,.15);
}
.presence-tagline .accent{ color: var(--terracota); }

/* ==========================================================================
   8. CTA FINAL
   ========================================================================== */

.cta-final{
  background: var(--grafite);
  color: var(--branco);
  padding: 60px 0;
}
.cta-final .container{
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-final h2{ color: var(--branco); font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 480px; }
.cta-final-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer{ background: var(--verde-escuro); color: rgba(255,255,255,.85); padding: 80px 0 30px; }
.footer-top{ display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 56px; }
.footer-brand{ flex: 1.3 1 260px; min-width: 0; }
.footer-col{ flex: 1 1 160px; min-width: 0; }
.footer-brand img{ height: 46px; margin-bottom: 18px; }
.footer-brand p{ font-size: .88rem; opacity: .75; max-width: 30ch; }
.footer-col h4{ color: var(--branco); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--sans); font-weight: 700; }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span{ font-size: .9rem; opacity: .85; }
.footer-col a:hover{ opacity: 1; text-decoration: underline; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; opacity: .65;
}

/* ==========================================================================
   10. RESPONSIVO
   ========================================================================== */

@media (max-width: 980px){
  .hero-copy, .hero-visual{ flex-basis: 100%; }
  .hero-visual{ order: -1; max-width: 420px; margin: 0 auto 56px; }
  .value-item{ flex-basis: 100%; border-left: none; border-top: 1px solid rgba(48,44,41,.1); padding-left: 0; }
  .value-item:first-child{ border-top: none; }
  .treatment-card{ flex-basis: 100%; }
  .process-step{ flex-basis: 40%; }
  .process-grid::before{ display: none; }
  .presence-card{ flex-basis: 100%; }
  .footer-brand, .footer-col{ flex-basis: 45%; }
}

@media (max-width: 760px){
  .primary-nav, .header-actions .btn-outline{ display: none; }
  .nav-toggle{ display: block; }
  .nav-open .primary-nav{
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--marfim);
    border-bottom: 1px solid rgba(48,44,41,.1);
    padding: 20px 32px 28px;
  }
  .nav-open .primary-nav ul{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-open .primary-nav ul li{ margin-right: 0; }
  .cta-final .container{ flex-direction: column; text-align: center; justify-content: center; }
  .footer-brand, .footer-col{ flex-basis: 100%; }
  .footer-top{ gap: 34px; }
  .header-actions{ gap: 10px; }
}

@media (max-width: 560px){
  .header-inner{ padding: 14px 20px; }
  .container{ padding: 0 20px; }
  .hero{ padding: 50px 0 60px; }
  .hero-credential{ left: 0; bottom: -20px; padding: 12px 16px; max-width: 190px; }
  .section{ padding: 72px 0; }
  .manifesto{ padding: 84px 0; }
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}
