/* components.css — reusable UI pieces
   - header/footer
   - cards, stats, features, quotes
   - checkmark list
   - overlays
   - video wrapper
*/

/* Top header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dg-blue);
  border-bottom: 1px solid var(--dg-gray-200);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand__logo {
  display: block;
  height: 70px;
  width: auto;
}

.topbar__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.phone__label {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.phone__number {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

@media (max-width: 700px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar__phone {
    align-items: flex-start;
    text-align: left;
  }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--dg-gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

/* Form card (visual skin only; inputs live in forms.css) */
.form-card {
  background: var(--dg-blue);
  color: #fff;
}

.form-card .card__title {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  color: var(--dg-gray-100);
}

.form-card .micro {
  margin: 0;
  font-size: 13px;
  color: var(--dg-gray-100);
  opacity: 0.95;
}

.form-header {
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Stats */
.stat {
  display: flex;
  align-items: flex-start; /* drop-cap alignment */
  gap: 16px;
  margin: 48px 0;
}

.stat__value {
  font-size: 58px;
  line-height: 0.95;
  font-weight: 700;
  color: var(--dg-blue);
  flex-shrink: 0; /* prevents squishing */
}

.stat__label {
  font-size: 22px;
  line-height: 1.2;
  max-width: 500px;
}

/* Checkmark list */
.checks {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0 50px;
}

.checks li {
  position: relative;
  padding-left: 26px;
  margin: 30px 0;
  font-size: 24px;      /* larger, readable */
  line-height: 1.6;
}

.checks li strong {
  font-weight: 700;
  color: var(--dg-gray-900);
}
.checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 30pt;
  font-weight: 800;
  color: green;
  margin: -15px 0 0 -20px;
}

/* Feature cards */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .cards3 {
    grid-template-columns: 1fr;
  }
}

.cards3 h3 {
  text-align: center;
}

.feature__icon {
  width: 130px;
  height: auto;
  display: block;
  margin: 10px auto;
}

/* Quote / testimonial */
.quote {
  position: relative;
  padding-left: 56px; /* space for the big quote */
  margin: 32px 0;
}

.quote {
  position: relative;
  padding-left: 70px; /* room for the mark */
}

/* Bulletproof quote mark: SVG, not a font glyph */
.quote::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  transform: translateY(-18px);

  width:76px;
  height:46px;
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.8;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='90' viewBox='0 0 120 90'%3E%3Cg fill='%230098db'%3E%3Cpath d='M55 20C33 22 20 35 20 55v20h30V55H35c0-8 6-15 20-17V20z'/%3E%3Cpath d='M98 20C76 22 63 35 63 55v20h30V55H78c0-8 6-15 20-17V20z'/%3E%3C/g%3E%3C/svg%3E");
}

.quote blockquote {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.6;
  color: var(--dg-gray-900);
}

.quote figcaption {
  font-weight: 700;
  margin-bottom: 2px;
  text-align: right;
}

.quote__meta {
  font-size: 14px;
  color: var(--dg-gray-500);
  text-align: right;
}

/* PHONE CTA */
.section--cta {
  background: rgba(0, 70, 115, 0.75); /* --dg-blue @ ~75% tint */
}

.cta {
  display: flex;
  justify-content: center;
  text-align: center;
}

.cta__actions {
  width: 100%;
}

.section--cta .btn {
  font-size: 36px;        /* BIG */
  font-weight: 700;
  padding: 14px 32px;
  line-height: 1.2;
}

/* Footer */
.footer {
  background: var(--dg-blue);
  border-top: 1px solid var(--dg-gray-200);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  height: 90px;
  width: auto;
  display: block;
}

.footer__right {
  text-align: right;
  margin-left: auto; /* locks text to far right */
}

.footer__line {
  font-size: 13px;
  line-height: 2;
  color: var(--dg-bg);
}

.footer__line a {
  color: #fff;
  text-decoration: none;
}

.footer__line a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 700px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__right {
    text-align: left;
    margin-left: 0;
  }
}

.footer-logo img {
  display: block;
  width: 180px;
  height: auto;
}

.footer__links a {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 8px;
  color: #fff;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__links p {
  margin: 8px 0 0;
  color: var(--dg-gray-100);
  opacity: 0.9;
}

/* Overlay modals */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.overlay__panel {
  position: relative;
  max-width: 720px;
  width: calc(100% - 40px);
  margin: 10vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.overlay__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.overlay__content h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overlay__content p {
  margin: 0 0 12px;
  color: var(--dg-gray-700);
}

/* Video wrapper */
.video {
  max-width: 960px;
  margin: 0 auto;
  border: 20px solid var(--dg-blue);
  border-radius: 12px; /* optional but recommended */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden; /* keeps video edges clean */
}

.video__el {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   MODAL BASE
   ========================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;           /* hidden by default */
  z-index: 9999;
}

/* when JS adds .is-open */
.modal.is-open {
  display: block;
}

/* dim background */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* centered modal panel */
.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin: 48px auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* blue header bar */
.modal__header {
  background: var(--dg-blue);
  color: #ffffff;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* title in header */
.modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

/* right side of header */
.modal__headerRight {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal__meta {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.95;
}

/* close button */
.modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* body content */
.modal__body {
  padding: 26px 28px 30px;
  color: var(--dg-gray-900);
}

/* body typography helpers */
.modal__lead {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.modal__h {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.modal__list {
  margin: 0 0 10px 22px;
  font-size: 18px;
  line-height: 1.6;
}

/* Thank You */
.modal__header--center {
  justify-content: center;
  text-align: center;
}

/* mobile */
@media (max-width: 700px) {
  .modal__panel {
    width: calc(100% - 24px);
    margin: 18px auto;
  }

  .modal__header {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__title {
    font-size: 30px;
  }

  .modal__meta {
    font-size: 16px;
  }

  .modal__body {
    padding: 18px 16px 22px;
  }

  .modal__lead {
    font-size: 22px;
  }
}
