/* Clearview Insurance and Financial Services: site styles.
   Rebuilds the 2024 Divi design (theme settings and module settings saved in WordPress) as plain CSS.
   No Divi or WordPress CSS is reused. Changes from WordPress are commented where they are made. */

:root {
  --accent: #00a5df;        /* Divi accent colour (dividers, icons, button borders) */
  --link: #00759f;          /* accent darkened for text: #00a5df is 2.8:1 on white, this is 5.2:1 */
  --green: #4a8000;         /* button green #6eba01 darkened so white text reaches 4.8:1 */
  --text: #666;
  --head: #333;
  --dark: #1f1f1f;
  --gray: #f4f4f4;
  --form-blue: #204ce5;
  --header-h: 106px;
  --sans: "Open Sans", Arial, sans-serif;
  --mont: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.7em; font-weight: 500; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--head); font-weight: 500; line-height: 1em; margin: 0; padding-bottom: 10px; }
h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 22px; } h4 { font-size: 18px; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
ul { margin: 0; list-style: disc; padding: 0 0 23px 1em; line-height: 26px; }
strong { font-weight: 700; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--link); padding: 10px 16px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.skip-link:focus { top: 12px; }

/* ---------- Header (sticky, twotallco.com pattern) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 2px 10px rgba(0,0,0,.08); }
.header-inner { width: 80%; max-width: 1080px; margin: 0 auto; height: 106px; display: flex; align-items: center; justify-content: space-between; transition: height .3s; }
.logo { display: block; line-height: 0; }
.logo img { height: 80px; width: auto; transition: height .3s; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; line-height: 1; }
.site-nav a { display: block; padding: 10px 11px; font-size: 16px; font-weight: 600; color: #000; }
.site-nav li:last-child a { padding-right: 0; }
.site-nav a:hover { text-decoration: none; opacity: .7; }
.site-nav a[aria-current="page"] { color: var(--link); }
.nav-toggle { display: none; }
.site-header.is-compact .header-inner { height: 66px; }
.site-header.is-compact .logo img { height: 46px; }

@media (max-width: 980px) {
  .header-inner { height: 74px; width: 90%; }
  .logo img { height: 48px; }
  .site-header.is-compact .header-inner { height: 64px; }
  .site-header.is-compact .logo img { height: 42px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle .bar { display: block; width: 26px; height: 3px; background: var(--link); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--accent); box-shadow: 0 6px 12px rgba(0,0,0,.12); }
  .js .site-header.menu-open { max-height: 100dvh; overflow-y: auto; }
  .js .site-header.menu-open .site-nav { display: block; position: static; }
  .site-nav ul { flex-direction: column; padding: 5% 5% 4%; }
  .site-nav a, .site-nav li:last-child a { padding: 0 5%; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(0,0,0,.03); }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Page header band (Divi fullwidth header) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 50px 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,153,217,.93) 0%, rgba(0,153,217,.7) 100%); }
.hero-content { position: relative; z-index: 2; width: 80%; max-width: 1080px; margin: 0 auto; padding: 10px; }
.hero h1 { color: #fff; font-family: var(--mont); font-weight: 700; font-size: 60px; line-height: 1.4em; padding-bottom: 10px; }
.hero-text { font-size: 22px; line-height: 1.8em; }
.hero-text p { padding-bottom: 1em; }
.hero-text p:last-child { padding-bottom: 0; }
.hero-sub { font-size: 26px; line-height: 1.4em; font-weight: 500; }
.hero-buttons { padding: 0; margin-top: 20px; }
.hero--full { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 50px 0 100px; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); color: #fff; line-height: 0; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 767px) { .hero h1 { font-size: clamp(26px, 8.4vw, 48px); overflow-wrap: break-word; } .hero-content { width: 90%; } }
@media (max-width: 479px) { .hero-text { font-size: 18px; } .hero-sub { font-size: 20px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; position: relative; font-size: 20px; font-weight: 500; line-height: 1.7em; padding: .3em 1em; border: 2px solid var(--accent); border-radius: 3px; color: var(--link); background: transparent; transition: all .3s ease; }
.btn:hover { text-decoration: none; background-color: rgba(0,0,0,.05); }
.btn-16 { font-size: 16px; }
.btn-80 { transform: scale(.8); }
.btn-hero1, .btn-hero2, .btn-green { font-family: var(--mont); text-transform: uppercase; letter-spacing: 2px; border-radius: 0; font-size: 16px; color: #fff; }
.btn-hero1, .btn-green { background: var(--green); border-color: var(--green); }
.btn-hero2 { background: transparent; border-color: #fff; margin-left: 15px; }
.btn-hero1:hover, .btn-hero2:hover, .btn-green:hover { background: #fff; border-color: #fff; color: var(--green); }
.btn-green { font-size: 18px; }
.btn-green:hover { border-color: var(--green); }
@media (max-width: 479px) { .btn-hero2 { margin-left: 0; margin-top: 12px; } .hero-buttons .btn { display: block; max-width: 280px; margin-left: auto; margin-right: auto; } }

/* ---------- Sections, rows, columns (Divi grid) ---------- */
.sec { position: relative; padding: 4% 0; background: #fff; }
.sec.bg-gray { background: var(--gray); }
.row { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; padding: 2% 0; }
.row::after { content: ""; display: block; clear: both; }
.col { position: relative; }
.mod { position: relative; }
.center { text-align: center; }
.mod-btn.center { text-align: center; }
.mod-btn.left { text-align: left; }

@media (min-width: 981px) {
  .row { display: flex; align-items: flex-start; }
  .row.eq { align-items: stretch; }
  .col { margin-right: 5.5%; }
  .col:last-child { margin-right: 0; }
  .c4_4 { width: 100%; } .c1_2 { width: 47.25%; } .c1_3 { width: 29.6667%; } .c2_3 { width: 64.833%; }
  .c1_4 { width: 20.875%; } .c3_4 { width: 73.625%; } .c1_5 { width: 15.6%; }
  .g2 .col { margin-right: 3%; } .g2 .col:last-child { margin-right: 0; }
  .g2 .c1_3 { width: 31.3333%; } .g2 .c2_3 { width: 65.6667%; } .g2 .c1_2 { width: 48.5%; }
  .g1 .col { margin-right: 0; } .g1 .c1_2 { width: 50%; } .g1 .c1_3 { width: 33.333%; } .g1 .c2_3 { width: 66.667%; }
  .c4_4 > .mod { margin-bottom: 2.75%; } .c1_2 > .mod { margin-bottom: 5.82%; } .c1_3 > .mod { margin-bottom: 9.27%; }
  .c2_3 > .mod { margin-bottom: 4.242%; } .c1_4 > .mod { margin-bottom: 13.174%; } .c3_4 > .mod { margin-bottom: 3.735%; }
  .c1_5 > .mod { margin-bottom: 17.628%; }
  .col > .mod:last-child { margin-bottom: 0; }
}
@media (max-width: 980px) {
  .sec { padding: 50px 0; }
  .row { padding: 30px 0; }
  .col { width: 100%; margin-bottom: 30px; }
  .col:last-child { margin-bottom: 0; }
  .mod { margin-bottom: 30px; }
  .col > .mod:last-child, .row > .mod:last-child { margin-bottom: 0; }
  .row[data-cols^="1_4"], .row[data-cols^="1_5"] { display: flex; flex-wrap: wrap; }
  .row[data-cols^="1_4"] > .col, .row[data-cols^="1_5"] > .col { width: 47.25%; margin-right: 5.5%; }
  .row[data-cols^="1_4"] > .col:nth-child(2n), .row[data-cols^="1_5"] > .col:nth-child(2n) { margin-right: 0; }
  .row[data-cols^="1_4"] > .col:nth-last-child(-n+2), .row[data-cols^="1_5"] > .col:last-child { margin-bottom: 0; }
}
@media (max-width: 479px) {
  .row[data-cols^="1_4"] > .col, .row[data-cols^="1_5"] > .col { width: 100%; margin-right: 0; margin-bottom: 30px; }
  .row[data-cols^="1_4"] > .col:last-child, .row[data-cols^="1_5"] > .col:last-child { margin-bottom: 0; }
}

/* ---------- Modules ---------- */
.mod-text h2, .mod-text h3 { line-height: 1.2em; }
.mod-text p a, .mod-text li a, .blurb-text a, .cta-body a, .sitemap-grid .sm-desc a { text-decoration: underline; text-underline-offset: 2px; } /* links told apart without colour alone */
.t16 { font-size: 16px; line-height: 1.9em; }
.indent { padding-left: 40px; }
.indent60 { padding-left: 60px; }
.pb30 { padding-bottom: 30px !important; }
.nobullet { list-style: none; }
.mod-heading { color: var(--head); line-height: 1em; padding-bottom: 10px; }
.divider { width: 100px; max-width: 100%; height: 5px; margin: 0 auto 20px !important; padding-bottom: 20px; box-sizing: content-box; }
.divider::before { content: ""; display: block; border-top: 3px solid var(--accent); }
.mod-img img { display: block; }
.mod-img img.framed { border: 1px solid #999; }
.blurb { padding: 10px 15px; font-size: 16px; line-height: 1.9em; }
.blurb-pad { padding: 30px; }
.blurb-img, .blurb-icon { display: block; margin: 0 auto 30px; line-height: 0; }
.blurb-img img { width: 180px; max-width: 100%; }
.blurb-icon { color: var(--accent); }
.blurb-icon svg { width: 100%; height: 100%; }
.blurb-title { font-size: 18px; padding-bottom: 10px; line-height: 1.4em; }
.blurb-mont .blurb-title { font-family: var(--mont); font-size: 22px; line-height: 1.8em; font-weight: 400; color: var(--dark); }
.blurb-title a { color: inherit; }
.blurb-left { display: flex; align-items: flex-start; gap: 15px; text-align: left; padding: 0; }
.blurb-left .blurb-icon { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; }
.cta-title { font-family: var(--mont); font-size: 36px; line-height: 1.4em; color: var(--dark); font-weight: 400; padding-bottom: 10px; }
.cta-body { font-size: 16px; line-height: 1.9em; }
.cta-btn { padding: 20px 0 0; }
.col-bg { overflow: hidden; }
.col-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-map iframe { display: block; width: 100%; height: 450px; border: 0; }
@media (max-width: 767px) { .cta-title { font-size: 28px; } .indent { padding-left: 20px; } }

/* ---------- Sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 10px 5.5%; }
@media (min-width: 52rem) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
.sitemap-group ul { list-style: none; padding: 0 0 10px; line-height: 1.7em; }
.sitemap-group li { padding: 0 0 12px; }
.sitemap-group li > a { font-weight: 600; font-size: 16px; }
.sitemap-group .sm-desc { display: block; }
.sitemap-group .sm-sub ul { padding: 0 0 0 20px; border-left: 3px solid var(--gray); }

/* ---------- Footer ---------- */
.footer-band { position: relative; overflow: hidden; padding: 90px 0; }
.footer-bg { position: absolute; inset: 0; z-index: 0; }
.footer-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.footer-row { z-index: 1; padding: 0; }
.footer-box { background: #fff; padding: 50px 40px; }
.footer-box h2 { font-size: 26px; }
.c1_3.footer-box h2 { font-size: 23px; }
.footer-logo { padding: 10px 0 20px; }
.footer-logo img { display: block; width: 100%; max-width: 300px; }
.footer-blurb { font-size: 16px; line-height: 1.9em; margin-bottom: 16px; }
.footer-blurb a { color: var(--text); }
.footer-blurb .blurb-icon { color: var(--accent); }
.cv-form .field { margin: 0 0 24px; padding: 0; }
.cv-form input, .cv-form textarea { display: block; width: 100%; font: 400 14px/1.5 var(--sans); color: #112337; background: #fff; border: 1px solid #686e77; border-radius: 3px; box-shadow: 0 1px 4px rgba(18,25,97,.08); padding: 0 12px; }
.cv-form input { height: 38px; }
.cv-form textarea { height: 130px; padding: 12px; resize: vertical; }
.cv-form ::placeholder { color: #5b616b; opacity: 1; }
.cv-form .hp { position: absolute; left: -9999px; }
.cv-form .cf-turnstile { margin: 0 0 16px; }
.form-submit { padding: 0; }
.form-button { width: 100%; height: 38px; border: 1px solid transparent; border-radius: 3px; background: var(--form-blue); color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; box-shadow: 0 1px 4px rgba(18,25,97,.08); }
.form-button:hover { background: #1a3fc0; }
.form-button[disabled] { opacity: .7; cursor: wait; }
.form-status { padding: 12px 0 0; font-size: 15px; }
.form-status:empty { padding: 0; }
.form-status.ok { color: #2b6b0a; font-weight: 600; }
.form-status.err { color: #b3261e; }
.bottom-bar { background: #222; color: #999; font-size: 12px; line-height: 1.7em; }
.bottom-bar .row { display: block; padding: 10px 0; }
.bottom-bar p { padding: 0; }
.bottom-bar a { color: #999; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bottom-bar a:hover { color: #ccc; }
@media (max-width: 980px) { .footer-band { padding: 50px 0; } .footer-box { padding: 40px 30px; } }

/* ---------- Motion (entrance fades and parallax; off for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .header-inner, .logo img, .nav-toggle .bar, .btn { transition: none; }
  .hero-scroll { animation: none; }
}
