/* Prime Load Trailers — P2.7 Visual Rebuild */
/* Loaded via mu-plugin (primeload-fixes.php) on every front-end request */
/* Provides: bento grid, sticky mobile CTA, hero gradient, hover states, */
/* and selectors for things the Elementor v4 Style Schema doesn't accept */
/* as atomic Global Class props (transitions, grid templates, hover, media queries) */

/* ======================================================== */
/* 1. Google Fonts — Fraunces + ensure Outfit + Inter loaded */
/* ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ======================================================== */
/* 2. Hero editorial treatment                              */
/* ======================================================== */
.hero-editorial {
  position: relative;
  min-height: 600px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Subtle bottom-up gradient — image stays clean at top, gradient only appears
     where text sits at the bottom for legibility */
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(6, 24, 41, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-editorial > * { position: relative; z-index: 2; }
.hero-editorial h1, .hero-editorial h2, .hero-editorial .hero-headline,
.hero-editorial .elementor-heading-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-editorial p, .hero-editorial .elementor-widget-text-editor,
.hero-editorial .etheme-icon-box-description {
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
@media (max-width: 768px) { .hero-editorial { min-height: 480px; } }

/* ======================================================== */
/* 3. Bento grid for category showcase                       */
/* ======================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.bento-grid > .bento-1x1 { grid-column: span 1; grid-row: span 1; }
.bento-grid > .bento-1x2 { grid-column: span 1; grid-row: span 2; }
.bento-grid > .bento-2x1 { grid-column: span 2; grid-row: span 1; }
.bento-grid > .bento-2x2 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid > .bento-2x1, .bento-grid > .bento-2x2 { grid-column: span 2; }
  .bento-grid > .bento-1x2 { grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .bento-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ======================================================== */
/* 4. Sticky mobile CTA bar                                  */
/* ======================================================== */
.cta-sticky-mobile {
  display: none;
}
@media (max-width: 768px) {
  .cta-sticky-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #061829;
    color: #FFFFFF;
    padding: 12px 16px;
    gap: 12px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.16);
  }
  .cta-sticky-mobile a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }
  .cta-sticky-mobile a.cta-call {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .cta-sticky-mobile a.cta-quote {
    background: #F0C000;
    color: #0B3954;
  }
  body { padding-bottom: 76px; }
}

/* ======================================================== */
/* 5. Card hover states (lift + accent underline)            */
/* ======================================================== */
.elementor-element[class*="card-category"]:hover,
.elementor-element[class*="card-feature"]:hover,
.elementor-element[class*="card-product"]:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(11, 57, 84, 0.12);
}
.elementor-element[class*="card-category"] h3,
.elementor-element[class*="card-feature"] h3 {
  position: relative;
  display: inline-block;
}
.elementor-element[class*="card-category"]:hover h3::after,
.elementor-element[class*="card-feature"]:hover h3::after {
  content: '';
  display: block;
  height: 2px;
  background: #F0C000;
  margin-top: 4px;
  width: 100%;
  transition: width 0.2s ease;
}

/* ======================================================== */
/* 6. Badge nationwide overlay on cards                      */
/* ======================================================== */
.card-with-badge { position: relative; }
.card-with-badge .badge-nationwide-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

/* ======================================================== */
/* 7. Section transitions (smooth scroll)                    */
/* ======================================================== */
html { scroll-behavior: smooth; }

