/* Focused conversion/mobile polish for FredsWeb.com. */

.hero-actions--primary {
  width: min(100%, 38rem);
  margin: 1.15rem auto 1.35rem;
}

.hero-actions--primary .button {
  min-height: 3.5rem;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.mobile-call {
  display: none;
}

.analytics-choice {
  right: 0.75rem;
  bottom: 0.75rem;
  left: auto;
  width: min(25rem, calc(100% - 1.5rem));
  padding: 0.7rem;
  border: 1px solid rgba(246, 196, 69, 0.9);
  border-radius: 16px;
  background: rgba(4, 20, 52, 0.96);
  box-shadow: 0 12px 36px rgba(0, 14, 41, 0.38);
  backdrop-filter: blur(14px);
}

.analytics-choice-copy {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
}

.analytics-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--gold);
  color: #061b46;
  font-size: 0.82rem;
  font-weight: 900;
}

.analytics-choice p {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.32;
}

.analytics-choice p strong,
.analytics-choice p span {
  display: block;
}

.analytics-choice p strong {
  margin-bottom: 0.06rem;
  font-size: 0.82rem;
}

.analytics-choice p span {
  color: var(--muted);
}

.analytics-choice a {
  display: inline-block;
  margin-top: 0.14rem;
  color: var(--gold);
  font-weight: 700;
}

.analytics-choice-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  gap: 0.4rem !important;
  margin-top: 0.5rem;
}

.analytics-choice button {
  min-height: 44px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.analytics-choice button[data-choice="accepted"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #061b46;
}

.analytics-choice button[data-choice="declined"] {
  border-color: rgba(218, 233, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

/* Premium homepage pass: stronger hierarchy, proof, and presentation. */
.page-home .hero-copy {
  position: relative;
}

.hero-kicker {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(218, 233, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 31, 76, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-kicker-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 196, 69, 0.12);
}

.hero-video-shell {
  width: min(100%, 34rem);
  margin: 0.2rem auto 0;
  padding: 0.55rem;
  border: 1px solid rgba(218, 233, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(3, 20, 52, 0.66);
  box-shadow: 0 24px 70px rgba(0, 14, 41, 0.28);
}

.hero-video-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-video-label strong {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-video-shell .hero-video-wrap {
  margin-top: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 14, 41, 0.3);
}

.home-proof-strip {
  position: relative;
  margin-top: 0.5rem;
}

.home-proof-strip::before {
  content: "";
  position: absolute;
  inset: 0.75rem 6% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 69, 0.6), transparent);
}

.home-proof-heading {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.home-proof-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(218, 233, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(5, 28, 67, 0.76);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 14, 41, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-proof-card:hover,
.home-proof-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(246, 196, 69, 0.48);
  box-shadow: 0 24px 58px rgba(0, 14, 41, 0.28);
}

.home-proof-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #071c43;
}

.home-proof-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(4, 20, 52, 0.7));
  pointer-events: none;
}

.home-proof-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.home-proof-card:hover .home-proof-media img {
  transform: scale(1.025);
}

.home-proof-copy {
  padding: 1rem;
}

.home-proof-copy h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.12rem;
}

.home-proof-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-proof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(246, 196, 69, 0.42);
  border-radius: 999px;
  background: rgba(246, 196, 69, 0.08);
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-proof-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
}

