/* Site-wide additions. Kept separate from main.css, which is hand-maintained and must not be regenerated. */

/* ---------- Mobile header: keep the "Free Audit" button inside its grid column ---------- */
/* The buttons carry inline padding/font-size for desktop, so phone overrides need !important. */
@media (max-width: 767.98px) {
  .header-inner > a.btn {
    padding: 8px 8px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
    max-width: 100%;
  }

  /* Header is fixed and ~66px tall on phones; give hero content room beneath it. */
  section.hero {
    padding-top: 112px;
  }
}

@media (max-width: 389.98px) {
  .header-inner > a.btn {
    padding: 7px 6px !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.25px;
  }
}

@media (max-width: 359.98px) {
  .header-inner > a.btn {
    padding: 6px 5px !important;
    font-size: 0.55rem !important;
    letter-spacing: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: #141414;
  color: #eae3e3;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 40px;
}

@media (min-width: 576px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1.15fr 0.85fr 1.2fr;
  }
}

.site-footer__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 16px;
}

.site-footer__logo img {
  width: 180px;
  height: auto;
}

/* main.css sets `footer p { line-height: 1 }` for the old one-line footer. */
.site-footer p {
  margin: 0 0 16px;
  color: #eae3e3;
  line-height: 1.6;
}

.site-footer__heading {
  color: #e43c1b !important;
  font-family: 'Montserrat ExtraBold', Helvetica, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a:not(.btn) {
  color: #eae3e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:not(.btn):hover,
.site-footer a:not(.btn):focus {
  color: #e43c1b;
  text-decoration: underline;
}

.site-footer i {
  margin-right: 6px;
  color: #e43c1b;
}

.site-footer a.site-footer__cta {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid #e43c1b;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
}

.site-footer a.site-footer__cta:hover,
.site-footer a.site-footer__cta:focus {
  background: #e43c1b;
  color: #ffffff;
  text-decoration: none;
}

.site-footer__bottom {
  background: #e43c1b;
  padding: 14px 0;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.site-footer__social a:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  text-decoration: none;
}

.site-footer__social a:not(.btn) i {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer__social a:not(.btn):hover,
.site-footer__social a:not(.btn):focus {
  border-color: #e43c1b;
  background: #e43c1b;
  text-decoration: none;
}

/* Keep the icon and the phone number / email address on one line. */
.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
  white-space: nowrap;
}

/* ---------- Tools band ("Tools We Use") ---------- */
section.seen-in-band .tool-band-label {
  margin: 0 0 16px;
  color: #eae3e3;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

section.seen-in-band .tool-name {
  display: flex;
  flex-direction: column;
  text-align: left;
}

section.seen-in-band .tool-category {
  margin-top: 2px;
  color: #bdb6b6;
  font-size: 0.75rem;
  font-weight: 400;
}

/* ---------- Phones: slightly smaller call-to-action buttons ---------- */
@media (max-width: 575.98px) {
  .btn,
  button:not(.nav-toggle) {
    padding: 20px 16px;
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

/* ---------- Footer newsletter signup ---------- */
.site-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer__newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 0 28px;
}

.site-footer__newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

@media (min-width: 992px) {
  .site-footer__newsletter-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
}

.site-footer__newsletter-copy p:last-child {
  margin-bottom: 0;
}

.newsletter-form__row {
  display: flex;
  gap: 10px;
}

.site-footer .newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
  color: #1f2933;
  font-size: 1rem;
}

.site-footer .newsletter-form input[type="email"]:focus {
  outline: 2px solid #e43c1b;
  outline-offset: 1px;
}

.site-footer .newsletter-form input[aria-invalid="true"] {
  border-color: #ff8a73;
}

.site-footer .newsletter-form button[type="submit"] {
  flex: 0 0 auto;
  width: auto;
  padding: 14px 22px;
  border-radius: 5px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.site-footer .newsletter-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer p.newsletter-form__consent {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #bdb6b6;
}

.site-footer .newsletter-form__consent a:not(.btn) {
  text-decoration: underline;
}

.site-footer p.newsletter-form__status {
  margin: 8px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
}

.site-footer p.newsletter-form__status.is-success {
  color: #8fe3a8;
}

.site-footer p.newsletter-form__status.is-error {
  color: #ff9f8c;
}

@media (max-width: 419.98px) {
  .newsletter-form__row {
    flex-direction: column;
  }

  .site-footer .newsletter-form button[type="submit"] {
    width: 100%;
  }
}

/* ---------- Analytics consent banner (only shown when GA is configured) ---------- */
.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px;
  border-top: 3px solid #e43c1b;
  border-radius: 6px;
  background: #141414;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #eae3e3;
  font-size: 0.9rem;
}

.cookie-consent p {
  flex: 1 1 320px;
  margin: 0;
  line-height: 1.5;
}

.cookie-consent a:not(.btn) {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
}

.cookie-consent .cookie-consent__actions button {
  display: inline-block;
  width: auto;
  padding: 10px 18px;
  border: 1px solid #e43c1b;
  border-radius: 5px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.cookie-consent .cookie-consent__actions .cookie-consent__decline {
  background: transparent;
}

.site-footer__bottom a:not(.btn) {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Phones: keep the hamburger menu fully on screen ---------- */
/* The menu is right-aligned to the button and 100vw-32px wide, which pushed it ~10px off the
   left edge on phones. Pin it 16px from both edges, just below the fixed header. */
@media (max-width: 767.98px) {
  .site-menu {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

/* Bootstrap's .flex-wrap was purged from main.css; on phones let button rows (e.g. 404 page) wrap. */
@media (max-width: 575.98px) {
  .flex-wrap {
    flex-wrap: wrap !important;
  }
}

/* Scrolled header turns brand red; keep the red "Free Audit" button visible against it. */
header.scrolled .header-inner > a.btn {
  background-color: #141414 !important;
  border-color: #141414 !important;
}

/* ---------- Ratings and guarantee badge (Font Awesome; replaces hotlinked template images) ---------- */
.star-rating {
  display: block;
  margin-top: 0;
  color: #f5b301;
  font-size: 1.6rem;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #e43c1b;
  color: #ffffff;
  font-size: 3.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.guarantee-badge i {
  color: #ffffff;
}

/* Sections with .text-light colour every descendant white; keep the stars gold. */
.star-rating i {
  color: #f5b301;
}
