/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make layout a column so footer can stick to bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size: 16px;
  color: #0b2340;
  line-height: 1.6;
}

:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --brand: #0b3d91; /* deep navy */
  --accent: #e25a2a; /* crab-warm accent */
  --muted: #eef4ff;
  --cta: #ff6b2d;
  --success: #25d366;
  --text: #0b2340;
  --shadow: rgba(8,30,60,0.06);
}

/* Header */
.header {
  background: #0b3d91;
  color: white;
  text-align: center;
  padding: 25px;
}
.site-title {
  margin: 0 0 8px 0;
}
.site-title .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-text {
  font-weight: 700;
  font-size: 22px;
  color: inherit;
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  /* show a compact, truncated brand in nav on small screens */
  .nav-brand .nav-brand-text { display: inline-block; font-size: 13px; margin-left: 6px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .nav-brand .logo { height: 20px; }
}

.header p {
  display: none; /* tagline hidden for compact top bar */
}

/* Navbar (compact top bar) */
.navbar {
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  min-height: 56px;
}

.nav-brand .brand {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .logo {
  height: 52px;
  width: 52px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}

/* visible brand text in compact top bar */
.nav-brand .nav-brand-text {
  font-weight: 700;
  color: white;
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}
/* Header logo slightly smaller to balance H1 text */
.site-title .logo {
  height: 28px;
  width: auto;
  display: block;
}
/* Responsive logo sizing */
@media (max-width: 768px) {
  .nav-brand .logo { height: 40px; width:40px; padding: 3px; }
  .site-title .logo { height: 32px; width:32px; }
}
@media (max-width: 480px) {
  .nav-brand .logo { height: 32px; width:32px; padding: 2px; }
  .site-title .logo { height: 28px; width:28px; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  /* Use column layout by default so text occupies full hero when no image is present */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  padding: 60px 40px;
  background: linear-gradient(135deg,var(--muted) 0%, #f5fbff 100%);
}

/* Constrain hero text and center it so it reads like a full-width hero */
.hero-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.hero .cta-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons in featured cards */
.featured-card .order-btn { display: flex; gap: 10px; align-items: center; }
.featured-card .order-btn .btn.secondary { background: transparent; color: var(--brand); border: 2px solid rgba(11,61,145,0.08); padding: 8px 12px; }
@media (max-width: 600px) {
  .featured-card .order-btn { flex-direction: column; align-items: stretch; }
  .featured-card .order-btn .btn { width: 100%; }
}

/* On wide screens where a hero image might exist, switch back to a row layout */
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .hero-text { margin: 0; }
}

.btn.secondary {
  background: transparent;
  border: 2px solid rgba(11,61,145,0.08);
  color: var(--brand);
  padding: 10px 16px;
}

.trust-badges {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.trust-badges .badge {
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 18px;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(11,45,90,0.06);
  font-size: 14px;
}

.hero-text h2 {
  font-size: 40px;
  margin-bottom: 18px;
  color: #062c6d;
}

.hero-text p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 6px 18px rgba(37,211,102,0.18);
  transition: transform .14s ease, box-shadow .14s ease;
  font-size: 16px;
}

.btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.btn:focus {
  outline: 3px solid rgba(37,211,102,0.25);
  outline-offset: 3px;
}

.hero-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(8,30,60,0.06);
  margin-left: auto;
  margin-right: auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 6px;
  align-items: start;
}

.featured-grid .featured-card {
  max-width: 320px;
}

/* Place featured grid under the hero and center it */
.featured-area {
  padding: 28px 40px;
  display: flex;
  justify-content: center;
}
.featured-area .featured-grid {
  max-width: 1100px;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-image { text-align: right; }
}


@media (max-width: 600px) {
  /* Stack featured cards full-width on narrow screens */
  .featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .featured-grid .featured-card { max-width: none; width: 100%; }
  /* Slightly reduce thumb spacing */
  .thumbs.image-switcher { gap: 6px; }
}

@media (max-width: 480px) {
  .featured-grid { gap: 10px; }
  .thumbs .thumb img { width: 40px; height: 40px; }
}

@media (max-width: 375px) {
  .thumbs .thumb img { width: 36px; height: 36px; }
}

/* Features */
.features {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  background: white;
}

.feature-box {
  width: 250px;
  padding: 20px;
  text-align: center;
  background: #eef4ff;
  border-radius: 8px;
}

.feature-box h3 {
  margin-bottom: 10px;
}

/* Responsive: stack features on narrow screens */
@media (max-width: 600px) {
  .features {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    align-items: center;
  }
  .feature-box {
    width: 100%;
    max-width: 360px;
    padding: 16px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}



/* Grade reference styling */
.grade-reference {
  padding: 28px 18px;
  background: #ffffff;
  clear: both;
  margin-top: 28px;
  position: relative;
  z-index: auto;
}
.grade-reference h3 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--brand);
}
.grade-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.grade-column {
  flex: 1 1 320px;
  background: #f6fbff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(11,61,145,0.04);
  min-width: 220px;
}
.grade-column h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.grade-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grade-column li {
  padding: 8px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  border: 1px solid rgba(11,61,145,0.04);
  font-weight: 600;
}
.grade-column .fine-print {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #333;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .grade-grid { flex-direction: column; gap: 12px; padding: 0 12px; }
  .grade-column { width: 100%; }
  .grade-column li { font-size: 0.98rem; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  background: #062c6d;
  color: white;
  margin-top: auto;
}
/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  margin: 8px;
  z-index: 999;
}

/* Visually hide elements but keep them accessible to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust-bar {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  font-weight:600;
  color:#fff;
  font-size:13px;
  background:var(--brand);
}

.trust-bar .trust-text { display:inline-block; }
.trust-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.trust-close:focus { outline: 3px solid rgba(255,255,255,0.15); }
.trust-bar.hidden { display: none !important; }

/* small persistent button to restore the trust bar when hidden */
.trust-show {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(8,30,60,0.12);
  cursor: pointer;
  z-index: 1002;
}
.trust-show:focus { outline: 3px solid rgba(255,255,255,0.18); }
@media (max-width:480px) { .trust-show { right: 8px; bottom: 8px; padding: 7px 9px; font-size: 15px; } }

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--muted);
  color: var(--brand);
  font-weight: 700;
}
.badge.high-weight {
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(242,107,61,0.12);
}

