/* ============================================================
   JUICE JUNCTION – MOBILE OPTIMIZATION PATCH
   ============================================================
   Comprehensive mobile improvements:
   - Better spacing & section padding on small screens
   - Larger, clearer touch targets everywhere
   - Improved text legibility and contrast
   - Hero section fully optimized for mobile
   - Map/find-us 2-col → stacked properly
   - Menu cards 2×2 on mobile (not 1 column)
   - Gallery grid improvements
   - Announcement bar wraps cleanly
   - Nav condensed on mobile
   - CTA buttons full-width on mobile
   - Footer compact on mobile
   - Review cards properly sized
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   ROOT OVERRIDES — tighter spacing on small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --space-xl:  2.5rem;
    --space-2xl: 3.5rem;
    --space-lg:  1.75rem;
    --nav-height: 64px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR — wrap text on small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .announcement-bar {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
  }

  .announcement-bar__dot {
    display: none; /* Remove dot on tiny screens */
  }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — mobile-specific fixes
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__inner {
    height: var(--nav-height);
    padding-inline: 1rem;
    gap: 0.5rem;
  }

  /* Keep logo visible but a bit smaller */
  .nav__logo-icon {
    width: 36px;
    height: 36px;
  }

  .nav__logo-name {
    font-size: 1.0625rem;
  }

  .nav__logo-sub {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }

  /* Hamburger — bigger tap area */
  .nav__hamburger {
    width: 48px;
    height: 48px;
    margin-right: -0.5rem; /* Compensate edge padding */
  }
}

/* Drawer links — bigger tap targets */
.nav__drawer-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-size: 1.1875rem;
  padding: 0 1rem;
}

.nav__drawer-close {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO — full mobile/tablet overhaul
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    min-height: calc(var(--vh, 1vh) * 100 - 80px); /* Account for bottom bar */
    align-items: center; /* Center content to ensure visibility */
  }

  /* Darker overlay on mobile for better text contrast */
  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(20,14,10,0.88) 0%,
      rgba(20,14,10,0.55) 55%,
      rgba(20,14,10,0.18) 100%
    );
  }

  .hero__content {
    padding-block: var(--space-xl) 2.5rem;
    max-width: 100%;
  }

  .hero__eyebrow {
    font-size: 0.75rem;
    padding: 0.3rem 0.875rem;
    margin-bottom: 0.875rem;
  }

  .hero__title {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
    line-height: 1.18;
    margin-bottom: 0.875rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  }

  .hero__body {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: #ffffff !important; /* Pure white for max contrast */
    text-shadow: 0 1px 12px rgba(0,0,0,0.8);
    font-weight: 600;
    /* Guaranteed visibility against any bright image */
    background: rgba(20, 14, 10, 0.45);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  /* Full-width buttons stacked on mobile */
  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    font-size: 1.0625rem;
    min-height: 54px;
    border-radius: var(--radius-lg);
  }
}

