@media (max-width: 920px){
  body:has(.contact-hero) .main-nav{
    max-width: 100%;
    overflow: visible;
  }
  body:has(.contact-hero) .main-nav ul{
    display: flex;
    flex-wrap: wrap;            /* wrap instead of scroll */
    justify-content: center;    /* center the pills */
    gap: 8px 10px;
    padding: 8px 10px;
    width: 100%;
  }

  /* neutralize any scrollbar-hiding rules from nav.css on this page */
  body:has(.contact-hero) .main-nav ul::-webkit-scrollbar{ display: initial; }
  body:has(.contact-hero) .main-nav ul{ scrollbar-width: auto; }
}

/* =========================
   Home (mobile-first)
   ========================= */

/* Section wrapper */
.hero {
  background: linear-gradient(135deg, #7eb7b3, #e4f4f2);
  padding: 28px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.home-hero {
  background: linear-gradient(135deg, #9DD1D1, #5D9698);
  padding: 28px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 100vh; /* fallback */
  min-height: 100svh; /* correct on iOS with dynamic bars */
}

/* --- Layout: SINGLE COLUMN by default --- */
/* Assign a grid area to the hero logo */
.hero-logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}
.hero-logo img {
  max-width: 180px;
  height: auto;
}

/* Mobile: logo first, then phone, then copy */
.hero-grid {
  grid-template-areas:
    "logo"
    "visual"
    "copy";
}

/* Assign areas so we can reorder by breakpoint without touching HTML */
.hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Headline + text */
.hero-copy h1 {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15;
  color: #0f2e2e;
  margin: 8px 0 10px;
}
.hero-copy p {
  font-size: clamp(15px, 3.8vw, 16px);
  line-height: 1.6;
  color: #123;
  margin: 8px 0;
  max-width: 56ch;
}
.muted {
  opacity: 0.9;
}
.cta:hover {
  transform: translateY(-1px);
}

/* Phone mock (fluid + crisp) */
.phone {
  width: clamp(260px, 100%, 420px); /* never wider than its parent */
  aspect-ratio: 9 / 19.5;
  background: #1f1f1f;
  border-radius: 30px;
  border: 3px solid #333;
  padding: 10px;
  display: flex;
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  flex: 1;
  border-radius: 22px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* =========================
   Desktop (≥920px) – two columns
   ========================= */
@media (min-width: 920px) {
  .container {
    margin: 15px;
    display: flex;
  }

  .column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
  }

  .hero {
    padding: 40px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 40px;
    row-gap: 0;
    grid-template-areas: "copy visual";
    align-items: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-width: 5;
    flex: 1;
  }
  .hero-visual {
    flex: 2;
    size: 80%;
  }
  .hero-copy h1 {
    font-size: clamp(30px, 4.5vw, 38px);
    margin: 12px 0 12px;
  }
  .hero-copy p {
    font-size: 16px;
  }

  .hero-logo {
    display: none;
  }
  .hero-grid {
    grid-template-areas: "copy visual";
  }


}