/* ── Variables ── */
:root {
  --color-burgundy: #8b0029;
  --color-burgundy-dark: #6a0020;
  --color-navy: #0d1117;
  --color-navy-light: #161b22;
  --color-gold: #c9a962;
  --color-gold-light: #dbc88a;
  --color-white: #ffffff;
  --color-gray-100: #f5f5f5;
  --color-gray-300: #d1d5db;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --container: 1140px;
  --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-gray-700);
  line-height: 1.7;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-burgundy-dark); }
ul { list-style: none; }

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

/* ── Typography ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-title--center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}
.btn--primary:hover {
  background: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  color: var(--color-white);
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy);
}
.btn--outline {
  background: transparent;
  color: var(--color-burgundy);
  border-color: var(--color-burgundy);
}
.btn--outline:hover {
  background: var(--color-burgundy);
  color: var(--color-white);
}
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo img { height: 40px; width: auto; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  letter-spacing: 0.02em;
}
.header__nav a:hover { color: var(--color-burgundy); }
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  background: var(--color-white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
  background:
    radial-gradient(ellipse 75% 55% at 50% 78%, rgba(139, 0, 41, 0.07) 0%, transparent 68%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(13, 17, 23, 0.04) 0%, transparent 70%);
}
.hero__photo-shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 320px);
  height: 28px;
  background: radial-gradient(ellipse, rgba(13, 17, 23, 0.22) 0%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero__photo {
  position: relative;
  z-index: 1;
  max-height: 560px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 18px 28px rgba(13, 17, 23, 0.12))
    drop-shadow(0 6px 12px rgba(13, 17, 23, 0.06));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
.hero__photo--placeholder {
  width: 320px;
  height: 420px;
  background: linear-gradient(160deg, var(--color-gray-100) 0%, #e8e0e3 100%);
  border-radius: 4px;
  position: relative;
}
.hero__photo--placeholder::after {
  content: 'Adicione assets/images/dr-carla.png';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}
.hero__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.75rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero__text {
  font-size: 1rem;
  color: var(--color-gray-700);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ── Áreas ── */
.areas {
  background: var(--color-navy);
  padding: 0;
}
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.areas__card {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}
.areas__card:last-child { border-right: none; }
.areas__card:hover { background: rgba(255, 255, 255, 0.04); }
.areas__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139, 0, 41, 0.45);
  color: #c4406a;
}
.areas__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.areas__card h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.areas__card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ── Sobre ── */
.sobre {
  padding: 6rem 0;
  background: var(--color-gray-100);
}
.sobre__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre__content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.sobre__list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.sobre__list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.sobre__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-burgundy);
  border-radius: 50%;
}
.badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 2rem 1.75rem;
  text-align: left;
  border-top: 3px solid var(--color-burgundy);
}
.badge__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.badge__year {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.badge__selo {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.badge__content {
  min-width: 0;
}
.badge__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.badge__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ── FAQ ── */
.faq {
  padding: 6rem 0;
  background: var(--color-gray-100);
}
.faq__inner {
  max-width: 780px;
}
.faq__intro {
  text-align: center;
  color: var(--color-gray-500);
  margin: -0.5rem auto 2.5rem;
  max-width: 560px;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-left: 3px solid var(--color-burgundy);
}
.faq__question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-burgundy);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq__item[open] .faq__question::after {
  content: '−';
}
.faq__answer {
  padding: 0 1.5rem 1.25rem;
}
.faq__answer p {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  line-height: 1.75;
}

/* ── Escritório ── */
.escritorio {
  padding: 6rem 0;
  background: var(--color-white);
}
.escritorio__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--color-gray-500);
}
.escritorio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.escritorio__info {
  padding: 2rem;
  border: 1px solid var(--color-gray-300);
  text-align: center;
}
.escritorio__info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.escritorio__info p {
  font-size: 0.9rem;
  line-height: 1.8;
}
.escritorio__info a { font-weight: 500; }

/* ── CTA ── */
.cta {
  position: relative;
  padding: 6rem 0;
  background: var(--color-navy);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-navy) 40%, rgba(13, 17, 23, 0.7) 70%, rgba(13, 17, 23, 0.4) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1200&q=80&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.35;
}
.cta__inner {
  position: relative;
  z-index: 1;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta__content {
  max-width: 520px;
}
.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ── Contact Form Card ── */
.contact-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.contact-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}
.contact-card__subtitle {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}
.contact-card__highlight {
  color: var(--color-burgundy);
  font-weight: 500;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-form__field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-gray-700);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: 2px;
  padding: 0.75rem 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 3px rgba(139, 0, 41, 0.1);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-gray-500);
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form__field input:invalid:not(:placeholder-shown),
.contact-form__field select:invalid,
.contact-form__field textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
.contact-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}
.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.contact-form__feedback {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  text-align: center;
}
.contact-form__feedback--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.contact-form__feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.contact-form__feedback--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ── Footer ── */
.footer {
  background: var(--color-navy-light);
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer__logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
}
.footer__copy { font-size: 0.8rem; }
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--color-burgundy); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: var(--color-white);
}

/* ── Mobile Nav ── */
.header__nav--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid var(--color-gray-300);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__photo-wrap { min-height: 360px; order: -1; }
  .hero__photo { max-height: 400px; margin: 0 auto; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .areas__grid { grid-template-columns: 1fr; }
  .areas__card { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .sobre__grid { grid-template-columns: 1fr; }
  .escritorio__grid { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta__content { max-width: none; text-align: center; }
  .cta__content .btn { margin: 0 auto; }
  .contact-form__row { grid-template-columns: 1fr; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .hero__title { font-size: 2.25rem; }
  .areas__card { padding: 2rem 1.5rem; }
  .sobre, .escritorio, .cta, .faq { padding: 4rem 0; }
  .badge { padding: 1.5rem 1.25rem; gap: 1rem; }
  .badge__year { font-size: 2.25rem; }
  .badge__selo { width: 90px; }
  .badge__title { font-size: 1.15rem; }
}
