/* =================================================================
   MOBILE + CAROUSEL CSS
   Create this as a NEW file: header-hero-mobile.css
   Then link it in landing_page.html <head>, AFTER header.css and
   log-in.css so these rules win:

     <link rel="stylesheet" href="header.css">
     <link rel="stylesheet" href="log-in.css">
     <link rel="stylesheet" href="header-hero-mobile.css">   <-- add this
   ================================================================= */


/* =========================================================
   1. HAMBURGER BUTTON + MOBILE MENU
   Hidden on desktop. Shown only inside the mobile media query.
   ========================================================= */

/* Mobile-only group holding SIGN UP + hamburger. Hidden on desktop. */
.mobile-header-actions {
  display: none;                /* hidden on desktop */
  align-items: center;
  gap: 12px;
  margin-right: 16px;
}

.mobile-signup-button {
  height: 36px;
  padding: 0 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  background-color: #202020;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hamburger-button {
  display: none;                /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-button span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1e1e1f;
  border-radius: 2px;
}

.mobile-menu {
  display: none;                 /* hidden until opened by JS */
  position: absolute;            /* overlay, not in normal flow */
  top: 55px;                     /* just below the header bar */
  right: 0px;                   /* aligned to the right edge */
  z-index: 100;                  /* above the hero content */
 
  flex-direction: column;
  
  align-items:flex-start;       /* links left-aligned inside the box */
  gap: 18px;
 
  width: auto;                   /* shrink to fit the links */
  white-space: nowrap;           /* don't wrap link text */
 
  background-color: rgba(255, 255, 255, 0.90);   /* translucent */
  -webkit-backdrop-filter: blur(6px);          /*  frosted look (Safari) */
  backdrop-filter: blur(6px);
  padding: 20px 24px;
  border: 0.5px solid #e5e0d8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* JS toggles this class on to reveal the menu */
.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 450;
  color: #131314;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: color 0.15s;
  
}

 
.mobile-menu-link:hover {
  color: #2a9d8f;                /* teal on hover, matches brand */
}


/* =========================================================
   3. MOBILE MEDIA QUERY  (phones / small screens)
   Everything above is desktop-default; these override for
   screens 768px wide and below.
   ========================================================= */

@media (max-width: 768px) {

  /* --- HEADER: show hamburger, hide desktop nav + buttons --- */
  .header {
    justify-content: space-between;   /* logo left, hamburger right */
    height: 64px;
    position: relative;
  }

  .product-detail-section,
  .log-in-button-section {
    display: none;                    /* hide desktop nav + buttons */
  }

  .mobile-header-actions {
    display: flex;                    /* show SIGN UP + hamburger */
  }

  .hamburger-button {
    display: flex;                    /* show hamburger */
    margin-right: 0;                  /* margin now lives on the group */
  }

  .logo-section {
    margin-left: 16px;
    width: auto;
    font-size: 20px;
  }

  .logo-teal {
    font-size: 24px;
  }


  /* --- HERO TEXT: smaller, tighter for mobile --- */
  .log-in-section {
    height: auto;                     /* let content decide height */
    padding-bottom: 30px;
  }

  .writeup1 {
    width: auto;
    font-size: 32px;
    padding: 0 20px 16px;
    line-height: 1.3;
  }

  .writeup2 {
    width: auto;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 24px;
  }

  .writeup-section {
    margin-top: 32px;
    margin-bottom: 24px;
  }

  /* --- HERO CAROUSEL: uniform heights + horizontal scroll --- */
  /* On mobile we override the desktop/staggered layout: all images
     become the same height and the row scrolls sideways. */

  .writeup-create-free-section {
    margin-bottom: 25px;
  }
  
  .carousel-wrap {
    max-width: 100%;
    justify-content: center;
    overflow: hidden;           /* kills the horizontal page scroll */
  }
 
  /* Row: hold just the one visible slot, centered, no overflow. */
  .row-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: auto;               /* let the single slot set the height */
    margin-left: 0;             /* remove the desktop left margin */
    
    padding-bottom: 0px;
    overflow: hidden;           /* no scrolling */
    width: 100%;
  }
 
  /* Hide the two side slots — only the middle one shows. */
  .hero-slot-1,
  .hero-slot-3 {
    display: none;
  }
 
  /* The middle slot becomes a responsive, centered image box. */
  .hero-slot-2 {
    width: 80%;                 /* fits the screen with side room for arrows */
    max-width: 320px;           /* don't get huge on tablets */
    height: auto;               /* height follows the image aspect ratio */
    aspect-ratio: 1 /1 ;        /* portrait shape; tweak to your photos */
    margin: 0 0px;              /* small gap between arrows and image */
  }
 
  /* Arrows sit snug beside the single image. */
  .carousel-arrow {
    padding: 0 0px;
    font-size: 40px;            /* plain grey chevron, sized for mobile */
    flex-shrink: 0;
  }

  .hero-theme-nudge {
    margin-top: 10px;
  }

}