/* =============================================
   Bay Root Meats — Stylesheet
   Palette derived from storefront signage
   ============================================= */

:root {
  --rose: #c4365a;
  --rose-deep: #9b2848;
  --rose-light: #e85d7e;
  --rose-pale: #fdf0f3;
  --brick: #8b4a3a;
  --brick-warm: #a65d4a;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --ink: #1c1412;
  --ink-soft: #5c4f4a;
  --ink-muted: #8a7b74;
  --white: #ffffff;
  --halal-red: #c41e3a;
  --green: #2d6a3e;
  --shadow: 0 4px 24px rgba(28, 20, 18, 0.08);
  --shadow-lg: 0 12px 48px rgba(28, 20, 18, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --announcement-h: 28px;
  --mobile-bar-h: 60px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--announcement-h) + var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(196, 54, 90, 0.12);
}

.display { font-family: 'Cormorant Garamond', Georgia, serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/* ---- Announcement Bar ---- */
.announcement {
  background: var(--rose-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-track {
  display: inline-block;
  animation: marquee 35s linear infinite;
}

.announcement .dot { color: var(--rose-light); margin: 0 1.2rem; opacity: 0.7; }
.announcement span { margin: 0 0.5rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 200;
  transition: top var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.site-header.scrolled .logo-text strong,
.site-header.scrolled .logo-text small { color: var(--ink); }
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--rose); }
.site-header.scrolled .menu-toggle span { background: var(--ink); }

.page-content {
  padding-top: calc(28px + var(--header-h));
}

.main-nav a.active {
  color: var(--rose);
}

.site-header.scrolled .main-nav a.active {
  color: var(--rose);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem max(1.5rem, env(safe-area-inset-right, 0px)) 0.75rem max(1.5rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--rose);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.logo-text small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.site-header.scrolled .logo-text small { color: var(--ink-muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  background: var(--rose-pale);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

.btn-primary:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 54, 90, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-call {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.site-header.scrolled .btn-call {
  background: var(--rose);
  border-color: var(--rose);
}

.btn-call:hover { background: var(--rose-deep); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

/* ---- Mobile Menu Toggle ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.webp') center center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 20, 18, 0.72) 0%,
    rgba(155, 40, 72, 0.45) 50%,
    rgba(28, 20, 18, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 820px;
}

.halal-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--halal-red);
  border: 3px solid var(--white);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
  animation: pulse 3s ease-in-out infinite;
}

.halal-en {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
}

.halal-ar {
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.2;
  margin-top: 2px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5); }
  50% { box-shadow: 0 4px 32px rgba(196, 30, 58, 0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0.85;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: var(--white);
}

.stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Quick Nav ---- */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  margin-top: -2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid var(--cream-dark);
  transition: background var(--transition), transform var(--transition);
}

.quick-card:last-child { border-right: none; }

.quick-card:hover {
  background: var(--rose-pale);
  transform: translateY(-2px);
}

.quick-icon { font-size: 1.6rem; }

.quick-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream-dark);
  transition: border-color var(--transition), transform var(--transition);
}

.quick-card:hover .quick-thumb {
  border-color: var(--rose-light);
  transform: scale(1.05);
}

.quick-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Sections ---- */
.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.center p {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.section-header h2,
.section-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

/* ---- About ---- */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-text .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-text strong { color: var(--rose-deep); }

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--rose-pale);
  color: var(--rose);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---- Departments ---- */
.departments { background: var(--white); }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dept-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-margin-top: calc(var(--announcement-h) + var(--header-h) + 16px);
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dept-card-header {
  padding: 2rem 1.75rem 1.5rem;
  position: relative;
  color: var(--white);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dept-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-card-header-inner {
  position: relative;
  z-index: 2;
}

.dept-card-header.butcher::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 40, 72, 0.88), rgba(196, 54, 90, 0.75));
  z-index: 1;
}

.dept-card-header.supermarket::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 74, 58, 0.88), rgba(166, 93, 74, 0.75));
  z-index: 1;
}

.dept-card-header.deli::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 106, 62, 0.88), rgba(61, 138, 82, 0.75));
  z-index: 1;
}

.dept-card-header.butcher {
  background: none;
}

.dept-card-header.supermarket {
  background: none;
}

.dept-card-header.deli {
  background: none;
}

.dept-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
}

.dept-card-header h3,
.dept-card-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dept-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dept-card-body {
  padding: 1.75rem;
}

.dept-card-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.dept-card-body strong { color: var(--rose-deep); }

.dept-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.dept-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--rose);
  border-radius: 50%;
}

.dept-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rose);
  transition: color var(--transition), gap var(--transition);
}

.dept-link:hover { color: var(--rose-deep); }

/* ---- Gallery ---- */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(28, 20, 18, 0.75));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Offerings ---- */
.offerings { background: var(--cream); }

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offering-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.offering-item:hover { transform: translateY(-3px); }

.offering-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.offering-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.offering-item p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---- Visit ---- */
.visit { background: var(--white); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h3,
.info-block h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  margin-bottom: 0.65rem;
}

.info-block p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.phone-link {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
}

.phone-link:hover { color: var(--rose); }

.hours-table {
  width: 100%;
  font-size: 0.92rem;
}

