/*
Theme Name:        Conner Insurance Group
Theme URI:         https://connerinsgrp.com
Description:       Divi child theme for Conner Insurance Group. Presentation only: colors, type, layout utilities and component styles. Site features live in the CIG Site Functions plugin.
Author:            Conner Insurance Group
Author URI:        https://connerinsgrp.com
Template:          Divi
Version:           2.1.8
Requires at least: 6.4
Tested up to:      7.1
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:       cig-divi-child
*/

/* ==========================================================================
   0. FIRST PRINCIPLES
   --------------------------------------------------------------------------
   Every rule below serves one of three jobs:
     1. Authority  — serif display, generous space, restrained color.
     2. Legibility — 17px+ body, 1.65 line height, 68ch measure, AA contrast.
     3. Extraction — direct-answer blocks styled so the 2–3 sentence answer
                     is visually (and structurally) the first thing after H2.
   Utility classes are prefixed `cig-` so they never collide with Divi.
   Add them in Divi → Module/Row/Section Settings → Advanced → CSS Class.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --cig-navy:          #0B2240;
  --cig-navy-900:      #071729;
  --cig-navy-700:      #14325A;
  --cig-navy-500:      #2A4A75;
  --cig-steel:         #6E86A6;   /* accent lines, eyebrow rules */
  --cig-white:         #FFFFFF;
  --cig-slate-50:      #F5F7FA;   /* soft slate panels */
  --cig-slate-100:     #ECEFF4;
  --cig-slate-200:     #DCE2EA;
  --cig-slate-400:     #9AA6B6;
  --cig-charcoal:      #1E232B;   /* body copy on white: 15.6:1 */
  --cig-charcoal-soft: #4A5361;   /* secondary copy: 7.6:1 */
  --cig-on-navy:       #E8EDF4;
  --cig-on-navy-soft:  #B7C3D4;

  /* Type */
  /* Matched to the scanned mockups: Garamond-style serif display, geometric sans for everything else. */
  --cig-font-display: "EB Garamond", "Cormorant Garamond", Garamond, "Times New Roman", Georgia, serif;
  --cig-font-body:    "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluid type scale (min @ 360px → max @ 1440px) */
  --cig-fs-display: clamp(3rem, 1.7rem + 5.4vw, 6rem);
  --cig-fs-h1:      clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
  --cig-fs-h2:      clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --cig-fs-h3:      clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --cig-fs-body:    clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
  --cig-fs-small:   0.875rem;
  --cig-fs-eyebrow: 0.75rem;

  /* Space (8pt base) */
  --cig-space-1: 0.5rem;
  --cig-space-2: 1rem;
  --cig-space-3: 1.5rem;
  --cig-space-4: 2rem;
  --cig-space-6: 3rem;
  --cig-space-8: 4rem;
  --cig-space-12: 6rem;
  --cig-space-16: 8rem;

  --cig-measure: 68ch;
  --cig-radius: 2px;              /* mockups are square-cornered */
  --cig-border: 1px solid var(--cig-slate-200);
  --cig-shadow: 0 1px 2px rgba(11,34,64,.06), 0 8px 24px rgba(11,34,64,.06);
  --cig-ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   2. BASE TYPOGRAPHY (overrides Divi defaults)
   ========================================================================== */
body,
.et_pb_text,
.et_pb_module p {
  font-family: var(--cig-font-body);
  font-size: var(--cig-fs-body);
  line-height: 1.75;
  color: var(--cig-charcoal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3 {
  font-family: var(--cig-font-display);
  font-weight: 500;
  color: var(--cig-navy);
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-wrap: balance;
  padding-bottom: 0;
  margin: 0 0 var(--cig-space-2);
}
h1, .et_pb_module h1 { font-size: var(--cig-fs-h1); }
h2, .et_pb_module h2 { font-size: var(--cig-fs-h2); }
h3, .et_pb_module h3 { font-size: var(--cig-fs-h3); line-height: 1.25; }

h4, h5, h6,
.et_pb_module h4, .et_pb_module h5, .et_pb_module h6 {
  font-family: var(--cig-font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--cig-fs-small);
  color: var(--cig-navy);
}

p { padding-bottom: 0; margin: 0 0 var(--cig-space-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--cig-navy-700); text-underline-offset: 3px; }
a:hover { color: var(--cig-navy); }

/* Keyboard focus — visible everywhere, never removed */
:focus-visible {
  outline: 2px solid var(--cig-steel);
  outline-offset: 3px;
}

/* ==========================================================================
   3. TYPE UTILITIES
   ========================================================================== */
.cig-display,
.cig-display h1 {
  font-family: var(--cig-font-display);
  font-size: var(--cig-fs-display);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Eyebrow: small caps label above headings ("FOCUSED ON WHAT DRIVES YOUR BUSINESS") */
.cig-eyebrow,
p.cig-eyebrow {
  font-family: var(--cig-font-body);
  font-size: var(--cig-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cig-charcoal-soft);
  margin-bottom: var(--cig-space-2);
}

.cig-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--cig-charcoal-soft); max-width: 56ch; }
.cig-measure { max-width: var(--cig-measure); }
.cig-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Short rule under hero subheads, as in the mockups */
.cig-rule::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--cig-steel);
  margin: var(--cig-space-3) 0;
}
.cig-center.cig-rule::after { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. SECTIONS
   ========================================================================== */
.cig-section        { padding: var(--cig-space-12) 0 !important; }
.cig-section--tight { padding: var(--cig-space-8) 0 !important; }
.cig-bg-white  { background-color: var(--cig-white) !important; }
.cig-bg-slate  { background-color: var(--cig-slate-50) !important; }
.cig-bg-navy   { background-color: var(--cig-navy) !important; }

/* Anything placed on navy inverts automatically */
.cig-bg-navy,
.cig-bg-navy p,
.cig-bg-navy li { color: var(--cig-on-navy); }
.cig-bg-navy h1, .cig-bg-navy h2, .cig-bg-navy h3 { color: var(--cig-white); }
.cig-bg-navy .cig-eyebrow { color: var(--cig-on-navy-soft); }
.cig-bg-navy a:not(.cig-btn) { color: var(--cig-white); }

/* Hero: image right/behind with a navy→transparent scrim for legibility */
.cig-hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center right;
}
.cig-hero::before {
  content: "";
  position: absolute; inset: 0;
  /* Text column sits on a near-solid band (≥ .9 opacity) so white type holds AA contrast over any photo */
  background: linear-gradient(90deg, rgba(7,23,41,.96) 0%, rgba(7,23,41,.93) 55%, rgba(7,23,41,.5) 72%, rgba(7,23,41,0) 88%);
  pointer-events: none;
}
.cig-hero--light::before {
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.95) 55%, rgba(255,255,255,.55) 72%, rgba(255,255,255,0) 88%);
}
/* Phones: text spans the full width, so the scrim covers the full width too */
@media (max-width: 767px) {
  .cig-hero::before        { background: rgba(7,23,41,.9); }
  .cig-hero--light::before { background: rgba(255,255,255,.93); }
}
.cig-hero > * { position: relative; z-index: 1; flex: 0 1 auto; margin-left: auto !important; margin-right: auto !important; }   /* above the scrim; keeps Divi's centered row width (flex-grow would stretch rows edge to edge) */
/* Hero text always stays inside the scrimmed left column */
.cig-hero__content { max-width: 620px; }

/* ==========================================================================
   5. BUTTONS — advisory CTAs only. Never "Get a Quote".
   Use on Divi Button modules (CSS Class) or on <a class="cig-btn">.
   ========================================================================== */
