/* ==========================================================
   Dr. Carlos Odontologia — estilo moderno 2026
   Paleta: azul clínico + bege/madeira (cidade do interior)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --primary: #0e7a8a;
  --primary-dark: #083f46;
  --primary-soft: #e8f6f8;
  --accent: #25d366;
  --wood: #b08463;
  --wood-dark: #8a6142;
  --cream: #fbf6ef;
  --cream-warm: #f2e8d7;
  --bg: #fbf8f3;
  --text: #1f2a2c;
  --muted: #5f6c70;
  --card: #ffffff;
  --border: #e7ded0;
  --shadow-sm: 0 2px 6px rgba(11, 57, 63, 0.06);
  --shadow-md: 0 10px 25px rgba(11, 57, 63, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 57, 63, 0.12);
  --radius: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.25rem;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--primary-soft) 60%, var(--primary) 100%);
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.menu a:hover,
.menu a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background:
    linear-gradient(115deg, rgba(8, 63, 70, 0.72) 0%, rgba(14, 122, 138, 0.55) 60%, rgba(176, 132, 99, 0.35) 100%),
    url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero p {
  color: #f4fbfc;
  max-width: 60ch;
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero .actions {
  margin-top: 1.6rem;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.98rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-whatsapp {
  background: var(--accent);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-title .eyebrow {
  background: var(--primary-soft);
  border: 1px solid #cfe8ec;
  color: var(--primary-dark);
}

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 1.3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe8ec;
}

.card h3 {
  margin-top: 0.2rem;
}

.card + .card {
  margin-top: 1rem;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 0 0 1px #cfe8ec;
}

.subtle {
  color: var(--muted);
}

/* ---------- Service cards with image ---------- */
.service-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.service-card .service-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

/* ---------- Feature / media blocks ---------- */
.media-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.media-block.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.media-block.reverse .media-image {
  order: 2;
}

.media-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
  min-width: 130px;
}

.stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Highlight quote ---------- */
.highlight {
  background: #fff;
  border-left: 5px solid var(--wood);
  padding: 1.2rem 1.3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: #3e4e51;
}

/* ---------- Page header (interna) ---------- */
.page-header {
  position: relative;
  padding: 4.5rem 0 3rem;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8, 63, 70, 0.82), rgba(14, 122, 138, 0.68)),
    url("https://images.unsplash.com/photo-1609840114035-3c981b782dfe?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.page-header h1,
.page-header p {
  color: #fff;
}

.page-header p {
  max-width: 60ch;
  opacity: 0.95;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ---------- Map & contact ---------- */
.map-wrapper iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  color: #3e4e51;
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wood);
  box-shadow: 0 0 0 4px rgba(176, 132, 99, 0.18);
}

/* ---------- Form ---------- */
form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d7d1c3;
  border-radius: 12px;
  margin-bottom: 1rem;
  font: inherit;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 122, 138, 0.15);
  background: #fff;
}

/* ---------- CTA block ---------- */
.cta {
  text-align: center;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #eaf7f8;
  max-width: 55ch;
  margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  background: var(--primary-dark);
  color: #e8fdff;
  padding: 2.2rem 0 1.4rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  color: #c7e6ea;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: #c7e6ea;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .copy {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #9dc3c8;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .media-block,
  .media-block.reverse {
    grid-template-columns: 1fr;
  }

  .media-block.reverse .media-image {
    order: 0;
  }
}

@media (max-width: 650px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }
}
