/* Dominion Insurance Services: modernised rebuild of styleNew.css.
   Class names (.page, .wrapper, .col2…, .box, .list1, .toc, #homeSlider) are the
   original site's, because the page bodies are Dominion's own markup. */

:root {
  --navy: #022640;
  --navy-mid: #054A68;
  --navy-deep: #02334E;
  --link: #014479;
  --link-hover: #339ed5;
  --green: #82A04E;
  --green-dark: #5f7d34;
  --gold: #fcb831;
  --orange: #ee9302;
  --copyright: #FF9C00;
  --page-bg: #F4F5F9;
  --panel: #FFFFFF;
  --border: #E1E5EC;
  --text: #2B3340;
  --text-soft: #5A6474;
  --heading: #12202E;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --page-width: 1120px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(2, 38, 64, .06), 0 8px 24px rgba(2, 38, 64, .07);
  --shadow-lg: 0 18px 40px rgba(2, 38, 64, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.7 var(--font);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

img { border: 0; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--heading); text-align: left; overflow-wrap: anywhere; letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-weight: 700; font-size: 26px; line-height: 1.2; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--green-dark); margin: 0 0 12px; }
h4 { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 1.8em 0 .5em; }
h5 { font-weight: 600; font-size: 17px; margin: 1.4em 0 .4em; }
h6 { font-weight: 700; font-size: 15px; margin: 1.2em 0 .4em; }

.center, h3.center { text-align: center; }
.right { text-align: right; }
.noMarg { margin: 0; }
.noPad { padding: 0; }
.botMarg { margin-bottom: 10px; }
.clear { clear: both; }

.visually-hidden {
  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: -999px; top: 0; z-index: 1000; background: var(--gold); color: #000; padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------- page frame */

.page { width: 100%; max-width: var(--page-width); margin: 0 auto; }
#headerOutter .page, #footerOutter .page, #contentOutter > #content > .page { padding-left: var(--gutter); padding-right: var(--gutter); }
#contentOutter > #content > .page > .page { padding: 0; }

/* Dominion's layout markup: columns become a wrapping flex row. */
.wrapper { width: 100%; }
.wrapper:has(> .col), .col1, .col:has(> .col + .col) { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.col { min-width: 0; }
.col1 { width: 100%; }
.col2 { flex: 0 0 260px; }
.col3 { flex: 1 1 420px; }
.col4 { flex: 1 1 320px; }
.col > .wrapper + .wrapper { margin-top: 28px; }
.col br:only-child, .wrapper > br { display: none; }

/* Banners: photo with the page title over it */
.wrapper.botMarg, .col3 > .wrapper:first-child { margin-bottom: 28px; }
.banner {
  position: relative; display: block; aspect-ratio: 10 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow);
}
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 38, 64, .82) 0%, rgba(2, 38, 64, .45) 45%, rgba(2, 38, 64, 0) 75%);
}
.banner-label {
  position: absolute; z-index: 1; left: clamp(18px, 4%, 40px); bottom: clamp(16px, 12%, 36px); max-width: 60%;
  color: #fff; font-weight: 700; font-size: clamp(20px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.015em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.banner-label::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; border-radius: 2px; background: var(--gold); }
.col3 .banner-label { font-size: clamp(20px, 2.6vw, 30px); }

/* ------------------------------------------------------------- header */

#headerOutter {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-mid) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(2, 38, 64, .25);
}
#headerOutter .inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
#headerOutter .brand { display: block; flex: 0 0 auto; width: 280px; padding: 12px 0; }
#headerOutter .brand img { display: block; width: 100%; }

.nav-toggle { display: none; }

#nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.sf-menu, .sf-menu ul { list-style: none; margin: 0; padding: 0; }
.sf-menu { display: flex; align-items: center; gap: 4px; }
.sf-menu > li { position: relative; display: flex; align-items: center; }
.sf-menu > li > a {
  position: relative; display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.2;
}
.sf-menu > li > a:hover, .sf-menu > li.open > a { color: #fff; background: rgba(255, 255, 255, .08); }
.sf-menu > li.current > a { color: #fff; }
.sf-menu > li.current > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold);
}