.cig-btn,
.et_pb_button.cig-btn,
.cig-btn .et_pb_button {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--cig-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  line-height: 1 !important;
  padding: 1.05em 1.9em !important;
  border-radius: var(--cig-radius) !important;
  border: 1px solid var(--cig-navy) !important;
  background: var(--cig-navy) !important;
  color: var(--cig-white) !important;
  text-decoration: none;
  transition: background .2s var(--cig-ease), color .2s var(--cig-ease), border-color .2s var(--cig-ease);
}
.cig-btn:hover,
.et_pb_button.cig-btn:hover { background: var(--cig-navy-700) !important; border-color: var(--cig-navy-700) !important; }

/* Strip Divi's default arrow-on-hover so buttons stay still */
.et_pb_button.cig-btn::after,
.cig-btn .et_pb_button::after { display: none !important; }

.cig-btn--ghost { background: transparent !important; color: var(--cig-navy) !important; }
.cig-btn--ghost:hover { background: var(--cig-navy) !important; color: var(--cig-white) !important; }

.cig-bg-navy .cig-btn,
.cig-btn--on-navy { background: transparent !important; border-color: var(--cig-on-navy-soft) !important; color: var(--cig-white) !important; }
.cig-bg-navy .cig-btn:hover,
.cig-btn--on-navy:hover { background: var(--cig-white) !important; color: var(--cig-navy) !important; border-color: var(--cig-white) !important; }

/* Text link with arrow ("LEARN MORE →") */
.cig-link {
  font-size: var(--cig-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cig-navy);
}
.cig-link::after { content: " →"; transition: margin .2s var(--cig-ease); }
/* Comfortable tap target (≥ 44px tall) without changing the visual size of the label */
.cig-link { display: inline-flex; align-items: center; min-height: 44px; }
.cig-link:hover::after { margin-left: .3em; }

/* ==========================================================================
   6. ICONS — outline only. Inline SVG with stroke="currentColor".
   ========================================================================== */
.cig-icon {
  width: 44px; height: 44px;
  color: var(--cig-navy);
  stroke-width: 1.25;
  fill: none;
  display: block;
  margin-bottom: var(--cig-space-2);
}
.cig-icon * { vector-effect: non-scaling-stroke; }
.cig-center .cig-icon { margin-left: auto; margin-right: auto; }
.cig-bg-navy .cig-icon { color: var(--cig-on-navy); }

/* Divi Blurb icon fallback: force Divi font icons to read as light line-weight */
.cig-blurb .et-pb-icon { color: var(--cig-navy) !important; font-weight: 300; }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.cig-card {
  background: var(--cig-white);
  border: var(--cig-border);
  border-radius: var(--cig-radius);
  padding: var(--cig-space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--cig-ease), transform .25s var(--cig-ease);
}
.cig-card:hover { box-shadow: var(--cig-shadow); transform: translateY(-2px); }
.cig-card h3 {
  font-family: var(--cig-font-body);
  font-size: var(--cig-fs-small);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--cig-space-1);
}
.cig-card p { font-size: .9375rem; color: var(--cig-charcoal-soft); }
.cig-card .cig-link { margin-top: auto; padding-top: var(--cig-space-3); }

/* Image-topped industry card (Aerospace / Manufacturing / Cyber) */
.cig-card--media { padding: 0; overflow: hidden; }
.cig-card--media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.cig-card--media .cig-card__body { padding: var(--cig-space-3) var(--cig-space-3) var(--cig-space-4); display: flex; flex-direction: column; flex: 1; }

/* Card grid without relying on Divi column count */
.cig-grid {
  display: grid;
  gap: var(--cig-space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.cig-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cig-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Equalise Divi column heights when cards sit in separate columns */
.cig-equal-cols { display: flex; flex-wrap: wrap; }
.cig-equal-cols > .et_pb_column { display: flex; flex-direction: column; }
.cig-equal-cols > .et_pb_column > .et_pb_module { flex: 1; }

/* ==========================================================================
   8. STAT CALL-OUTS
   ========================================================================== */
.cig-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--cig-slate-200);
}
.cig-stat { padding: var(--cig-space-4) var(--cig-space-3) var(--cig-space-3) 0; border-right: 1px solid var(--cig-slate-200); }
.cig-stat:last-child { border-right: 0; }
.cig-stat__value {
  font-family: var(--cig-font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  line-height: 1;
  color: var(--cig-navy);
  display: block;
  margin-bottom: var(--cig-space-1);
}
.cig-stat__label { font-size: .9375rem; color: var(--cig-charcoal-soft); display: block; }
.cig-stat__source { font-size: .75rem; color: var(--cig-slate-400); display: block; margin-top: var(--cig-space-1); }

.cig-bg-navy .cig-stats,
.cig-bg-navy .cig-stat { border-color: rgba(255,255,255,.14); }
.cig-bg-navy .cig-stat__value { color: var(--cig-white); }
.cig-bg-navy .cig-stat__label { color: var(--cig-on-navy); }
.cig-bg-navy .cig-stat__source { color: var(--cig-on-navy-soft); }

@media (max-width: 767px) {
  .cig-stat { border-right: 0; border-bottom: 1px solid var(--cig-slate-200); padding-right: 0; }
}

/* ==========================================================================
   9. DIRECT-ANSWER PATTERN (SEO / GEO)
   H2 question → 2–3 sentence answer → expansion.
   Markup:  <section class="cig-qa">
              <h2>Question?</h2>
              <p class="cig-answer">Direct answer.</p>
              …expansion…
            </section>
   ========================================================================== */
.cig-qa { max-width: var(--cig-measure); margin: 0 0 var(--cig-space-8); }
.cig-qa h2 { margin-bottom: var(--cig-space-2); }
.cig-answer {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--cig-charcoal);
  border-left: 2px solid var(--cig-navy);
  padding-left: var(--cig-space-3);
  margin-bottom: var(--cig-space-3) !important;
}
.cig-qa h3 { margin-top: var(--cig-space-4); }
.cig-qa ul, .cig-qa ol { padding-left: 1.2em; margin-bottom: var(--cig-space-2); }
.cig-qa li { margin-bottom: .4em; padding-left: .2em; }

/* Trigger / Friction / Boundary matrix — the advisory signature block */
.cig-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cig-tfb {
  width: 100%;
  border-collapse: collapse;
  margin: var(--cig-space-3) 0 var(--cig-space-4);
  font-size: .9375rem;
}
.cig-tfb th, .cig-tfb td { text-align: left; vertical-align: top; padding: var(--cig-space-2); border-bottom: var(--cig-border); }
.cig-tfb thead th {
  font-size: var(--cig-fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cig-white); background: var(--cig-navy);
}
.cig-tfb tbody th { font-weight: 600; color: var(--cig-navy); width: 22%; }
.cig-tfb tbody tr:nth-child(even) { background: var(--cig-slate-50); }
@media (max-width: 767px) {
  .cig-tfb thead { display: none; }
  .cig-tfb tr, .cig-tfb th, .cig-tfb td { display: block; width: 100%; }
  .cig-tfb td[data-label]::before {
    content: attr(data-label); display: block; font-size: var(--cig-fs-eyebrow);
    font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cig-charcoal-soft);
  }
}

/* Status callout ("As of October 2026…") */
.cig-callout {
  background: var(--cig-slate-50);
  border: var(--cig-border);
  border-left: 3px solid var(--cig-navy);
  padding: var(--cig-space-3);
  margin: var(--cig-space-3) 0;
  font-size: .9375rem;
}

