/* Dr. Marcos Viana Theme - Main stylesheet */
:root {
  --primary: #1a5566;
  --primary-dark: #0f3d4b;
  --primary-light: #2b7a8f;
  --accent: #c9a24d;
  --bg: #f7f9fa;
  --bg-alt: #eef1f3;
  --card: #ffffff;
  --text: #1a2b33;
  --text-muted: #5c6b73;
  --border: #dde3e6;
  --shadow-sm: 0 4px 20px -6px rgba(15,45,55,0.08);
  --shadow-md: 0 12px 40px -12px rgba(15,45,55,0.18);
  --radius: 10px;
  --container: 1200px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height:1.65; font-size:16px; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width:100%; height:auto; display:block; }
a { color: var(--primary); text-decoration:none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text); line-height:1.2; margin:0 0 .6em; font-weight:700; }
p { margin: 0 0 1em; }
.container { width:100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position:absolute!important; clip: rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
.skip-link { position:absolute; top:-40px; left:0; background:var(--primary); color:#fff; padding:8px 16px; z-index:100000; }
.skip-link:focus { top:0; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:999px; font-weight:600; font-size:.95rem; border:none; cursor:pointer; transition: all .25s ease; text-decoration:none; }
.btn-primary { background: var(--primary); color:#fff; }
.btn-primary:hover { background: var(--primary-dark); color:#fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color:#1a1a1a; }
.btn-accent:hover { background:#b8912f; color:#1a1a1a; transform: translateY(-1px); }

/* HEADER */
.site-header { position:fixed; top:0; left:0; right:0; z-index:10000; padding:14px 0; transition: background .35s ease, padding .35s ease, box-shadow .35s ease; background:transparent; }
.site-header.is-scrolled { background: rgba(15,45,55,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(0,0,0,.15); padding:8px 0; }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-branding img, .site-branding .custom-logo { height:48px; width:auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.site-header.is-scrolled .site-branding img, .site-header.is-scrolled .custom-logo { filter:none; }
.site-nav { display:none; }
@media (min-width:1024px) { .site-nav { display:block; } }
.primary-menu { list-style:none; margin:0; padding:0; display:flex; gap:28px; }
.primary-menu a { color:#fff; font-weight:500; font-size:.95rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.site-header.is-scrolled .primary-menu a { text-shadow:none; }
.primary-menu a:hover { color: var(--accent); }
.header-cta { display:none; }
@media (min-width:1024px) { .header-cta { display:inline-flex; } }
.menu-toggle { display:inline-flex; flex-direction:column; gap:5px; background:transparent; border:none; padding:12px; cursor:pointer; border-radius:8px; }
.menu-toggle span { width:26px; height:2.5px; background:#fff; border-radius:2px; transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width:1024px) { .menu-toggle { display:none; } }
.mobile-menu { background: rgba(15,45,55,0.98); padding:24px; display:flex; flex-direction:column; gap:16px; }
.mobile-menu-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.mobile-menu-list a { color:#fff; font-size:1.15rem; font-family:var(--font-display); }
.mobile-menu-list a:hover { color: var(--accent); }

/* HERO */
.hero-section { position:relative; min-height:92vh; background-size:cover; background-position:center; display:flex; align-items:flex-end; overflow:hidden; }
.hero-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(15,45,55,.96) 0%, rgba(15,45,55,.6) 45%, rgba(15,45,55,.25) 100%); }
.hero-content { position:relative; z-index:2; padding:120px 24px 100px; max-width:780px; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.75rem); color:#fff; line-height:1.12; margin-bottom:.5em; }
.hero-title .hero-highlight { color: var(--accent); font-style: italic; font-weight:400; }
.hero-subtitle { color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width:620px; }
.scroll-indicator { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); width:20px; height:32px; border:2px solid rgba(255,255,255,.35); border-radius:999px; display:flex; justify-content:center; padding-top:6px; }
.scroll-indicator span { width:3px; height:8px; background: rgba(255,255,255,.6); border-radius:2px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity:.5; transform: translateY(0); } 50% { opacity:1; transform: translateY(4px); } }

/* SECTIONS */
section { padding: 88px 0; }
@media (max-width:768px) { section { padding: 56px 0; } }
.eyebrow { color: var(--accent); font-size:.8rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.75rem); margin-top:.4em; }
.section-lead { color: var(--text-muted); font-size:1.1rem; max-width:720px; margin:0 auto; }
.section-header { text-align:center; max-width:780px; margin: 0 auto 56px; }

/* ABOUT */
.about-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.about-grid { display:grid; grid-template-columns:1fr; gap:56px; align-items:center; }
@media (min-width:960px) { .about-grid { grid-template-columns: 1fr 1.15fr; gap:80px; } }
.about-image { position:relative; text-align:center; }
.about-image img { width:min(320px,80%); aspect-ratio:1/1; object-fit:cover; border-radius:50%; box-shadow: var(--shadow-md); margin:0 auto; }
.about-badge { position:absolute; bottom:-10px; right:12%; background:#fff; padding:14px 22px; border-radius:14px; box-shadow: var(--shadow-sm); }
.badge-title { margin:0; color: var(--primary); font-weight:600; font-family: var(--font-display); font-size:1rem; }
.badge-sub { margin:0; color: var(--text-muted); font-size:.8rem; }
.about-text p { color: var(--text-muted); }
.values-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top:28px; text-align:center; }
.value-item strong { display:block; font-family: var(--font-display); color: var(--primary); font-size:1.1rem; }
.value-item span { color: var(--text-muted); font-size:.8rem; }

/* SERVICES */
.services-section { background: var(--bg); }
.services-grid { display:grid; grid-template-columns:1fr; gap:22px; }
@media (min-width:640px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:960px) { .services-grid { grid-template-columns: repeat(3,1fr); } }
.service-card { background: var(--card); padding:28px; border-radius: var(--radius); border:1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { color: var(--primary); font-size:1.2rem; margin-bottom:.4em; }
.service-card p { color: var(--text-muted); margin:0; }

/* COURSES */
.courses-section { background: var(--bg-alt); }
.subgroup-title { font-size:1.4rem; margin:40px 0 20px; color: var(--primary); }
.courses-grid { display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:640px) { .courses-grid.two-cols { grid-template-columns: repeat(2,1fr); } .courses-grid.three-cols { grid-template-columns: repeat(2,1fr); } }
@media (min-width:960px) { .courses-grid.three-cols { grid-template-columns: repeat(3,1fr); } }
.course-card { background:#fff; padding:26px; border-radius: var(--radius); border:1px solid var(--border); box-shadow: var(--shadow-sm); position:relative; }
.course-card h4 { font-size:1.15rem; color:var(--text); margin-bottom:.4em; }
.course-card p { color: var(--text-muted); margin:0; }
.course-card .badge { position:absolute; top:14px; right:14px; background: rgba(201,162,77,.15); color: var(--accent); padding:4px 10px; border-radius:999px; font-size:.72rem; font-weight:600; }

/* POSTS */
.latest-posts { background: var(--bg); }
.posts-grid { display:grid; gap:28px; grid-template-columns:1fr; }
@media (min-width:640px) { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:960px) { .posts-grid { grid-template-columns: repeat(3,1fr); } }
.post-card { background:#fff; border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-sm); display:flex; flex-direction:column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-thumb { display:block; aspect-ratio:16/10; overflow:hidden; background: var(--bg-alt); }
.post-card-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-card-title { font-size:1.2rem; margin:0; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-meta { color: var(--text-muted); font-size:.82rem; }
.post-excerpt { color: var(--text-muted); font-size:.92rem; flex:1; }
.read-more { color: var(--primary); font-weight:600; font-size:.9rem; }
.center-cta { text-align:center; margin-top:40px; }

/* CONTACT */
.contact-section { background: var(--bg-alt); }
.contact-grid { display:grid; grid-template-columns:1fr; gap:48px; align-items:start; }
@media (min-width:960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap:72px; } }
.contact-list { list-style:none; padding:0; margin:20px 0 28px; color: var(--text-muted); }
.contact-list li { margin-bottom:10px; }
.contact-form-wrap { background:#fff; padding:32px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border:1px solid var(--border); }
.contact-placeholder h3 { color: var(--primary); margin-top:0; }
.contact-placeholder p { color: var(--text-muted); }

/* BLOG */
.blog-layout { display:grid; grid-template-columns:1fr; gap:40px; padding-top:140px; padding-bottom:80px; }
@media (min-width:960px) { .blog-layout { grid-template-columns: minmax(0,1fr) 320px; gap:56px; } }
.blog-sidebar { display:flex; flex-direction:column; gap:28px; }
.widget { background:#fff; padding:24px; border-radius: var(--radius); border:1px solid var(--border); }
.widget-title { font-family: var(--font-display); font-size:1.1rem; color: var(--primary); margin-bottom:12px; }
.page-header { margin-bottom:40px; text-align:left; }
.page-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); color: var(--text); }
.single-post .entry-featured { margin:24px 0 32px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.entry-content { color: var(--text); font-size:1.05rem; }
.entry-content h2, .entry-content h3 { color: var(--primary); margin-top:1.6em; }
.entry-content blockquote { border-left:4px solid var(--accent); background: var(--bg-alt); padding:20px 24px; margin:24px 0; font-style: italic; border-radius:6px; }
.entry-content pre { background:#0f3d4b; color:#e6f2f5; padding:20px; border-radius:8px; overflow:auto; }
.entry-content code { background: var(--bg-alt); padding:2px 6px; border-radius:4px; font-size:.92em; }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin:20px 0; }

.page-wrap { padding-top:140px; padding-bottom:80px; max-width:900px; }
.page-featured { margin-bottom:32px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.error-404-wrap { text-align:center; padding-top:180px; padding-bottom:120px; }
.error-404-wrap .page-title { font-size:5rem; color: var(--primary); }
.error-404-wrap .lead { color: var(--text-muted); margin-bottom:32px; }

.navigation.pagination { display:flex; justify-content:center; margin-top:40px; }
.pagination .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.pagination .page-numbers { min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0 12px; border-radius:8px; background:#fff; color: var(--primary); border:1px solid var(--border); font-weight:600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color:#fff; border-color: var(--primary); }

.search-form { display:flex; gap:8px; }
.search-form input[type="search"] { flex:1; padding:12px 16px; border-radius:999px; border:1px solid var(--border); font-family:inherit; font-size:.95rem; background:#fff; }

.comments-area { margin-top:56px; padding-top:40px; border-top:1px solid var(--border); }
.comment-list { list-style:none; padding:0; margin:0 0 40px; }
.comment-list li { background:#fff; padding:20px; border-radius: var(--radius); border:1px solid var(--border); margin-bottom:16px; }
.comment-form input, .comment-form textarea { width:100%; padding:12px 16px; border:1px solid var(--border); border-radius:8px; font-family:inherit; font-size:1rem; background:#fff; margin-bottom:12px; }
.comment-form textarea { min-height:140px; resize:vertical; }
.comment-form .submit { background: var(--primary); color:#fff; padding:12px 26px; border:none; border-radius:999px; cursor:pointer; font-weight:600; }

/* FOOTER */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding:64px 0 24px; }
.footer-grid { display:grid; gap:40px; grid-template-columns:1fr; }
@media (min-width:640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { height:48px; margin-bottom:16px; filter: brightness(0) invert(1); }
.footer-brand .footer-meta { color: rgba(255,255,255,.7); font-size:.9rem; margin-bottom:16px; }
.footer-col h4 { font-family: var(--font-display); color:#fff; font-size:1.05rem; margin-bottom:14px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.7); font-size:.9rem; }
.footer-col a:hover, .footer-menu a:hover { color:#fff; }
.footer-col .muted { font-size:.8rem; color: rgba(255,255,255,.5); margin-top:8px; }
.footer-menu { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.social-icons { display:flex; gap:10px; }
.social-icons a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background: rgba(255,255,255,.1); color:#fff; font-size:.78rem; font-weight:700; }
.social-icons a:hover { background: rgba(255,255,255,.2); color:#fff; }
.footer-bottom { display:flex; flex-direction:column; gap:8px; justify-content:space-between; align-items:center; border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding-top:20px; font-size:.78rem; color: rgba(255,255,255,.55); }
@media (min-width:640px) { .footer-bottom { flex-direction:row; } }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color:#fff; }

/* WHATSAPP */
.whatsapp-floating { position:fixed; bottom:24px; right:24px; z-index:9999; width:56px; height:56px; border-radius:50%; background:#25d366; color:#fff; display:inline-flex; align-items:center; justify-content:center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s ease; }
.whatsapp-floating:hover { transform: scale(1.08); color:#fff; }

.alignwide { max-width:1000px; margin-left:auto; margin-right:auto; }
.alignfull { max-width:100%; }
.reveal { opacity:0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity:1; transform: none; }