/* ═══════════════════════════════════════════════════════════
   TRUST BAR — compact on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .trust-bar {
    padding-block: 1rem;
  }

  .trust-bar__inner {
    gap: 0.625rem;
  }

  .trust-item {
    font-size: 0.875rem;
    gap: 0.375rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS — mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-header__body {
    font-size: 0.9375rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   MENU CATEGORY CARDS — 2×2 grid on mobile (not 1-col)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Override the global grid--4 → 1col rule for menu cards */
  .grid--4.menu-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .menu-card {
    aspect-ratio: 2/3; /* Slimmer on mobile */
  }

  .menu-card__title {
    font-size: 1.0625rem;
    color: var(--color-btn-primary); /* Use CTA button color */
  }

  .menu-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
  }

  .menu-card__icon {
    font-size: 1.5rem;
  }

  .menu-card__content {
    padding: 0.875rem;
  }

  .menu-card__arrow {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SIGNATURE BLOCK — better stacking on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .signature-block {
    gap: var(--space-md);
  }

  .signature-block__img-wrap {
    aspect-ratio: 16/9; /* Wider, shorter on mobile */
  }

  .signature-block__body {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
  }

  .signature-block .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   WHY CARDS — 2-column on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Override global 1-col for why cards */
  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .why-card {
    padding: 1.25rem 1rem;
  }

  .why-card__icon {
    font-size: 1.875rem;
    margin-bottom: 0.625rem;
  }

  .why-card__title {
    font-size: 0.9375rem;
  }

  .why-card__body {
    font-size: 0.8125rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT TEASER — image first on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .about-teaser {
    gap: var(--space-md);
  }

  .about-teaser__img-wrap {
    aspect-ratio: 16/10;
  }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY GRID — improved mobile layout
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 0.5rem;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item__zoom {
    /* Always visible on mobile (no hover) */
    opacity: 0.7;
    transform: scale(0.9);
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   MAP + FIND US SECTION — stack properly on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* The inline style grid on index.html "find us" section */
  [style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-md) !important;
  }

  .map-embed {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Auto adjusts height proportionally to width */
    min-height: 250px;
    max-height: 400px;
    border-radius: var(--radius-md);
  }
}

/* ═══════════════════════════════════════════════════════════
   REVIEW CAROUSEL — single card, easier to read
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .review-card {
    padding: 1.25rem;
  }

  .review-card__quote {
    font-size: 2.25rem;
  }

  .review-card__text {
    font-size: 0.9375rem;
  }

  /* Bigger dots for touch */
  .carousel-dot {
    width: 10px;
    height: 10px;
    min-width: 28px;  /* Wider tap area */
    min-height: 28px;
    border-radius: var(--radius-full);
  }

  .carousel-dots {
    gap: 0.375rem;
    margin-top: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION — mobile tap improvements
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .faq-question {
    font-size: 0.9375rem;
    padding: 1rem;
    min-height: 60px;
    line-height: 1.4;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 1rem;
  }

  .faq-answer__inner {
    padding: 0.875rem 1rem 1.125rem;
    font-size: 0.9375rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   CTA BAND — full-width buttons on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .cta-band {
    padding-block: var(--space-xl);
  }

  .cta-band__title {
    font-size: clamp(1.375rem, 6vw, 1.875rem);
  }

  .cta-band__body {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .cta-band__actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .cta-band__actions .btn {
    width: 100%;
    min-height: 54px;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT CARDS — full-width on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-card {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact-card__icon {
    font-size: 1.625rem;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 0.125rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — all CTAs get larger on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .btn {
    min-height: clamp(44px, 12vw, 52px);
    font-size: clamp(0.9375rem, 4vw, 1rem);
    padding: clamp(0.625rem, 2.5vw, 0.875rem) clamp(1.25rem, 4vw, 1.5rem);
  }

  .btn--lg {
    min-height: clamp(48px, 14vw, 56px);
    font-size: clamp(1rem, 4.5vw, 1.0625rem);
  }

  .btn--sm {
    min-height: clamp(38px, 10vw, 44px);
    font-size: clamp(0.8125rem, 3vw, 0.9375rem);
    padding: clamp(0.5rem, 2vw, 0.625rem) clamp(1rem, 3vw, 1.125rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE STICKY BAR — bigger, bolder
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mobile-sticky {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    right: 1rem !important;
    pointer-events: none; /* Let clicks pass through the invisible container */
  }

  .mobile-sticky__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto; /* Buttons are clickable */
  }

  .mobile-sticky__btn {
    width: 60px;
    height: 60px;
    min-height: auto; /* Override clamp */
    padding: 0;
    border-radius: 50% !important; /* Circular buttons */
    font-size: 0 !important; /* Hide original text and emoji */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  
  .mobile-sticky__btn::after {
    font-size: 1.75rem;
    line-height: 1;
  }
  
  .mobile-sticky__btn--call::after {
    content: "📞";
  }
  
  .mobile-sticky__btn--whatsapp {
    background: #25D366 !important; /* Authentic WhatsApp brand color */
  }
  
  .mobile-sticky__btn--whatsapp::after {
    content: ""; /* Remove text emoji */
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51a5.817 5.817 0 0 0-.57-.01c-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Ensure body padding accounts for floating buttons instead of bottom bar */
  body {
    padding-bottom: max(5rem, env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — compact and readable on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .footer {
    padding-block: var(--space-xl) var(--space-md);
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .footer__copy {
    font-size: 0.8125rem;
  }

  /* Footer nav links — bigger touch area */
  .footer__link {
    padding: 0.4rem 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER — reduce padding on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-header {
    padding-block: var(--space-xl) calc(var(--space-xl) + 2rem);
  }

  .page-header__title {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
  }

  .page-header__body {
    font-size: 0.9375rem;
  }

  /* Reduce the curved bottom cut-in */
  .page-header::after {
    height: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MENU PAGE — items full-width on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .menu-items-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .menu-item {
    padding: 0.875rem 1rem;
  }

  .menu-item__name {
    font-size: 1rem;
  }

  .menu-item__price {
    font-size: 1rem;
  }

  .menu-category-header {
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .menu-category-header h2,
  .menu-category-header h3 {
    color: var(--color-btn-primary); /* Match CTA button color */
  }

  .menu-category-header__icon {
    font-size: 1.875rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   REVIEW PAGE — full width aggregate on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .review-aggregate {
    padding: 1.5rem 1.25rem;
  }

  .review-aggregate__number {
    font-size: 3.5rem;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   FORM — usable on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .form__input,
  .form__textarea {
    font-size: 1rem; /* Prevent iOS zoom on focus */
    min-height: 54px;
    padding: 1rem;
  }

  .form__textarea {
    min-height: 120px;
  }

  .form__label {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION PADDING — all sections tighter on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .section {
    padding-block: 2.5rem;
  }

  .section--sm {
    padding-block: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   INLINE-STYLE OVERRIDES for index.html content
   that uses inline style="display:grid" grids
   ═══════════════════════════════════════════════════════════ */

/* "Find Us" map + info grid */
@media (max-width: 768px) {
  .find-us-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX — better on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .lightbox__img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   HOURS TABLE — readable on small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .hours-table td {
    padding: 0.625rem 0.25rem;
    font-size: 0.9375rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL TEXT LEGIBILITY BOOST on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Slightly stronger text colour on mobile */
  .text-muted,
  .card__text,
  .why-card__body,
  .section-header__body,
  .hero__body {
    color: #5a4f47; /* Slightly darker than --color-text-muted */
  }

  /* Tighten heading spacing */
  h1, h2 {
    letter-spacing: -0.01em;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER — less horizontal padding on very small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .container {
    padding-inline: 0.875rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   DIVIDER — center on mobile by default
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .divider {
    margin-inline: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   SIGNATURE BLOCK content alignment on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .signature-block__content {
    text-align: center;
  }

  .signature-block__content .divider {
    margin-inline: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT TEASER content on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .about-teaser > div:last-child {
    text-align: center;
  }

  .about-teaser .divider {
    margin-inline: auto;
  }

  .about-teaser .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY PREVIEW centre the view-all button
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Make "View full gallery" and similar CTAs full-width */
  [style*="text-align:center"] > .btn,
  [style*="text-align: center"] > .btn {
    display: flex;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL DOT / BACK-TO-TOP HELPER spacing above sticky bar
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Ensure nothing overlaps with the sticky bottom bar */
  .cta-band,
  .section:last-of-type {
    margin-bottom: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAMED GRID OVERRIDES (classes added to index.html)
   ═══════════════════════════════════════════════════════════ */

/* Menu cards: 2-col on mobile */
@media (max-width: 600px) {
  .menu-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Why-us cards: 2-col on mobile */
  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Review CTA row: stack vertically on mobile */
  .review-cta-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-inline: 0;
  }

  .review-cta-row .btn {
    width: 100%;
    margin-right: 0 !important;
  }

  /* Map section: stack */
  .find-us-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-md) !important;
  }

  /* Map buttons: full-width */
  .map-btn-row {
    flex-direction: column;
  }

  .map-btn-row .btn {
    width: 100%;
  }
}

/* Tablet: menu cards 2x2 at 601-900px */
@media (min-width: 601px) and (max-width: 900px) {
  .menu-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .find-us-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-lg) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL TYPOGRAPHY IMPROVEMENTS ON MOBILE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Better line-height for headings on mobile */
  h1 { line-height: 1.18; }
  h2 { line-height: 1.25; }
  h3 { line-height: 1.3; }

  /* Prevent very long words breaking layout */
  p, h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Section header spacing tighter */
  .section-header {
    margin-bottom: 1.75rem;
  }

  /* Stronger contrast for muted text on small screens */
  .section-header__body {
    color: #5a4f47;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO BUTTON VISIBILITY FIX
   Make outline-white button more visible on mobile
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .btn--outline-white {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.85);
    color: #fff;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAV LOGO — hide sub-tagline on very small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .nav__logo-sub {
    display: none;
  }

  .nav__logo-name {
    font-size: 1rem;
  }

  .nav__logo-icon {
    width: 32px;
    height: 32px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PREVENT HORIZONTAL OVERFLOW
   ═══════════════════════════════════════════════════════════ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .container,
  section,
  header,
  footer,
  nav {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
