/* ===== CSS Custom Properties ===== */
:root {
  --teal: #5AABAB;
  --teal-dark: #4A9494;
  --coral: #D4726A;
  --coral-dark: #C0605A;
  --gold: #B8976B;
  --soft-blue: #E8F4F8;
  --muted-purple: #9B7A9B;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --dark: #2D3436;
  --gray: #636E72;
  --light-bg: #F8F9FA;
  --white: #FFFFFF;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 80px;
  --container-max: 1200px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn--submit {
  background: var(--teal);
  color: var(--white);
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem;
}

.btn--submit:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(90, 171, 171, 0.4);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 55px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--teal);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  background: var(--soft-blue);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 1.25rem;
}

.hero__content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* ===== ABA ===== */
.aba {
  background: var(--white);
  text-align: center;
}

.aba__inner {
  max-width: 800px;
  margin: 0 auto;
}

.aba h2 {
  margin-bottom: 1.5rem;
}

.aba p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.aba .btn {
  margin-top: 1rem;
}

/* ===== Serviços ===== */
.servicos {
  background: var(--light-bg);
  text-align: center;
}

.servicos h2 {
  margin-bottom: 2.5rem;
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  color: var(--teal);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.servicos__cta {
  text-align: center;
}

/* ===== Especialidades ===== */
.especialidades {
  background: var(--white);
  text-align: center;
}

.especialidades__subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.especialidades__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.especialidade {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.especialidade:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.especialidade__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.especialidade:nth-child(1) .especialidade__accent { background: var(--teal); }
.especialidade:nth-child(2) .especialidade__accent { background: var(--coral); }
.especialidade:nth-child(3) .especialidade__accent { background: var(--gold); }
.especialidade:nth-child(4) .especialidade__accent { background: var(--muted-purple); }
.especialidade:nth-child(5) .especialidade__accent { background: var(--teal); }
.especialidade:nth-child(6) .especialidade__accent { background: var(--coral); }

.especialidade h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.especialidade p {
  color: var(--gray);
  font-size: 0.9rem;
  padding-left: 0.75rem;
}

/* ===== Dra. Roberta ===== */
.doutora {
  background: var(--soft-blue);
}

.doutora__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.doutora__image img {
  width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doutora__content h2 {
  margin-bottom: 0.25rem;
}

.doutora__role {
  color: var(--coral);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.doutora__credentials {
  list-style: none;
  margin-bottom: 1.5rem;
}

.doutora__credentials li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--gray);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.doutora__credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

/* ===== Contato ===== */
.contato {
  background: var(--teal-dark);
  color: var(--white);
}

.contato h2 {
  color: var(--white);
  text-align: center;
}

.contato__subtitle {
  text-align: center;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.contato__form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.9;
}

.form-group--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--whatsapp);
}

.form-error {
  display: block;
  color: #FFB4A2;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 0;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #FFB4A2;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer p + p,
.footer address + p {
  margin-top: 0.25rem;
}

.footer__address {
  font-style: normal;
  margin-top: 0.5rem;
}

.footer__address a {
  color: var(--soft-blue);
  transition: color 0.3s;
}

.footer__address a:hover {
  color: var(--white);
}

.footer__privacy {
  margin-top: 0.75rem;
}

.footer__privacy a {
  color: var(--soft-blue);
  transition: color 0.3s;
}

.footer__privacy a:hover {
  color: var(--white);
}

/* ===== Privacy Page ===== */
.privacidade {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.privacidade h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.privacidade__updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.privacidade h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.privacidade h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.privacidade p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.privacidade ul {
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.privacidade a {
  color: var(--teal);
  text-decoration: underline;
  transition: color 0.3s;
}

.privacidade a:hover {
  color: var(--teal-dark);
}

.form-group--checkbox a {
  color: var(--soft-blue);
  text-decoration: underline;
}

.form-group--checkbox a:hover {
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: 3.5rem 0;
  }

  h2 {
    font-size: 1.65rem;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: calc(var(--header-height) + 1rem) 2rem 2rem;
    z-index: 999;
  }

  .nav.nav-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--light-bg);
  }

  .nav__link::after {
    display: none;
  }

  /* Hamburger active */
  .header.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .header.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .header.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Services */
  .servicos__grid {
    grid-template-columns: 1fr;
  }

  /* Specialties */
  .especialidades__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Doctor */
  .doutora__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doutora__image img {
    margin: 0 auto;
    width: 220px;
  }

  .doutora__credentials {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .doutora .btn {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero__content h1 {
    font-size: 1.5rem;
  }

  .especialidades__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}