/* ==========================================================================
   10. ADVISORY PROCESS STEPPER (Discover → Analyze → Recommend → Review)
   ========================================================================== */
.cig-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--cig-space-4); counter-reset: cig-step; position: relative; }
.cig-step { text-align: center; position: relative; }
.cig-step::before {
  counter-increment: cig-step;
  content: counter(cig-step);
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cig-navy); color: var(--cig-white);
  font: 600 .8125rem/1 var(--cig-font-body);
  margin-bottom: var(--cig-space-2);
}
.cig-step h3 { font: 600 var(--cig-fs-small)/1.3 var(--cig-font-body); letter-spacing: .12em; text-transform: uppercase; }
.cig-step p { font-size: .9375rem; color: var(--cig-charcoal-soft); }
@media (min-width: 981px) {
  .cig-steps::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 1px; background: var(--cig-slate-200); z-index: 0; }
  .cig-step::before { position: relative; z-index: 1; }
}

/* Clarity / Insight / Guidance comparison (from the Operations Charter) */
.cig-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; border: var(--cig-border); background: var(--cig-white); }
.cig-pillar { padding: var(--cig-space-4); border-right: var(--cig-border); }
.cig-pillar:last-child { border-right: 0; }
.cig-pillar__old { font-size: .875rem; color: var(--cig-slate-400); text-decoration: line-through; text-decoration-color: var(--cig-slate-200); margin-bottom: var(--cig-space-2); }
.cig-pillar__new { font-size: .9375rem; color: var(--cig-charcoal); }
@media (max-width: 767px) { .cig-pillar { border-right: 0; border-bottom: var(--cig-border); } }

/* ==========================================================================
   11. FAQ ACCORDION (Divi Toggle / Accordion modules → CSS class cig-faq)
   ========================================================================== */
.cig-faq .et_pb_toggle { border: 0; border-bottom: var(--cig-border); background: transparent !important; padding: var(--cig-space-3) 0; }
.cig-faq .et_pb_toggle_title,
.cig-faq h5.et_pb_toggle_title {
  font-family: var(--cig-font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--cig-navy) !important;
}
.cig-faq .et_pb_toggle_title::before { color: var(--cig-navy) !important; content: "+" !important; font-family: var(--cig-font-body) !important; font-size: 1.25rem; }
.cig-faq .et_pb_toggle_open .et_pb_toggle_title::before { content: "−" !important; }

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */
.cig-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cig-space-3); }
.cig-cta-band h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); margin: 0; max-width: 34ch; }

/* Client logos ("Trusted by organizations across Michigan") */
.cig-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cig-space-4) var(--cig-space-6); }
.cig-logos img { max-height: 34px; width: auto; filter: grayscale(1) contrast(.9); opacity: .7; transition: opacity .2s; }
.cig-logos img:hover { opacity: 1; }

/* ==========================================================================
   13. HEADER & NAVIGATION (Divi default header + Theme Builder header)
   ========================================================================== */
#main-header, .et-l--header .et_pb_section { box-shadow: none !important; border-bottom: 1px solid var(--cig-slate-100); }

#top-menu li a,
.et_pb_menu .et-menu > li > a {
  font-family: var(--cig-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cig-charcoal) !important;
}
#top-menu li.current-menu-item > a,
#top-menu li.current-menu-ancestor > a,
.et_pb_menu .et-menu > li.current-menu-ancestor > a,
.et_pb_menu .et-menu > li.current-menu-item > a { color: var(--cig-navy) !important; box-shadow: inset 0 -2px 0 var(--cig-navy); }

/* Header CTA: add CSS class "cig-nav-cta" to the Contact menu item */
#top-menu li.cig-nav-cta > a,
.et_pb_menu .et-menu > li.cig-nav-cta > a {
  background: var(--cig-navy);
  color: var(--cig-white) !important;
  padding: 14px 20px !important;
  border-radius: var(--cig-radius);
}
#top-menu li.cig-nav-cta > a:hover { background: var(--cig-navy-700); }

/* Client Portal: add CSS class "cig-nav-portal" — lock icon, quieter weight */
#top-menu li.cig-nav-portal > a::before,
.et_pb_menu .et-menu > li.cig-nav-portal > a::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Standard dropdowns */
#top-menu li ul,
.et_pb_menu .et-menu li ul {
  border-top: 2px solid var(--cig-navy) !important;
  box-shadow: var(--cig-shadow) !important;
  padding: var(--cig-space-2) 0 !important;
  width: 260px;
}
#top-menu li li a,
.et_pb_menu .et-menu li li a {
  font-size: .875rem; letter-spacing: 0; text-transform: none;
  padding: 8px 24px !important; width: 100% !important;
}
#top-menu li li a:hover { background: var(--cig-slate-50) !important; opacity: 1; }

/* ---- Commercial MEGA-MENU ------------------------------------------------
   Divi native: add CSS class "mega-menu" to the top-level Commercial item.
   Level-2 items become column headings, level-3 items list beneath them.
   We add "cig-mega" to the same item for styling.
   -------------------------------------------------------------------------- */
#top-menu li.mega-menu.cig-mega > ul,
.et_pb_menu .et-menu li.mega-menu.cig-mega > ul {
  padding: var(--cig-space-4) var(--cig-space-4) var(--cig-space-3) !important;
  border-top: 2px solid var(--cig-navy) !important;
}
#top-menu li.cig-mega > ul > li > a,
.et_pb_menu li.cig-mega > ul > li > a {
  font-size: var(--cig-fs-eyebrow) !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--cig-charcoal-soft) !important;
  border-bottom: var(--cig-border);
  padding: 0 0 10px !important;
  margin-bottom: 10px;
  pointer-events: none;      /* column headings are labels, not links */
}
#top-menu li.cig-mega > ul > li > ul > li > a,
.et_pb_menu li.cig-mega > ul > li > ul > li > a {
  font-family: var(--cig-font-display) !important;
  font-size: 1.0625rem !important;
  color: var(--cig-navy) !important;
  padding: 7px 0 !important;
}
#top-menu li.cig-mega > ul > li > ul > li > a:hover { background: transparent !important; text-decoration: underline; }
/* Item descriptions (Appearance → Menus → Screen Options → Description) */
.cig-menu-desc { display: block; font-family: var(--cig-font-body); font-size: .8125rem; color: var(--cig-charcoal-soft); margin-top: 2px; line-height: 1.4; }

/* Mobile menu */
.et_mobile_menu { border-top: 2px solid var(--cig-navy) !important; }
.et_mobile_menu li a { font-size: .9375rem; color: var(--cig-charcoal) !important; }
.et_mobile_menu li.cig-mega > ul > li > a { font-size: var(--cig-fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--cig-charcoal-soft) !important; }

/* ==========================================================================
   14. BREADCRUMBS (Yoast)  — [wpseo_breadcrumb] or yoast_breadcrumb()
   ========================================================================== */
.cig-breadcrumbs, #breadcrumbs {
  font-size: var(--cig-fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--cig-charcoal-soft);
}
.cig-breadcrumbs a, #breadcrumbs a { color: var(--cig-charcoal-soft); text-decoration: none; }
.cig-breadcrumbs a:hover, #breadcrumbs a:hover { color: var(--cig-navy); }

/* ==========================================================================
   15. CONTACT FORM (any plugin: wrap the form module with class cig-form)
   ========================================================================== */
