/* ===========================
   FEATURES PAGE LAYOUT
=========================== */

body.features-page {
    background: #ffffff;
  }
  

 /* ===========================
   EMOTIONAL SECTION
=========================== */

.emotional-section {
    padding: 5rem 2rem 4rem;
  }
  
  .emotional-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header */
  .emotional-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
  }
  
  .emotional-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
  }
  
  .emotional-header p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 750px;
    margin: 0 auto;
  }
  
  /* Grid */
  .emotional-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
  }
  
  /* Cards */
  .emotional-card {
    background: var(--white);
    border: 1px solid #d9e8e0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    min-width: 0;
  }
  
 /* .emotional-card img {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    object-fit: contain;
  }*/

  .emotional-image {
    height: 250px; /* or 320px if you want extra breathing room */
    width: 100%;
    display: flex;
    align-items: flex-start; /* or center */
    justify-content: center;
    overflow: hidden;
    margin-bottom: 24px;
  }
  
  .emotional-image img {
    max-height: 100%;
    max-width: 100%;
    width:auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  

  .emotional-card img:hover {
    transform: none;
    transition: none;
  }
  
  .emotional-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--dark-green);
  }
  
  .emotional-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
  }
  
  /* Mobile */
  @media (max-width: 800px) {
    .emotional-grid {
      grid-template-columns: 1fr;
    }
  
    .emotional-header h2 {
      font-size: 1.6rem;
    }
  
    .emotional-header p {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 800px) {
    /* tighten section spacing */
    .emotional-section { padding: 2.5rem 1rem 2rem; }
  
    /* reduce header bottom space */
    .emotional-header { margin-bottom: 1.5rem; }
    .emotional-header p { line-height: 1.45; }
  
    /* make cards more compact */
    .emotional-card {
      padding: 14px;               /* was 24px */
      gap: 0.35rem;                /* keep internal items close */
      align-items: flex-start;     /* ensure content groups at top */
    }
  
    /* reduce image block vertical footprint */
    .emotional-image {
      height: 160px;               /* was 250px */
      margin-bottom: 12px;         /* was 24px */
    }
  
    /* tighten title / body spacing */
    .emotional-card h3 { margin: 0 0 6px; line-height: 1.12; }
    .emotional-card p  { margin: 0; line-height: 1.35; font-size: 0.95rem; }
  
    /* if grid gap is large on mobile, reduce it */
    .emotional-grid { gap: 16px; }
  }
  
  
  
  /* ---------------------------
     CTA SECTION
  --------------------------- */
  
  .cta {
    text-align: center;
    padding: 5rem 2rem;
    background: #f7faf9;
    border-top: 1px solid #e5ecea;
    border-bottom: 1px solid #e5ecea;
  }
  
  .cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .download-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  
  
  /* ---------------------------
     FEATURE SECTIONS
  --------------------------- */
  
  .feature {
    padding: 6rem 2rem;
  }
  
  .feature-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
  }
  
  /* Mobile stacking */
  @media (max-width: 900px) {
    .feature-inner {
      flex-direction: column;
      text-align: left;
    }
  
  }
  
  
  /* ---------------------------
     FEATURE IMAGES (3-UP)
  --------------------------- */
  
  .feature-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    flex: 1;
  }
  
  .feature-images img {
    width: auto;
    max-height: 420px;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .feature-images img.featured {
    max-height: 540px;
    transform: scale(1.05);
    opacity: 1;
    z-index: 2;
  }
  
  /* Hover polish */
  .feature-images img:hover {
    transform: scale(1.03);
    opacity: 1;
  }
  
  /* Mobile: collapse into carousel 
  @media (max-width: 900px) {

    .feature-images {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
  }

  .feature-images img { 
    max-height: 420px;
    max-width: 80vw;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    scroll-snap-align: center; 
    border-radius: 12px; 
    order: 2;
    transform: none;
    opacity: 1;
    z-index: auto;
    align-items: center;
  }

    .feature-images img.featured {
    order:1;
}
}*/

@media (max-width: 900px) {
    .feature-images {
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      gap: 1rem;
      padding: 1rem;
      box-sizing: border-box;
      align-items: center;
      justify-content: flex-start;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: 1rem;
      touch-action: pan-x;        /* ensures horizontal pan on some browsers */
      overflow-y: hidden;         /* avoid vertical bounce that can block horizontal scroll */
    }
  
    .feature-images img {
      flex: 0 0 auto;
      width: auto;
      max-width: min(72%, 300px);
      max-height: 360px;
      height: auto;
      display: block;
      scroll-snap-align: center;
      border-radius: 12px;
      order: 2;
      transform: none;
      z-index: auto;
      opacity: 1;
    }
  
    .feature-images img.featured {
      order: 1;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
      outline: 2px solid rgba(0,0,0,0.02);
      scroll-snap-stop: always;   /* keep featured snap stable when focused */
    }
  
    /* optional small peek spacing */
    .feature-images img + img { margin-left: 0.5rem; }
  
    .feature-inner { 
        padding-top: 0.3rem; /* was 1rem -> now 30% */ 
        margin-top: 0; /* remove any extra margin pushing it down */
        gap: 0.45rem;
    }

    /* Stack each feature vertically and force images first */
    .feature-inner {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
  
    .feature-inner .feature-images {
      order: 1;
      width: 100%;
    }
  
    .feature-inner .feature-content {
      order: 2;
      width: 100%;
    }
  
    /* Ensure alternate sections also stack */
    .feature.alternate .feature-inner {
      flex-direction: column;
    }

   .feature, 
   section.feature {
    padding-top: 0.3rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
   }

  
  /* Force non-feature images to be at least that tall */
  .feature-images img:not(.featured) {
    min-height: 360px;        /* match featured height; adjust as needed */
    height: auto;             /* preserve aspect ratio */
    width: auto;
    display: block;
    object-fit: contain;      /* keeps whole image visible without cropping */
  }

  @media (max-width: 900px) {
    /* single source of truth for mobile visual height */
    :root { --feature-img-h: 360px; } /* adjust to taste: 320px / 360px / 400px */
  
    /* container tweaks */
    .feature-images {
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      gap: 1rem;
      padding: 0.3rem 1rem; /* reduced top/bottom padding */
      box-sizing: border-box;
      align-items: center;
      justify-content: flex-start;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: 1rem;
      touch-action: pan-x;
      overflow-y: hidden;
    }
  
    /* Featured image defines the visual height */
    .feature-images img.featured {
      height: var(--feature-img-h);
      width: auto;
      max-width: min(72%, 300px);
      object-fit: contain;
      display: block;
      border-radius: 12px;
      order: 1;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
  
    /* Non-feature images match that height exactly (keeps aspect ratio) */
    .feature-images img:not(.featured) {
      height: var(--feature-img-h);   /* explicit height so object-fit works */
      width: auto;
      object-fit: contain;            /* preserves whole image without cropping */
      display: block;
      border-radius: 12px;
      order: 2;
    }
  
    /* If you prefer slight peeking of next slide */
    .feature-images img + img { margin-left: 0.5rem; }
  
    /* Stack and spacing */
    .feature-inner {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;                   /* reduced gap between images and content */
      padding-top: 0.3rem;
      margin-top: 0;
    }
  
    /* Ensure section wrapper doesn't add extra top space */
    .feature, section.feature {
      padding-top: 0.3rem;
      margin-top: 0;
      padding-bottom: 0.75rem;
    }
  }
  
  
  
  }
  

  
  /* ---------------------------
     FEATURE CONTENT
  --------------------------- */
  
  .feature-content {
    flex: 1;
  }
  
  .feature-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5
    rem;
    text-align: left;
    color: var(--mint);
  }
  
  
  /* ============================================
     DETAILED FEATURE TILES — MATCH HOME CARDS
     (No HTML changes required)
  ============================================ */
  
  .feature-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 32px;
    list-style: none;
    padding: 0;
  }
  
  .feature-tiles li {
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #d9e8e0;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
  }
  
  .feature-tiles li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  
  .feature-tiles strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-green);
    font-size: 1rem;
  }
  
  .feature-tiles li p,
  .feature-tiles li {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  
  /* ---------------------------
     LEARN MORE LINK
  --------------------------- */
  
  .learn-more {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: var(--dark-green);
    text-decoration: none;
  }
  
  .learn-more:hover {
    text-decoration: underline;
  }
  
  
  /* ---------------------------
     SPACING TWEAKS
  --------------------------- 
  
  .feature + .feature {
    border-top: 1px solid #eef3f2;
  }
  
  .feature:last-of-type {
    padding-bottom: 8rem;
  }
  */