.hours-table td {
  padding: 0.4rem 0;
  color: var(--ink-soft);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  background: var(--cream-dark);
}

.visit-map iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 4 / 3;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 1.5rem 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text small { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--rose-light); }

.footer-contact p { font-size: 0.88rem; line-height: 1.6; }
.footer-hours { margin-top: 0.5rem; color: var(--rose-light); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; }

.payment-icons {
  display: flex;
  gap: 0.75rem;
}

.payment-icons span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--rose);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 150;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
}

/* ---- Mobile Action Bar ---- */
.mobile-action-bar {
  display: none;
}

.mobile-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background var(--transition), transform 0.15s ease;
}

.mobile-action-btn:active {
  transform: scale(0.98);
}

.mobile-action-call {
  background: var(--rose);
  color: var(--white);
}

.mobile-action-directions {
  background: var(--ink);
  color: var(--white);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .dept-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }

  /* Tablet: switch to slide-out nav before links overflow */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--announcement-h) + 4.5rem) 1.25rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    gap: 0.35rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: right var(--transition);
    z-index: 300;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open { right: 0; }

  .main-nav a {
    color: var(--ink-soft);
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--rose);
    background: var(--rose-pale);
  }

  .menu-toggle { display: flex; }

  .btn-call-text { display: none; }

  .header-actions .btn-call {
    padding: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --announcement-h: 26px;
  }

  .container {
    padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
  }

  .announcement {
    font-size: 0.65rem;
    padding: 0.5rem 0;
  }

  .site-header {
    top: var(--announcement-h);
  }

  .site-header.scrolled {
    top: 0;
  }

  .header-inner {
    padding: 0.6rem max(1rem, env(safe-area-inset-right, 0px)) 0.6rem max(1rem, env(safe-area-inset-left, 0px));
    gap: 0.75rem;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .logo-text strong {
    font-size: 1rem;
  }

  .logo-text small {
    font-size: 0.55rem;
  }

  .page-content {
    padding-top: calc(var(--announcement-h) + var(--header-h));
  }

  .hero-content {
    padding: 6.5rem 1.15rem 3.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    margin-bottom: 2rem;
  }

  .hero-cta .btn {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .stat span {
    font-size: 0.65rem;
  }

  .scroll-hint {
    display: none;
  }

  .halal-badge {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
  }

  .quick-nav {
    grid-template-columns: repeat(2, 1fr);
    margin: -1.25rem auto 2rem;
    max-width: calc(100% - 2rem);
    border-radius: var(--radius);
  }

  .quick-card {
    padding: 1.25rem 0.75rem;
    min-height: 100px;
  }

  .quick-card:nth-child(2) { border-right: none; }
  .quick-card { border-bottom: 1px solid var(--cream-dark); }
  .quick-card:nth-child(3),
  .quick-card:nth-child(4) { border-bottom: none; }

  .quick-label {
    font-size: 0.78rem;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { max-width: 100%; }
  .about-features { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .feature-card {
    padding: 1.25rem;
  }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .gallery-item--wide { grid-column: span 2; aspect-ratio: 16/10; }

  .gallery-item figcaption {
    font-size: 0.75rem;
    padding: 2rem 0.65rem 0.65rem;
  }

  .offerings-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  .offering-item {
    padding: 1.35rem 1rem;
  }

  .offering-icon {
    font-size: 1.75rem;
  }

  .offering-item h3 {
    font-size: 0.92rem;
  }

  .offering-item p {
    font-size: 0.8rem;
  }

  .dept-card-header {
    min-height: 180px;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .dept-card-body {
    padding: 1.35rem;
  }

  .dept-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.25rem;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 280px;
    height: 50vh;
    max-height: 360px;
  }

  .phone-link {
    font-size: 1.5rem;
    display: inline-block;
    padding: 0.25rem 0;
    min-height: 44px;
    line-height: 44px;
  }

  .info-block .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2,
  .section-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.15rem 2rem;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
    display: inline-flex;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a {
    padding: 0.35rem 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .payment-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .back-to-top {
    bottom: calc(var(--mobile-bar-h) + 1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 140;
    gap: 0.65rem;
    padding: 0.6rem max(1rem, env(safe-area-inset-right, 0px)) max(0.6rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(28, 20, 18, 0.1);
  }

  body {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
  }

  .dept-card:hover,
  .feature-card:hover,
  .offering-item:hover,
  .quick-card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 480px) {
  .about-text .lead {
    font-size: 1.05rem;
  }

  .hours-table,
  .hours-table tbody,
  .hours-table tr,
  .hours-table td {
    display: block;
    width: 100%;
  }

  .hours-table tr {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream-dark);
  }

  .hours-table td:last-child {
    text-align: left;
    padding-top: 0.15rem;
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .about-features,
  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .quick-thumb {
    width: 48px;
    height: 48px;
  }
}

/* Landscape phones — keep hero content visible */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--announcement-h) + var(--header-h) + 1.5rem) 0 2rem;
  }

  .hero-content {
    padding: 2rem 1.15rem 1.5rem;
  }

  .halal-badge {
    width: 52px;
    height: 52px;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .hero-cta {
    margin-bottom: 1rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .announcement-track,
  .hero-bg,
  .scroll-hint,
  .halal-badge {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