.cig-form input[type="text"], .cig-form input[type="email"], .cig-form input[type="tel"],
.cig-form select, .cig-form textarea {
  width: 100%;
  border: 1px solid var(--cig-slate-200) !important;
  border-radius: var(--cig-radius) !important;
  background: var(--cig-white) !important;
  padding: 14px 16px !important;
  font: 400 1rem/1.4 var(--cig-font-body) !important;
  color: var(--cig-charcoal) !important;
}
.cig-form input:focus, .cig-form select:focus, .cig-form textarea:focus { border-color: var(--cig-navy) !important; outline: none; box-shadow: 0 0 0 3px rgba(11,34,64,.12); }
.cig-form label { font-size: var(--cig-fs-small); font-weight: 600; color: var(--cig-navy); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
#main-footer, .et-l--footer .et_pb_section { background: var(--cig-navy-900) !important; }
#main-footer, #main-footer p, .et-l--footer p, .et-l--footer li { color: var(--cig-on-navy-soft); font-size: .875rem; }
#main-footer a, .et-l--footer a { color: var(--cig-on-navy); text-decoration: none; }
#main-footer a:hover, .et-l--footer a:hover { color: var(--cig-white); }

/* ==========================================================================
   17. ACCESSIBILITY & MOTION
   ========================================================================== */
.cig-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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cig-card:hover { transform: none; }
}

/* ==========================================================================
   18. PRINT — advisory pages get printed and handed to boards
   ========================================================================== */
@media print {
  #main-header, #main-footer, .et-l--header, .et-l--footer, .cig-cta-band, .cig-btn { display: none !important; }
  .cig-bg-navy { background: #fff !important; }
  .cig-bg-navy * { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   19. HOMEPAGE — matched to the scanned commercial mockup
   ========================================================================== */

/* Hero: navy field, jet-engine fan at right, text left. [cig_turbine] places the art.
   To use a photo instead: remove [cig_turbine] and set the Section background image. */
.cig-hero--engine { min-height: clamp(560px, 72vh, 760px); overflow: hidden; background-color: var(--cig-navy-900) !important; }
.cig-hero--engine::before {
  background: linear-gradient(90deg, var(--cig-navy-900) 0%, rgba(7,23,41,.96) 40%, rgba(7,23,41,.9) 52%, rgba(7,23,41,.4) 66%, rgba(7,23,41,0) 80%);
  z-index: 1;
}
/* Divi wrappers go static so the turbine anchors to the full-width section, not the row */
.cig-hero--engine > *,
.cig-hero--engine .et_pb_row, .cig-hero--engine .et_pb_column,
.cig-hero--engine .et_pb_module, .cig-hero--engine .et_pb_text_inner { position: static !important; }
.cig-hero__content { position: relative; z-index: 2; }
.cig-turbine {
  position: absolute; z-index: 0 !important;
  width: min(92vh, 980px); aspect-ratio: 1; max-width: none;
  right: max(-18vw, -260px); top: 50%; transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  pointer-events: none;
}
.cig-turbine .cig-turbine-fan { transform-origin: 500px 500px; }
@media (prefers-reduced-motion: no-preference) {
  .cig-turbine .cig-turbine-fan { animation: cig-spin 90s linear infinite; }
}
@keyframes cig-spin { to { transform: rotate(360deg); } }
@media (max-width: 1279px) and (min-width: 768px) {
  .cig-turbine { width: 72vw; right: -34vw; }
  .cig-hero--engine::before { background: linear-gradient(90deg, var(--cig-navy-900) 0%, rgba(7,23,41,.95) 58%, rgba(7,23,41,.4) 74%, rgba(7,23,41,0) 88%); }
  .cig-hero__content { max-width: 52vw; }
}
@media (max-width: 767px) {
  .cig-turbine { width: 120vw; right: -55vw; opacity: .45; }
  .cig-hero--engine::before { background: rgba(7,23,41,.9); }
}
/* Hero type colors are set per hero mode, never globally:
   dark heroes (default, --engine) → white type; light heroes (--light) → navy/charcoal type. */
.cig-hero:not(.cig-hero--light) h1,
.cig-hero:not(.cig-hero--light) .cig-display { color: var(--cig-white); text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.cig-hero:not(.cig-hero--light) .cig-lead,
.cig-hero:not(.cig-hero--light) p { color: var(--cig-on-navy); }
.cig-hero:not(.cig-hero--light) .cig-eyebrow,
.cig-hero:not(.cig-hero--light) .cig-breadcrumbs,
.cig-hero:not(.cig-hero--light) .cig-breadcrumbs a { color: var(--cig-on-navy-soft); }
.cig-hero--light h1, .cig-hero--light .cig-display { color: var(--cig-navy); }
.cig-hero--light .cig-lead, .cig-hero--light p { color: var(--cig-charcoal); }
.cig-hero--light .cig-eyebrow,
.cig-hero--light .cig-breadcrumbs, .cig-hero--light .cig-breadcrumbs a { color: var(--cig-charcoal-soft); }
.cig-hero--engine .cig-lead { color: var(--cig-on-navy); max-width: 30ch; font-size: 1.0625rem; }
.cig-hero--engine .cig-rule::after { background: var(--cig-on-navy-soft); margin: var(--cig-space-3) 0; }
.cig-hero--engine .cig-rule { position: relative; }
.cig-hero--engine .cig-display + .cig-rule::before { content: ""; display: block; width: 44px; height: 1px; background: var(--cig-on-navy-soft); margin: var(--cig-space-4) 0 var(--cig-space-3); }
.cig-hero--engine .cig-display + .cig-rule::after { display: none; }

/* Industries: intro column + 3×2 borderless tiles */
.cig-industries {
  display: grid; gap: var(--cig-space-6) var(--cig-space-4);
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  align-items: start;
}
.cig-industries__intro { grid-row: span 2; align-self: start; position: sticky; top: 120px; }
.cig-industries__intro h2 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.15; }
.cig-industries__intro p:not(.cig-eyebrow) { font-size: .9375rem; color: var(--cig-charcoal-soft); }
@media (max-width: 1080px) {
  .cig-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cig-industries__intro { grid-column: 1 / -1; grid-row: auto; position: static; max-width: 60ch; }
}
@media (max-width: 560px) { .cig-industries { grid-template-columns: minmax(0, 1fr); } }

.cig-tile { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.cig-tile__media { position: relative; margin-bottom: var(--cig-space-4); }
.cig-tile__media img, .cig-tile__media svg { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cig-tile__badge {
  position: absolute; left: 16px; bottom: -20px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--cig-white); box-shadow: 0 2px 10px rgba(11,34,64,.12);
}
.cig-tile__badge .cig-icon { width: 24px; height: 24px; margin: 0; }
.cig-tile h3 {
  font: 600 .75rem/1.35 var(--cig-font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cig-navy); margin: 0 0 var(--cig-space-1);
}
.cig-tile p { font-size: .875rem; line-height: 1.6; color: var(--cig-charcoal-soft); margin: 0; }
.cig-tile .cig-link { margin-top: var(--cig-space-2); align-self: flex-start; }
.cig-tile .cig-tile__media img { transition: transform .5s var(--cig-ease); }
.cig-tile:hover .cig-tile__media img { transform: scale(1.03); }
.cig-tile__media { overflow: visible; }
.cig-tile__clip { overflow: hidden; }

/* Navy band: intro + four values with hairline dividers */
.cig-values { display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(4, minmax(0, 1fr)); align-items: stretch; }
.cig-values__intro { padding-right: var(--cig-space-6); padding-block: var(--cig-space-2); }
.cig-values__intro h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.15; }
.cig-values__intro p:not(.cig-eyebrow) { font-size: .9375rem; }
.cig-value { text-align: center; padding: var(--cig-space-2) var(--cig-space-3); border-left: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cig-value .cig-icon { width: 38px; height: 38px; margin: 0 auto var(--cig-space-2); }
.cig-value h3 { font: 600 .9375rem/1.3 var(--cig-font-body); color: var(--cig-white); margin: 0 0 .4rem; letter-spacing: .01em; }
.cig-value p { font-size: .8125rem; line-height: 1.55; color: var(--cig-on-navy-soft); margin: 0; }
@media (max-width: 1080px) {
  .cig-values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--cig-space-4); }
  .cig-values__intro { grid-column: 1 / -1; padding: 0 0 var(--cig-space-2); }
  .cig-value:nth-child(even) { border-left: 0; }
}
@media (max-width: 480px) {
  .cig-values { grid-template-columns: minmax(0, 1fr); }
  .cig-value { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: var(--cig-space-4); }
}

/* Trusted by */
.cig-trust { text-align: center; }
.cig-trust h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 400; color: var(--cig-charcoal); margin-bottom: var(--cig-space-4); }
.cig-trust .cig-logos { justify-content: space-between; }
.cig-trust .cig-logos > * { flex: 0 1 auto; }
@media (max-width: 767px) { .cig-trust .cig-logos { justify-content: center; } }

/* Stat line (agency proof points) */
.cig-statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--cig-border); border-bottom: var(--cig-border); margin-bottom: var(--cig-space-8); }
.cig-statline > div { padding: var(--cig-space-4) var(--cig-space-3); border-left: var(--cig-border); }
.cig-statline > div:first-child { border-left: 0; padding-left: 0; }
.cig-statline b { display: block; font: 500 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--cig-font-display); color: var(--cig-navy); margin-bottom: .5rem; }
.cig-statline span { font-size: .875rem; color: var(--cig-charcoal-soft); }
@media (max-width: 640px) {
  .cig-statline { grid-template-columns: minmax(0, 1fr); }
  .cig-statline > div { border-left: 0; padding-left: 0; border-top: var(--cig-border); }
  .cig-statline > div:first-child { border-top: 0; }
}