/* Focus styles for links */
.nav-links a:focus {
  outline: 3px solid rgba(255,255,255,0.15);
  outline-offset: 3px;
}

/* Products Section */
.products {
  display: grid;
  /* Use minmax so grid items can flex and avoid causing horizontal overflow */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 50px;
  background: var(--bg);
  align-items: stretch;
  justify-content: center;
}

.product-card {
  background: var(--surface);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

/* Image container keeps a consistent visual space and centers the image without cropping */
.product-media {
  /* Maintain a consistent display box for all product images */
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  /* Fallback for older browsers */
  min-height: 160px;
}

/* Ensure images fill the `.product-media` container uniformly (cover the box) and centered */
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Featured and hero cards: prevent main images from expanding cards too much */
.product-card.featured-card > img.main-img,
.featured-card .main-img,
.featured-area .product-card > img.main-img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Default fallback for any other main-img not wrapped in .product-media */
.product-card > img.main-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Small screens: slightly reduce product-media height via min-height so cards remain compact */
@media (max-width: 480px) {
  .product-media { min-height: 140px; }
} 
.thumbs .thumb {
  border: 1px solid #eef4ff;
  padding:4px;
  background:#fff;
  border-radius:6px;
  cursor:pointer;
}
.thumbs .thumb img { width:56px; height:56px; object-fit:cover; border-radius:4px; display:block; }
.thumbs .thumb.selected { outline: 2px solid var(--cta); }
.product-card .weight { font-weight:700; color: #0b2340; }
.featured-card { margin-left:auto; margin-right:auto; }

/* Disabled buttons (require grade selection) */
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(10%);
}
.btn[aria-disabled="true"] {
  cursor: default;
}

.product-card .badge {
  display: inline-block;
  background: var(--muted);
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

.product-card .order-btn { margin-top: auto; }

.order-btn .btn { width: 100%; }


.product-card h3 {
  margin: 15px 0 8px;
}

.product-card p {
  font-size: 14px;
  margin-bottom: 8px;
}

.price {
  font-weight: bold;
  margin: 10px 0;
  display: inline-block;
}

/* Reserve space for select + price to keep cards uniform */
.product-meta { min-height: 72px; display:flex; flex-direction:column; gap:8px; justify-content:flex-start; }
.price.skeleton {
  display: inline-block;
  height: 18px;
  width: 90px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f4f8 25%, #e6eefb 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.price-unavailable {
  color: #6b7280; /* muted gray */
  font-weight: 600;
} 
/* Contact Page (Card + Map layout) */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 60px;
  background: #f5f9ff;
}

.contact-card {
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(8,30,60,0.06);
}

.contact-card h2 { margin-bottom: 8px; }
.contact-card .lead { margin-bottom: 12px; color: #334155; }

.info-row { display:flex; gap:12px; align-items:flex-start; margin:12px 0; }
.info-row .icon { width:36px; height:36px; flex: 0 0 36px; display:flex; align-items:center; justify-content:center; background:var(--muted); border-radius:8px; color:var(--brand); }
.info-row strong{ display:block; font-weight:700; color:var(--brand); }
.delivery-list { margin:6px 0 0 0; padding-left: 1.1em; }

.contact-buttons { margin-top:18px; display:flex; gap:10px; align-items:center; }
.btn.btn-whatsapp { background: var(--success); box-shadow: 0 6px 18px rgba(37,211,102,0.12); }

.contact-map img{ width:100%; height:220px; object-fit:cover; border-radius:10px; box-shadow: 0 8px 20px rgba(8,30,60,0.06); }
.map-caption { margin-top:8px; color:#6b7280; font-size:13px; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; padding: 30px; }
  .contact-map { order: -1; }
}

@media (max-width: 480px) {
  .contact { padding: 18px; }
  .contact-map img { height: 160px; }
}
/* About Page */
.about {
  display: flex;
  justify-content: center;
  padding: 60px;
  background: #f5f9ff;
}

.about-box {
  background: white;
  width: 600px;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-box h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0b3d91;
}

.about-box p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-box ul {
  margin-top: 10px;
  padding-left: 20px;
}

.about-box li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* RESPONSIVE DESIGN */

/* For tablets & mobiles */
@media (max-width: 768px) {
  /* Navbar - mobile */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    background: var(--brand);
    flex-direction: column;
    width: 220px;
    padding: 12px;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(8,30,60,0.16);
    border-radius: 8px;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    margin: 0;
    color: white;
    display: block;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-image img {
    width: 100%;
    max-width: 480px;
    margin-top: 16px;
    height: auto;
  }

  /* Default for tablets and larger phones: stacked CTAs */
  .cta-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .cta-row .btn, .cta-row .btn.secondary {
    width: 100%;
    max-width: 520px;
  }

  .trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Products Page */
  .products {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .product-card {
    max-width: 520px;
    /* margin: 0 auto; */
  }

  /* Contact Page */
  .contact {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .contact-map { order: -1; }

  /* About Page */
  .about-box {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .contact { padding: 14px; }
  .contact-map img { height: 160px; }
  .nav-links { right: 8px; left: 8px; width: auto; top: 56px; }

  .hero { padding: 18px; }
  .hero-text h2 { font-size: 24px; }
  .nav-brand .nav-brand-text { display: inline-block; font-size: 12px; margin-left: 6px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .nav-toggle { font-size: 22px; }

  /* Small phones: show Order and View buttons side-by-side */
  .cta-row {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
  .cta-row .btn, .cta-row .btn.secondary {
    width: auto;
    flex: 1 1 0;
    min-width: 120px;
  }

  /* Mobile/tablet: normalize product card sizes and prevent thumbnail wrapping */
  .products { padding: 18px; }
  .thumbs.image-switcher { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-top: 6px; }
  .thumbs .thumb { flex: 0 0 auto; }
  .product-card { padding: 14px; box-sizing: border-box; min-height: 480px; height: 100%; overflow: hidden; }
  .product-card .order-btn { margin-top: auto; }
  /* Reserve space for select + price (handled globally) */
  /* Avoid long descriptions changing card height excessively */
  .product-card p { max-height: 89.6px; overflow: hidden; }
  /* desktop rules will override where appropriate */
}

/* Very small phones: tighten hero spacing so CTAs appear sooner */
@media (max-width: 375px) {
  .hero { padding: 12px 12px; }
  .hero-text h2 { font-size: 20px; }
  .hero-text p { font-size: 14px; }
  .cta-row .btn, .cta-row .btn.secondary { font-size: 14px; padding: 10px 12px; }
  /* Keep CTAs side-by-side on very small phones; allow wrapping if needed */
  .cta-row { flex-direction: row; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .cta-row .btn, .cta-row .btn.secondary { width: auto; flex: 1 1 0; min-width: 100px; }
}
/* ===============================
   MOBILE FIX PATCH (SAFE)
   =============================== */

/* Fix hero height issue on mobile */
@media (max-width: 480px) {
  .hero {
    min-height: calc(100vh - 92px);
    justify-content: flex-start;
  }
}

/* Normalize CTA buttons on mobile */
@media (max-width: 480px) {
  .cta-row {
    display: flex;
    gap: 10px;
  }

  .cta-row .btn,
  .cta-row .btn.secondary {
    flex: 1;
    min-width: 0;
  }
}

/* Leave CTAs side-by-side on very small phones */
@media (max-width: 375px) {
  .cta-row {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-row .btn,
  .cta-row .btn.secondary {
    width: auto;
    flex: 1 1 0;
    min-width: 100px;
  }
}

/* Footer social icons */
.footer {
    text-align: center;
    padding: 20px 10px;
    background: #0b3d91;
    color: #fff;
}

.footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons a:hover .fa-facebook-f {
    color: #1877f2;
}

.social-icons a:hover .fa-instagram {
    color: #e4405f;
}

.social-icons a:hover .fa-youtube {
    color: #ff0000;
}



