/* ==========================================================================
   BeachTown Supermarkets — BT — Red/Black/White Stylesheet
   ========================================================================== */

:root {
  --white: #ffffff;
  --off-white: #f7f7f5;
  --line: #e7e5e1;
  --ink: #171717;
  --ink-soft: #4d4d4d;
  --grey: #8a8783;
  --red: #e0161f;
  --red-dark: #b40f16;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }

.divider { width: 44px; height: 3px; background: var(--red); margin: 18px 0 28px; border-radius: 2px; }
.center .divider { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--white); }

.btn-solid { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.98);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { padding: 10px 22px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh;
  display: flex; align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--off-white) 0%, #fff 60%);
  padding-top: 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 55%; height: 140%;
  background: radial-gradient(circle, rgba(224,22,31,0.08) 0%, rgba(224,22,31,0) 70%);
}
.hero-bg-img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background-size: cover; background-position: center;
}
.hero.has-photo::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 22%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  padding: 160px 0 64px;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 32px;
  border-radius: 10px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.card-icon-badge {
  width: 54px; height: 54px; border-radius: 12px;
  background: rgba(224,22,31,0.1); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card-icon { width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 24px; border-radius: 8px; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Category pills ---------- */
.cat-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 16px;
  text-align: center;
  transition: all var(--transition);
}
.cat-card:hover { background: var(--red); border-color: var(--red); }
.cat-card:hover h4, .cat-card:hover span { color: var(--white); }
.cat-card .cat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.cat-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
.cat-card span { font-size: 0.74rem; color: var(--grey); }

/* ---------- Store cards ---------- */
.store-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.store-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,0.08); transform: translateY(-3px); }
.store-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--off-white); }
.store-photo img { width: 100%; height: 100%; object-fit: cover; }
.store-body { padding: 28px; }
.store-body h3 { display: flex; align-items: center; gap: 10px; }
.store-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); background: rgba(224,22,31,0.1);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.store-meta { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 6px; display: flex; gap: 8px; }
.store-meta strong { color: var(--ink); font-weight: 600; min-width: 60px; }

/* ---------- Features strip ---------- */
.features-strip { background: var(--ink); }
.features-strip .grid-3 { gap: 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 40px 30px; color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.grid-3 .feature-item:last-child { border-right: none; }
.feature-item .f-icon { font-size: 1.6rem; color: var(--red); flex-shrink: 0; }
.feature-item h4 { color: var(--white); margin-bottom: 6px; font-size: 1rem; }
.feature-item p { color: rgba(255,255,255,0.65); font-size: 0.86rem; margin: 0; }

/* ---------- Coming soon / Shop ---------- */
.coming-soon {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 170px 0 90px;
  background: linear-gradient(135deg, var(--off-white) 0%, #fff 60%);
}
.coming-soon-inner { max-width: 620px; margin: 0 auto; }
.countdown { display: flex; justify-content: center; gap: 18px; margin: 34px 0 40px; flex-wrap: wrap; }
.countdown-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; min-width: 84px; box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.countdown-box .num { font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1; }
.countdown-box .lbl { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-top: 6px; display: block; }
.notify-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.notify-form input {
  flex: 1; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); padding: 14px 16px; font-size: 0.92rem; font-family: var(--sans);
}
.notify-form input:focus { outline: none; border-color: var(--red); }
.notify-form button { border-radius: 6px; white-space: nowrap; }
.category-preview { margin-top: 60px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-card { background: var(--off-white); border: 1px solid var(--line); border-radius: 12px; padding: 30px; margin-bottom: 24px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-card .row { display: flex; gap: 10px; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink-soft); }
.contact-card .row strong { color: var(--ink); min-width: 62px; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }

.map-frame { width: 100%; height: 340px; border: 0; border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 54px; }
.footer-grid h4 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 42px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; max-width: 300px; color: rgba(255,255,255,0.6); }
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: rgba(255,255,255,0.7);
}
.social-row a:hover { border-color: var(--red); color: var(--white); background: var(--red); }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-right: none;
  border-radius: 6px 0 0 6px; color: var(--white); padding: 12px 14px; font-size: 0.82rem; font-family: var(--sans);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  background: var(--red); border: none; color: var(--white); border-radius: 0 6px 6px 0;
  padding: 0 18px; cursor: pointer; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 600;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Badge ---------- */
.launch-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,22,31,0.1); color: var(--red);
  border-radius: 20px; padding: 8px 16px; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Utility ---------- */
.bg-off { background: var(--off-white); }
.bg-white { background: var(--white); }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  section { padding: 60px 0; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .countdown-box { min-width: 68px; padding: 14px 16px; }
  .countdown-box .num { font-size: 1.5rem; }
}

.main-nav.mobile-open {
  display: flex;
  position: fixed; top: 0; right: 0; height: 100vh;
  width: 78vw; max-width: 340px;
  background: var(--white);
  flex-direction: column;
  padding: 100px 40px; gap: 26px;
  border-left: 1px solid var(--line);
  z-index: 700;
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}
