/*
============================================================
ATLAS MICRO - MOBILE STYLES
Screen size: 720px and narrower
============================================================

MOBILE HERO ORDER
1. Headline / value statement
2. Hero slideshow
3. Contact Us / FAQs buttons

The <picture> elements in index.html automatically load the
mobile hero images at this breakpoint.

BREAKPOINTS IN THIS FILE
- 720px and below : main mobile layout
- 600px and below : contact modal refinement
- 390px and below : small-phone refinement
============================================================
*/


/* ============================================================
   MAIN MOBILE LAYOUT
   720px and narrower
   ============================================================ */

@media (max-width: 720px) {

  /* ----------------------------------------------------------
     PAGE / CONTAINER
     ---------------------------------------------------------- */

  .container {
    width: calc(100% - 24px);
  }

  section {
    padding: 44px 0;
  }


  /* ----------------------------------------------------------
     HEADER
     ---------------------------------------------------------- */

  header {
    position: sticky;
  }

  .header-inner {
    min-height: 64px;
    height: 64px;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
    gap: 8px;
    font-size: 21px;
  }

  .brand img,
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 21px;
  }

  .nav {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .nav a {
    padding: 8px;
    font-size: 12px;
  }

  .nav .nav-contact {
    padding: 9px 10px;
  }

  .contact-btn {
    text-align: center;
  }


  /* ----------------------------------------------------------
     HERO - MOBILE FLOW
     Text -> Slideshow -> Buttons
     ---------------------------------------------------------- */

  .hero {
    padding: 24px 0 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "actions";
    gap: 20px;
  }

  .hero-copy {
    grid-area: copy;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.05;
  }

  .hero-copy p.lead,
  .hero-summary {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-copy .key-line,
  .key-line {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-local {
    margin: 0;
    text-align: left;
    font-size: 12px;
  }

  .category-line {
    gap: 7px 10px;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .category-line span::after {
    margin-left: 10px;
  }


  /* ----------------------------------------------------------
     HERO SLIDESHOW
     ---------------------------------------------------------- */

  .hero-media {
    grid-area: media;
    width: 100%;
    margin: 0;
    max-height: none;
    border-radius: 16px;
  }

  /* Hide desktop arrows on mobile.
     Mobile users can swipe or use the dots. */
  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 9px;
  }


  /* ----------------------------------------------------------
     HERO ACTION BUTTONS
     ---------------------------------------------------------- */

  .hero-actions {
    gap: 9px;
    justify-content: flex-start;
  }

  .hero-actions-below {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    justify-content: stretch;
    margin: 0;
  }

  .hero-actions .btn,
  .hero-actions-below .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }


  /* ----------------------------------------------------------
     SECTION TRANSITION / HEADINGS
     ---------------------------------------------------------- */

  .section-cue {
    min-height: 40px;
    padding: 0 14px;
    text-align: center;
    font-size: 11px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h2,
  .visual-copy h2 {
    font-size: 34px;
  }

  .section-head p,
  .visual-copy > p:not(.kicker) {
    font-size: 15px;
  }


  /* ----------------------------------------------------------
     LOCATION / SPACES CAROUSEL
     ---------------------------------------------------------- */

  .space-controls {
    display: none;
  }

  .space-track {
    grid-auto-columns: 84vw;
    gap: 12px;
    padding: 2px 14px 12px 0;
    margin-right: -14px;
    scroll-snap-type: x mandatory;
  }

  .space-card {
    border-radius: 14px;
  }

  .space-card img {
    aspect-ratio: 4 / 3;
  }

  .space-card p {
    min-height: unset;
  }

  .space-body {
    padding: 13px 15px 15px;
  }

  .space-kicker {
    font-size: 10px;
  }

  .space-card h3 {
    font-size: 22px;
  }


  /* ----------------------------------------------------------
     VISUAL CONTENT SECTIONS
     Modern Shopping / Product Variety
     ---------------------------------------------------------- */

  .visual-section {
    gap: 22px;
  }

  .responsive-visual {
    width: 100%;
    aspect-ratio: 5 / 6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }

  .responsive-visual picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  .responsive-visual img {
    width: 94%;
    height: 94%;
    object-fit: contain;
    object-position: center;
  }

  #modern-shopping .visual-copy,
  #variety .visual-copy {
    text-align: left;
  }

  .mini-points {
    gap: 7px;
    margin-top: 16px;
  }

  .mini-points span {
    padding: 7px 9px;
    font-size: 11px;
  }


  /* ----------------------------------------------------------
     HOW IT WORKS
     ---------------------------------------------------------- */

  .how-card {
    padding: 22px;
  }


  /* ----------------------------------------------------------
     CONTACT
     ---------------------------------------------------------- */

  .contact-panel {
    padding: 26px;
  }

  .clean-contact {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .email-card strong {
    font-size: 17px;
    overflow-wrap: anywhere;
  }


  /* ----------------------------------------------------------
     FOOTER
     ---------------------------------------------------------- */

  .footer-row {
    flex-direction: column;
  }
}


/* ============================================================
   SMALL MOBILE MODAL
   600px and narrower
   ============================================================ */

@media (max-width: 600px) {

  .contact-modal {
    padding: 12px;
  }

  .contact-modal-card {
    padding: 26px 18px 22px;
    border-radius: 20px;
  }

  .contact-modal-card h2 {
    font-size: 26px;
  }

  .contact-choice {
    padding: 14px;
  }
}


/* ============================================================
   SMALL PHONES
   390px and narrower
   ============================================================ */

@media (max-width: 390px) {

  .brand-name,
  .brand span {
    font-size: 19px;
  }

  /* Hide FAQs in the top navigation to preserve header space. */
  .nav a:first-child {
    display: none;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-actions-below {
    grid-template-columns: 1fr 1fr;
  }
}