/* ============================================================
   Clínica Dr. Primor da Silva — Folha de Estilos Base
   Torres Vedras · Santa Cruz · Portugal
   ============================================================ */

:root {
  --primary:   #1a5f7a;   /* azul petróleo */
  --secondary: #57c5b6;   /* verde-água */
  --accent:    #e8f4f8;   /* azul muito claro */
  --dark:      #1e2d3d;
  --text:      #3a3a3a;
  --light:     #f8fcfd;
  --white:     #ffffff;
  --border:    #dceef4;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); text-decoration: underline; }

/* ---- HEADER ---- */
header {
  background: var(--white);
  border-bottom: 3px solid var(--secondary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 200px;
}
.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; margin-right: 1.5rem; }
.logo img {
  height: 200px;
  width: auto;
  display: block;
}
.logo-text h1 { font-family: var(--font-head); font-size: 1.05rem; color: var(--primary); line-height: 1.2; white-space: nowrap; }
.logo-text span { font-size: .78rem; color: #666; letter-spacing: .05em; white-space: nowrap; }

nav ul { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; }
nav ul li a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
  text-decoration: none;
}

.btn-cta {
  background: var(--secondary);
  color: var(--white) !important;
  padding: .55rem 1.2rem !important;
  border-radius: 6px;
  border: none !important;
  font-weight: 700 !important;
  transition: background .2s !important;
  margin-left: auto;
}
.btn-cta:hover { background: var(--primary) !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3f55 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.hero h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; opacity: .9; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, background .2s;
}
.btn-primary:hover { background: #3aada0; transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }

/* ---- SECTIONS ---- */
section { padding: 4rem 2rem; }
.container { max-width: 1100px; margin: auto; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-sub { color: #666; margin-bottom: 2.5rem; font-size: 1.05rem; }
.divider {
  width: 60px; height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}

/* ---- SERVIÇOS GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-head); color: var(--primary); margin-bottom: .5rem; font-size: 1.2rem; }
.service-card p { font-size: .95rem; color: #555; line-height: 1.65; }
.service-card a.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ---- PAGE HERO (páginas internas) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3f55 100%);
  color: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
}
.page-hero .breadcrumb { font-size: .85rem; opacity: .75; margin-bottom: .75rem; }
.page-hero .breadcrumb a { color: var(--white); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: .75rem;
}
.page-hero .tagline { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: auto; }

/* ---- CONTENT LAYOUT ---- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .content-wrap { grid-template-columns: 1fr; }
  nav ul { display: none; } /* mobile: adicionar hamburger */
}
.main-content h2 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.6rem;
  margin: 2rem 0 .75rem;
}
.main-content h3 {
  color: var(--dark);
  font-size: 1.15rem;
  margin: 1.5rem 0 .5rem;
}
.main-content p { margin-bottom: 1rem; }
.main-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.main-content ul li { margin-bottom: .4rem; }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.sidebar-card h4 {
  font-family: var(--font-head);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}
.sidebar-card ul li:last-child { border: none; }
.sidebar-card ul li a { color: var(--primary); font-weight: 600; }
.btn-marcacao {
  display: block;
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background .2s;
}
.btn-marcacao:hover { background: var(--primary); text-decoration: none; color: #fff; }
.contact-info { font-size: .95rem; line-height: 2; }

/* ---- MÉDICO CARD ---- */
.doctor-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.doctor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.doctor-info h3 { color: var(--primary); margin-bottom: .25rem; }
.doctor-info .title { font-size: .9rem; color: var(--secondary); font-weight: 700; margin-bottom: .5rem; }
.doctor-info p { font-size: .92rem; color: #555; }

/* ---- LISTA DE TRATAMENTOS ---- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.treatment-item {
  background: var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--secondary);
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-q {
  background: var(--accent);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.faq-a {
  padding: 1rem 1.25rem;
  font-size: .95rem;
  color: #555;
}

/* ---- INFO BOXES ---- */
.info-box {
  background: var(--accent);
  border-left: 5px solid var(--secondary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.info-box strong { color: var(--primary); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 2rem 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { color: var(--secondary); margin-bottom: 1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
  text-decoration: none;
  color: #fff;
}
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,.75); }
}
@media (max-width: 600px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: .85rem; border-radius: 50%; }
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.top-bar a { color: rgba(255,255,255,.9); font-weight: 600; }
.top-bar a:hover { color: var(--secondary); text-decoration: none; }
nav ul li:last-child {
  margin-left: auto;
}
/* ---- AJUSTAR POSIÇÕES HEADER ---- */
header {
  padding: 0 0.7rem;
}

.header-inner {
  max-width: 1280px;
}

.logo {
  margin-right: auto;
}

.btn-cta {
  margin-left: auto;
}
/* ---- NOME CLÍNICA MAIS À ESQUERDA ---- */
.logo {
  padding-left: 0;
  margin-left: -1rem;
}