/*
Theme Name: Dharma Seguros
Theme URI: https://dharmaseguros.com.br
Author: Dharma Seguros
Author URI: https://dharmaseguros.com.br
Description: Tema de blocos da Dharma Seguros — corretora de planos de saúde empresarial em Ribeirão Preto. Arquitetura de SEO local, conversão por WhatsApp.
Version: 1.0.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dharma-seguros
*/

:root{
  --navy:#13293D; --navy-deep:#0a1826; --blue:#4890D1; --skyblue:#2F96D3; --light:#C6DAED; --wa:#25D366;
  --ink:#1d2733; --muted:#5d6b7a; --line:#e3eaf2; --surface:#ffffff; --bg:#f4f7fb;
}

body{ -webkit-font-smoothing:antialiased; }

/* headings stay light inside navy zones */
.dharma-hero h1,.dharma-hero h2,.dharma-hero h3,.hero-title,
.cta-band h1,.cta-band h2,.cta-band h3,
.dharma-reviews h2{ color:#ffffff !important; }

/* Footer margin reset */
.wp-site-blocks > footer{ margin-block-start:0; }

/* ============ HEADER ============ */
.dharma-header{
  position:sticky; top:0; z-index:50;
  background:rgba(13,31,48,.82); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(72,144,209,.18);
}
.dharma-header .wp-block-site-logo img{ height:42px; width:auto; }
/* nav links sit on the navy header band — force light text over WP core's
   `.wp-block-navigation-item__content{color:inherit}` (specificity 0,3,0) */
.dharma-nav a{ font-weight:600; font-size:.95rem; color:#cfe0f0!important; }
.dharma-nav a:hover{ color:#ffffff!important; }
/* keep the WhatsApp button's own dark-green label (don't let nav color win) */
.dharma-nav .wp-block-button__link{ color:#06371a!important; }
/* mobile: the hamburger overlay opens on a WHITE sheet, so flip links to navy there */
.dharma-nav .wp-block-navigation__responsive-container.is-menu-open a{ color:#13293D!important; }
.dharma-nav .wp-block-navigation__responsive-container.is-menu-open a:hover{ color:var(--blue)!important; }
.dharma-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-button__link{ color:#06371a!important; }

/* ============ BUTTONS ============ */
.wp-block-button__link{ box-shadow:0 8px 30px rgba(72,144,209,.4); transition:transform .25s, box-shadow .25s; }
.wp-block-button__link:hover{ transform:translateY(-2px); }
.btn-wa .wp-block-button__link{ background:var(--wa)!important; color:#06371a!important; box-shadow:0 8px 30px rgba(37,211,102,.45); }
.btn-wa .wp-block-button__link:hover{ box-shadow:0 12px 36px rgba(37,211,102,.55); }
.is-style-outline .wp-block-button__link,
.btn-ghost .wp-block-button__link{
  background:transparent!important; color:#e8f1fa!important;
  border:1.5px solid rgba(198,218,237,.35)!important; box-shadow:none;
}
.btn-ghost .wp-block-button__link:hover{ border-color:var(--blue)!important; color:var(--blue)!important; }

/* ============ ELEMENTS ============ */
.eyebrow{
  font-family:'Courier Prime',monospace; font-weight:700; font-size:.78rem;
  letter-spacing:3px; text-transform:uppercase; color:var(--blue);
  display:inline-flex; align-items:center; gap:.7rem;
  border:1px solid #cfe3f3; padding:.5rem 1rem; border-radius:50px;
  background:#eaf3fb;
}
.eyebrow::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--wa); box-shadow:0 0 12px var(--wa); }
.eyebrow.no-dot::before{ display:none; }
/* eyebrow keeps the light-on-dark look inside navy heros */
.dharma-hero .eyebrow,.dharma-reviews .eyebrow{ color:var(--light); border-color:rgba(198,218,237,.25); background:rgba(72,144,209,.08); }
.accent-text{ color:var(--blue)!important; }
.mono-label{
  font-family:'Courier Prime',monospace; font-size:.72rem; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--muted);
}
.dharma-hero .mono-label,.dharma-footer .mono-label,.cta-band .mono-label,.dharma-reviews .mono-label{ color:#9db4c9; }

/* ============ HERO ============ */
.dharma-hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(72,144,209,.30), transparent 60%),
    radial-gradient(700px 600px at 8% 92%, rgba(72,144,209,.14), transparent 60%),
    linear-gradient(180deg,#13293D,#0a1826);
}
.dharma-hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(72,144,209,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(72,144,209,.06) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(circle at 72% 28%, black, transparent 72%);
  mask-image:radial-gradient(circle at 72% 28%, black, transparent 72%);
}
.dharma-hero > *{ position:relative; z-index:2; }
.hero-title{ text-shadow:0 4px 40px rgba(0,0,0,.4); }
.hero-orb{
  position:absolute; border-radius:50%; filter:blur(6px); opacity:.45; z-index:1;
  animation:dharmaFloat 7s ease-in-out infinite;
}
@keyframes dharmaFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-22px);} }

/* stats */
.stat-num{ font-family:'Bebas Neue',sans-serif; font-size:3rem; color:var(--blue); line-height:1; }

/* ============ OPERADORAS STRIP ============ */
/* logos are pre-normalised into uniform white chips (see build script):
   dead margins trimmed, transparent wordmarks flattened on white, all at the
   same height — so here we just size, round and lift them. */
.op-logos img{
  height:56px !important; width:auto !important;
  border-radius:12px;
  border:1px solid var(--line); box-shadow:0 8px 20px -10px rgba(19,41,61,.25);
  opacity:1; filter:none;
  transition:transform .25s ease, box-shadow .25s ease;
}
.op-logos img:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -12px rgba(19,41,61,.35); }
@media (max-width:600px){ .op-logos img{ height:46px !important; } }

