/* Dovera site styles. One stylesheet for every page. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/OpenSans-Regular.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #083160;
  --navy-text: #093B6E;
  --blue: #05A0F6;
  --blue-tint: #E6F5FE;
  --blue-light: #D0ECFE;
  --sky: #57B8FF;
  --orange: #C2410C;       /* 4.5:1+ against white text and the light section backgrounds */
  --orange-hover: #9A3412;
  --white: #FFFFFF;
  --offwhite: #F7F8FA;
  --text: #333333;
  --divider: #0A316017;
  --line: #D5D8DC;

  --font-head: "Montserrat", Arial, sans-serif;
  --font-lead: "Open Sans", Arial, sans-serif;

  --radius-btn: 10px;
  --radius-card: 12px;
  --radius-img: 20px;
  --shadow-card: 10px 10px 66px rgba(0, 0, 0, .1);
  --shadow-header: 0 2px 15px rgba(0, 0, 0, .1);

  --container: 1140px;
  --gutter: 20px;
  --section-pad: clamp(60px, 7vw, 100px);
  --header-h: 85px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.5 var(--font-head);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); color: var(--navy); }
h1 { font-size: 60px; line-height: 70px; font-weight: 700; }
h2 { font-size: 50px; line-height: 1.1; font-weight: 700; text-transform: capitalize; }
h3 { font-size: 28px; line-height: 1; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: var(--navy); color: var(--white); }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section--tint { background: var(--blue-tint); }
.section--light { background: var(--blue-light); }
.section--center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.section--center .stack { align-items: center; }
.narrow { max-width: 770px; margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 5%; align-items: center; }
.split > * { padding: 10px; }
.split__media img { width: 100%; }
.split--media-first .split__media { order: -1; }

/* ---------- Type helpers ---------- */
.eyebrow { margin: 0; color: var(--orange); font-size: 28px; line-height: 1; font-weight: 600; }
.lead { font-family: var(--font-lead); font-size: 24px; line-height: 1.5; color: var(--navy-text); max-width: 70ch; }
.section--center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 20px 30px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--orange);
  color: var(--white);
  font: 600 18px/1 var(--font-head);
  text-transform: capitalize;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange-hover); color: var(--white); }
