/*
Theme Name: IACP
Theme URI: https://iacp.com.br
Author: maap
Author URI: https://maap.com.br
Description: Tema institucional do Instituto Avançado de Cirurgia Plástica (IACP). Ao ativar, cria as páginas do site, define a página inicial e o blog e prepara os formulários.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iacp
License: Proprietária
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #FAF8F6; -webkit-font-smoothing: antialiased; font-family: 'Raleway', sans-serif; color: #1F3B45; }
img { max-width: 100%; }
a { color: #AE5648; }
a:hover { color: #97483B; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #AE5648; outline-offset: 2px; }
.iacp-page { font-family: 'Raleway', sans-serif; color: #1F3B45; background: #FAF8F6; min-height: 100vh; overflow-x: clip; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #1F3B45; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; font-family: 'Raleway', sans-serif; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.sh-bar { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(31,59,69,0.06); transition: background .3s ease, box-shadow .3s ease; }
.is-clear .sh-bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.sh-desktop { max-width: 1280px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sh-mobile { display: none; padding: 12px 20px; align-items: center; justify-content: space-between; gap: 12px; }
.sh-logo { display: flex; align-items: center; }
.sh-logo img { height: 32px; width: auto; display: block; }
.sh-mobile .sh-logo img { height: 28px; }
.logo-light { display: none !important; }
.is-clear .logo-light { display: block !important; }
.is-clear .logo-dark { display: none !important; }
.sh-nav { display: flex; align-items: center; gap: 24px; }
.sh-ink { color: #1F3B45; transition: color .3s ease, border-color .3s ease; }
.is-clear .sh-ink { color: #FFFFFF; }
.sh-link { position: relative; font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.sh-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #AE5648; border-radius: 2px; }
.is-clear .sh-link.is-active::after { background: #FFFFFF; }
.sh-link:hover, .sh-student:hover, .is-clear .sh-link:hover, .is-clear .sh-student:hover { color: #AE5648; }
.sh-actions { display: flex; align-items: center; gap: 10px; }
.sh-student { font-size: 13px; font-weight: 500; text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.sh-outline { font-size: 13px; font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid #CFC4BD; border-radius: 999px; white-space: nowrap; }
.sh-outline:hover { color: #AE5648; border-color: #AE5648; }
.is-clear .sh-outline { border-color: rgba(255,255,255,0.6); }
.is-clear .sh-outline:hover { color: #fff; border-color: #fff; }
.sh-cta { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; padding: 11px 18px; background: #AE5648; border-radius: 999px; white-space: nowrap; }
.sh-cta:hover { background: #97483B; color: #fff; }
.sh-burger { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.sh-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #1F3B45; transition: transform .25s ease, opacity .2s ease, background .3s ease; }
.is-clear .sh-burger span { background: #FFFFFF; }
.menu-open .sh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .sh-burger span:nth-child(2) { opacity: 0; }
.menu-open .sh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sh-menu { position: fixed; left: 0; right: 0; top: 68px; bottom: 0; background: #FFFFFF; overflow-y: auto; display: flex; flex-direction: column; padding: 8px 20px 32px; box-shadow: 0 12px 24px rgba(31,59,69,0.08); }
.admin-bar .sh-menu { top: 114px; }
.sh-menu nav { display: flex; flex-direction: column; }
.sh-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid #EAE3DE; font-size: 20px; font-weight: 600; color: #1F3B45; text-decoration: none; }
.sh-menu nav a.is-active { color: #AE5648; }
.sh-menu nav a span { font-size: 18px; color: #AE5648; }
.sh-menu-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.sh-menu-cta { text-align: center; padding: 16px 22px; border-radius: 999px; background: #AE5648; color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.sh-menu-outline { text-align: center; padding: 15px 22px; border-radius: 999px; border: 1px solid #1F3B45; color: #1F3B45; font-size: 15px; font-weight: 600; text-decoration: none; }
.sh-menu-student { text-align: center; padding: 12px; color: #1F3B45; font-size: 14px; font-weight: 600; text-decoration: none; }
.sh-menu-info { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: #6C777B; }
.sh-menu-info a { color: #1F3B45; font-weight: 600; text-decoration: none; }
.sh-spacer { height: 69px; }
@media (max-width: 1079px) {
	.sh-desktop { display: none; }
	.sh-mobile { display: flex; }
	.sh-spacer { height: 68px; }
}
@media (min-width: 1080px) { .sh-menu { display: none !important; } }
body.menu-lock { overflow: hidden; }
body.menu-lock #iacp-popup { display: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: #1F3B45; color: #E8EEF0; font-family: 'Raleway', sans-serif; }
.sf-grid { max-width: 1280px; margin: 0 auto; padding: 72px 32px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 48px; }
.sf-col { display: flex; flex-direction: column; gap: 12px; }
.sf-brand { gap: 20px; }
.sf-logo { height: 40px; width: auto; align-self: flex-start; }
.sf-about { display: flex; flex-direction: column; gap: 8px; }
.sf-name { font-size: 15px; font-weight: 600; color: #fff; }
.sf-about p { margin: 0; font-size: 14px; line-height: 1.6; color: #C9D6DA; max-width: 280px; text-wrap: pretty; }
.sf-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8BB6BF; font-weight: 600; }
.sf-link { color: #E8EEF0; text-decoration: none; font-size: 14px; }
.sf-link:hover { color: #D6B6A7; }
.sf-text { font-size: 14px; line-height: 1.55; color: #E8EEF0; }
.sf-muted { font-size: 14px; color: #C9D6DA; }
.sf-bottom { max-width: 1280px; margin: 0 auto; padding: 0 32px 32px; }
.sf-rt { margin: 0; padding: 20px 0; border-top: 1px solid rgba(232,238,240,0.14); font-size: 12px; line-height: 1.6; color: #AFC2C8; }
.sf-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #AFC2C8; }
.sf-legal-links { display: flex; gap: 24px; }
.sf-legal-links a { color: #AFC2C8; text-decoration: none; }
.sf-legal-links a:hover { color: #fff; }

/* ---------- Responsivo das páginas ---------- */
@media (max-width: 899px) {
	.iacp-sticky { position: static !important; }
	.iacp-ig { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.iacp-ig-item { border-radius: 12px !important; }
	.iacp-ig-extra { display: none !important; }
}
/* ---------- Instagram ao vivo ---------- */
.iacp-ig-live #sb_instagram { padding: 0 !important; }
.iacp-ig-live #sb_instagram .sbi_photo { border-radius: 18px; overflow: hidden; }
@media (max-width: 899px) { .iacp-ig-live #sb_instagram .sbi_photo { border-radius: 12px; } }

/* ---------- Formulários ---------- */
.iacp-form-error { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FBEFEA; font-size: 14px; color: #97483B; }
form[data-iacp-form] { position: relative; }
form[data-iacp-form] button[type=submit][disabled] { opacity: .7; cursor: wait; }

/* ---------- Blog / artigo ---------- */
.iacp-prose { max-width: 720px; width: 100%; margin: 16px auto 0; display: flex; flex-direction: column; gap: 22px; }
.iacp-prose > * { margin: 0; }
.iacp-prose p, .iacp-prose li { font-size: 18px; line-height: 1.75; color: #3E4D53; text-wrap: pretty; }
.iacp-prose h2 { margin: 16px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: #1F3B45; }
.iacp-prose h3 { margin: 12px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; color: #1F3B45; }
.iacp-prose ul, .iacp-prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.iacp-prose img, .iacp-prose figure { max-width: 100%; height: auto; border-radius: 20px; }
.iacp-prose figure { margin: 8px 0; }
.iacp-prose figcaption { font-size: 14px; color: #6C777B; margin-top: 8px; }
.iacp-prose blockquote { margin: 8px 0; padding: 4px 0 4px 24px; border-left: 3px solid #D6B6A7; font-size: 20px; line-height: 1.6; color: #1F3B45; }
.iacp-prose a { color: #AE5648; text-decoration: underline; text-underline-offset: 3px; }
.iacp-prose .iacp-note { margin-top: 12px; padding: 20px 24px; border-radius: 16px; background: #F4EFEB; font-size: 14px; line-height: 1.6; color: #4A5A60; }
.iacp-prose .wp-block-embed iframe, .iacp-prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 20px; }
.iacp-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 16px; }
.iacp-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #CFC4BD; color: #1F3B45; font-size: 14px; font-weight: 600; text-decoration: none; }
.iacp-pager .page-numbers.current { background: #1F3B45; border-color: #1F3B45; color: #fff; }
.iacp-pager a.page-numbers:hover { border-color: #1F3B45; }
.iacp-chip { padding: 10px 18px; border-radius: 999px; border: 1px solid #CFC4BD; background: transparent; color: #1F3B45; font-size: 14px; font-weight: 500; text-decoration: none; display: inline-block; }
.iacp-chip:hover { border-color: #1F3B45; color: #1F3B45; }
.iacp-chip.is-on { background: #1F3B45; border-color: #1F3B45; color: #fff; }
.iacp-card-link { color: #1F3B45; text-decoration: none; }
.iacp-card-link:hover { color: #AE5648; }
.iacp-feature-link { box-shadow: 0 1px 2px rgba(31,59,69,0.05); transition: box-shadow .2s ease; }
.iacp-feature-link:hover { box-shadow: 0 12px 32px rgba(31,59,69,0.10); color: #1F3B45; }

.h-outline-dark:hover { background: #1F3B45 !important; color: #fff !important; }
.h-footer-white:hover { color: #fff !important; }
.h-white-btn:hover { background: #FBEFEA !important; color: #97483B !important; }

/* ---------- Hover dos componentes das páginas (gerado) ---------- */
.h1:hover { background: rgb(151, 72, 59) !important; color: rgb(255, 255, 255) !important; }
.h2:hover { background: rgb(255, 255, 255) !important; color: rgb(31, 74, 79) !important; }
.h3:hover { background: rgb(31, 59, 69) !important; color: rgb(255, 255, 255) !important; }
.h4:hover { background: rgb(251, 239, 234) !important; color: rgb(151, 72, 59) !important; }
.h5:hover { background: rgb(227, 200, 187) !important; color: rgb(31, 59, 69) !important; }
.h6:hover { background: rgb(24, 49, 58) !important; color: rgb(255, 255, 255) !important; }
.h7:hover { color: rgb(174, 86, 72) !important; }
.h8:hover { opacity: 0.88 !important; }
.h9:hover { background: rgba(255, 255, 255, 0.1) !important; }
.h10:hover { color: rgb(246, 227, 219) !important; }
.h11:hover { color: rgb(214, 182, 167) !important; }
.h12:hover { color: rgb(255, 255, 255) !important; }
.h13:hover { background: rgb(151, 72, 59) !important; }
.h14:hover { color: rgb(31, 59, 69) !important; }
.h15:hover { background: rgb(255, 255, 255) !important; color: rgb(31, 59, 69) !important; }