/* ============ HERO MOCKUP (phone) ============ */
.hero-grid{ align-items:center; }
.hero-mockup-col{ display:flex; justify-content:center; }
.device-phone{
  position:relative; width:min(290px,82%); margin:0 auto;
  padding:12px; border-radius:38px;
  background:linear-gradient(165deg,#244660 0%,#0c1b29 100%);
  border:1px solid rgba(72,144,209,.35);
  box-shadow:0 50px 90px -38px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.device-phone::before{
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:32%; height:5px; border-radius:99px; background:rgba(255,255,255,.18); z-index:3;
}
.device-phone img{ display:block; width:100%; border-radius:27px; }
@media(max-width:781px){
  .hero-mockup-col{ margin-top:2.5rem; }
  .device-phone{ width:min(260px,72%); }
}

/* ============ CARDS ============ */
.equal-cards > .wp-block-column{ display:flex; flex-direction:column; flex-grow:0; }
.equal-cards > .wp-block-column > .wp-block-group{ display:flex; flex-direction:column; flex-grow:1; }
.equal-cards .cta-bottom{ margin-top:auto; }
.dharma-card{
  background:#ffffff;
  border:1px solid var(--line); border-radius:16px;
  box-shadow:0 4px 16px rgba(19,41,61,.05);
  transition:transform .25s, border-color .25s, box-shadow .25s;
}
.dharma-card:hover{ transform:translateY(-6px); border-color:var(--blue); box-shadow:0 20px 44px -20px rgba(19,41,61,.20); }
/* Page bodies run on the light bg. Imported page content still carries navy-era light
   inline colors (#9db4c9/#cfe0f0/#c6daed) baked into block attributes — and newer WP
   re-emits those colors from the block attrs, overriding edits to the saved HTML. So
   neutralize them to readable ink within the post content, then re-assert light text
   inside the only in-content navy band (.cta-band). The page hero is OUTSIDE
   .wp-block-post-content, so it keeps its light text untouched. */
.wp-block-post-content [style*="#9db4c9"],.wp-block-post-content [style*="#cfe0f0"],.wp-block-post-content [style*="#c6daed"]{ color:#5d6b7a!important; }
.wp-block-post-content .cta-band [style*="#9db4c9"],.wp-block-post-content .cta-band [style*="#cfe0f0"],.wp-block-post-content .cta-band [style*="#c6daed"]{ color:#9db4c9!important; }
/* keep the card-scoped net too (covers cards even outside .wp-block-post-content) */
.dharma-card [style*="#9db4c9"],.dharma-card [style*="#cfe0f0"],.dharma-card [style*="#c6daed"]{ color:#5d6b7a!important; }
.card-icon{ width:54px; height:54px; border-radius:12px; background:#eaf3fb; position:relative; }
.card-icon::after{
  content:""; position:absolute; inset:0; margin:auto; width:28px; height:28px;
  background:var(--blue);
  -webkit-mask:var(--icon) center / 28px 28px no-repeat; mask:var(--icon) center / 28px 28px no-repeat;
}
.icon-compare{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3 8 4-16 3 8h4'/%3E%3C/svg%3E"); }
.icon-bolt{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E"); }
.icon-shield{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7l8-4z'/%3E%3C/svg%3E"); }
.icon-chat{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.icon-search{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); }
.icon-check{ --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4L12 14.01l-3-3'/%3E%3C/svg%3E"); }

/* step number */
.step-no{ font-family:'Courier Prime',monospace; font-weight:700; font-size:.85rem; color:var(--blue); }

/* surface band */
.band-deep{ background:#eef3f9 !important; }

/* lifted blue stage — breaks the navy monotony for the "como funciona" steps */
.dharma-steps{
  background:
    radial-gradient(720px 400px at 50% -10%, rgba(72,144,209,.12), transparent 65%),
    linear-gradient(180deg,#f3f8fd 0%,#eef4fb 100%) !important;
}
.dharma-steps .card-icon{ margin-bottom:1rem; }

/* portrait / rafael */
.rafael-photo img{ border-radius:18px; border:2px solid var(--line); }

/* FAQ */
.dharma-faq.band-deep{ background:#ffffff !important; }
.dharma-faq .wp-block-details{
  border:1px solid var(--line); border-radius:12px; padding:1.1rem 1.4rem;
  background:#ffffff; margin-bottom:.9rem; box-shadow:0 4px 16px rgba(19,41,61,.04);
}
.dharma-faq summary{ font-weight:700; cursor:pointer; color:var(--navy); list-style:none; }
.dharma-faq summary::-webkit-details-marker{ display:none; }
.dharma-faq summary::after{ content:"+"; float:right; color:var(--blue); font-size:1.3rem; line-height:1; }
.dharma-faq details[open] summary::after{ content:"−"; }

/* CTA band — vibrant blue break: the conversion moment pops out of the navy */
.cta-band{
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg,#2f7cc0 0%,#1f5489 55%,#163f68 100%);
  border-top:1px solid rgba(72,144,209,.45);
}
.cta-band h2{ text-shadow:0 4px 30px rgba(0,0,0,.35); }
.cta-band .accent-text{ color:#8af0b4 !important; }
.cta-band p{ color:#dbeafa !important; }

/* ============ PAGE CONTENT ============ */
.lead-text{ color:var(--muted); }
.entry-content h2, .wp-block-post-content h2{ margin-top:2.5rem; }
.wp-block-post-content a, .entry-content a{ text-decoration:underline; text-underline-offset:3px; }
.wp-block-post-content ul li{ margin-bottom:.5rem; }
.callout{
  border-left:3px solid var(--blue); background:#f0f7fc;
  padding:1.2rem 1.4rem; border-radius:0 10px 10px 0; color:var(--ink);
}

/* tables */
.dharma-table table{ border-collapse:collapse; width:100%; }
.dharma-table th, .dharma-table td{
  border:1px solid var(--line); padding:.85rem 1rem; text-align:left; vertical-align:top;
}
.dharma-table thead th{
  background:#eaf3fb; color:var(--navy);
  font-family:'Courier Prime',monospace; font-size:.78rem; letter-spacing:1px; text-transform:uppercase;
}
.dharma-table tbody tr:nth-child(even){ background:#f8fafc; }
.dharma-table td{ color:var(--ink); }

/* quote form */
.dharma-quote-form{
  background:#ffffff;
  border:1px solid var(--line); border-radius:16px; padding:2rem; max-width:640px;
  box-shadow:0 4px 16px rgba(19,41,61,.05);
}
.dharma-quote-form .dqf-row{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.dharma-quote-form label{
  flex:1; min-width:200px; display:flex; flex-direction:column; gap:.4rem;
  font-family:'Courier Prime',monospace; font-size:.72rem; letter-spacing:1px; text-transform:uppercase; color:var(--muted);
}
.dharma-quote-form input, .dharma-quote-form select{
  padding:.8rem 1rem; border:1.5px solid var(--line); border-radius:9px;
  background:#ffffff; color:var(--ink); font-family:'Inter',sans-serif; font-size:.95rem;
}
.dharma-quote-form input:focus, .dharma-quote-form select:focus{ outline:none; border-color:var(--blue); }
.dharma-quote-form option{ color:#13293D; }
.dqf-submit{
  width:100%; padding:1rem; border:none; border-radius:50px; cursor:pointer;
  background:var(--wa); color:#06371a; font-family:'Inter',sans-serif; font-weight:700; font-size:1rem;
  box-shadow:0 8px 30px rgba(37,211,102,.45); transition:transform .2s;
}
.dqf-submit:hover{ transform:translateY(-2px); }
.dqf-note{ font-family:'Courier Prime',monospace; font-size:.72rem; color:var(--muted); margin:.9rem 0 0; text-align:center; }

/* calculadora embed */
.dharma-calc-embed{
  width:100%; border:1px solid var(--line); border-radius:18px; overflow:hidden;
  box-shadow:0 20px 50px -25px rgba(19,41,61,.25); background:#ffffff;
}
.dharma-calc-iframe{ width:100%; height:760px; border:0; display:block; }

/* footer */
.dharma-footer{ background:var(--navy-deep); }
.dharma-footer .wp-block-site-logo img{ height:40px; width:auto; }

/* ============ ANIMATIONS ============ */
.animate-on-scroll{ opacity:0; transform:translateY(30px); transition:opacity .7s ease, transform .7s ease; }
.animate-on-scroll.is-visible{ opacity:1; transform:translateY(0); }
.fade-up{ opacity:0; transform:translateY(30px); animation:fadeUp .7s ease forwards; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0);} }
.stagger-children > *{ opacity:0; transform:translateY(20px); animation:fadeUp .6s ease forwards; }
.stagger-children > *:nth-child(1){ animation-delay:.1s; }
.stagger-children > *:nth-child(2){ animation-delay:.25s; }
.stagger-children > *:nth-child(3){ animation-delay:.4s; }
.stagger-children > *:nth-child(4){ animation-delay:.55s; }

/* ============ EDITOR VISIBILITY ============ */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .stagger-children > *{
  opacity:1!important; transform:none!important; animation:none!important; transition:none!important;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.01ms!important; transition-duration:.01ms!important; }
  .animate-on-scroll, .fade-up, .stagger-children > *{ opacity:1!important; transform:none!important; }
  .hero-orb{ animation:none!important; }
}

/* ============ COMPARATIVO VISUAL ============ */
.dharma-compare{ background:radial-gradient(900px 460px at 50% 0%, rgba(72,144,209,.06), transparent 70%); }
.compare-card{
  max-width:860px; margin:0 auto;
  border:1px solid var(--line); border-radius:20px; overflow:hidden;
  background:#ffffff;
  box-shadow:0 24px 56px -30px rgba(19,41,61,.20);
}
.compare-row{ display:grid; grid-template-columns:1.5fr 1fr 1.2fr; align-items:center; }
.compare-row + .compare-row{ border-top:1px solid var(--line); }
.compare-row > div{ padding:1.05rem 1.25rem; font-size:.98rem; }
.compare-head{ background:#eaf3fb; }
.compare-head > div{ padding-top:1.3rem; padding-bottom:1.3rem; }
.cell-feature{ font-weight:600; color:var(--ink); }
.cell-alone-h{ font-family:'Courier Prime',monospace; font-size:.74rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); }
.cell-dharma-h{ font-family:'Bebas Neue',sans-serif; font-size:1.2rem; letter-spacing:1px; color:var(--blue); background:rgba(72,144,209,.12); }
.cell-alone{ color:var(--muted); }
.cell-dharma{ color:var(--ink); font-weight:600; background:rgba(72,144,209,.07); }
.ic-x::before{ content:"\2715"; color:#e07b7b; font-weight:700; margin-right:.55rem; }
.ic-ok::before{ content:"\2713"; color:var(--wa); font-weight:700; margin-right:.55rem; }
@media (max-width:600px){
  .compare-row{ grid-template-columns:1.2fr .85fr 1fr; }
  .compare-row > div{ padding:.8rem .7rem; font-size:.8rem; }
  .cell-dharma-h{ font-size:1rem; }
  .cell-alone-h{ font-size:.62rem; letter-spacing:1px; }
}

/* ============ DEPOIMENTOS (carrossel estilo Netflix) ============ */
.dharma-reviews{ background:linear-gradient(180deg,#0c2034,#0a1826); overflow:hidden; }
.reviews-track{
  display:flex; gap:1.3rem;
  overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-padding-inline:max(1.5rem, calc((100vw - 1240px) / 2));
  width:100vw; max-width:100vw; margin-inline:calc(50% - 50vw);
  padding:.5rem max(1.5rem, calc((100vw - 1240px) / 2)) 1.6rem;
  scrollbar-width:thin; scrollbar-color:rgba(72,144,209,.5) transparent;
}
.reviews-track::-webkit-scrollbar{ height:8px; }
.reviews-track::-webkit-scrollbar-track{ background:transparent; }
.reviews-track::-webkit-scrollbar-thumb{ background:rgba(72,144,209,.45); border-radius:99px; }
.review-card{
  scroll-snap-align:start; flex:0 0 330px; max-width:82vw; margin:0;
  display:flex; flex-direction:column; gap:1.1rem;
  background:linear-gradient(180deg, rgba(72,144,209,.12), rgba(72,144,209,.02));
  border:1px solid rgba(72,144,209,.22); border-radius:18px; padding:1.7rem;
  transition:transform .25s, border-color .25s;
}
.review-card:hover{ transform:translateY(-5px); border-color:var(--blue); }
.review-stars{ color:#f5b740; letter-spacing:3px; font-size:1rem; }
.review-quote{ font-size:1.02rem; line-height:1.55; color:#e8f1fa; margin:0; flex:1; }
.review-author{ display:flex; align-items:center; gap:.85rem; }
.review-avatar{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  display:grid; place-items:center; color:#fff;
  font-family:'Bebas Neue',sans-serif; font-size:1.25rem; letter-spacing:1px;
  background:linear-gradient(135deg,var(--blue),#27598c);
}
.review-name{ display:block; font-weight:700; color:#fff; font-size:.96rem; }
.review-role{ display:block; font-family:'Courier Prime',monospace; font-size:.68rem; letter-spacing:1px; text-transform:uppercase; color:#9db4c9; margin-top:2px; }

/* ============ RESPONSIVE ============ */
@media (max-width:781px){
  .stat-num{ font-size:2.4rem; }
  .dharma-hero::after{ -webkit-mask-image:none; mask-image:none; opacity:.5; }
}
