/* =========================================================
   RANK YOU HIGHER — WEB DESIGN LANDING PAGE
   RESPONSIVE OVERRIDES
   Breakpoints: <=1199 desktop-small | <=991 tablet | <=767 phablet | <=575 mobile
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --------------------------------DESKTOP SMALL---------------------------------- */
@media only screen and (max-width: 1199px) {
  .lp-section { padding: 76px 0; }

  .intro-panel { padding: 48px 34px; }

  .cta-band { padding: 44px 36px; }

  .reason-num { min-width: 58px; }
}

/* --------------------------------TABLET---------------------------------- */
@media only screen and (max-width: 991px) {
  :root { --nav-offset: 96px; }

  section { overflow-x: hidden !important; }

  .lp-section { padding: 62px 0; }
  .lp-section-sm { padding: 46px 0; }

  /* Hero stacks: copy first, visual below */
  .lp-hero { padding: 46px 0 60px; }

  .lp-hero::after {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -140px;
  }

  .hero-lead { max-width: 100%; }

  .hero-strip {
    margin-top: 34px;
    padding-top: 24px;
  }

  .glow-orange::before,
  .glow-blue::before {
    width: 340px;
    height: 340px;
    filter: blur(90px);
  }

  .intro-panel {
    padding: 40px 28px;
    border-radius: 24px;
  }

  /* Goals mosaic: the tall feature tile no longer needs to stretch */
  .goal-feature-media { padding: 22px 22px 0; }
  .goal-feature-body { padding: 22px 24px 26px; }

  .goal-icon-card img { width: 44%; }

  .goal-media { min-height: 220px; }

  /* Why-us visual stops sticking once stacked */
  .whyus-sticky {
    position: static !important;
    top: auto !important;
    margin-bottom: 34px;
  }

  .cta-band {
    padding: 38px 28px;
    border-radius: 26px;
    text-align: center;
  }

  .cta-band .cta-actions {
    justify-content: center;
    margin-top: 26px;
  }

  .cta-contact-wrap { justify-content: center; }
}

/* --------------------------------PHABLET---------------------------------- */
@media only screen and (max-width: 767px) {
  .lp-section { padding: 52px 0; }

  .section-heading br,
  .hero-headline br,
  .cta-title br,
  .section-lead br { display: none; }

  .hero-float-badge {
    left: 12px;
    bottom: 12px;
    padding: 8px 14px;
    font-size: 11.5px;
  }

  .hero-stat-label { font-size: 11px; letter-spacing: 0.8px; }

  .advantage-card { padding: 26px 22px; }

  .advantage-index {
    top: 18px;
    right: 18px;
    font-size: 2.1rem;
  }

  .goal-tile { padding: 26px 22px; }

  .goal-media { min-height: 180px; }

  .method-card { padding: 26px 22px 28px; }

  .method-step {
    bottom: 16px;
    right: 20px;
    font-size: 2.4rem;
  }

  /* Reason stream: number sits above the copy */
  .reason-row {
    flex-direction: column;
    gap: 10px;
    padding: 24px 0;
  }

  .reason-row:hover { transform: translateX(4px); }

  .reason-num { min-width: auto; }

  .whyus-visual-body { padding: 24px 22px 28px; }

  .footer-brochure-card { max-width: 100% !important; }
}

/* --------------------------------MOBILE---------------------------------- */
@media only screen and (max-width: 575px) {
  :root { --nav-offset: 88px; }

  .lp-section { padding: 44px 0; }
  .lp-section-sm { padding: 36px 0; }

  .lp-hero { padding: 34px 0 48px; }

  .hero-headline { line-height: 1.18; }

  .hero-lead { font-size: 15px; }

  .section-lead { font-size: 14.5px; }

  .section-tag {
    font-size: 11px;
    letter-spacing: 1.8px;
    gap: 10px;
  }

  .section-tag::after,
  .section-tag.centered::before { width: 26px; }

  .intro-panel {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .hero-visual { border-radius: 20px; }

  .advantage-card,
  .goal-tile,
  .goal-icon-card,
  .method-card {
    border-radius: 18px;
  }

  .advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .advantage-icon img { width: 27px; height: 27px; }

  .advantage-title { font-size: 15.5px; }

  .goal-title { font-size: 1.15rem; }

  .goal-icon-card img { width: 38%; }

  .method-card-media img { max-height: 52px; }

  .method-title { font-size: 1.08rem; }

  .cta-band {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .cta-contact-chip {
    font-size: 12.5px;
    padding: 9px 15px;
  }

  /* Keep the floating buttons clear of each other on small screens */
  .back-to-top {
    left: 16px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }

  /* ...and clear of the copyright line they would otherwise sit on top of */
  .footer-copyright {
    padding-bottom: 76px !important;
  }
}

/* =========================================================
   HERO LEAD FORM — RESPONSIVE
   ========================================================= */
@media only screen and (max-width: 991px) {
  /* Stacked hero: the form is the conversion goal, so give it breathing
     room and keep it comfortably reachable under the copy. */
  .lead-card {
    padding: 28px 24px 26px;
    border-radius: 22px;
  }

  .lead-card-head { margin-bottom: 18px; }
}

@media only screen and (max-width: 575px) {
  .lead-card {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }

  .lead-title { font-size: 1.35rem; }

  .lead-sub { font-size: 13px; }

  .lead-field { margin-bottom: 13px; }

  .lead-field label {
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  /* 16px keeps iOS from zooming the viewport when a field is focused */
  .lead-field input,
  .lead-field select {
    font-size: 16px;
    padding: 11px 13px;
    border-radius: 10px;
  }

  .lead-field select { padding-right: 36px; }

  .lead-submit {
    padding: 13px 20px;
    font-size: 14px;
  }

  .lead-turnstile-wrap { margin: 15px 0 14px; }
}
