/*
Theme Name: Schroder Seguros
Theme URI: https://schroderseguros.com.br
Author: S. E. Schroder Corretora de Seguros
Description: Tema institucional para a Schroder Seguros, com páginas de produtos e integração com o plugin de cotações.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: schroder-seguros
*/

:root {
    --bg: #eef1ef;
    --bg-soft: #dfe7e4;
    --card: #ffffff;
    --gold: #d89608;
    --gold-light: #efad1b;
    --navy: #17343a;
    --text: #24363a;
    --muted: #627276;
    --line: rgba(23, 52, 58, .13);
    --radius: 18px;
    --shadow: 0 22px 55px rgba(31, 53, 55, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
picture.schroder-picture { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    padding: 12px 0;
    background: rgba(23, 52, 58, .96);
    backdrop-filter: blur(14px);
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled,
.site-header.menu-open { background: rgba(23, 52, 58, .98); box-shadow: 0 10px 30px rgba(23, 52, 58, .24); backdrop-filter: blur(14px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-brand { display: inline-flex; align-items: center; width: 190px; height: 62px; overflow: hidden; }
.site-brand img { width: 190px; height: auto; }
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: rgba(255, 255, 255, .90); transition: color .2s ease; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--gold); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; }
.site-header .button--whatsapp { display: none; }

.button, .wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 27px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover, .wp-element-button:hover { background: var(--gold-light); color: #fff; transform: translateY(-2px); }
.button--outline { border-color: rgba(23, 52, 58, .24); background: rgba(255, 255, 255, .52); color: var(--navy); }
.button--outline:hover { border-color: var(--gold); background: #fff; color: var(--gold); }
.button--whatsapp { border-color: #1f9b5b; background: #1f9b5b; color: #fff; }
.button--whatsapp:hover { border-color: #167d49; background: #167d49; color: #fff; }
.quote-trigger { border: 0; }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; }
.hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 35, .94), rgba(8, 30, 35, .64) 54%, rgba(8, 30, 35, .16)); }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 710px; padding: 145px 0 75px; }
.eyebrow { display: block; margin-bottom: 16px; color: var(--gold); font-size: .83rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; }
h1, h2, .section-title, .product-hero h1 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -.025em; }
.hero h1 { margin: 0 0 22px; color: #e9ddc6; font-size: clamp(42px, 6vw, 68px); text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
.hero .eyebrow { color: #f2b21a; }
.hero p { max-width: 630px; margin: 0 0 31px; color: rgba(235, 231, 220, .86); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero .button--outline { border-color: rgba(233, 221, 198, .72); background: rgba(23, 52, 58, .20); color: #e9ddc6; }
.hero .button--outline:hover { border-color: #e9ddc6; background: rgba(233, 221, 198, .94); color: var(--navy); }

.section { padding: 94px 0; }
.section--dark { background: var(--bg-soft); }
.section-title { margin: 0 0 42px; font-size: clamp(34px, 4vw, 48px); text-align: center; }
.section-intro { max-width: 700px; margin: -20px auto 42px; color: var(--muted); text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.split img, .product-card img, .product-image { filter: saturate(.96) contrast(.98); }
.split img { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); object-fit: cover; box-shadow: 0 18px 40px rgba(31, 53, 55, .12); }
.split h2 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 46px); }
.split p { color: var(--muted); }

.product-grid, .benefit-grid, .content-grid { display: grid; gap: 24px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: block; overflow: hidden; border: 1px solid rgba(23, 52, 58, .10); border-radius: var(--radius); background: #fff; color: inherit; box-shadow: 0 18px 40px rgba(31, 53, 55, .10); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.product-card:hover { border-color: rgba(184, 132, 45, .45); box-shadow: var(--shadow); transform: translateY(-7px); }
.product-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-card__body { padding: 24px; }
.product-card h3 { margin: 0 0 9px; font-size: 1.45rem; }
.product-card p { min-height: 55px; margin: 0 0 18px; color: var(--muted); }
.product-card__link { color: var(--gold); font-weight: 700; }
.product-card__link:hover { color: var(--navy); }
.benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefit-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .72); box-shadow: 0 12px 28px rgba(31, 53, 55, .05); }
.benefit-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.benefit-card p { margin: 0; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.faq-item summary { padding: 19px 22px; cursor: pointer; font-weight: 700; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tip-card { padding: 25px; border: 1px solid rgba(23, 52, 58, .08); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: #fff; box-shadow: 0 12px 28px rgba(31, 53, 55, .06); }
.tip-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.tip-card p { margin: 0; color: var(--muted); }

.cta { padding: 86px 0; background: linear-gradient(115deg, #d7c6a5, #eef1ef 72%); text-align: center; }
.cta h2 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 49px); }
.cta p { max-width: 660px; margin: 0 auto 27px; color: var(--muted); }

.page-header, .product-hero { padding: 167px 0 72px; text-align: center; }
.page-header { background: linear-gradient(180deg, #e8eee9, var(--bg)); }
.page-header h1, .product-hero h1 { margin: 12px auto 15px; font-size: clamp(40px, 6vw, 64px); }
.page-header p, .product-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.product-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #e8eee9, #f7f5f1 72%); }
.product-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(216, 161, 58, .12), transparent 38%); }
.product-hero .container { position: relative; z-index: 1; }
.product-section { padding: 80px 0; }
.product-copy h2 { margin-top: 0; font-size: 2.1rem; }
.product-copy p { color: var(--muted); }
.product-image { width: 100%; border-radius: var(--radius); }
.check-list { margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.product-form-section { padding: 0 0 88px; }
.whatsapp-cta { max-width: 760px; margin: 48px auto 0; padding: 34px 32px; border: 1px solid rgba(32, 189, 104, .32); border-radius: var(--radius); background: rgba(32, 189, 104, .08); text-align: center; }
.whatsapp-cta .eyebrow { margin-bottom: 10px; color: #159a50; }
.whatsapp-cta h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); }
.whatsapp-cta p { max-width: 580px; margin: 0 auto 22px; color: var(--muted); }
.page-content { max-width: 820px; margin: 0 auto; padding: 70px 0 90px; }
.page-content p, .page-content li { color: var(--muted); }
.page-content a { color: var(--gold-light); }

.quote-chooser[hidden] { display: none; }
.quote-chooser { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.quote-chooser__backdrop { position: absolute; inset: 0; background: rgba(8, 30, 35, .72); backdrop-filter: blur(5px); }
.quote-chooser__dialog { position: relative; width: min(760px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 42px; border: 1px solid rgba(216, 150, 8, .30); border-radius: 24px; background: #f7f5f1; color: var(--navy); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.quote-chooser__close { position: absolute; top: 14px; right: 18px; width: 38px; height: 38px; border: 1px solid rgba(23, 52, 58, .16); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.quote-chooser__dialog h2 { margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px, 4vw, 46px); }
.quote-chooser__dialog p { margin: 0 0 26px; color: var(--muted); }
.quote-chooser__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-chooser__option { display: block; padding: 18px; border: 1px solid rgba(23, 52, 58, .12); border-radius: 14px; background: #fff; color: var(--navy); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quote-chooser__option:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(31, 53, 55, .10); color: var(--navy); transform: translateY(-2px); }
.quote-chooser__option strong, .quote-chooser__option span { display: block; }
.quote-chooser__option strong { margin-bottom: 4px; font-size: 1.08rem; }
.quote-chooser__option span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
body.quote-chooser-open { overflow: hidden; }

/* Páginas de produtos: uma atmosfera mais clara para marcar a mudança de contexto. */
body.schroder-product-page { background: #f5f1eb; color: #211d18; }
body.schroder-product-page .site-header { background: rgba(23, 52, 58, .96); box-shadow: 0 8px 28px rgba(23, 52, 58, .22); backdrop-filter: blur(12px); }
body.schroder-product-page .primary-menu a { color: rgba(255, 255, 255, .90); }
body.schroder-product-page .primary-menu a:hover,
body.schroder-product-page .primary-menu .current-menu-item > a { color: #a87317; }
body.schroder-product-page .menu-toggle { border-color: rgba(255, 255, 255, .22); }
body.schroder-product-page .menu-toggle span { background: #fff; }
body.schroder-product-page .product-hero { border-bottom: 1px solid #e3d4bd; background: linear-gradient(135deg, #efe1ca, #fbfaf7 74%); }
body.schroder-product-page .product-hero::before { background: radial-gradient(circle at 82% 18%, rgba(216, 161, 58, .19), transparent 38%); }
body.schroder-product-page .product-hero h1 { color: #211d18; }
body.schroder-product-page .product-hero p { color: #62594f; }
body.schroder-product-page .product-section { background: #fbfaf7; }
body.schroder-product-page .product-editor-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 62px; align-items: start; }
body.schroder-product-page .product-editor-content h2 { margin: 0 0 18px; color: #211d18; font-family: "Playfair Display", Georgia, serif; font-size: 2.25rem; }
body.schroder-product-page .product-editor-content h2:not(:first-child) { margin-top: 45px; }
body.schroder-product-page .product-editor-content h3 { margin: 28px 0 8px; color: #302920; font-size: 1.18rem; }
body.schroder-product-page .product-editor-content p,
body.schroder-product-page .product-editor-content li { color: #62594f; }
body.schroder-product-page .product-editor-content ul { margin: 16px 0; padding-left: 23px; }
body.schroder-product-page .product-editor-content .check-list { padding-left: 0; list-style: none; }
body.schroder-product-page .product-editor-content .check-list li { position: relative; margin: 10px 0; padding-left: 26px; }
body.schroder-product-page .product-editor-content .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
body.schroder-product-page .product-editor-content .product-tips li { margin-bottom: 10px; }
body.schroder-product-page .product-editor-media { position: sticky; top: 115px; }
body.schroder-product-page .product-editor-media p { margin: 18px 0 0; color: #62594f; font-size: .94rem; }
body.schroder-product-page .product-copy h2 { color: #211d18; }
body.schroder-product-page .product-copy p { color: #62594f; }
body.schroder-product-page .check-list li { color: #3f3932; }
body.schroder-product-page .section--dark { background: #e9dfd1; }
body.schroder-product-page .section--dark .section-title { color: #211d18; }
body.schroder-product-page .faq-item { border-color: #d8c9b3; background: #fbfaf7; color: #211d18; }
body.schroder-product-page .faq-item summary { color: #302920; }
body.schroder-product-page .faq-item p { color: #62594f; }
body.schroder-product-page .tip-card { background: #fff; border: 1px solid #e3d7c6; border-left: 3px solid var(--gold); }
body.schroder-product-page .tip-card p { color: #62594f; }
body.schroder-product-page .whatsapp-cta { border-color: rgba(32, 154, 80, .25); background: rgba(32, 154, 80, .07); }
body.schroder-product-page .whatsapp-cta p { color: #62594f; }

.site-footer { padding: 58px 0; border-top: 1px solid var(--line); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 38px; }
.site-footer h3 { margin: 0 0 16px; color: #f0dfb9; }
.site-footer p, .site-footer a { display: block; margin: 0 0 9px; color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: #f0c66d; }
.site-footer .footer-whatsapp { color: #55da8c; font-weight: 700; }
.footer-brand { max-width: 300px; }
.footer-brand img { width: 190px; margin-bottom: 17px; }
.footer-note { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; }
.whatsapp-float { display: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.alignwide { max-width: 1200px; margin-right: auto; margin-left: auto; }

@media (max-width: 980px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-menu { display: none; position: absolute; top: calc(100% + 10px); right: 20px; width: min(280px, calc(100vw - 40px)); padding: 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: var(--navy); }
    .primary-menu.is-open { display: block; }
    .primary-menu ul { display: flex; align-items: stretch; flex-direction: column; gap: 14px; }
    .primary-menu .button { width: 100%; }
    .menu-toggle { display: block; }
}
@media (max-width: 720px) {
    .container { width: min(100% - 26px, 1160px); }
    .site-brand, .site-brand img { width: 170px; }
    .split, .faq-grid, .tips-grid, .footer-grid { grid-template-columns: 1fr; }
    .section, .product-section { padding: 70px 0; }
    .hero { min-height: auto; }
    .hero__content { padding: 155px 0 78px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .button { width: 100%; }
    .whatsapp-float { right: 13px; bottom: 16px; left: 13px; justify-content: center; }
    .product-grid, .benefit-grid { grid-template-columns: 1fr; }
    .quote-chooser__dialog { padding: 34px 20px 22px; }
    .quote-chooser__grid { grid-template-columns: 1fr; }
    .product-card p { min-height: 0; }
    body.schroder-product-page .product-editor-layout { grid-template-columns: 1fr; gap: 32px; }
    body.schroder-product-page .product-editor-media { position: static; }
}