/* Split section: heading left, content right */
.cig-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--cig-space-8); align-items: start; }
@media (max-width: 900px) { .cig-split { grid-template-columns: minmax(0, 1fr); gap: var(--cig-space-4); } }

/* ==========================================================================
   20. GRAVITY FORMS — relationship form (Orbital theme, branded in inc/gravity-forms.php)
   ========================================================================== */
.gform_wrapper.gform-theme--orbital,
.gform_wrapper.gravity-theme {
  --gf-font-family-base: var(--cig-font-body);
  font-family: var(--cig-font-body);
}
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label { font-family: var(--cig-font-body) !important; font-weight: 600 !important; color: var(--cig-navy) !important; }
.gform_wrapper .gfield_required { color: var(--cig-charcoal-soft) !important; font-weight: 400; }
.gform_wrapper input:not([type=submit]):not([type=radio]):not([type=checkbox]),
.gform_wrapper select, .gform_wrapper textarea { font-family: var(--cig-font-body) !important; }
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_footer input[type=submit],
.gform_wrapper .gform-button--width-full {
  font: 600 .8125rem/1 var(--cig-font-body) !important;
  letter-spacing: .14em !important; text-transform: uppercase !important;
  padding: 1.05em 2.2em !important; border-radius: var(--cig-radius) !important;
  background: var(--cig-navy) !important; color: var(--cig-white) !important; border: 1px solid var(--cig-navy) !important;
}
.gform_wrapper .gform_footer .gform_button:hover { background: var(--cig-navy-700) !important; }
.gform_wrapper .gform_validation_errors { border-radius: var(--cig-radius); }
.gform_confirmation_message { font-size: 1.0625rem; border-left: 2px solid var(--cig-navy); padding-left: var(--cig-space-3); }

/* ==========================================================================
   21. PRIVATE CLIENT — matched to the scanned personal-lines mockup
   ========================================================================== */

/* Lighthouse hero (light): art at right, white scrim keeps the text column solid */
.cig-hero--lighthouse {
  background-image: url("assets/images/lighthouse.svg") !important;
  background-size: cover; background-position: right bottom; background-repeat: no-repeat;
}
@media (max-width: 767px) { .cig-hero--lighthouse { background-position: 70% bottom; } }

/* Coverage row: icon columns divided by hairlines (Home · Auto · Umbrella · Life · Toys · Condo) */
.cig-cover { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: var(--cig-border); border-bottom: var(--cig-border); }
.cig-cover__item { text-align: center; padding: var(--cig-space-4) var(--cig-space-2); border-left: var(--cig-border); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.cig-cover__item:first-child { border-left: 0; }
.cig-cover__item .cig-icon { width: 40px; height: 40px; margin: 0 auto var(--cig-space-2); }
.cig-cover__item h3 { font: 600 .75rem/1.35 var(--cig-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cig-navy); margin: 0 0 .5rem; }
.cig-cover__item p { font-size: .8125rem; line-height: 1.55; color: var(--cig-charcoal-soft); margin: 0 0 .75rem; }
.cig-cover__touch { font-size: .75rem !important; line-height: 1.5 !important; color: var(--cig-charcoal) !important; border-top: 1px dashed var(--cig-slate-200); padding-top: .6rem; margin-top: auto !important; }
.cig-cover__touch b { display: block; font: 600 .75rem/1.2 var(--cig-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cig-charcoal-soft); margin-bottom: .35rem; }
.cig-cover__item .cig-link { margin-top: var(--cig-space-2); }
.cig-cover__item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
/* Cards share row lines (subgrid), so titles, descriptions and "What it touches" align across the row */
@supports (grid-template-rows: subgrid) {
  .cig-cover__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-content: start; }
  .cig-cover__item > * { align-self: start; }
  .cig-cover__touch { margin-top: 0 !important; }
}
@media (max-width: 1080px) {
  .cig-cover { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cig-cover__item:nth-child(4) { border-left: 0; }
  .cig-cover__item:nth-child(n+4) { border-top: var(--cig-border); }
}
@media (max-width: 560px) {
  .cig-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cig-cover__item:nth-child(4) { border-left: var(--cig-border); }
  .cig-cover__item:nth-child(odd) { border-left: 0; }
  .cig-cover__item:nth-child(n+3) { border-top: var(--cig-border); }
}

/* "A personal approach" checklist */
.cig-checklist { list-style: none; margin: var(--cig-space-3) 0 0; padding: 0; display: grid; gap: .9rem; }
.cig-checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9375rem; }
.cig-checklist li::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--cig-navy); border-radius: 50%;
  background: center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2240' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.cig-steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cig-space-4) var(--cig-space-3); }
.cig-steps--compact::before { display: none; }
.cig-steps--compact .cig-step p { font-size: .8125rem; }
.cig-bg-slate .cig-cover { background: var(--cig-white); }

/* Navy band with emblem ("Life changes…") */
.cig-band-emblem { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cig-space-3) var(--cig-space-4); justify-content: space-between; }
.cig-band-emblem__text { display: flex; align-items: center; gap: var(--cig-space-3); }
.cig-band-emblem .cig-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.cig-band-emblem h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); margin: 0; max-width: 36ch; }

