/* Domestic Foods — site styles */

:root {
  --forest: #00473c;
  --spinach: #2d6b52;
  --sage: #a9c1a9;
  --sage-pale: #d8e5d6;
  --oat: #e8dcc6;
  --lime: #e6ff55;
  --ink: #0e150e;
  --ink-soft: #484d48;
  --muted: #8c8c82;
  --rule: rgba(0, 71, 60, 0.24);
  --cream: #f4f3e7;
  --white: #ffffff;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --gutter: 40px;
  --radius: 20px;
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 128px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spinach);
  margin-bottom: 20px;
}

.display {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--forest);
}

.title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.title-serif {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 34ch;
}

.section-intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 24px;
}
.section-intro a { color: var(--forest); text-underline-offset: 3px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 16px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--lime); color: var(--forest); }
.btn-primary:hover { background: var(--forest); color: var(--lime); }

.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

.btn-nav {
  min-height: 42px;
  padding: 0 20px;
  background: var(--forest);
  color: var(--lime);
  font-size: 15px;
}
.btn-nav:hover { background: var(--spinach); }

.btn-block { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--forest);
  text-underline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--forest);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav a:hover { border-bottom-color: var(--forest); color: var(--forest); }
.nav .nav-call { display: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--forest);
  transform: translateX(-50%);
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.menu-bars { top: 50%; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; transform: none; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

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

.hero { padding: clamp(32px, 5vw, 64px) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .lede { margin-top: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 11 / 12;
  object-fit: cover;
  border-radius: var(--radius);
}
.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--lime);
  color: var(--forest);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--forest);
  color: var(--cream);
  border-radius: 14px;
  overflow: hidden;
}
.stat-strip li {
  font-size: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-strip li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.stat-strip li + li { border-left: 1px solid rgba(244, 243, 231, 0.18); }

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

.section { padding: var(--section-y) 0; }

.band-sage { background: var(--sage-pale); }
.band-oat { background: var(--oat); }
.band-forest { background: var(--forest); color: var(--cream); }
.band-forest .title { color: var(--cream); }
.band-forest .eyebrow { color: var(--lime); }
.band-forest .section-intro { color: rgba(244, 243, 231, 0.82); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
}
.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
  background: var(--oat);
}
.product h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--forest);
}
.product p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 36ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chips li {
  font-size: 14px;
  line-height: 1;
  padding: 9px 14px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--forest);
}

.note {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
.note a { color: var(--forest); text-underline-offset: 3px; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-media img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.numbered {
  counter-reset: n;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}
.numbered li {
  counter-increment: n;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 20px;
}
.numbered li::before {
  content: counter(n);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.service p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Halal pillars ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(244, 243, 231, 0.24);
}
.pillar {
  padding: 32px 28px 8px 0;
}
.pillar + .pillar {
  padding-left: 28px;
  border-left: 1px solid rgba(244, 243, 231, 0.24);
}
.pillar-num {
  display: block;
  font-size: 14px;
  color: var(--lime);
  margin-bottom: 28px;
}
.pillar h3 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--cream);
}
.pillar p {
  margin-top: 12px;
  color: rgba(244, 243, 231, 0.78);
}

/* ---------- What is halal ---------- */

.whatis {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.whatis-copy p {
  font-size: 19px;
  color: var(--ink);
  max-width: 58ch;
}
.whatis-copy p + p { margin-top: 18px; }

/* ---------- Delivery steps ---------- */

.split-reverse .split-media { order: 2; }

.steps {
  counter-reset: s;
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: "0" counter(s);
  grid-row: span 2;
  font-size: 14px;
  color: var(--spinach);
  padding-top: 4px;
}
.steps h3 { font-size: 21px; line-height: 1.25; color: var(--forest); }
.steps p { margin-top: 4px; color: var(--ink-soft); }

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

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--forest);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background:
    linear-gradient(var(--forest), var(--forest)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--forest), var(--forest)) center / 1.5px 12px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 56px 26px 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-list {
  margin: 40px 0 0;
  border-top: 1px solid var(--rule);
}
.contact-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list dt {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spinach);
  padding-top: 4px;
}
.contact-list dd { margin: 0; font-size: 18px; }
.contact-phone {
  font-size: 28px;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage-pale);
  aspect-ratio: 16 / 10;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.form-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.1;
  color: var(--forest);
  margin-bottom: 28px;
}

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 15px; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300473c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
}
.field.has-error input,
.field.has-error textarea { border-color: #a4312a; }
.field-error { font-size: 14px; color: #a4312a; }

.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-legal {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 20px;
}
.form-legal a { color: var(--forest); }

.form-status { margin-top: 16px; font-size: 15px; color: var(--forest); min-height: 1.4em; }
.form-status.is-error { color: #a4312a; }

.form-success {
  text-align: left;
  padding: 12px 0;
}
.form-success h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  color: var(--forest);
  line-height: 1.1;
}
.form-success p { margin-top: 14px; color: var(--ink-soft); }
.form-success a { color: var(--forest); }

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

.site-footer {
  background: var(--sage-pale);
  padding: 72px 0 32px;
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 18px; color: var(--ink-soft); max-width: 28ch; }
.footer-head {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spinach);
  margin-bottom: 14px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links li + li { margin-top: 6px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Simple pages ---------- */

.page {
  padding: clamp(48px, 8vw, 112px) 0 var(--section-y);
}
.page .wrap { max-width: 860px; }
.page h1 { margin-bottom: 32px; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--forest);
  margin: 40px 0 12px;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--forest); text-underline-offset: 3px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

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

@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .btn-nav { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid rgba(244, 243, 231, 0.24); margin-top: 24px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; --header-h: 68px; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav a {
    font-size: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:hover { border-bottom-color: var(--rule); }
  .nav .nav-call {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--lime);
    color: var(--forest);
    font-size: 17px;
  }

  .nav.nav-simple {
    position: static;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    border: 0;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav.nav-simple a { font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }

  .hero-grid,
  .split,
  .whatis,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media img { aspect-ratio: 4 / 3; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-reverse .split-media { order: 0; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip li:nth-child(3) { border-left: 0; }
  .stat-strip li:nth-child(n+3) { border-top: 1px solid rgba(244, 243, 231, 0.18); }

  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .brand-name { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip li { padding: 14px 18px; }
  .stat-strip li + li { border-left: 0; border-top: 1px solid rgba(244, 243, 231, 0.18); }

  .product-grid,
  .service-grid,
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-left: 0; margin-top: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(244, 243, 231, 0.24); }
  .pillar-num { margin-bottom: 14px; }

  .numbered li { font-size: 18px; }
  .faq-list summary { font-size: 18px; }
  .faq-list details p { padding-right: 0; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