/* ======================================================== */
/* 8. Policy page unified template                           */
/* ======================================================== */
.policy-page {
  background: #F8F4ED;
  padding: 60px 24px;
}
.policy-page article {
  max-width: 880px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 48px 56px;
  box-shadow: 0 2px 12px rgba(11, 57, 84, 0.06);
}
.policy-page .breadcrumb {
  font-family: Outfit, sans-serif;
  font-size: 13px;
  color: #7A7A7A;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.policy-page .breadcrumb a { color: #0B3954; text-decoration: none; }
.policy-page .breadcrumb a:hover { text-decoration: underline; }
.policy-page h1 {
  font-family: Outfit, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #0B3954;
  margin: 0 0 12px 0;
  line-height: 1.15;
}
.policy-page .last-updated {
  font-family: Outfit, sans-serif;
  font-size: 13px;
  color: #7A7A7A;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.policy-page article h2 {
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0B3954;
  margin-top: 36px;
  margin-bottom: 12px;
}
.policy-page article p, .policy-page article li {
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2A2D34;
}
.policy-page article a { color: #0B3954; text-decoration: underline; }
.policy-page .policy-cross-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.policy-page .policy-cross-nav a {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(11, 57, 84, 0.06);
  color: #0B3954;
  font-family: Outfit, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.policy-page .policy-cross-nav a:hover { background: #F0C000; }
.policy-page .policy-cta {
  margin-top: 40px;
  text-align: center;
}
.policy-page .policy-cta a {
  display: inline-block;
  padding: 14px 32px;
  background: #F0C000;
  color: #0B3954;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .policy-page article { padding: 32px 24px; }
  .policy-page h1 { font-size: 30px; }
  .policy-page article h2 { font-size: 20px; }
}

/* ======================================================== */
/* 9. 15-Year story strip                                    */
/* ======================================================== */
.fifteen-year-strip {
  background: #061829;
  color: #FFFFFF;
  padding: 32px 24px;
  text-align: center;
}
.fifteen-year-strip .chip-large {
  display: inline-block;
  font-family: Fraunces, serif;
  font-size: 36px;
  font-weight: 700;
  color: #F0C000;
  vertical-align: middle;
  margin-right: 16px;
}
.fifteen-year-strip .chip-large small {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-left: 6px;
}
.fifteen-year-strip .strip-copy {
  display: inline-block;
  font-family: Outfit, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  vertical-align: middle;
  margin: 0 24px;
}
.fifteen-year-strip a.strip-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 15px;
  vertical-align: middle;
}
.fifteen-year-strip a.strip-cta:hover { background: #FFFFFF; color: #061829; }
@media (max-width: 768px) {
  .fifteen-year-strip > * { display: block; margin: 8px auto; }
  .fifteen-year-strip .chip-large, .fifteen-year-strip .strip-copy { margin-right: 0; }
}

/* ======================================================== */
/* 10. Performance: prevent layout shift on lazy images       */
/* ======================================================== */
.elementor-widget-image img[data-src] { aspect-ratio: 16 / 9; object-fit: cover; }

/* ======================================================== */
/* 11. Get a Quote page                                       */
/* ======================================================== */
.get-a-quote-page {
  background: #F8F4ED;
  padding: 60px 24px 80px;
}
.get-a-quote-page > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.get-a-quote-page h1 {
  font-family: Outfit, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #0B3954;
  line-height: 1.15;
  margin: 0 0 16px;
}
.get-a-quote-page .lead {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2A2D34;
  margin: 0 0 32px;
}
.get-a-quote-page .ff-default,
.get-a-quote-page .frm-fluent-form,
.get-a-quote-page .fluentform {
  background: #FFFFFF;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(11, 57, 84, 0.06);
  margin: 0 auto 32px;
}
.get-a-quote-page .quote-trust-row {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  margin: 32px auto 24px;
}
.get-a-quote-page .quote-trust-row ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
}
.get-a-quote-page .quote-trust-row li {
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0B3954;
  padding-left: 28px;
  position: relative;
}
.get-a-quote-page .quote-trust-row li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #F0C000;
  font-weight: 700;
  font-size: 18px;
}
.get-a-quote-page .quote-trust-row li a {
  color: #0B3954;
  text-decoration: none;
}
.get-a-quote-page .quote-trust-row li a:hover { text-decoration: underline; }
.get-a-quote-page .quote-buyers-guide-link {
  text-align: center;
  margin-top: 24px;
}
.get-a-quote-page .quote-buyers-guide-link p {
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #4A4A4A;
}
.get-a-quote-page .quote-buyers-guide-link a {
  color: #0B3954;
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .get-a-quote-page { padding: 40px 16px 60px; }
  .get-a-quote-page h1 { font-size: 30px; }
  .get-a-quote-page .ff-default,
  .get-a-quote-page .frm-fluent-form,
  .get-a-quote-page .fluentform { padding: 20px; }
}

/* ======================================================== */
/* 11.5 Fluent Forms loading-state visibility fallback        */
/* ======================================================== */
/* If Fluent Forms JS doesn't fully initialize (e.g. cached page, slow */
/* network, conditional asset loading missing the form on this view),  */
/* the .ff-form-loading class persists and Fluent Forms' default CSS  */
/* hides the form. Force visibility regardless of init state.         */
.frm-fluent-form,
.frm-fluent-form.ff-form-loading {
  opacity: 1 !important;
  visibility: visible !important;
}
.frm-fluent-form.ff-form-loading .ff-el-input--content,
.frm-fluent-form.ff-form-loading .ff-el-form-control,
.frm-fluent-form.ff-form-loading button,
.frm-fluent-form.ff-form-loading input,
.frm-fluent-form.ff-form-loading select,
.frm-fluent-form.ff-form-loading textarea {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ======================================================== */
/* 12. Footer newsletter form (Fluent Forms)                  */
/* ======================================================== */
.elementor-widget-shortcode .ff-default,
.elementor-widget-shortcode .frm-fluent-form,
.elementor-widget-shortcode .fluentform { max-width: 520px; }
.elementor-widget-shortcode .frm-fluent-form .ff-el-input--label label { display: none; }
.elementor-widget-shortcode .frm-fluent-form .ff-el-form-control {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.4);
  color: #0B3954;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: Inter, sans-serif;
}
.elementor-widget-shortcode .frm-fluent-form .ff-btn-submit {
  background: #F0C000 !important;
  color: #0B3954 !important;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.elementor-widget-shortcode .frm-fluent-form .ff-btn-submit:hover { background: #C49C00 !important; }
