/* ============================================================
   valuweb-home.css — homepage polish on the restored baseline.
   Scoped to body.homepage. Overnight recovery pass, 17 Sep 2026.

   This file exists INSTEAD OF valuweb-task4-homepage.css and
   valuweb-task4b-homepage.css, which are no longer linked.

   Every rule below addresses a defect measured on the restored
   baseline. No commercial claim, price, limit or link is changed.
   ============================================================ */

/* ---------- C. Hero: breathing room ----------
   Measured: hero benefit row bottom 647px, trust strip top 647px.
   Zero gap — the row was touching the strip. */
body.homepage .hero-inner {
  padding-bottom: 30px !important;
}

body.homepage .hero-reassurance-row {
  margin-top: 18px;
  margin-bottom: 0;
}

/* ---------- C. Trust strip: actual separation ----------
   Measured: spans ran edge to edge (787-787, 936-936), reading as
   "NVMe storageLiteSpeed performance". */
body.homepage .hero-trust-strip .hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  margin: 0 auto;
}

body.homepage .hero-trust-strip .hero-trust span {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  white-space: nowrap;
}

body.homepage .hero-trust-strip .hero-trust span + span {
  border-left: 1px solid rgba(125, 255, 176, 0.22);
}

/* ---------- E. Repetition ----------
   The "Straightforward Irish hosting — the toolkit already in the
   plan" section restates SSL / email / backups / cPanel / domain,
   all of which appear elsewhere. 476px desktop, 736px mobile.
   Hidden rather than deleted so it is one line to restore. */
body.homepage .feature-strip-section {
  display: none !important;
}

/* ---------- D. Plan cards: remove dead space ----------
   Visual presentation only. Prices, names and links untouched. */
body.homepage .packages-section {
  padding: 56px 0 52px !important;
}

body.homepage .packages-section .section-heading {
  margin-bottom: 22px;
}

body.homepage .home-plan-teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

body.homepage .home-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0 !important;
  padding: 22px 22px 20px !important;
}

/* ---------- H. Castle CTA: use the width ----------
   Measured: search 409px inside a 1320px inner. The parent can
   grow, so the constraint is on the control itself. */
/* The search sat at 409px despite a 620px max-width, because its
   PARENT .final-cta-copy is a shrink-to-fit flex item inside a
   1320px .final-cta-inner. Widening the parent is the actual fix. */
@media (min-width: 1200px) {
  body.homepage .final-cta-copy {
    width: min(660px, 100%) !important;
    max-width: none !important;
    flex: 0 1 auto;
  }
  body.homepage .final-cta-search {
    width: 100% !important;
    max-width: 620px !important;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  body.homepage .final-cta-copy {
    width: min(580px, 100%) !important;
    max-width: none !important;
    flex: 0 1 auto;
  }
  body.homepage .final-cta-search {
    width: 100% !important;
    max-width: 540px !important;
  }
}

/* ---------- I. Footer: compact ----------
   Measured: 583px desktop / 1204px mobile across 5 columns plus a
   legal strip plus a bottom bar. Account folds into Get started;
   every legal destination is kept. */
body.homepage .footer-top {
  padding: 34px 0 10px;
}

body.homepage .footer-top-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
  gap: 18px 32px !important;
  max-width: 1180px;
  margin: 0 auto;
}

body.homepage .footer-feature:nth-child(5) {
  display: none;
}

body.homepage .footer-feature h4 {
  margin-bottom: 8px;
}

body.homepage .footer-legal {
  padding: 10px 0;
}

body.homepage .footer-legal-inner p {
  margin: 0;
  font-size: 0.8rem;
}

body.homepage .footer-bottom {
  padding: 14px 0 18px;
}

/* The bottom bar repeated the main nav. Legal links and the cookie
   control stay; the duplicated navigation goes. */
body.homepage .footer-bottom .footer-links {
  display: none;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {
  /* C. ValuCloud must not be cut off at the hero edge, and the
     answer is not a taller hero — measured 857px against an 844px
     viewport before this pass. */
  body.homepage .hero {
    overflow: visible;
  }

  body.homepage .hero-inner {
    display: flex !important;
    flex-direction: column;
    padding-top: 22px !important;
    padding-bottom: 0 !important;
  }

  body.homepage .hero-right {
    width: 100%;
    margin: 6px auto 0;
  }

  body.homepage .hero-mascot {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: visible;
  }

  body.homepage .hero-mascot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  body.homepage .hero-reassurance-row {
    margin-top: 14px;
  }

  body.homepage .hero-trust-strip .hero-trust span {
    padding: 0 12px;
  }

  /* D. Plan cards: the 1000px packages block held three 168px
     cards. Two-line layout, price on the right. */
  body.homepage .packages-section {
    padding: 36px 0 34px !important;
  }

  body.homepage .home-plan-teaser {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 430px;
  }

  body.homepage .home-plan {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 16px 18px !important;
  }

  body.homepage .home-plan strong { grid-column: 1; }
  body.homepage .home-plan small  { grid-column: 1; }
  body.homepage .home-plan b      { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  body.homepage .home-plan em     { grid-column: 1 / -1; margin-top: 8px; }

  /* H. Castle: deliberate crop, no overlap, ordinary search. */
  body.homepage .final-cta-section {
    padding: 40px 0 46px !important;
  }

  body.homepage .final-cta-inner {
    display: block !important;
    min-height: 0 !important;
  }

  body.homepage .final-cta-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.homepage .final-cta-search {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* I. Footer: 1204px was a fifth of the page. */
  body.homepage .footer-top {
    padding: 26px 0 6px;
  }

  body.homepage .footer-top-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
  }

  body.homepage .footer-bottom {
    padding: 12px 0 16px;
  }
}

@media (max-width: 520px) {
  body.homepage .hero-mascot {
    max-width: 260px;
  }

  body.homepage .hero-trust-strip .hero-trust span {
    padding: 0 10px;
    font-size: 0.82rem;
  }

  body.homepage .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
