/* ============================================================
   SUBHAN GROCERY & HALAL MEAT — style.css
   Palette: Deep forest green, warm cream, rich gold accent,
            charcoal text. Clean, trustworthy, South-Asian warmth.
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --gold:         #C9A84C;
  --gold-light:   #F0D080;
  --cream:        #FAF7F0;
  --cream-dark:   #F0EBE0;
  --charcoal:     #1C1C1E;
  --text-muted:   #5A5A5A;
  --white:        #FFFFFF;

  --font-display: 'Amiri', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --shadow-card:  0 4px 20px rgba(27,67,50,0.10);
  --shadow-lift:  0 12px 40px rgba(27,67,50,0.18);

  --transition:   0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --section-pad:  5rem 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------- NAVIGATION ---------- */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}
.nav-header.scrolled {
  background: var(--green-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-mark {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links li a:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 30, 20, 0.78) 0%,
    rgba(27, 67, 50, 0.70) 50%,
    rgba(10, 20, 15, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem 1.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--gold);
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.45);
}

.btn-outline {
  display: inline-block;
  margin-top: 1rem;
  background: transparent;
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--green-mid);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- SECTION SHARED ---------- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
  position: relative;
  padding: 0 1.2rem;
}
.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.section-label::before { right: 100%; margin-right: -1rem; }
.section-label::after  { left:  100%; margin-left:  -1rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- PRODUCTS ---------- */
.products {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27,67,50,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green-deep);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.card-body {
  padding: 1.6rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}

.card-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.card-text strong { color: var(--charcoal); }

.card-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- VISIT US ---------- */
.visit {
  background: var(--cream-dark);
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.visit-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.visit-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.visit-address-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.card-icon-sm {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.visit-address-card p {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.5;
}

.visit-info {
  padding-top: 0.5rem;
}
.visit-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.info-block h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.info-icon { font-style: normal; }

.hours-table {
  border-collapse: collapse;
  font-size: 0.875rem;
  width: 100%;
}
.hours-table td {
  padding: 0.3rem 0;
  color: var(--text-muted);
  vertical-align: top;
}
.hours-table td:first-child {
  color: var(--charcoal);
  font-weight: 500;
  padding-right: 1rem;
  white-space: nowrap;
}

.info-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.info-block a {
  color: var(--green-mid);
  font-weight: 500;
  transition: color var(--transition);
}
.info-block a:hover { color: var(--green-deep); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  flex: 1 1 220px;
}
.footer-brand .logo-mark { font-size: 1.8rem; }
.footer-brand .logo-text {
  font-size: 1.15rem;
  color: var(--white);
  display: block;
  margin-top: 0.3rem;
}
.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-cols {
  flex: 2 1 480px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}
.footer-col p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: block;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1.3rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .visit-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100svh;
    width: min(280px, 80vw);
    background: var(--green-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    transition: right var(--transition);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links li a {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
  }

  /* Hero */
  .hero-title { font-size: 2.2rem; }

  /* Cards */
  .card-grid { gap: 1.4rem; }

  /* Visit */
  .visit-img { height: 260px; }
  .visit-address-card { position: static; border-radius: var(--radius-md); }
  .info-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .section-label::before,
  .section-label::after { display: none; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}