/*
Theme Name: Paulo Melo Coluna
Theme URI: https://paulomelocoluna.com.br
Author: Prime Leads Agency
Description: Tema medico premium para Dr. Paulo Melo - Cirurgia da Coluna Vertebral (Recife/PE). SEO local, conversao por WhatsApp e paginas de tratamentos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: paulomelo
Tags: medical, one-column, custom-colors, custom-menu, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --navy: #0e2a47;
  --navy-soft: #163a5f;
  --teal: #2f6ea5;
  --teal-soft: #7db8e8;
  --sand: #f5f2ed;
  --bg: #ffffff;
  --fg: #14202e;
  --muted: #5b6b7c;
  --border: #e3e7ec;
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(14, 42, 71, 0.08);
  --shadow-lift: 0 18px 46px rgba(14, 42, 71, 0.14);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 999; background: #fff; padding: 12px 18px; width: auto; height: auto; clip: auto; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #eaf1f8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(234, 241, 248, .78); }
.grid { display: grid; gap: 26px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
}
.section--navy .eyebrow { color: var(--teal-soft); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: rgba(234, 241, 248, .8); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; border: 0; cursor: pointer;
  border-radius: 999px; padding: 15px 26px; font-family: var(--font-body);
  font-size: .95rem; font-weight: 700; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: linear-gradient(135deg, var(--teal), #1f4e78); color: #fff; box-shadow: var(--shadow-soft); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #fff; color: var(--navy); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--border); background: rgba(255,255,255,.95); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy); display: block; }
.brand__role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); display: block; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .93rem; font-weight: 600; color: var(--muted); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--navy); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 20px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 980px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-soft); }
  .main-nav.is-open ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .main-nav.is-open li { border-bottom: 1px solid var(--border); }
  .main-nav.is-open a { display: block; padding: 16px 0; color: var(--navy); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn--primary { display: none; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #123356 55%, var(--teal) 130%); color: #fff; padding: 96px 0; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hero__stats span { font-size: .82rem; color: rgba(255,255,255,.7); }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; justify-content: space-between;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(47,110,165,.4); text-decoration: none; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__more { margin-top: 22px; font-weight: 700; font-size: .9rem; color: var(--teal); }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   8. Testimonials / FAQ / locations
   ========================================================================== */
.quote { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 28px; }
.quote p { font-style: italic; color: var(--fg); }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.faq p { margin: 14px 0 0; color: var(--muted); }
.local { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.local iframe { width: 100%; height: 280px; border: 0; display: block; }
.local__body { padding: 28px; }
.local__body h3 { margin-bottom: .3em; }
.local__body address { font-style: normal; color: var(--muted); font-size: .95rem; }
.convenios { display: flex; flex-wrap: wrap; gap: 12px; }
.convenios span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; font-size: .9rem; font-weight: 600; color: var(--navy); }

/* ==========================================================================
   9. Content (single/page)
   ========================================================================== */
.entry { max-width: 780px; margin: 0 auto; }
.entry h2 { margin-top: 2em; }
.entry ul li { margin-bottom: .5em; }
.page-hero { background: var(--navy); color: #fff; padding: 80px 0; }
.page-hero h1 { color: #fff; }
.breadcrumbs { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.breadcrumbs a { color: var(--teal-soft); }

/* ==========================================================================
   10. Forms
   ========================================================================== */
.form-grid { display: grid; gap: 16px; max-width: 640px; }
.form-grid label { font-size: .85rem; font-weight: 700; color: var(--navy); }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--fg);
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.form-note { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   11. Footer + floating WhatsApp
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(234,241,248,.75); padding: 68px 0 0; }
.site-footer h4 { color: var(--teal-soft); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer a { color: rgba(234,241,248,.78); }
.site-footer a:hover { color: var(--teal-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 18px 0 0; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 54px; padding: 22px 0; font-size: .78rem; color: rgba(234,241,248,.55); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; font-weight: 700; padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.wa-float:hover { text-decoration: none; transform: translateY(-2px); }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 16px; } }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1.5em; }
.wp-caption-text { font-size: .84rem; color: var(--muted); }