/* HalalMapp marketing site — matches app design system */
:root {
  --green: #7fb069;
  --green-dark: #5c8a4d;
  --green-light: #9dc183;
  --gold: #d4af37;
  --gold-light: #e6c65c;
  --cream: #f5f5f4;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-secondary: #5c5c5c;
  --text-light: #8a8a8a;
  --border: #e8e8e5;
  --shadow: 0 4px 24px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 45, 45, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: "Amiri", serif;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(92, 138, 77, 0.35);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-desktop a:hover {
  color: var(--green-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background: var(--green);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 2px 12px rgba(127, 176, 105, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(127, 176, 105, 0.45);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(160deg, var(--green-dark) 0%, #3d6b35 45%, #2d5230 100%);
  color: var(--white);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.6'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3Cpolygon points='40,16 64,28 64,52 40,64 16,52 16,28'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-80px, -80px) rotate(360deg); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold);
}

.hero-arabic {
  font-family: "Amiri", serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(100%, 300px);
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status-bar {
  height: 24px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  z-index: 2;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.phone-map-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.phone-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--white);
  border-radius: 50%;
}

.map-pin:nth-child(1) { top: 18%; left: 22%; }
.map-pin:nth-child(2) { top: 32%; left: 68%; background: #e53935; }
.map-pin:nth-child(3) { top: 42%; left: 46%; width: 20px; height: 20px; z-index: 3; }
.map-pin:nth-child(4) { top: 58%; left: 28%; }
.map-pin:nth-child(5) { top: 52%; left: 72%; }

.map-pin--active {
  background: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(127, 176, 105, 0.35), 0 3px 10px rgba(0, 0, 0, 0.3);
  animation: pin-pulse 2s ease-in-out infinite;
}

.map-pin--gold {
  background: var(--gold);
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(127, 176, 105, 0.35), 0 3px 10px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 7px rgba(127, 176, 105, 0.18), 0 3px 10px rgba(0, 0, 0, 0.3); }
}

.phone-search-bar {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  z-index: 4;
}

.phone-search-bar svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Bottom sheet — matches in-app restaurant detail popup */
.phone-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.phone-sheet-handle {
  width: 32px;
  height: 3px;
  background: rgba(26, 26, 26, 0.15);
  border-radius: 999px;
  margin: 0 auto 8px;
}

.phone-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.phone-sheet-header h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  flex: 1;
}

.halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  border-radius: 8px;
  font-size: 0.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.phone-sheet-meta {
  margin: 0 0 2px;
  font-size: 0.5625rem;
  color: var(--text-secondary);
}

.phone-sheet-address {
  margin: 0 0 6px;
  font-size: 0.5rem;
  color: var(--text-light);
}

.phone-sheet-deal {
  margin-bottom: 8px;
}

.deal-badge {
  display: inline-block;
  padding: 3px 7px;
  background: rgba(127, 176, 105, 0.15);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 600;
}

.phone-sheet-actions {
  display: flex;
  gap: 6px;
}

.sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.5rem;
  font-weight: 600;
}

.sheet-btn--primary {
  flex: 1;
  background: var(--green);
  color: var(--white);
}

.sheet-btn--icon {
  width: 26px;
  padding: 5px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.625rem;
}

.contact-single {
  max-width: 28rem;
}

/* ─── Sections ─── */

section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 0 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(127, 176, 105, 0.15), rgba(127, 176, 105, 0.05));
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Split sections ─── */

.split-section {
  background: var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.split-content li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(127, 176, 105, 0.15);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

.split-visual {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.split-visual h3 {
  font-family: "Amiri", serif;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.split-visual p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ─── Download CTA ─── */

.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.store-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.75;
  font-weight: 400;
}

.store-btn strong {
  font-size: 1rem;
}

.coming-soon-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* ─── Contact ─── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.0625rem;
}

/* ─── Legal pages ─── */

.legal-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.legal-meta {
  color: var(--text-light);
  font-size: 0.875rem;
}

.legal-content {
  background: var(--white);
  padding: 3rem 0 5rem;
}

.legal-body {
  max-width: 42rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.legal-body a {
  word-break: break-word;
}

/* ─── Status pages (subscribe success/cancel) ─── */

.status-page {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.status-card {
  text-align: center;
  max-width: 28rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.status-icon.success {
  background: rgba(127, 176, 105, 0.15);
  color: var(--green-dark);
}

.status-icon.cancel {
  background: rgba(229, 57, 53, 0.1);
  color: #e53935;
}

.status-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.status-card p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ─── Footer ─── */

.site-footer {
  background: #1a1f1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  max-width: 22rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stat-row {
    flex-direction: column;
    gap: 1rem;
  }
}
