/* ==========================================================================
   Reusable components — buttons, badges, form fields, modal
   No drop shadows anywhere: depth comes from color, borders and motion.
   ========================================================================== */

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  transition: background-position var(--dur-med) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-med) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-gold {
  background-image: linear-gradient(90deg, var(--gold-600) 50%, var(--gold-500) 50%);
  background-position: 100% 0;
  color: var(--navy-800);
}

.btn-gold:hover {
  background-position: 0 0;
}

.btn-outline {
  background-image: linear-gradient(90deg, var(--white) 50%, transparent 50%);
  background-position: 100% 0;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-position: 0 0;
  color: var(--navy-800);
}

.btn-navy {
  background-image: linear-gradient(90deg, var(--gold-500) 50%, var(--navy-800) 50%);
  background-position: 100% 0;
  color: var(--white);
}

.btn-navy:hover {
  background-position: 0 0;
  color: var(--navy-800);
}

.btn-white {
  background-image: linear-gradient(90deg, var(--bg-light) 50%, var(--white) 50%);
  background-position: 100% 0;
  color: var(--green-700);
}

.btn-white:hover {
  background-position: 0 0;
}

.btn-block {
  width: 100%;
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .modal--quote {
    padding: 52px 20px 28px;
  }
}

/* ---- Section heading kit -------------------------------------------------- */

.eyebrow {
  display: inline-block;
  color: var(--gold-700);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.eyebrow--on-dark {
  color: var(--gold-500);
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--gold-600);
  border-radius: var(--radius-pill);
  margin: 16px auto 0;
}

.rule--left {
  margin-inline: 0;
}

.section-heading p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---- Feature badges (hero strip) ----------------------------------------- */

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.feature-badge__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-badge__icon i {
  font-size: 16px;
}

.feature-badge span {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Insure option cards --------------------------------------------------- */

.insure-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 208px;
  padding: 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.insure-card:hover {
  border-color: var(--gold-500);
}

.insure-card.is-active {
  border-color: var(--navy-800);
  border-width: 2px;
}

.insure-card__media {
  position: relative;
  height: 128px;
}

.insure-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
  transition: transform var(--dur-med) var(--ease-out);
}

.insure-card:hover .insure-card__media img {
  transform: scale(1.08);
}

.insure-card__badge {
  position: absolute;
  left: 12px;
  bottom: -18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insure-card__badge i {
  font-size: 15px;
  color: var(--navy-800);
}

.insure-card__body {
  padding: 26px 16px 18px;
}

.insure-card__body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.insure-card__body p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ---- Insure cards row + swap panel (shared by the home section and the
   "Get a Quote" modal on every page) --------------------------------------- */

.insure-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 44px 4px 12px;
  scrollbar-width: thin;
}

.insure-cards::-webkit-scrollbar {
  height: 4px;
}

.insure-cards::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-pill);
}

.insure-panel {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.insure-panel__media {
  position: relative;
  min-height: 460px;
  background-color: var(--navy-800);
}

.insure-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--dur-med) var(--ease-out);
}

.insure-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 60, 0.55), rgba(20, 19, 60, 0.85));
}

.insure-panel__media-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insure-panel__media-inner h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.insure-panel__media-inner > p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  max-width: 32ch;
}

.insure-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.insure-perks .icon-tick {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insure-perks i {
  font-size: 14px;
  color: var(--white);
}

.insure-panel__form {
  background: var(--white);
  padding: 44px;
}

.insure-panel__form h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.insure-panel__form form {
  margin-top: 4px;
}

.insure-panel__form .btn {
  margin-top: 28px;
}

.form-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 14px;
}

.form-note__icon {
  margin-right: 6px;
  font-size: 0.75rem;
}

/* fade transition when switching category */
.is-swapping .insure-panel__media-inner,
.is-swapping .form-grid {
  opacity: 0;
  transform: translateY(6px);
}

.insure-panel__media-inner,
.form-grid {
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

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

  .insure-panel__media {
    min-height: 320px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  /* the image + perks copy panel is dropped on mobile — the form is the
     only thing that matters once you've already picked a category card */
  .insure-panel__media {
    display: none;
  }
}

@media (max-width: 480px) {
  .insure-panel__form {
    padding: 28px 22px;
  }
}

/* ---- Form fields ------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field input,
.field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.92rem;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus {
  border-color: var(--navy-800);
  outline: none;
}

.field--full {
  grid-column: 1 / -1;
}

/* ---- Custom date picker --------------------------------------------------- */

.datepicker-wrap {
  position: relative;
}

.datepicker-wrap input {
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
  background: var(--white);
}

.datepicker-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.9rem;
  pointer-events: none;
}

.datepicker-panel {
  position: fixed;
  z-index: 1000;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(20, 19, 60, 0.2), 0 4px 12px rgba(20, 19, 60, 0.08);
  padding: 16px;
}

.datepicker-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.datepicker-month,
.datepicker-year {
  flex: 1;
  padding: 6px 6px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
}

.datepicker-month:focus,
.datepicker-year:focus {
  outline: none;
  border-color: var(--navy-800);
}

.datepicker-year {
  flex: 0 0 78px;
}

.datepicker-nav-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--navy-800);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.datepicker-nav-btn:hover {
  background: rgba(20, 19, 60, 0.08);
}

.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.datepicker-weekday {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-faint);
  padding: 4px 0 8px;
}

.datepicker-day {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy-800);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.datepicker-day:hover {
  background: rgba(20, 19, 60, 0.08);
}

.datepicker-day.is-muted {
  color: var(--text-faint);
  opacity: 0.55;
}

.datepicker-day.is-today {
  color: var(--gold-700);
  font-weight: 700;
}

.datepicker-day.is-selected {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
}

.datepicker-day.is-selected.is-today {
  background: var(--gold-600);
  color: var(--navy-900);
}

.datepicker-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.datepicker-footer button {
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
}

.datepicker-footer button:hover {
  color: var(--gold-700);
}

/* ---- Modal --------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px 32px 32px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-med) var(--ease-out);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal--quote {
  position: relative;
  max-width: 1040px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 60px 40px 40px;
  text-align: left;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.modal__close:hover {
  background: var(--border-light);
}

.modal__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--bg-lavender);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal__icon i {
  font-size: 28px;
}

.modal > h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.modal > p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.modal__meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ---- Service cards (Products & Services grid + Related Products) -------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.service-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.service-card:hover {
  border-color: var(--gold-500);
}

.service-card__media {
  position: relative;
  height: 220px;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  will-change: transform;
  transition: transform var(--dur-med) var(--ease-out);
}

.service-card:hover .service-card__media img {
  transform: scale(1.08);
}

.service-card__badge {
  position: absolute;
  right: 16px;
  bottom: -22px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
}

.service-card__badge i {
  font-size: 17px;
}

.service-card__body {
  padding: 32px 20px 24px;
}

.service-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-card__media {
    height: 120px;
  }

  .service-card__badge {
    width: 34px;
    height: 34px;
    right: 10px;
    bottom: -17px;
  }

  .service-card__badge i {
    font-size: 13px;
  }

  .service-card__body {
    padding: 22px 14px 16px;
  }

  .service-card__body h3 {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .service-card__body p {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .service-card__body .btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* ---- Detail pages (service + blog article) ------------------------------ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 28px;
  transition: color var(--dur-fast) var(--ease-out);
}

.back-link i {
  font-size: 12px;
}

.back-link:hover {
  color: var(--gold-700);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.check-list .icon-tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-list .icon-tick i {
  font-size: 11px;
}