/* Homepage private-client section */
.cig-private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: var(--cig-space-8); align-items: start; }
.cig-private .cig-cover { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cig-private .cig-cover__item:nth-child(4) { border-left: 0; }
.cig-private .cig-cover__item:nth-child(n+4) { border-top: var(--cig-border); }
@media (max-width: 1080px) { .cig-private { grid-template-columns: minmax(0, 1fr); gap: var(--cig-space-4); } }
@media (max-width: 560px) {
  .cig-private .cig-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cig-private .cig-cover__item:nth-child(4) { border-left: var(--cig-border); }
  .cig-private .cig-cover__item:nth-child(odd) { border-left: 0; }
  .cig-private .cig-cover__item:nth-child(n+3) { border-top: var(--cig-border); }
}
.cig-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

/* ==========================================================================
   22. SITE HEADER (header.php + assets/js/header.js)
   One menu for every screen: a bar at ≥ 1201px; at ≤ 1200px the same menu
   opens as a panel under the bar from the Menu button.
   ========================================================================== */

/* Divi's fixed-nav script sizes #page-container to Divi's own header, which is
   not rendered; keep the page flush with this header instead. */
body #page-container,
body.et_fixed_nav #page-container { padding-top: 0 !important; margin-top: 0 !important; }

.cig-hdr {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	background: var(--cig-white);
	border-bottom: 1px solid var(--cig-slate-100);
	font-family: var(--cig-font-body);
	transition: box-shadow .2s var(--cig-ease);
}
.cig-hdr.is-scrolled { box-shadow: 0 2px 16px rgba(11, 34, 64, .08); }
@media (max-width: 600px) { .cig-hdr { top: 0; } } /* WP admin bar is not fixed on small screens */

.cig-hdr__bar {
	max-width: 1280px;
	margin: 0 auto;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Brand */
.cig-hdr__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cig-navy); flex: none; min-height: 44px; }
.cig-hdr__mark {
	width: 40px; height: 40px; flex: none;
	display: grid; place-items: center;
	background: var(--cig-navy); color: var(--cig-white);
	font: 500 23px/1 var(--cig-font-display);
}
.cig-hdr__word { display: flex; flex-direction: column; line-height: 1; }
.cig-hdr__word b { font: 500 23px/1 var(--cig-font-display); letter-spacing: .06em; color: var(--cig-navy); }
.cig-hdr__word small { font: 500 8px/1 var(--cig-font-body); letter-spacing: .42em; margin-top: 6px; color: var(--cig-charcoal-soft); }
.cig-hdr__logo { display: block; width: 170px; max-width: none; height: auto; }   /* logo from connerinsgrp.com, same size as the live site */
.cig-hdr .custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.cig-hdr .custom-logo { max-height: 52px; width: auto; }

/* Icons */
.cig-hdr__icon { width: 14px; height: 14px; flex: none; }
.cig-hdr__icon--menu, .cig-hdr__icon--close { width: 22px; height: 22px; }

/* Shared list reset (Divi styles generic ul/li) */
.cig-hdr ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.cig-hdr li { margin: 0; padding: 0; list-style: none; }
.cig-hdr li::before { content: none !important; }

/* Top-level items (buttons and links share one look) */
.cig-hdr__top {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 44px; padding: 0 12px;
	background: none; border: 0; border-radius: 0; cursor: pointer;
	font: 500 11.5px/1 var(--cig-font-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--cig-charcoal); text-decoration: none; white-space: nowrap;
}
.cig-hdr__top:hover, .cig-hdr__item.is-open > .cig-hdr__top, .cig-hdr__item.is-current > .cig-hdr__top, .cig-hdr__top[aria-current="page"] { color: var(--cig-navy); }
.cig-hdr__top .cig-hdr__icon--chevron { transition: transform .2s var(--cig-ease); }
.cig-hdr__item.is-open > .cig-hdr__top .cig-hdr__icon--chevron { transform: rotate(180deg); }
.cig-hdr__top:focus-visible, .cig-hdr a:focus-visible, .cig-hdr__toggle:focus-visible { outline: 2px solid var(--cig-steel); outline-offset: 2px; }

/* Contact button */
.cig-hdr__item--cta > .cig-hdr__top {
	background: var(--cig-navy); color: var(--cig-white);
	padding: 0 22px; margin-left: 8px; border-radius: var(--cig-radius);
}
.cig-hdr__item--cta > .cig-hdr__top:hover { background: var(--cig-navy-700); color: var(--cig-white); }
.cig-hdr__item--portal > .cig-hdr__top .cig-hdr__icon { width: 13px; height: 13px; }

/* Submenu links */
.cig-hdr__panel a {
	display: block; padding: 9px 22px;
	font: 400 14.5px/1.35 var(--cig-font-body); color: var(--cig-charcoal); text-decoration: none;
}
.cig-hdr__panel a:hover, .cig-hdr__panel a[aria-current="page"] { background: var(--cig-slate-50); color: var(--cig-navy); }
.cig-hdr__desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--cig-charcoal-soft); }
.cig-hdr__heading {
	font: 600 11px/1.2 var(--cig-font-body) !important; letter-spacing: .16em; text-transform: uppercase;
	color: var(--cig-charcoal-soft) !important; padding: 0 0 10px !important; margin: 0 0 8px !important;
	border-bottom: 1px solid var(--cig-slate-200);
}

/* ---------- Desktop (≥ 1201px) ---------- */
@media (min-width: 1201px) {
	.cig-hdr__toggle, .cig-hdr__phone { display: none !important; }
	.cig-hdr__bar { position: relative; }
	.cig-hdr__nav { display: block; }
	.cig-hdr__list { display: flex; align-items: center; gap: 2px; }
	.cig-hdr__item { position: relative; }
	.cig-hdr__nav .cig-hdr__item > .cig-hdr__top { min-height: 80px; box-shadow: inset 0 -2px 0 transparent; }
	.cig-hdr__nav .cig-hdr__item:hover > button.cig-hdr__top,
	.cig-hdr__nav .cig-hdr__item.is-open > .cig-hdr__top,
	.cig-hdr__nav .cig-hdr__item.is-current > .cig-hdr__top { box-shadow: inset 0 -2px 0 var(--cig-navy); }
	.cig-hdr__nav .cig-hdr__item--cta > .cig-hdr__top,
	.cig-hdr__nav .cig-hdr__item--portal > .cig-hdr__top { min-height: 44px; box-shadow: none; }

	.cig-hdr__panel {
		display: none; position: absolute; top: 100%; left: 0; z-index: 10;
		min-width: 270px; padding: 12px 0;
		background: var(--cig-white); border-top: 2px solid var(--cig-navy);
		box-shadow: 0 12px 32px rgba(11, 34, 64, .12);
	}
	.cig-hdr__item:hover > .cig-hdr__panel,
	.cig-hdr__item.is-open > .cig-hdr__panel { display: block; }

	/* Mega-menu: centered on the whole bar (not on the menu item), three columns */
	.cig-hdr__item--mega { position: static; }
	.cig-hdr__panel--mega { box-sizing: border-box; left: 50%; transform: translateX(-50%); width: min(860px, calc(100% - 48px)); padding: 28px 30px 20px; }
	.cig-hdr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
	.cig-hdr__panel--mega a { padding: 7px 0; font: 500 16.5px/1.3 var(--cig-font-display); color: var(--cig-navy); }
	.cig-hdr__panel--mega a:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
	.cig-hdr__panel--mega .cig-hdr__desc { font-family: var(--cig-font-body); }
}

