/* ============================================================
   Halal Dining Yorkshire — site styles v2
   Brand tokens from HDY logo files:
   Yellow #F5B800 · Brown #5A3D08 · Ink #1A1A1A · Grey #777777
   Light #F7F7F7 · Dividers #CCCCCC
   Display/body: Poppins (bold, tight tracking) · Serif: Playfair Display
   ============================================================ */

:root {
  --yellow: #F5B800;
  --yellow-deep: #E3A800;
  --ink: #1A1A1A;
  --brown: #5A3D08;
  --brown-soft: #7A5510;
  --paper: #FFFFFF;
  --light: #F7F7F7;
  --grey: #777777;
  --line: #CCCCCC;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.10);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type: Poppins bold, tight tracking ---------- */

h1, h2, h3, h4, .display {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.display {
  font-weight: 800;
  line-height: 1.02;
}

.display .row { display: block; }
.display .white { color: var(--paper); }
.display .brown { color: var(--brown); }
.display .ink { color: var(--ink); }

.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow.on-yellow { color: var(--brown); }
.eyebrow.on-white { color: var(--yellow-deep); }

.lede {
  font-size: 1.08rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }

.btn-ghost-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-white { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 2px solid rgba(26, 26, 26, 0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo-img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav a:hover { color: var(--brown); }

.nav .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav .btn.btn-ink { color: var(--yellow); }
.nav .btn.btn-ink:hover { color: var(--paper); }

/* ---------- Hero ---------- */

.hero {
  background: var(--yellow);
  padding: 84px 0 0;
  overflow: hidden;
}

.hero .display {
  font-size: clamp(2.9rem, 7.6vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero .lede {
  margin: 26px 0 34px;
  color: var(--ink);
  font-weight: 500;
}

.hero .display .brown {
  margin-top: 0.04em;
}

.serif-row {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.14em;
  margin-top: -0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  min-height: 600px;
}

.hero-copy {
  align-self: start;
  padding-top: 8px;
}

.hero-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  padding-left: 28px;
}

.hero-logo {
  width: 100%;
  max-width: 460px;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: heroLogoIn 1s cubic-bezier(0.2, 0.8, 0.25, 1) 0.2s forwards,
             heroLogoFloat 5s ease-in-out 1.2s infinite;
}

@keyframes heroLogoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin: 44px 0 64px;
}

.stat .num {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 2.4rem;
  line-height: 1.1;
}

.stat .lab {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

/* City marquee */

.marquee {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.marquee .track {
  display: inline-block;
  animation: scroll 28s linear infinite;
}

.marquee span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 28px;
}

.marquee .dot { color: var(--paper); }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pin { opacity: 1 !important; transform: translate(-50%, -100%) !important; transition: none !important; }
  .hero-logo { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- Split layout: content left, sticky map right ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: start;
}

.split-left { min-width: 0; }

.map-rail {
  position: sticky;
  top: 96px;
  padding: 12px 0 40px;
}

.map-frame {
  background: var(--light);
  border-radius: calc(var(--radius) + 8px);
  padding: 20px;
  box-shadow: var(--shadow);
}

.map-stage {
  position: relative;
  width: 100%;
}

.ymap-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.pin {
  position: absolute;
  width: 42px;
  height: auto;
  transform: translate(-50%, -100%) translateY(-30px);
  opacity: 0;
  filter: drop-shadow(0 6px 8px rgba(26, 26, 26, 0.25));
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.pin.drop {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
}

/* Sections inside the split left column */

.split-left .section { padding: 72px 0; }
.split-left .section:first-child { padding-top: 56px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.on-light { background: var(--light); }
.section.on-yellow { background: var(--yellow); }
.section.on-ink { background: var(--ink); color: var(--paper); }

.section-head { margin-bottom: 44px; }
.section-head .display { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section-head .lede { margin-top: 18px; color: var(--grey); }
.section.on-yellow .section-head .lede { color: var(--ink); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p { font-size: 0.95rem; color: var(--grey); }

.card .tag {
  display: inline-block;
  background: var(--light);
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Metrics / case study ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.metric .num { font-weight: 800; letter-spacing: -0.04em; font-size: 1.6rem; color: var(--ink); }
.metric .lab { font-size: 0.83rem; font-weight: 600; color: var(--grey); }

.pull-quote {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 38px 34px;
}

.pull-quote .serif {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  font-style: italic;
}

.pull-quote .attr {
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--yellow);
}

/* ---------- Process ---------- */

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: none; }

.step .n {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1;
}

.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--grey); font-size: 0.96rem; max-width: 60ch; }

/* ---------- Partners ---------- */

.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
  text-align: center;
}

.partner-card .p-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.3rem;
}

.partner-card .p-loc {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 6px;
}

.partner-card.add-card {
  background: repeating-linear-gradient(
    -45deg, var(--paper), var(--paper) 12px, var(--light) 12px, var(--light) 24px
  );
  box-shadow: none;
  border: 2px dashed var(--line);
}

.soon-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 10px;
  align-self: center;
}

/* ---------- Coming soon block ---------- */

.coming-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 44px;
  text-align: center;
}

.coming-block .serif {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.25;
}

.coming-block .soon-badge { margin-top: 18px; }

.coming-block p.sub {
  margin-top: 16px;
  color: #cfcfcf;
  font-size: 0.97rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */

details { border-bottom: 1px solid var(--line); padding: 20px 0; }

summary {
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brown);
}

details[open] summary::after { content: "–"; }

details p { margin-top: 12px; color: var(--grey); font-size: 0.97rem; max-width: 70ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 40px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
  align-items: start;
}

.footer-logo { width: 200px; height: auto; margin-bottom: 18px; }

.site-footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  color: #d9d9d9;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 5px 0;
}

.site-footer a:hover { color: var(--yellow); }

.site-footer .fine {
  border-top: 1px solid #333;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #999;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .map-rail { position: static; order: -1; padding: 32px 0 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-brand { order: -1; padding-left: 0; justify-content: center; align-self: auto; }
  .hero-copy { padding-top: 0; }
  .hero-logo { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
  .split-left .section { padding: 52px 0; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .logo-img { height: 38px; }
  .step { grid-template-columns: 48px 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
