/* =========================================================
   SA FAMILY MART — STYLESHEET
   Design tokens: deep signage-blue + warm red/orange accents,
   Poppins for display headings, Inter for body text.
   Signature layout motif: "shelf compartment" cards — bordered
   boxes with a wood-tone base rule and a small corner tag,
   echoing the real wooden shelving in the store photos.
   ========================================================= */

:root {
  /* Brand palette (derived from the SA Family Mart signage) */
  --blue-900: #0B3A66;
  --blue-800: #0E4A80;
  --blue-700: #14568F;
  --blue-500: #2C7FC1;
  --blue-100: #E7F1FA;

  --red-600: #DD3439;
  --red-700: #C22A2F;

  --orange-500: #F2951B;
  --orange-600: #DD8210;

  --cream-0: #FDFBF7;
  --cream-1: #F6F1E7;
  --wood-400: #C79A5B;
  --wood-600: #9C6B32;

  --ink-900: #1D2A33;
  --ink-600: #4C5C66;
  --ink-300: #8A97A0;

  --white: #FFFFFF;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 6px 24px rgba(13, 42, 74, 0.10);
  --shadow-tight: 0 2px 10px rgba(13, 42, 74, 0.08);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-0);
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--red-600); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

*:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--cream-1); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 0.4rem; }
.section-lead { color: var(--ink-600); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--red-600);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(221, 52, 57, 0.35);
}
.btn-call:hover { background: var(--red-700); color: var(--white); box-shadow: 0 6px 18px rgba(221, 52, 57, 0.45); }

.btn-delivery {
  background: var(--orange-500);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(242, 149, 27, 0.35);
}
.btn-delivery:hover { background: var(--orange-600); color: var(--white); }

.btn-outline-brand {
  background: transparent;
  color: var(--blue-800);
  border: 2px solid var(--blue-800);
}
.btn-outline-brand:hover { background: var(--blue-800); color: var(--white); }

.btn-lg-pill { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { z-index: 1030; }

.delivery-strip {
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.85rem;
}
.delivery-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.4rem 0;
}
.delivery-strip a { color: var(--white); font-weight: 600; }
.delivery-strip a:hover { color: var(--orange-500); }
.delivery-strip__phones .divider { opacity: 0.5; margin: 0 0.35rem; }

.main-navbar {
  background: var(--white);
  padding: 0.65rem 0;
  box-shadow: var(--shadow-tight);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-900);
}

.main-navbar .nav-link {
  font-weight: 600;
  color: var(--ink-900);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--blue-800);
  background: var(--blue-100);
}
.main-navbar .btn-call { padding: 0.5rem 1.15rem; font-size: 0.92rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.10) 0, transparent 45%),
    radial-gradient(circle at 92% 80%, rgba(242,149,27,0.22) 0, transparent 40%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.hero__lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 1.6rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__phones {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.hero__phones a { color: var(--white); font-weight: 700; }
.hero__phones a:hover { color: var(--orange-500); }

.hero__complaint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.whatsapp-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.whatsapp-inline-icon:hover,
.whatsapp-inline-icon:focus { color: var(--white); opacity: 0.85; }

.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(4, 20, 38, 0.45);
  border: 6px solid rgba(255,255,255,0.15);
}
.hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* =========================================================
   SHELF-COMPARTMENT CARDS (signature motif)
   Bordered "compartment" cards with a wood-tone base rule and
   a small corner tag — echoes the real wooden shelving grid
   seen throughout the store.
   ========================================================= */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid #EAE2D2;
  border-bottom: 5px solid var(--wood-400);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem 1rem;
  text-decoration: none;
  color: var(--ink-900);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-bottom-color: var(--red-600);
  color: var(--ink-900);
}
.shelf-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.shelf-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--blue-900);
  margin: 0;
}
.shelf-card__desc { font-size: 0.87rem; color: var(--ink-600); margin: 0; }
.shelf-card__tag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Why choose us */
.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem;
  height: 100%;
}
.feature-item__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.feature-item h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; color: var(--ink-600); margin: 0; }

/* Product showcase grid (photo tiles) */
.showcase-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-tight);
}
.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.showcase-tile:hover img { transform: scale(1.06); }
.showcase-tile__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,58,102,0.92), rgba(11,58,102,0));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1.4rem 0.9rem 0.7rem;
}

/* Gallery / lightbox */
.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-tight);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "\f52a";
  font-family: "bootstrap-icons";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(11,58,102,0.75);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.lightbox-modal .modal-content { background: transparent; border: none; }
.lightbox-modal .modal-body { padding: 0; text-align: center; }
.lightbox-modal img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox-modal .btn-close { filter: invert(1); background-color: rgba(0,0,0,0.4); border-radius: 50%; padding: 0.6rem; }