/* Tighter spacing on small laptops so the full bar still fits */
@media (min-width: 1201px) and (max-width: 1320px) {
	.cig-hdr__bar { gap: 12px; }
	.cig-hdr__top { padding: 0 8px; letter-spacing: .1em; font-size: 11px; }
	.cig-hdr__item--cta > .cig-hdr__top { padding: 0 16px; margin-left: 4px; }
	.cig-hdr__word b { font-size: 20px; }
	.cig-hdr__mark { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------- Mobile and tablet (≤ 1200px) ---------- */
@media (max-width: 1200px) {
	.cig-hdr__nav { display: none; }
	.cig-hdr__bar { min-height: 68px; }
	.cig-hdr__toggle {
		display: inline-flex; align-items: center; gap: 8px;
		min-height: 44px; min-width: 44px; padding: 0 14px;
		background: none; border: 1px solid var(--cig-navy); border-radius: var(--cig-radius);
		color: var(--cig-navy); cursor: pointer;
		font: 600 12px/1 var(--cig-font-body); letter-spacing: .14em; text-transform: uppercase;
	}
	.cig-hdr__toggle .cig-hdr__icon--close { display: none; }
	.cig-hdr.is-menu-open .cig-hdr__toggle .cig-hdr__icon--menu { display: none; }
	.cig-hdr.is-menu-open .cig-hdr__toggle .cig-hdr__icon--close { display: block; }

	/* The menu becomes a panel under the bar, sized to fit the screen. */
	.cig-hdr__nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		box-sizing: border-box;
		max-height: calc(100vh - var(--cig-hdr-bottom, 70px));
		max-height: calc(100dvh - var(--cig-hdr-bottom, 70px));
		overflow-y: auto; overscroll-behavior: contain;
		border-top: 2px solid var(--cig-navy);
		background: var(--cig-white);
		box-shadow: 0 16px 32px rgba(11, 34, 64, .12);
		padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
	}
	.cig-hdr.is-menu-open .cig-hdr__nav { display: block; }
	.cig-hdr__nav .cig-hdr__list { display: flex; flex-direction: column; }
	.cig-hdr__nav .cig-hdr__item { border-bottom: 1px solid var(--cig-slate-100); }
	.cig-hdr__nav .cig-hdr__top {
		width: 100%; justify-content: space-between;
		min-height: 54px; padding: 0 2px;
		font-size: 13px; letter-spacing: .12em;
	}
	.cig-hdr__nav .cig-hdr__item--portal > .cig-hdr__top { justify-content: flex-start; gap: 10px; }
	.cig-hdr__nav .cig-hdr__item--cta { border-bottom: 0; padding-top: 16px; }
	.cig-hdr__nav .cig-hdr__item--cta > .cig-hdr__top { justify-content: center; margin: 0; min-height: 52px; }

	.cig-hdr__nav .cig-hdr__panel { display: none; padding: 0 0 12px; }
	.cig-hdr__nav .cig-hdr__item.is-open > .cig-hdr__panel { display: block; }
	.cig-hdr__nav .cig-hdr__panel a { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; min-height: 44px; font-size: 15px; }
	.cig-hdr__nav .cig-hdr__cols { display: grid; gap: 14px; }
	.cig-hdr__nav .cig-hdr__heading { margin: 8px 12px 4px !important; padding-bottom: 6px !important; }
	.cig-hdr__phone {
		display: flex; align-items: center; justify-content: center;
		min-height: 48px; margin-top: 12px;
		border: 1px solid var(--cig-navy); border-radius: var(--cig-radius);
		color: var(--cig-navy); font-weight: 600; font-size: 15px; text-decoration: none;
	}
	html.cig-no-scroll { overflow: hidden; } /* html only: locking body too makes it a scroll box and shifts the sticky header */
}

@media (max-width: 480px) {
	.cig-hdr__logo { width: 150px; }
	.cig-hdr__toggle-label { display: none; }
	.cig-hdr__toggle { padding: 0 10px; }
	.cig-hdr__word b { font-size: 20px; }
	.cig-hdr__word small { font-size: 7px; letter-spacing: .36em; }
	.cig-hdr__mark { width: 36px; height: 36px; font-size: 20px; }
}

/* Skip link: visible only when focused */
.cig-hdr__skip:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 100000;
	width: auto !important; height: auto !important; clip: auto !important;
	padding: 10px 16px; background: var(--cig-white); color: var(--cig-navy); outline: 2px solid var(--cig-navy);
}

@media (prefers-reduced-motion: reduce) {
	.cig-hdr, .cig-hdr__top .cig-hdr__icon--chevron { transition: none; }
}

/* Visually hidden text (also defined by WordPress core themes; repeated so it never depends on Divi) */
.cig-hdr .screen-reader-text,
.cig-hdr__skip:not(:focus) {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ==========================================================================
   24. TRANSPARENT HEADER — floats over the opening hero, turns solid on scroll
   Pages that open with a .cig-hero: the hero slides up under the header and the
   header is clear until the page scrolls or a menu opens (header.js adds
   .is-scrolled / .is-menu-open). Over dark heroes the header's ink turns white;
   over light heroes it stays navy. Pages without a hero keep the solid header.
   ========================================================================== */
:root { --cig-hdr-h: 81px; }                                   /* 80px bar + 1px border */
@media (max-width: 1200px) { :root { --cig-hdr-h: 69px; } }

.cig-hdr { transition: background-color .25s var(--cig-ease), border-color .25s var(--cig-ease), box-shadow .2s var(--cig-ease); }

body:has(.et_pb_section_0.cig-hero) .et_pb_section_0.cig-hero {
	margin-top: calc(-1 * var(--cig-hdr-h)) !important;
	padding-top: calc(var(--cig-space-12) + var(--cig-hdr-h)) !important;
}
body:has(.et_pb_section_0.cig-hero) .cig-hdr:not(.is-scrolled):not(.is-menu-open) {
	background-color: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

/* Dark hero: white ink */
body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled):not(.is-menu-open) .cig-hdr__brand { color: var(--cig-white); }
body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled):not(.is-menu-open) .cig-hdr__toggle { color: var(--cig-white); border-color: rgba(255,255,255,.7); }
@media (min-width: 1201px) {
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__list > .cig-hdr__item:not(.cig-hdr__item--cta) > .cig-hdr__top { color: var(--cig-on-navy); }
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__list > .cig-hdr__item:not(.cig-hdr__item--cta) > .cig-hdr__top:hover,
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__item.is-open > .cig-hdr__top { color: var(--cig-white); }
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__nav .cig-hdr__item:hover > button.cig-hdr__top,
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__nav .cig-hdr__item.is-open > .cig-hdr__top,
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__nav .cig-hdr__item.is-current > .cig-hdr__top { box-shadow: inset 0 -2px 0 var(--cig-white); }
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__item--cta > .cig-hdr__top { background: var(--cig-white); color: var(--cig-navy); }
	body:has(.et_pb_section_0.cig-hero:not(.cig-hero--light)) .cig-hdr:not(.is-scrolled) .cig-hdr__item--cta > .cig-hdr__top:hover { background: var(--cig-on-navy); color: var(--cig-navy); }
}

/* Logo follows the brand link's color (inline SVG, fill: currentColor) */
.cig-hdr__logo { color: inherit; }
.cig-hdr__brand { transition: color .25s var(--cig-ease); }

/* ==========================================================================
   25. CONTACT SLIDE-OUT — "Let's Talk" panel (functions.php)
   ========================================================================== */