.sub-toggle {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 32px; margin-left: -10px;
  padding: 0; border: 0; border-radius: 6px; background: none; color: rgba(255, 255, 255, .8); cursor: pointer;
}
.sub-toggle:hover { color: #fff; }
.sub-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

.sf-menu ul {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 100; min-width: 270px; padding: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.sf-menu ul::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.sf-menu li.open > ul { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.sf-menu ul a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--heading); text-decoration: none; font-size: 15px; line-height: 1.3; }
.sf-menu ul a:hover, .sf-menu ul a:focus-visible { background: var(--page-bg); color: var(--link); }

#topnav a {
  display: inline-block; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.2;
}
#topnav a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ------------------------------------------------------------- content */

#contentOutter { padding: 36px 0 56px; background: var(--page-bg); }
#content:focus { outline: none; }
#printHeader { display: none; }

.box {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 18px;
  background: var(--panel); box-shadow: var(--shadow);
}
.box h3 { margin-top: 0; font-size: 18px; }
.box h3:not(.center) { padding-bottom: 10px; border-bottom: 1px solid var(--border); }

ul.list1 { margin: 0; padding: 0; list-style: none; }
ul.list1 li { position: relative; padding: 6px 0 6px 20px; line-height: 1.45; font-size: 15px; }
ul.list1 li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px;
  border: solid var(--green); border-width: 2px 2px 0 0; transform: rotate(45deg);
}
/* Items that aren't links (feature lists) get a check, not a chevron, so they don't look clickable. */
ul.list1 li:not(:has(a))::before {
  left: 3px; top: 9px; width: 5px; height: 9px; border-width: 0 2px 2px 0;
}
ul.list1 a { color: var(--heading); text-decoration: none; }
ul.list1 a:hover { color: var(--link-hover); }

