/*
Theme Name: David Zarate Insurance Services
Theme URI: https://davidzarateins.com/
Author: David Zarate Insurance Services
Description: A modern, responsive WordPress theme for David Zarate Insurance Services, focused on commercial insurance, Workers’ Compensation, property, liability, commercial auto/fleet, life insurance, annuities, and risk management.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dzis
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --navy: #0b1f33;
  --navy-2: #112b45;
  --blue: #1769aa;
  --blue-2: #2b87c8;
  --gold: #d7a547;
  --gold-soft: #f4e7ca;
  --ink: #162536;
  --muted: #5d6d7c;
  --line: #dbe4eb;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --success: #1e7a55;
  --danger: #a63232;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --shadow-soft: 0 10px 30px rgba(11, 31, 51, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.max-copy { max-width: 720px; }
.center.max-copy, .center .max-copy { margin-inline: auto; }
.site-main > .entry-content { margin: 0; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: 10px 14px; z-index: 1000; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(219, 228, 235, .85); }
.admin-bar .site-header { top: 32px; }
.topbar { background: var(--navy); color: #dfe9f2; font-size: .88rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a:hover { color: #fff; }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 260px; }
.brand-mark, .custom-logo { width: auto; max-width: 180px; max-height: 58px; object-fit: contain; }
.brand-mark { width: 46px; height: 52px; flex: 0 0 auto; }
.brand-copy strong { display: block; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.08rem; line-height: 1.1; }
.brand-copy span { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; margin-top: 4px; }
.custom-logo-link + .brand-copy { margin-left: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .95rem; font-weight: 650; }
.nav-links .menu { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a { color: #32475a; padding: 10px 0; position: relative; }
.nav-links .menu-item:not(.menu-item-cta) > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--gold); transition: .25s ease; }
.nav-links .menu-item:not(.menu-item-cta) > a:hover::after, .nav-links .current-menu-item:not(.menu-item-cta) > a::after, .nav-links .current_page_item:not(.menu-item-cta) > a::after { right: 0; }
.nav-links .menu-item-cta > a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 750; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 750; line-height: 1.2; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(11,31,51,.14); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e1b55e; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: #0f5d9d; }
.btn-outline { border-color: #bfd0dd; color: var(--navy); background: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-sm { min-height: 42px; padding: 10px 17px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 84% 12%, rgba(43,135,200,.2), transparent 30%), linear-gradient(122deg, #f8fbfd 0%, #ffffff 52%, #eef5fa 100%); padding: 80px 0 86px; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -220px; bottom: -260px; border: 70px solid rgba(215,165,71,.14); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue); letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
h1, h2, h3 { color: var(--navy); line-height: 1.14; margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5vw, 4.75rem); margin-bottom: 22px; letter-spacing: -.035em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 18px; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.hero-copy > p { font-size: 1.15rem; color: #42566a; max-width: 680px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 11px 19px; margin-top: 24px; color: #3e5367; font-weight: 650; font-size: .94rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points span::before { content: "✓"; color: var(--success); font-weight: 900; }
.hero-visual { position: relative; min-height: 520px; }
.hero-card-main { position: absolute; inset: 20px 16px 36px 56px; border-radius: 28px; background: linear-gradient(145deg, var(--navy), #173d60); box-shadow: var(--shadow); overflow: hidden; padding: 34px; color: #fff; }
.hero-card-main::before { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -130px; top: -110px; }
.hero-card-main::after { content: ""; position: absolute; width: 260px; height: 260px; background: rgba(43,135,200,.16); border-radius: 50%; left: -120px; bottom: -130px; }
.shield-display { width: 170px; margin: 30px auto 24px; position: relative; z-index: 2; }
.hero-card-main .custom-logo { width: auto; max-width: 230px; max-height: 160px; margin: 35px auto 25px; position: relative; z-index: 2; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.visual-label { position: relative; z-index: 2; text-align: center; }
.visual-label strong { display: block; font-family: Georgia, serif; font-size: 1.8rem; }
.visual-label span { color: #bfd2e4; }
.float-card { position: absolute; z-index: 5; background: #fff; border-radius: 16px; padding: 17px 19px; box-shadow: var(--shadow-soft); border: 1px solid #e4ebf0; min-width: 220px; }
.float-card strong { display: block; color: var(--navy); }
.float-card > span:not(.icon-circle) { color: var(--muted); font-size: .88rem; }
.float-card.one { left: 0; bottom: 78px; }
.float-card.two { right: 0; top: 72px; }
.icon-circle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #8d6418; font-weight: 900; float: left; margin-right: 11px; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 0; align-items: stretch; }
.trust-item { min-height: 104px; display: flex; align-items: center; padding: 18px 28px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); }
.trust-item span { color: var(--muted); font-size: .9rem; }
.trust-intro { background: var(--navy); color: #fff; }
.trust-intro strong { color: #fff; font-family: Georgia, serif; font-size: 1.25rem; }
.trust-intro span { color: #cbd9e4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 42px; }
.section-head p { color: var(--muted); margin: 0; max-width: 600px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 1px 0 rgba(11,31,51,.02); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: #c4d5e1; }
.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eaf3f9; color: var(--blue); margin-bottom: 22px; font-weight: 800; }
.service-card p { color: var(--muted); margin-top: 0; }
.text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; }
.text-link:hover { color: var(--navy); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.feature-panel { background: linear-gradient(145deg, var(--navy), #173d60); color: #fff; border-radius: 28px; padding: 42px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.feature-panel h2, .feature-panel h3 { color: #fff; }
.feature-panel p { color: #c7d7e4; }
.feature-panel::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 50px solid rgba(215,165,71,.12); right: -110px; bottom: -120px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin: 12px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }
.feature-panel .check-list { position: relative; z-index: 2; }
.feature-panel .check-list li { color: #ecf2f6; }
.number-list { display: grid; gap: 18px; margin-top: 28px; }
.number-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.number { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #7a5719; font-weight: 900; }
.number-item p { margin: 3px 0 0; color: var(--muted); }
.industry-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pill { padding: 10px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #385067; font-weight: 650; }
.cta-band { background: linear-gradient(120deg, var(--navy), #15466f); color: #fff; border-radius: 28px; padding: 45px 50px; display: flex; align-items: center; justify-content: space-between; gap: 34px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c8d8e5; margin: 0; max-width: 680px; }
.page-hero { padding: 72px 0; background: linear-gradient(125deg, #f7fafc, #edf5fa); border-bottom: 1px solid var(--line); }
.page-hero .container { max-width: 900px; text-align: center; }
.page-hero h1 { font-size: clamp(2.45rem, 4.6vw, 4.2rem); }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 760px; margin-inline: auto; }
.breadcrumb { color: var(--blue); font-size: .9rem; font-weight: 750; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.sidebar-card { position: sticky; top: 138px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-bar .sidebar-card { top: 170px; }
.sidebar-card h3 { margin-bottom: 12px; }
.sidebar-card p { color: var(--muted); }
.content-block + .content-block { margin-top: 50px; }
.content-block p, .content-block li { color: #4e6173; }
.content-block ul { padding-left: 20px; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 750; color: #344a5d; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd8e2; border-radius: 11px; background: #fff; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: .82rem; margin: 14px 0 0; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.form-status.success { background: #e9f6ef; color: var(--success); }
.form-status.error { background: #fbebeb; color: var(--danger); }
.dzis-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.contact-card p { margin: 2px 0 0; color: var(--muted); }
.contact-card .service-icon { width: 46px; height: 46px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-button { width: 100%; border: 0; background: transparent; padding: 21px 0; display: flex; justify-content: space-between; gap: 20px; text-align: left; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-button span:last-child { font-size: 1.35rem; color: var(--blue); }
.faq-answer { display: none; padding: 0 44px 20px 0; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.site-footer { background: #081827; color: #c4d2dd; padding: 65px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 42px; }
.site-footer .brand-copy strong { color: #fff; }
.site-footer .brand-copy span { color: #9cb0c0; }
.footer-about { margin-top: 20px; max-width: 400px; color: #9fb2c1; }
.footer-title { color: #fff; font-size: .93rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; margin-bottom: 17px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 45px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; color: #8fa4b4; }
.disclaimer { font-size: .78rem; color: #8197a8; max-width: 900px; margin-top: 18px; }
.license-line { color: #93a7b7; font-size: .82rem; margin-top: 10px; }

.post-list { display: grid; gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; }
.post-card .entry-meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.post-card h2 { font-size: 2rem; }
.entry-content > *:not(.hero):not(.trust-strip):not(.section):not(.section-sm):not(.page-hero) { max-width: 900px; margin-left: auto; margin-right: auto; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote { padding-left: 20px; padding-right: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .admin-bar .site-header { top: 32px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 112px; display: none; flex-direction: column; align-items: stretch; background: #fff; padding: 22px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(11,31,51,.09); }
  .admin-bar .nav-links { top: 112px; }
  .nav-links.open { display: flex; }
  .nav-links .menu { flex-direction: column; align-items: stretch; gap: 7px; }
  .nav-links .menu-item-cta > a { width: 100%; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; max-width: 660px; width: 100%; margin-inline: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-intro { grid-column: 1 / -1; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .topbar-inner { justify-content: center; text-align: center; min-height: 40px; }
  .topbar-inner > span { display: none; }
  .navbar { min-height: 72px; }
  .brand { min-width: 0; }
  .brand-mark { width: 39px; height: 45px; }
  .brand-copy strong { font-size: .94rem; }
  .brand-copy span { font-size: .67rem; }
  .nav-links { top: 112px; }
  .section { padding: 70px 0; }
  .hero { padding: 58px 0 65px; }
  h1 { font-size: 2.55rem; }
  .hero-copy > p { font-size: 1.04rem; }
  .hero-visual { min-height: 430px; }
  .hero-card-main { inset: 15px 0 36px 30px; padding: 24px; }
  .shield-display { width: 135px; }
  .float-card { min-width: 196px; padding: 14px; }
  .float-card.one { left: 0; bottom: 46px; }
  .float-card.two { right: 0; top: 48px; }
  .trust-grid, .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .cta-band { display: block; padding: 34px 28px; }
  .cta-band .button-row { margin-top: 24px; }
  .feature-panel { padding: 32px 26px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 8px; }
  .quote-form { padding: 24px; }
}