.cig-drawer { position: fixed; inset: 0; z-index: 100001; }
.cig-drawer[hidden] { display: none; }
.cig-drawer__scrim {
	position: absolute; inset: 0;
	background: rgba(7, 23, 41, .55);
	opacity: 0; transition: opacity .3s var(--cig-ease);
}
.cig-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(480px, 100%); box-sizing: border-box;
	overflow-y: auto; overscroll-behavior: contain;
	background: var(--cig-white);
	border-left: 3px solid var(--cig-navy);
	box-shadow: -24px 0 48px rgba(7, 23, 41, .18);
	padding: 56px max(32px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) 36px;
	transform: translateX(100%);
	transition: transform .32s var(--cig-ease);
	outline: none;
}
.cig-drawer.is-open .cig-drawer__scrim { opacity: 1; }
.cig-drawer.is-open .cig-drawer__panel { transform: translateX(0); }
html.cig-drawer-open { overflow: hidden; }

.cig-drawer__close {
	position: absolute; top: 14px; right: 14px;
	display: grid; place-items: center; width: 44px; height: 44px;
	background: none; border: 0; border-radius: var(--cig-radius); cursor: pointer;
	color: var(--cig-navy);
}
.cig-drawer__close:hover { background: var(--cig-slate-50); }
.cig-drawer__close:focus-visible { outline: 2px solid var(--cig-steel); outline-offset: 2px; }
.cig-drawer .cig-eyebrow { margin-bottom: var(--cig-space-1); }
.cig-drawer__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.1; margin: 0 0 var(--cig-space-2); color: var(--cig-navy); }
.cig-drawer__lead { color: var(--cig-charcoal-soft); margin: 0 0 var(--cig-space-3); }
.cig-drawer__lead a { color: var(--cig-navy); font-weight: 600; white-space: nowrap; }
.cig-drawer__fine { margin: var(--cig-space-3) 0 0; padding-top: var(--cig-space-2); border-top: 1px solid var(--cig-slate-100); font-size: 12.5px; color: var(--cig-charcoal-soft); }

@media (max-width: 600px) {
	.cig-drawer__panel { width: 100%; border-left: 0; padding: 60px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	.cig-drawer__scrim, .cig-drawer__panel { transition: none; }
}

/* Relationship form (drawer and Contact page): one clean field style */
.cig-relationship-form_wrapper .gform_fields,
.gform_wrapper.cig-relationship-form_wrapper .gform_fields { row-gap: 18px; }
.cig-relationship-form_wrapper .gfield { margin-top: 0 !important; padding-right: 0 !important; }
.cig-relationship-form_wrapper .gfield_label { font-size: 13px !important; letter-spacing: .02em; margin-bottom: 6px !important; }
.cig-relationship-form_wrapper input:not([type=submit]):not([type=radio]):not([type=checkbox]),
.cig-relationship-form_wrapper select,
.cig-relationship-form_wrapper textarea {
	width: 100% !important; box-sizing: border-box;
	min-height: 48px; padding: 10px 14px !important;
	border: 1px solid var(--cig-slate-200) !important; border-radius: var(--cig-radius) !important;
	background: var(--cig-white) !important; color: var(--cig-charcoal) !important;
	font-size: 16px !important;   /* 16px stops iOS zooming into the field */
	box-shadow: none !important;
}
.cig-relationship-form_wrapper textarea { min-height: 120px; height: 120px !important; resize: vertical; }
.cig-relationship-form_wrapper input:focus,
.cig-relationship-form_wrapper select:focus,
.cig-relationship-form_wrapper textarea:focus { border-color: var(--cig-navy) !important; outline: none; box-shadow: 0 0 0 3px rgba(11,34,64,.12) !important; }
.cig-relationship-form_wrapper .gfield_description { font-size: 12.5px !important; color: var(--cig-charcoal-soft) !important; padding-top: 4px !important; }
.cig-relationship-form_wrapper .gform_footer { margin-top: var(--cig-space-3) !important; padding: 0 !important; }
.cig-relationship-form_wrapper .gform_footer input[type=submit],
.cig-relationship-form_wrapper .gform_footer .gform_button { width: 100% !important; min-height: 52px; cursor: pointer; }
.cig-thanks p:first-child { font-family: var(--cig-font-display); font-size: 1.5rem; line-height: 1.25; color: var(--cig-navy); }
.cig-thanks a { color: var(--cig-navy); font-weight: 600; }

/* ==========================================================================
   26. CONTACT PAGE
   ========================================================================== */
.cig-contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cig-contact__form { background: var(--cig-white); border: 1px solid var(--cig-slate-200); border-top: 3px solid var(--cig-navy); padding: clamp(24px, 3.5vw, 44px); }
.cig-contact__form h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: var(--cig-space-1); }
.cig-contact__form > p { color: var(--cig-charcoal-soft); margin-bottom: var(--cig-space-3); }
.cig-contact__aside h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.cig-contact__next { counter-reset: cig-next; list-style: none !important; margin: 0 0 var(--cig-space-4) !important; padding: 0 !important; }
.cig-contact__next li { counter-increment: cig-next; position: relative; padding: 0 0 18px 52px !important; margin: 0 !important; }
.cig-contact__next li::before {
	content: counter(cig-next); position: absolute; left: 0; top: -2px;
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 1px solid var(--cig-navy); color: var(--cig-navy);
	font: 500 17px/1 var(--cig-font-display);
}
.cig-contact__next b { display: block; color: var(--cig-navy); margin-bottom: 2px; }
.cig-contact__details { display: grid; gap: 14px; margin: 0 0 var(--cig-space-3); padding: var(--cig-space-3) 0 0; border-top: 1px solid var(--cig-slate-200); }
.cig-contact__details div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.cig-contact__details dt { font: 600 11px/1.6 var(--cig-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cig-charcoal-soft); }
.cig-contact__details dd { margin: 0; color: var(--cig-charcoal); }
.cig-contact__details a { color: var(--cig-navy); font-weight: 600; }
.cig-contact__map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--cig-slate-200); overflow: hidden; }
.cig-contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
@media (max-width: 900px) {
	.cig-contact { grid-template-columns: 1fr; }
}

/* ==========================================================================
   23. MOBILE FIXES
   The comparison tables stack into cards on phones; the desktop rule that
   pins row headers to 22% width out-ranked the phone rule and squeezed every
   row label into a narrow column.
   ========================================================================== */
@media (max-width: 767px) {
	.cig-tfb, .cig-tfb tbody { display: block; width: 100%; }
	.cig-tfb tbody th { width: auto; }
	.cig-tfb tbody tr { padding: 4px 0 8px; border-bottom: var(--cig-border); }
	.cig-tfb tbody th, .cig-tfb tbody td { border-bottom: 0; padding: 10px var(--cig-space-2) 0; }
	.cig-tfb tbody th { font-size: 1rem; padding-top: 14px; }
	.cig-tfb td[data-label]::before { margin-bottom: 2px; }
}

/* ==========================================================================
   27. FOOTER LINE — one centered line on navy (Divi: Custom Footer Credits)
   ========================================================================== */
#main-footer #footer-bottom { background: var(--cig-navy-900) !important; padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)) !important; border-top: 1px solid rgba(255,255,255,.08); }
#main-footer #footer-bottom .container { display: flex; justify-content: center; text-align: center; width: 90%; max-width: 1180px; }
#main-footer .et-social-icons:empty { display: none; }
#main-footer #footer-info {
	float: none; padding: 0; margin: 0;
	font-family: var(--cig-font-display); font-style: italic; font-size: 1.125rem; line-height: 1.4; letter-spacing: .01em;
	color: var(--cig-on-navy);
}