.home-proof-card--process {
  justify-content: center;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 20%, rgba(52, 132, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(5, 28, 67, 0.76);
}

.home-proof-process-icon {
  width: 3rem;
  height: 3rem;
  margin: 1.1rem 1rem 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 196, 69, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #ffe58c);
  color: #061b46;
  font-family: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.45rem;
  box-shadow: 0 12px 28px rgba(0, 14, 41, 0.25);
}

.page-home .service-blurb-grid article,
.page-home .industry-grid span,
.page-home .final-cta {
  box-shadow: 0 16px 45px rgba(0, 14, 41, 0.12);
}

@media (max-width: 767px) {
  .site-header .nav {
    width: min(100% - 0.75rem, var(--max));
    gap: 0.4rem;
    padding: 0.45rem 0;
  }

  .site-header .brand {
    width: min(31vw, 8.2rem);
    min-width: 6.6rem;
  }

  .site-header .brand img {
    height: 3.4rem;
    max-height: 3.4rem;
  }

  .site-header .brand-tagline {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.32rem 0.55rem;
    border-left: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(246, 196, 69, 0.22);
    color: var(--gold);
    font-family: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(0.6rem, 2.5vw, 0.76rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    align-items: center;
    justify-content: center;
  }

  .site-header .brand-tagline > span:first-child {
    display: inline-block;
    max-width: 7.6rem;
  }

  .site-header .brand-tagline .tagline-secondary {
    display: none;
  }

  .mobile-nav-actions {
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .mobile-call,
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.35rem;
    min-width: 5.35rem;
    height: 2.85rem;
    min-height: 2.85rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-call {
    border: 1px solid rgba(246, 196, 69, 0.95);
    background: var(--gold);
    color: #061b46;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 7px 18px rgba(0, 14, 41, 0.2);
  }

  .nav-toggle {
    border: 1px solid rgba(218, 233, 255, 0.38);
    background:
      linear-gradient(180deg, rgba(95, 178, 255, 0.48), rgba(16, 70, 165, 0.62)),
      rgba(8, 39, 91, 0.84);
    color: var(--white);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 7px 18px rgba(0, 14, 41, 0.2);
  }

  .nav-toggle-label {
    letter-spacing: 0;
  }

  .nav-toggle-caret {
    display: none;
  }

  .page-home .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-kicker {
    display: flex;
    width: min(100%, 24rem);
    margin-bottom: 0.8rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.67rem;
    line-height: 1.25;
    text-align: left;
  }

  .page-home #hero-title {
    margin-bottom: 0.85rem;
  }

  .page-home .hero-subhead {
    margin-bottom: 0;
  }

  .hero-actions--primary {
    gap: 0.6rem;
    margin: 1rem auto 1.15rem;
  }

  .hero-actions--primary .button {
    min-height: 3.2rem;
    padding: 0.78rem 1rem;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .hero-video-shell {
    width: min(100%, 31rem);
    padding: 0.45rem;
    border-radius: 22px;
  }

  .hero-video-label {
    padding: 0.15rem 0.2rem 0.45rem;
    font-size: 0.66rem;
  }

  .hero-video-label strong {
    font-size: 0.67rem;
  }

  .hero-video-shell .hero-video-wrap {
    border-radius: 18px;
  }

  .home-proof-strip {
    padding-top: 2.25rem;
  }

  .home-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .home-proof-card {
    border-radius: 18px;
  }

  .home-proof-copy {
    padding: 0.9rem;
  }

  .home-proof-copy h3 {
    font-size: 1rem;
  }

  .home-proof-copy p {
    font-size: 0.82rem;
  }

  .page-home .hero-video-wrap {
    margin-top: 0;
    border-radius: 18px;
  }

  .analytics-choice {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
  }

  .analytics-choice-copy {
    gap: 0.45rem;
  }

  .analytics-choice-icon {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.7rem;
  }

  .analytics-choice p {
    font-size: 0.69rem;
    line-height: 1.28;
  }

  .analytics-choice p strong {
    font-size: 0.76rem;
  }

  .analytics-choice-actions {
    margin-top: 0.42rem;
  }

  .analytics-choice button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0.34rem 0.5rem;
    font-size: 0.71rem;
  }
}

@media (max-width: 430px) {
  .site-header .nav {
    gap: 0.28rem;
  }

  .site-header .brand {
    width: 6.5rem;
    min-width: 6.5rem;
  }

  .site-header .brand-tagline {
    padding-inline: 0.2rem;
    font-size: 0.61rem;
  }

  .mobile-nav-actions {
    gap: 0.28rem;
  }

  .mobile-call,
  .nav-toggle {
    width: 4.55rem;
    min-width: 4.55rem;
    height: 2.7rem;
    min-height: 2.7rem;
    padding-inline: 0.45rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 375px) {
  .site-header .brand {
    width: 6rem;
    min-width: 6rem;
  }

  .site-header .brand-tagline {
    font-size: 0.56rem;
  }

  .mobile-call,
  .nav-toggle {
    width: 4.15rem;
    min-width: 4.15rem;
    font-size: 0.63rem;
  }
}

@media (min-width: 768px) {
  .hero-kicker {
    margin-left: 0;
  }

  .hero-actions--primary {
    flex-direction: row;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-actions--primary .button {
    width: auto;
  }

  .hero-video-shell {
    margin-left: 0;
  }
}

@media (max-width: 920px) and (min-width: 768px) {
  .home-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-proof-card--process {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .mobile-nav-actions {
    display: none;
  }
}
