/* ========================= HEADER NAV 3‑3‑1 ========================= */
/* Mobile-only nav layout */
@media (max-width: 420px) {
  .site-header .nav ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, min-content);
    gap: 0.25rem;
    justify-items: center;
    align-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Row 1: items 1–3 */
  .site-header .nav ul li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .site-header .nav ul li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .site-header .nav ul li:nth-child(3) { grid-column: 3; grid-row: 1; }

  /* Row 2: items 4–6 */
  .site-header .nav ul li:nth-child(4) { grid-column: 1; grid-row: 2; }
  .site-header .nav ul li:nth-child(5) { grid-column: 2; grid-row: 2; }
  .site-header .nav ul li:nth-child(6) { grid-column: 3; grid-row: 2; }

  /* Row 3: item 7 centered */
  .site-header .nav ul li:nth-child(7) { grid-column: 2; grid-row: 3; }

  /* Buttons snug to text */
  .site-header .nav ul li a {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
  }
}

  /* Products & Services grid: force single column */
  .products-grid,
  .grid-3,
  body.services .products-grid,
  body.products .products-grid {
    grid-template-columns: 1fr !important;
    row-gap: 2rem !important;
    column-gap: 0 !important;
    max-width: 100% !important;
  }




/* ========================= PRODUCTS GRID ========================= */

/* Mobile-first: single column */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1600px;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.products .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4rem !important;
    max-width: 1600px !important;
  }
}


/* Product cards */
.product-card {
  margin-bottom: 0.5rem;
}

.product-card .product-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  min-height: 400px;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card .product-box:hover {
  transform: scale(1.05);
}

.product-thumb {
  display: block;
  max-width: 180px;   /* cap size */
  height: auto;
  margin: 0 auto 1.5rem; /* center horizontally with spacing below */
}


/* Smaller thumbnails on very narrow phones */
@media (max-width: 420px) {
  .product-thumb {
    max-width: 120px;
    margin-bottom: 0.5rem;
  }
}

/* Neon colour cycle */
.grid-3 .product-card:nth-child(4n+1) .product-box {
  border-color: #3498db; /* blue */
  box-shadow: 0 0 20px rgba(52,152,219,0.8), 0 0 40px rgba(52,152,219,0.6);
}
.grid-3 .product-card:nth-child(4n+2) .product-box {
  border-color: #9b59b6; /* violet */
  box-shadow: 0 0 20px rgba(155,89,182,0.8), 0 0 40px rgba(155,89,182,0.6);
}
.grid-3 .product-card:nth-child(4n+3) .product-box {
  border-color: #f39c12; /* molten orange */
  box-shadow: 0 0 20px rgba(243,156,18,0.8), 0 0 40px rgba(243,156,18,0.6);
}
.grid-3 .product-card:nth-child(4n+4) .product-box {
  border-color: #2ecc71; /* green */
  box-shadow: 0 0 20px rgba(46,204,113,0.8), 0 0 40px rgba(46,204,113,0.6);
}

/* Quote action buttons (Contact removed) */
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.quote-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.quote-actions .btn:hover {
  transform: translateY(-2px);
}

/* ========================= GALLERY & SLIDESHOW ========================= */
/* Cellphone adjustments */
@media (max-width: 420px) {
  /* Gallery grids: single column */
  .fp-gallery .gallery-grid,
  .fp-gallery-page .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Gallery items shrink further */
  .fp-gallery .gallery-item,
  .fp-gallery-page .gallery-item {
    max-width: 100%;
    height: auto;
  }

  /* Slideshow shrink */
  .slideshow {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .slideshow img {
    border-radius: 8px;
  }

  /* Lightbox content scaling */
  .lightbox img.lightbox-content {
    max-width: 95%;
    max-height: 70%;
  }

  .lightbox-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ========================= FOOTER ========================= */
@media (max-width: 420px) {
  .fp-footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .fp-box {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

/* ========================= FLOATING WHATSAPP ORB ========================= */
@media (max-width: 420px) {
  .fp-whatsapp {
    width: 48px;
    height: 48px;
    bottom: 12px;
    right: 12px;
  }

  .fp-whatsapp-icon {
    width: 55%;
  }
}

/* ===================== ABOUT US RESPONSIVE ===================== */
/* Cellphone */
@media (max-width: 420px) {
  body.about #about-hero h1.section-heading {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  body.about #about-hero .hero-tagline {
    font-size: 1.2rem;
    margin: 0.5rem auto 1.5rem;
  }
  body.about .beer-mug {
    width: 150px;
  }
  body.about .about-heritage h2.section-heading,
  body.about .about-values .section-heading,
  body.about .about-why .section-heading,
  body.about .about-cta h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  body.about .about-heritage p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 1rem auto;
  }
  body.about .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  body.about .value-card {
    padding: 1rem;
  }
  body.about .why-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  body.about .cta-button {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }
}

/* ===================== SUPPORT HUB RESPONSIVE ===================== */
/* Cellphone */
@media (max-width: 420px) {
  body.support-hub .section-heading,
  body.support-hub .care-heading {
    font-size: 2rem;
    margin: 2rem auto 1.5rem;
  }
  body.support-hub .care-grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  body.support-hub .support-card {
    width: 100%;
    min-height: auto;
    padding: 1rem;
  }
  body.support-hub .support-card h3 {
    font-size: 1.2rem;
  }
  body.support-hub .support-card p,
  body.support-hub .support-card ul,
  body.support-hub .support-card li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  body.support-hub .lightbox-content {
    width: 90vw;
    height: auto;
    padding: 1rem;
  }
  body.support-hub .lightbox-content h2 {
    font-size: 1.8rem;
  }
  body.support-hub .lightbox-content .hero-tagline {
    font-size: 1.2rem;
  }
  body.support-hub .lightbox-content p,
  body.support-hub .lightbox-content ul,
  body.support-hub .lightbox-content li {
    font-size: 1rem;
    line-height: 1.3;
  }
}

/* ===================== SPECIALS PAGE RESPONSIVE ===================== */
/* Cellphone */
@media (max-width: 420px) {
  body.fp-specials-page .fp-specials .specials-grid.multi {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  body.fp-specials-page .fp-specials .specials-grid.multi .special-item,
  body.fp-specials-page .fp-specials .specials-grid.single .special-item {
    width: 100%;
    height: auto;
  }
  body.fp-specials-page .fp-specials .specials-grid.multi .special-item img,
  body.fp-specials-page .fp-specials .specials-grid.single .special-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  body.fp-specials-page .lightbox-content img {
    max-width: 95vw;
    max-height: 80vh;
  }
  
}

/* ========================= HEADER MOBILE FIX ========================= */
@media (max-width: 420px) {
  :root {
    --header-height: 180px; /* slightly shorter header for phones */
  }

  .site-header {
    height: var(--header-height);
    padding: 0.25rem 0.75rem 0.5rem; /* tighter spacing */
    border-bottom: 4px solid #ff6f00;
  }

  .logo img {
    width: 140px; /* shrink logo for mobile */
    margin-bottom: 0.2rem;
  }

  .site-header .nav {
    margin-top: 0.2rem;
  }

  .site-header .nav ul li a {
    padding: 0.25rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
  }

  body {
    padding-top: var(--header-height); /* push hero down correctly */
  }
}
/* Portrait images/videos: crop from top */
.fp-gallery-page .gallery-item img.portrait,
.fp-gallery-page .gallery-item video.portrait {
  object-fit: cover;
  object-position: top center;
}