/* Section index left menus */
.toc a.list {
  display: block; padding: 8px 12px; margin: 0 -10px; border-radius: var(--radius-sm);
  color: var(--heading); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.toc a.list:hover { background: var(--page-bg); color: var(--link); }

.button, .buttons button {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 0; border-radius: 999px;
  padding: 13px 26px; font: 600 15px/1 var(--font); color: #fff; text-decoration: none; letter-spacing: .01em;
  background: var(--navy-deep); transition: background .15s, transform .15s;
}
.button:hover, .buttons button:hover { background: var(--orange); color: #fff; }
.button:active, .buttons button:active { transform: translateY(1px); }

/* Apply Now card */
.col2[style*="text-align"] { text-align: left !important; }
.col2:has(> form.apply) { position: sticky; top: 120px; }
form.apply { display: grid; gap: 10px; border-top: 4px solid var(--gold); }
form.apply h3 { text-align: left; margin-bottom: 6px; padding: 0; border: 0; font-size: 20px; color: var(--heading); }
form.apply input:not([type="hidden"]) {
  width: 100%; padding: 11px 14px; font: 15px var(--font); color: var(--text);
  background: #F8F9FB; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
form.apply input::placeholder { color: #8A93A2; }
form.apply input:focus { outline: none; background: #fff; border-color: var(--link-hover); box-shadow: 0 0 0 3px rgba(51, 158, 213, .2); }
form.apply .buttons { margin-top: 6px; }
form.apply .buttons button { width: 100%; }

/* Body copy inside Dominion's columns */
.col3 p, .col4 p { color: var(--text); }

/* Wording, article and narrative pages */
.doc, #content > .page.wrapper:not(:has(> .col, > .wrapper, > .page)) {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 56px); max-width: 880px;
}
#content > .page.wrapper:not(:has(> .col, > .wrapper, > .page)) { width: calc(100% - 2 * var(--gutter)); }
.doc > :first-child, #content > .page.wrapper > :first-child { margin-top: 0; }
.doc p { overflow-wrap: anywhere; }
table { border-collapse: collapse; max-width: 100%; }
td, th { padding: 6px 10px; vertical-align: top; border-bottom: 1px solid var(--border); }
.page.wrapper table { display: block; overflow-x: auto; }

/* ------------------------------------------------------------- home slider */

.page:has(> #homeSlider) { position: relative; margin-bottom: 36px; }
#homeSlider { position: relative; aspect-ratio: 1000 / 300; overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow); }
#homeSlider > a { display: block; }
#homeSlider img { display: block; width: 100%; height: 100%; object-fit: cover; }
#homeSlider .banner { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
#homeSlider .banner-label { bottom: 64px; font-size: clamp(22px, 3.6vw, 42px); }
#homeSlider.is-ready > a { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
#homeSlider.is-ready > a.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
#homeSlider:not(.is-ready) > a:not(:first-child) { display: none; }

#homeSliderNav { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
#homeSliderNav a {
  pointer-events: auto; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.2;
  color: #fff; text-decoration: none; background: rgba(2, 38, 64, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s;
}
#homeSliderNav a:hover { background: rgba(2, 38, 64, .85); color: #fff; }
.slider-dots { display: flex; gap: 8px; pointer-events: auto; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.slider-dots button[aria-current="true"] { width: 24px; background: #fff; }

/* ------------------------------------------------------------- footer */

#footerOutter { background: var(--navy); color: rgba(255, 255, 255, .7); }
#footerOutter #lower { padding: 40px 0 28px; font-size: 14px; }
#links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
#links img { width: 190px; }
#links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
#links a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; }
#links a:hover { color: var(--gold); }
#copyright { padding-top: 20px; font-size: 13px; }
#copyright span { color: var(--copyright); }

/* ------------------------------------------------------------- narrow screens */

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  #headerOutter .inner { flex-wrap: wrap; justify-content: space-between; gap: 0; min-height: 68px; }
  #headerOutter .brand { width: 210px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px; background: transparent; color: #fff; font: 600 14px var(--font); cursor: pointer;
  }
  .nav-toggle::before { content: ""; width: 16px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  #nav { flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .js #nav { display: none; }
  .js #nav.open { display: flex; }
  .sf-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .sf-menu > li { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); }
  .sf-menu > li > a { flex: 1; padding: 14px 4px; border-radius: 0; font-size: 16px; }
  .sf-menu > li > a:hover, .sf-menu > li.open > a { background: none; }
  .sf-menu > li.current > a::after { left: 4px; right: auto; width: 24px; bottom: 6px; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sf-menu ul {
    position: static; display: none; width: 100%; min-width: 0; margin-bottom: 10px; padding: 6px;
    border: 0; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .sf-menu ul::before { display: none; }
  .sf-menu li.open > ul { display: block; }
  .sf-menu ul a { color: rgba(255, 255, 255, .88); padding: 11px 12px; }
  .sf-menu ul a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  #topnav { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }

  .col2, .col3, .col4 { flex: 1 1 100%; }
  .col2:has(> form.apply) { order: 2; position: static; }
  #contentOutter { padding: 20px 0 40px; }
  .page:has(> #homeSlider) { margin-bottom: 24px; }
  #homeSliderNav { left: 10px; right: 10px; bottom: 10px; }
  #homeSliderNav a { padding: 5px 10px; font-size: 12px; }
  .slider-dots { gap: 6px; }
  .slider-dots button { width: 7px; height: 7px; }
  .slider-dots button[aria-current="true"] { width: 18px; }
  #homeSlider .banner-label { bottom: 48px; }
  .banner-label::before { width: 24px; margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .slider-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ------------------------------------------------------------- print */

@media print {
  body, #contentOutter { background: #fff; font: 12px/1.5 Arial, sans-serif; color: #000; }
  #headerOutter, #footerOutter, #homeSlider, #homeSliderNav, .col2:has(> form.apply), .skip-link { display: none !important; }
  #printHeader { display: flex !important; justify-content: space-between; align-items: flex-end; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #000; }
  #printHeaderLogo img { width: 322px; }
  #printHeaderInfo { font-size: 10px; text-align: right; }
  .doc, .page.wrapper, .box { border: 0 !important; padding: 0 !important; box-shadow: none !important; max-width: none !important; }
  a { color: #000; text-decoration: none; }
}
