/* ==========================================================================
   Baby Safety Inc. — Homepage
   Only the sections unique to index.html. The header, page banner, statement
   band, connect band and footer all come from site.css.
   1. hero      2. who we are  3. safe-o-kid  4. guides
   5. presence  6. responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — a taller variant of the shared page banner
   -------------------------------------------------------------------------- */
/* Slightly oversized and left-anchored so the subject sits right of centre,
   leaving the left third clear for the headline. */
.home-hero .page-banner-media img {
  width: 112%;
  object-position: 50% 24%;
}

.home-hero .page-banner-inner {
  min-height: clamp(430px, 36.8vw, 530px);
  padding: clamp(72px, 7.2vw, 104px) 0 clamp(24px, 2.1vw, 30px);
}

.home-hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.7rem);
}

.home-hero .page-banner-lead {
  margin-top: 24px;
  max-width: 515px;
  font-size: clamp(0.9rem, 1.08vw, 0.97rem);
  line-height: 1.68;
}

.home-hero .btn-row {
  margin-top: 30px;
}

.home-hero-tags {
  margin-top: 26px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.home-hero-tags span {
  margin-inline: 4px;
  color: #9bb0c2;
}

.home-hero .page-banner-script {
  margin-top: -32px;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.16;
}

/* --------------------------------------------------------------------------
   2. Who we are
   -------------------------------------------------------------------------- */
.home-who {
  padding: clamp(40px, 3.3vw, 48px) 0 clamp(34px, 2.6vw, 38px);
}

.home-who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr) minmax(0, 0.5fr);
  gap: clamp(28px, 3vw, 44px);
  align-items: center;
}

.home-who-copy h2 {
  font-size: clamp(1.6rem, 2.36vw, 2.125rem);
  line-height: 1.22;
}

.home-who-copy .body-copy {
  margin-top: 18px;
  max-width: 30rem;
  font-size: 15px;
}

.home-who-copy .btn-row {
  margin-top: 26px;
}

.home-who-copy .btn {
  min-height: 46px;
  border-radius: 6px;
}

.home-who .shield-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.home-who .shield-outline {
  width: min(100%, 415px);
  height: auto;
}

.home-who .shield-words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: clamp(1.85rem, 3.9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.home-who .shield-words-alt {
  color: #9db2c6;
}

.who-pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.2vw, 46px);
  padding-left: clamp(20px, 2.8vw, 40px);
  border-left: 1px solid var(--page-rule);
}

.who-pillars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.who-pillars .icon {
  width: 30px;
  height: 30px;
}

.who-pillars span {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

/* --------------------------------------------------------------------------
   3. Safe-O-Kid band
   -------------------------------------------------------------------------- */
.home-brand {
  background: var(--navy-dark);
  color: var(--white);
  padding: clamp(36px, 3.2vw, 46px) 0 clamp(26px, 2.4vw, 34px);
}

.home-brand-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  margin-bottom: clamp(24px, 2.1vw, 30px);
}

.home-brand-intro h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.875rem);
  color: var(--white);
}

.home-brand-intro p {
  margin-top: 14px;
  max-width: 33rem;
  font-size: 15px;
  line-height: 1.62;
  color: #b7cadb;
}

.home-brand .btn-light {
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 6px;
}

.home-brand-mark {
  text-align: right;
}

.home-brand-mark .sok-mark {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

.home-brand-mark .sok-mark sup {
  font-size: 0.36em;
  top: -0.9em;
}

.home-brand-mark .sok-tagline {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: #a9bdcf;
}

.home-brand-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.home-brand .product-card {
  border-radius: 14px;
  box-shadow: none;
}

.home-brand .product-card-media {
  height: clamp(110px, 10.5vw, 151px);
}

.home-brand .product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-brand .product-card-body {
  padding: 14px 16px 16px;
}

.home-brand .product-card-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
}

.home-brand .product-card-body h3 .icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-brand .product-card-body p {
  margin-top: 8px;
  font-size: 12.8px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   4. What guides us
   -------------------------------------------------------------------------- */
.home-guides {
  padding: clamp(38px, 3.3vw, 48px) 0 clamp(32px, 2.8vw, 40px);
}

.home-guides-intro {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.home-guides-intro h2 {
  font-size: clamp(1.5rem, 2.57vw, 2.3125rem);
  line-height: 1.2;
}

.home-guides-intro p {
  max-width: 810px;
  margin: 12px auto 0;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--text-body);
}

.home-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
  margin-top: clamp(24px, 2.1vw, 30px);
}

.guide-item {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fafc 0%, #fdfeff 100%);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.guide-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--navy);
}

.guide-item:hover {
  transform: translateY(-3px);
  border-color: #d6e2ec;
  box-shadow: var(--shadow-soft);
}

.guide-num {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e6edf5;
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e9f1f8;
}

.guide-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.home-guides-grid h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 800;
}

.home-guides-grid p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   5. Global presence
   -------------------------------------------------------------------------- */
.home-presence {
  background: var(--page-tint);
  padding: clamp(22px, 1.9vw, 28px) 0;
}

.home-presence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 0.78fr);
  gap: clamp(20px, 2.2vw, 32px);
  align-items: center;
}

.home-presence-copy h2 {
  font-size: clamp(1.5rem, 2.22vw, 2rem);
  line-height: 1.2;
}

.home-presence-copy p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--text-body);
}

.home-presence-map img {
  width: 100%;
  height: auto;
}

.home-presence-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-presence .address-card {
  padding: 12px 18px 14px;
  border-radius: 12px;
}

.home-presence .address-card address {
  font-size: 12.5px;
  line-height: 1.52;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .home-brand-top {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 26px;
  }

  .home-brand-mark {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .home-brand .btn-light {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 1024px) {
  .home-hero .page-banner-media img {
    object-position: 58% 22%;
  }

  .home-who-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 40px;
  }

  .who-pillars {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-around;
    padding-left: 0;
    padding-top: 34px;
    border-left: 0;
    border-top: 1px solid var(--page-rule);
  }

  .who-pillars li {
    flex: 1;
  }

  .home-brand-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-presence-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* width, not auto margins: auto margins would drop the grid stretch and
     collapse the SVG to its default replaced-element size. */
  .home-presence-map {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, 620px);
    justify-self: center;
  }

  .home-presence-cards {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 860px) {
  .home-hero .page-banner-inner {
    padding: 56px 0 44px;
  }

  .home-hero .page-banner-script {
    margin: 0 0 20px;
  }

  .home-who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-who .shield-panel {
    min-height: 300px;
  }

  .home-brand-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-brand-mark,
  .home-brand .btn-light {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .home-guides-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .home-presence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-presence-map,
  .home-presence-cards {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .home-brand-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .who-pillars {
    flex-direction: column;
    gap: 28px;
  }
}