/* Delivery CTA band */
.delivery-band {
  background: linear-gradient(120deg, var(--red-600), var(--orange-500));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.delivery-band h2 { color: var(--white); }
.delivery-band p { color: rgba(255,255,255,0.92); }
.delivery-band .btn-call { background: var(--white); color: var(--red-600); box-shadow: none; }
.delivery-band .btn-call:hover { background: var(--blue-900); color: var(--white); }

/* Payment strip */
.payment-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.25rem;
  background: var(--white);
  border: 1px dashed #D9CFB8;
  border-radius: var(--radius-md);
}
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
  background: var(--blue-100);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Local area section */
.local-area {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
}
.local-area h2 { color: var(--white); }
.local-area p { color: rgba(255,255,255,0.85); }

/* Category page header banner */
.category-hero {
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.category-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* Note strip (subject to stock etc.) */
.note-strip {
  background: var(--cream-1);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-600);
}

/* CTA card (call to ask) */
.cta-card {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.cta-card h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-card p { color: rgba(255,255,255,0.85); }

/* Contact page */
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-tight);
  height: 100%;
}
.info-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.map-placeholder {
  background: repeating-linear-gradient(45deg, #EEF3F8, #EEF3F8 12px, #E4ECF4 12px, #E4ECF4 24px);
  border: 2px dashed var(--blue-500);
  border-radius: var(--radius-md);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue-800);
  font-weight: 600;
  padding: 1.5rem;
}
.map-embed-wrap {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: none;
  padding: 0;
  display: block;
  box-shadow: var(--shadow-soft);
}
.map-embed-wrap iframe { display: block; border-radius: var(--radius-md); }

.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #D8DEE4;
  padding: 0.65rem 0.9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 0.2rem rgba(20, 86, 143, 0.15);
}
.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--ink-900); }

/* About page */
.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-tight);
  text-align: center;
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue-900);
  font-size: 1.05rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 1.25rem;
  margin-top: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
}
.footer-brand .brand-mark { background: rgba(255,255,255,0.14); }
.footer-brand .brand-text { color: var(--white); font-size: 1.1rem; }
.footer-about { font-size: 0.9rem; color: rgba(255,255,255,0.75); max-width: 320px; }
.footer-payments { font-size: 0.85rem; margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-payments__label { color: rgba(255,255,255,0.6); }
.pay-badge {
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--white);
}
.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-links a:hover { color: var(--orange-500); }
.footer-address { font-style: normal; font-size: 0.92rem; color: rgba(255,255,255,0.75); margin-bottom: 0.85rem; }
.footer-phones a {
  color: var(--white);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.footer-phones a:hover { color: var(--orange-500); }
.footer-email { margin-bottom: 0.6rem; }
.footer-email a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.footer-email a:hover { color: var(--orange-500); }
.footer-delivery { font-weight: 600; color: var(--orange-500); font-size: 0.9rem; }

/* Owner / about section */
.owner-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 3px solid var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.owner-avatar i {
  font-size: 3rem;
  color: var(--blue-700);
}
.owner-avatar--photo {
  overflow: hidden;
  padding: 0;
}
.owner-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.owner-note {
  font-weight: 600;
  color: var(--blue-700);
  font-size: 0.92rem;
}
.footer-rule { border-color: rgba(255,255,255,0.15); margin: 2rem 0 1.25rem; }
.footer-bottom { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-align: center; }

/* Floating mobile call button */
.mobile-call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 22px rgba(221,52,57,0.45);
  z-index: 1040;
  animation: pulse-fab 2.4s infinite;
}
@keyframes pulse-fab {
  0%   { box-shadow: 0 8px 22px rgba(221,52,57,0.45); }
  50%  { box-shadow: 0 8px 26px rgba(221,52,57,0.7); }
  100% { box-shadow: 0 8px 22px rgba(221,52,57,0.45); }
}

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  z-index: 1041;
  animation: pulse-whatsapp 2.4s infinite;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus {
  color: var(--white);
  transform: scale(1.05);
}
@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 8px 22px rgba(37,211,102,0.45); }
  50%  { box-shadow: 0 8px 26px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 8px 22px rgba(37,211,102,0.45); }
}
/* On mobile, the call button also shows — stack WhatsApp above it */
@media (max-width: 991.98px) {
  .whatsapp-fab { bottom: 4.75rem; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse { margin-top: 0.75rem; }
  .main-navbar .nav-link { padding: 0.6rem 0.4rem; }
  .main-navbar .btn-call { margin-top: 0.5rem; width: 100%; justify-content: center; display: flex; }
  .hero { text-align: center; }
  .hero__ctas { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 575.98px) {
  .section { padding: 2.25rem 0; }
  .delivery-strip__inner { justify-content: center; text-align: center; }
  .delivery-band, .local-area, .cta-card { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