.btn--small { padding: 15px; font-size: 15px; min-width: 160px; }
.btn--block { display: block; width: 100%; }
.section-cta { margin-top: 32px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow-header); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.site-header__logo img { width: 151px; }
.nav { display: flex; align-items: center; gap: 50px; }
.nav__list { display: flex; align-items: center; gap: 50px; }
.nav__item { position: relative; }
.nav__link, .nav__toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  border: 0; background: none; cursor: pointer;
  color: var(--navy); font: 600 15px/20px var(--font-head);
}
.nav__link:hover, .nav__toggle:hover { color: var(--orange); }
.nav__toggle svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; }
.nav__sub {
  position: absolute; top: 100%; left: -20px; min-width: 180px;
  padding: 10px 0; background: var(--white); box-shadow: var(--shadow-header); border-radius: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__sub a { display: block; padding: 10px 20px; color: var(--navy); font: 600 15px/20px var(--font-head); }
.nav__sub a:hover { color: var(--orange); background: var(--offwhite); }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub, .nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.menu-btn { display: none; padding: 8px; border: 0; background: none; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: calc(80vh - var(--header-h));
  padding: 120px 0 90px;
  background: var(--white) center / cover no-repeat;
  text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.hero > .container { position: relative; }
.hero h1 { max-width: 90ch; margin: 0 auto; }
.hero h1 .light { font-weight: 400; }
.hero .lead { margin: 32px auto; }

/* ---------- Icon lists ---------- */
.icon-row { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 48px; color: var(--navy-text); }
.icon-row li { display: flex; align-items: center; gap: 10px; padding: 0 25px; }
.icon-row li + li { border-left: 1px solid var(--navy-text); }
.icon-row img { width: 24px; height: 24px; }

.icon-list { display: flex; flex-direction: column; gap: 20px; }
.icon-list li { display: flex; align-items: center; gap: 12px; }
.icon-list svg, .icon-list img { flex: none; width: 30px; height: 30px; }
.icon-list--x svg { color: var(--sky); fill: currentColor; }
.icon-list strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; margin-top: 40px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 0 40px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 35px; right: -87px; width: 174px; height: 30px;
  background: url("/assets/images/Arrow-right.png") center / contain no-repeat;
}
.step__num { margin: 0; color: var(--text); font-size: 100px; line-height: 1; font-weight: 700; }
.step__num, .step h3 { position: relative; z-index: 1; }
.step h3 { color: var(--text); font-size: 28px; }

/* ---------- Level cards (accordion) ---------- */
.levels__icon { width: 160px; margin: 0 auto; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; align-items: start; text-align: left; }
.level { padding: 32px; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.level__icon { width: 50px; height: 50px; margin-bottom: 4px; opacity: .25; }
.level details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0; border: 1px solid var(--line); border-right-width: 1px;
  list-style: none; cursor: pointer;
}
.level details > summary::-webkit-details-marker { display: none; }
.level__label { display: block; color: var(--navy); font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.level__name { display: block; color: var(--navy); font-size: 24px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.level summary svg { flex: none; width: 16px; height: 16px; margin-right: 6px; fill: var(--navy); transition: transform .2s; }
.level details:not([open]) summary svg { transform: rotate(-90deg); }
.level ul { margin-top: 20px; border: 1px solid var(--line); border-top: 0; }
.level li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--navy-text); font-size: 18px; line-height: 1.5; }
.level li img { flex: none; width: 21px; height: 21px; }

/* ---------- Form section ---------- */
.form-section .narrow { max-width: 700px; }
.form-embed { width: 100%; margin-top: 12px; }
.form-embed iframe { display: block; width: 100%; border: 0; }
.form-placeholder { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius-card); color: #69727D; text-align: center; }
.follow { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.social { display: flex; gap: 20px; }
.social a { color: var(--navy); }
.social a:hover { color: var(--orange); }
.social svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 75px 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.site-footer__logo { width: 155px; margin-bottom: 20px; }
.site-footer h2 { color: var(--white); font-size: 20px; line-height: 1; font-weight: 700; margin-bottom: 20px; text-transform: none; }
.site-footer li + li { margin-top: 15px; }
.site-footer a { color: var(--white); font-weight: 600; }
.site-footer a:hover { color: var(--blue); }
.site-footer__contact { display: flex; gap: 12px; font-weight: 400 !important; }
.site-footer__contact svg { flex: none; width: 18px; height: 24px; fill: currentColor; }
.site-footer__hours { margin-top: 20px; }
.copyright { padding: 27px 0; text-align: center; color: var(--text); }
.copyright a { color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  h2 { font-size: 30px; }
  h3, .eyebrow, .step h3 { font-size: 22px; }
  .btn { font-size: 16px; }
  .nav, .nav__list { gap: 30px; }
}
@media (max-width: 1024px) {
  .hero h1 { font-size: 50px; line-height: 1.2; }
  .menu-btn { display: block; }
  .nav { gap: 20px; }
  .nav__list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--gutter) 20px; background: var(--white); box-shadow: var(--shadow-header);
    display: none;
  }
  .site-header.is-open .nav__list { display: flex; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 14px 0; }
  .nav__sub { position: static; box-shadow: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__item:hover .nav__sub { display: none; }
  .nav__item.is-open:hover .nav__sub { display: block; }
  .levels { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 880px) {
  body { font-size: 15px; }
  h2 { font-size: 26px; }
  h3, .eyebrow, .step h3 { font-size: 20px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 20px; }
  /* stacked: heading and copy, then the image, then the button */
  .split { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .split > * { padding: 0; }
  .split > .stack { display: contents; }
  .split .split__media { order: 1; width: 100%; max-width: 520px; margin: 20px auto; }
  .split .section-cta { order: 2; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 131px; }
  .step:last-child { padding-bottom: 0; }
  .step:not(:last-child)::after {
    top: auto; bottom: 20px; right: auto; left: calc(50% - 15px); width: 30px; height: 91px;
    background-image: url("/assets/images/Arrow-down.png");
  }
  .step__num { font-size: 70px; }
  .icon-row { flex-direction: column; align-items: center; gap: 12px; font-size: 14px; }
  .icon-row li { padding: 0; }
  .icon-row li + li { border-left: 0; }
}
@media (max-width: 767px) {
  h1 { font-size: 35px; line-height: 1.2; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 60px 0; min-height: 0; }
  .lead { font-size: 16px; }
  .hero .lead { margin: 24px auto; }
  .btn { display: block; width: 100%; font-size: 15px; }
  .btn--small { display: inline-block; width: auto; min-width: 0; padding: 10px 20px; font-size: 14px; }
  .site-header__logo img { width: 115px; }
  .nav { gap: 10px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
