/*
Theme Name: Dra. Raquel Sucupira
Theme URI: https://github.com
Author: Dra. Raquel Sucupira
Description: Site profissional para Dra. Raquel Sucupira, Médica Dermatologista. Todo o conteúdo (textos, fotos, WhatsApp, Instagram) pode ser editado em Aparência > Personalizar.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dra-raquel
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --cream:    #f7f3ee;
  --cream-md: #f0ebe3;
  --gold:     #c9a96e;
  --gold-lt:  #dfc99a;
  --espresso: #2a221a;
  --muted:    #7a6f66;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--espresso);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e0d4;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(42,34,26,0.08); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--espresso);
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: white !important;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--espresso) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  transition: 0.3s;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: 0;
  padding-top: 72px;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 8% 8% 7%;
  background: var(--cream);
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--gold-lt);
  padding-top: 0.6rem;
  margin-bottom: 1.4rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.8;
  margin-bottom: 2.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: white;
  padding: 0.85rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--espresso); transform: translateY(-1px); color: white; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold-lt);
  color: var(--espresso);
  padding: 0.85rem 2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.25s, background 0.25s;
}
.btn-outline:hover { border-color: var(--gold); background: #f0ebe3; }

.hero-crm {
  margin-top: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  text-transform: uppercase;
}

/* ── SECTION SHARED ── */
section { padding: 96px 5%; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--espresso);
  margin-bottom: 1.6rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* ── SOBRE ── */
#sobre {
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 96px 8%;
}

.sobre-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.sobre-image img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.sobre-image::after {
  content: '';
  position: absolute;
  inset: -8px -8px auto auto;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold-lt);
  border-radius: 2px;
  pointer-events: none;
  z-index: -1;
}

.sobre-text p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid #ede7df;
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--espresso);
}
.credential-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.45em;
  flex-shrink: 0;
}

/* ── ATENDIMENTOS ── */
#atendimentos {
  background: var(--cream);
  text-align: center;
}
#atendimentos .section-label,
#atendimentos .section-title,
#atendimentos .divider { margin-left: auto; margin-right: auto; }
#atendimentos .divider { margin: 0 auto 2rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: #e0d8ce;
  border: 1.5px solid #e0d8ce;
  max-width: 1080px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2.8rem 2rem;
  text-align: left;
  transition: background 0.25s;
}
.service-card:hover { background: #f5f0ea; }

.service-number {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ── CLÍNICA ── */
#clinica {
  background: var(--espresso);
  padding: 96px 5%;
  text-align: center;
}
#clinica .section-label { color: var(--gold-lt); }
#clinica .section-title { color: var(--cream); }
#clinica .divider { background: var(--gold-lt); margin: 0 auto 3rem; }

.clinic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
}

.clinic-img {
  overflow: hidden;
  border-radius: 1px;
}
.clinic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.clinic-img:hover img { transform: scale(1.03); }
.clinic-img.main { grid-row: 1 / 3; height: 560px; }
.clinic-img.sm { height: 275px; }

/* ── CONTATO ── */
#contato {
  background: var(--cream-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 96px 8%;
}

.contato-text p {
  font-size: 0.93rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--espresso);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.contato-form {
  background: white;
  padding: 2.8rem;
  border-radius: 2px;
  box-shadow: 0 4px 32px rgba(42,34,26,0.06);
}

.form-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  color: var(--espresso);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e4ddd5;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--espresso);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 90px; }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: white;
  border: none;
  padding: 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--espresso); }

/* ── FOOTER ── */
.site-footer {
  background: var(--espresso);
  padding: 2.4rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
  font-weight: 500;
}
.footer-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 2px;
}

.site-footer p {
  font-size: 0.75rem;
  color: #8a7f78;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid #4a3f38;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { width: 14px; height: 14px; stroke: var(--gold-lt); fill: none; stroke-width: 1.5; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 60vw; max-height: 520px; min-height: auto; }
  .hero-content { padding: 10% 6%; }

  #sobre { grid-template-columns: 1fr; }
  .sobre-image { max-width: 460px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .clinic-grid { grid-template-columns: 1fr 1fr; }
  .clinic-img.main { grid-row: auto; height: 240px; grid-column: 1 / 3; }
  .clinic-img.sm { height: 200px; }

  #contato { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem 5%;
    border-bottom: 1px solid #e8e0d4;
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-img.main { grid-column: auto; height: 280px; }
  .site-footer { flex-direction: column; text-align: center; }
}
