/*
Theme Name: Dr. Antonio Ahouagi
Theme URI: https://drahouagi.com.br
Author: Desenvolvido para Dr. Antonio Ahouagi
Description: Site profissional para consultório de Cirurgia Geral e Oncológica
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dr-ahouagi
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy: #121d2a;
  --navy-light: #1c2d42;
  --navy-mid: #243447;
  --gold: #b8965a;
  --gold-light: #d4af7a;
  --cream: #f8f5f0;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-muted: #6b7280;
  --wa-green: #25D366;
  --border: rgba(184,150,90,0.2);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ─── HEADER ─── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0 2rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(184,150,90,0.15);
  transition: box-shadow .3s, height .3s;
}
#site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.site-logo img {
  height: 220px;
  width: auto;
  object-fit: contain;
}

/* ─── NAVIGATION ─── */
#site-nav { display: flex; align-items: center; gap: 2rem; }
#site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
#site-nav a:hover { color: var(--gold-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  display: block;
  transition: all .3s;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 160px; left: 0; right: 0;
  background: var(--navy);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,29,42,.88) 0%, rgba(18,29,42,.65) 60%, rgba(18,29,42,.80) 100%);
  z-index: 1;
}
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #121d2a 0%, #1c3450 40%, #0d2236 100%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 8rem 2rem 4rem;
  margin-left: 6vw;
  text-align: left;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: .5rem;
  opacity: 0;
  animation: fadeUp .7s ease .35s forwards;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .7s ease .5s forwards;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s ease .65s forwards;
}
.btn-wa-hero {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--wa-green);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  padding: .9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
  opacity: 0;
  animation: fadeUp .7s ease .8s forwards;
}
.btn-wa-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.45); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS ─── */
section, .wp-section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem; text-align: center;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; margin-bottom: 1.5rem; text-align: center;
}
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 0 auto 2rem;
}

/* ─── SOBRE ─── */
#sobre { background: var(--white); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
}
.sobre-image-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 4px 24px 4px 24px;
  overflow: hidden; position: relative;
}
.sobre-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.sobre-image-badge {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: white;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1.2rem; border-radius: 40px; white-space: nowrap;
}
.sobre-text p { font-size: 1rem; line-height: 1.85; color: #444; margin-bottom: 1.25rem; }
.sobre-text .section-title, .sobre-text .section-label { text-align: left; }
.sobre-text .divider { margin-left: 0; }
.sobre-rqe {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.sobre-rqe p { font-size: .82rem !important; color: var(--text-muted) !important; margin: 0 !important; line-height: 1.6 !important; }

/* ─── ESPECIALIDADES ─── */
#especialidades { background: var(--cream); }
.espec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 1rem;
}
.espec-card {
  background: var(--white); border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: 1.4rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer; text-decoration: none;
}
.espec-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.espec-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(184,150,90,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--gold);
}
.espec-name { font-size: .92rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ─── IA SECTION ─── */
#ia { background: var(--navy); padding: 4rem 2rem; }
.ia-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.ia-inner .section-title { color: var(--white); }
.ia-inner .section-label { color: var(--gold-light); }
.ia-desc { font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.75); margin-bottom: 2.5rem; }
.btn-ia {
  display: inline-flex; align-items: center; gap: .75rem;
  background: transparent; border: 1.5px solid var(--gold);
  color: var(--gold-light); font-family: 'DM Sans', sans-serif;
  font-size: .85rem; font-weight: 600;
  padding: .85rem 1.75rem; border-radius: 50px;
  cursor: pointer; letter-spacing: .03em;
  transition: background .2s, color .2s; text-decoration: none;
}
.btn-ia:hover { background: var(--gold); color: var(--navy); }
.ia-hint { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 1rem; }

/* ─── DEPOIMENTOS ─── */
#depoimentos { background: var(--white); }
.dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.dep-card { background: var(--cream); border-radius: 16px; padding: 2rem; }
.dep-quote { font-size: 3rem; color: var(--gold); font-family: 'Playfair Display', serif; line-height: .6; margin-bottom: 1rem; }
.dep-text { font-size: .95rem; line-height: 1.75; color: #555; margin-bottom: 1.5rem; }
.dep-author { display: flex; align-items: center; gap: .75rem; }
.dep-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold-light); font-weight: 700;
}
.dep-author-info .name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.dep-author-info .detail { font-size: .78rem; color: var(--text-muted); }
.dep-stars { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; }

/* ─── BLOG ─── */
#blog { background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem; margin-top: 1rem;
}
.blog-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-img { height: 200px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); position: relative; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-category {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: white; font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 40px;
}
.blog-body { padding: 1.5rem; }
.blog-date { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.blog-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: .75rem; }
.blog-excerpt { font-size: .88rem; line-height: 1.65; color: #666; margin-bottom: 1rem; }
.blog-read { font-size: .8rem; font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: .04em; text-transform: uppercase; }
.blog-read:hover { color: var(--navy); }

/* ─── CONTATO ─── */
#contato { background: var(--white); }
.contato-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contato-info h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 1.5rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.info-icon { width: 38px; height: 38px; background: rgba(184,150,90,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.info-text .label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.info-text .value { font-size: .95rem; color: var(--navy); font-weight: 500; line-height: 1.4; }
.info-text a { color: var(--navy); text-decoration: none; }
.info-text a:hover { color: var(--gold); }
.contato-form { background: var(--cream); border-radius: 16px; padding: 2.5rem; }
.contato-form h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid rgba(0,0,0,.1); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; color: var(--text);
  background: var(--white); outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 110px; resize: vertical; }
.hp-field { display: none !important; }
.btn-submit {
  width: 100%; padding: .9rem;
  background: var(--navy); color: white;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600;
  border: none; border-radius: 8px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.form-note { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; text-align: center; }

/* ─── FOOTER ─── */
#site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 2.5rem 2rem; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo-wrap { margin-bottom: .5rem; }
.footer-logo-img { height: 220px; width: auto; object-fit: contain; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: .4rem; }
.footer-sub { font-size: .8rem; color: var(--gold-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-crm { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 1.25rem; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: white; font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 600;
  padding: .6rem 1.3rem; border-radius: 50px; text-decoration: none;
  transition: opacity .2s, transform .15s; margin-bottom: 1.5rem;
}
.btn-instagram:hover { opacity: .88; transform: translateY(-1px); }
.footer-legal { font-size: .72rem; color: rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin-top: 1.25rem; }

/* ─── WA FLOAT ─── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  display: flex; align-items: center; gap: .6rem;
  background: var(--wa-green); color: white;
  font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: 50px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(37,211,102,.55); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #site-nav { display: none; }
  .hamburger { display: flex; }
  .sobre-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .hero-content { margin-left: 0; }
  #site-header { height: 120px; }
  .site-logo img { height: 160px; }
  .mobile-nav { top: 120px; }
}
@media (max-width: 600px) {
  .wa-float .wa-label { display: none; }
  .wa-float { padding: .85rem; border-radius: 50%; }
  section, .wp-section { padding: 3.5rem 1.25rem; }
  .contato-form { padding: 1.5rem; }
}

/* Fade in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
