/* All American staging hotfix 2026-11-30
   1) Keep the A/A+ text-size control from covering copy.
   2) Fit the longer "LIMITED-TIME OFFER" kicker on the starburst badge. */

/* ---- A/A+ : compact, never over content ---- */
.text-size,
.text-size.is-scrolling {
  z-index: 60;
  gap: 4px !important;
  transform: none !important;
  translate: 0 0 !important;
  scale: 1 !important;
  opacity: 1 !important;
}

.text-size .ts-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  font-size: 0.8rem;
}

/* Desktop / tablet: sit in the right page gutter (section-wrap is inset 40–56px+) */
@media (min-width: 801px) {
  .text-size,
  .text-size.is-scrolling {
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    right: 10px !important;
    flex-direction: column !important;
  }

  /* Extra room at the end of the page so the last line can scroll clear of the control */
  .site-footer .footer-bottom {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Mobile: dock inside the sticky header, to the left of the menu button,
   so the control never covers the "Call us" card or other page copy. */
@media (max-width: 800px) {
  .text-size,
  .text-size.is-scrolling {
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: 72px !important; /* 15px header pad + 48px menu + 9px gap */
    height: 75px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .text-size .ts-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-width: 1.5px;
    box-shadow: inset 0 1px #ffffffe6, 0 2px 8px #071c3647;
  }
}

@media (max-width: 560px) {
  .text-size,
  .text-size.is-scrolling {
    right: 72px !important;
    height: 75px;
  }
}

/* ---- Promo kicker: "LIMITED-TIME / OFFER" on the 172px burst ---- */
.aa-promos-kicker {
  font-size: 0.92rem !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  padding: 0 8px !important;
}
@media (width <= 800px) {
  .aa-promos-kicker,
  .aa-promos-kicker.is-empty {
    font-size: 0.78rem !important;
    padding: 0 6px !important;
  }
}

/* WordPress version: hero entrance (was driven by the app's script). */
@keyframes aa-rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.aa-rise { animation: aa-rise-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-content > .aa-rise:nth-child(2) { animation-delay: .08s; }
.hero-content > .aa-rise:nth-child(3) { animation-delay: .16s; }
.hero-content > .aa-rise:nth-child(4) { animation-delay: .24s; }
.hero-content > .aa-rise:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .aa-rise { animation: none; } }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Plain text pages */
.text-page { padding-top: 72px; padding-bottom: 96px; line-height: 1.7; overflow-wrap: anywhere; }
.text-page > * { max-width: 820px; }
.text-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 28px; }
.text-page h2 { font-size: 1.7rem; line-height: 1.25; margin: 44px 0 14px; }
.text-page h3 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 10px; }
.text-page h4 { font-size: 1.05rem; margin: 24px 0 8px; }
.text-page p { margin: 0 0 14px; font-size: 1rem; }
.text-page ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.text-page li { margin: 0 0 8px; }
.text-page li p { margin: 0 0 6px; }
.text-page a { text-decoration: underline; }
/* The chat button takes the bottom-right corner, so the text-size control moves left. */
@media (min-width: 801px) {
  html:has(#smartsupp-widget-container) .text-size,
  html:has(#smartsupp-widget-container) .text-size.is-scrolling {
    left: 10px !important;
    right: auto !important;
  }
}

/* Copied FAQ and review plugins on plain pages. */
.text-page .aajds-sum-btn, .text-page .aajds-rev-g { text-decoration: none; }
.text-page .aajds-faq, .text-page .aajds-rev { max-width: 900px; }

/* Home page testimonials. */
.testimonials-section { padding-top: 76px; padding-bottom: 84px; }
.testimonials-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 38px; }
.testimonials-head h2 { margin: 17px 0 0; font-size: clamp(2.5rem, 4.4vw, 3.8rem); line-height: 1; }
.testimonials-score { display: flex; align-items: center; gap: 14px; margin: 0; }
.testimonials-score b { font-size: 2.6rem; line-height: 1; color: var(--navy); }
.testimonials-score > span { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.testimonials-stars { color: #f5b301; letter-spacing: 2px; font-size: .95rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.testimonial-card { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.testimonial-card blockquote { margin: 0; flex: 1; font-size: .95rem; line-height: 1.7; color: var(--navy); }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption b { display: block; font-size: .85rem; color: var(--navy); }
.testimonial-card figcaption small { display: block; font-size: .72rem; color: var(--muted); }
.testimonial-photo { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 700; }
.testimonial-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonials-link { display: inline-block; margin-top: 30px; padding-bottom: 6px; border-bottom: 1px solid #aeb5bd; font-size: .85rem; font-weight: 700; color: var(--navy); }
@media (max-width: 900px) {
  .testimonials-section { width: calc(100% - 40px); padding-top: 52px; padding-bottom: 60px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Home FAQ answers pulled from the FAQs list. */
.faq-list .faq-answer { padding: 0 22px 22px; color: #38495c; font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere; }
.faq-list .faq-answer p, .faq-list .faq-answer ul, .faq-list .faq-answer ol { margin: 0 0 10px; }
.faq-list .faq-answer ul, .faq-list .faq-answer ol { padding-left: 20px; list-style: disc; }
.faq-list .faq-answer > :last-child { margin-bottom: 0; }
.faq-list .faq-all { justify-self: start; margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid #aeb5bd; font-size: .85rem; font-weight: 700; color: var(--navy); }

/* Privacy link beside the copyright line. */
.site-footer .footer-privacy { display: inline-block; margin-left: 18px; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
@media (max-width: 800px) { .site-footer .footer-privacy { display: block; margin: 10px 0 0; } }

/* Seven header menu items: tighten up on narrow desktop and tablet widths. */
@media (min-width: 801px) and (max-width: 1000px) {
  .site-header .nav-wrap .brand { flex: 0 1 150px; min-width: 0; }
  .site-header .nav-wrap .brand img { width: 150px; height: auto; }
  .site-header .nav-wrap nav { gap: 11px; }
  .site-header .nav-wrap nav a, .site-header .nav-wrap nav > button { font-size: .7rem; }
}
/* The menu may take two lines rather than run off the screen. */
@media (min-width: 801px) and (max-width: 1399px) {
  .site-header .nav-wrap nav { flex: 1 1 0; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 0; column-gap: 16px; }
  .site-header .nav-wrap nav a, .site-header .nav-wrap nav > button { padding-top: 7px; padding-bottom: 7px; }
}

/* Blog list and articles. */
.text-page > .blog-grid { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.text-page .blog-card { display: flex; flex-direction: column; gap: 9px; padding-bottom: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.blog-card-image { display: block; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-date { padding: 8px 20px 0; font-size: .72rem; color: var(--muted); }
.blog-card-title { padding: 0 20px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.blog-card-text { padding: 0 20px; font-size: .85rem; line-height: 1.6; color: var(--muted); }
.blog-card:hover .blog-card-title { color: var(--red); }
.text-page .post-date { color: var(--muted); font-size: .85rem; }
.text-page .post-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0 0 28px; }
.text-page iframe { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.text-page img { max-width: 100%; height: auto; }

/* Text above the "Still have a question?" box. */
.faq-about { grid-column: 1 / -1; color: #38495c; font-size: 1.0625rem; line-height: 1.7; }
.faq-about h3 { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.3; color: var(--navy); }
.faq-about p { margin: 0 0 14px; }
.faq-about p:last-child { margin-bottom: 0; }
.blog-card-image:empty { display: grid; place-items: center; }
.blog-card-image:empty::after { content: "ALL AMERICAN"; color: #fff; font-weight: 700; letter-spacing: .14em; opacity: .85; }

/* Alignable and BBB badges. */
.faq-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; }
.faq-badges a { display: block; max-width: 100%; }
.faq-badges img { display: block; width: 280px; max-width: 100%; height: auto; }

/* Long text on a service page. */
.service-long { max-width: 780px; margin-top: 48px; color: #38495c; font-size: 1.0625rem; line-height: 1.7; }
.service-long h2 { margin: 34px 0 12px; font-size: 1.5rem; line-height: 1.3; color: var(--navy); }
.service-long h2:first-child { margin-top: 0; }
.service-long p { margin: 0 0 14px; }
.service-long a:not(.hover-btn) { color: var(--navy); font-weight: 700; text-decoration: underline; }
.service-long .detail-advisor { margin-top: 18px; }
.service-long ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.service-long li { margin: 0 0 6px; }
.service-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 0 0 22px; border: 0; }

/* Footer: areas we cover. */
.footer-areas { list-style: none; margin: 0; padding: 0; color: #2c4057; font-size: 1rem; line-height: 2.2; }
@media (min-width: 1051px) { .site-footer .footer-main { grid-template-columns: 1.05fr 1.25fr .75fr .9fr 1.15fr; gap: 32px; } .site-footer .footer-brand img { max-width: 100%; } }
