:root {
  color-scheme: light;
  --bg: #f8faf9;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --brand: #10b981;
  --brand-dark: #059669;
  --border: #d1d5db;
  --shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
  --phone-shot-w: 160px;
  --phone-shot-h: 320px;
  --phone-shot-sm-w: 120px;
  --phone-shot-sm-h: 240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 16px;
}

.hero-title-row h1 {
  margin: 0;
}

.brand-name {
  font-size: 18px;
}

.link-plain {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav a:hover {
  color: var(--brand-dark);
}

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 40%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
}

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

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: 56px 0;
}

.section.muted {
  background: #eef7f3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.contact-line {
  font-size: 1.05rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.footer-deletion {
  max-width: 760px;
  padding: 28px 0 4px;
}

.footer-deletion-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.footer-deletion-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-inner--bordered {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.legal h2 {
  margin-top: 28px;
}

.legal ul {
  padding-left: 20px;
}

.updated {
  color: var(--muted);
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: -8px 0 40px;
}

.guide-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

.guide-block--stacked {
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.guide-block--stacked .guide-copy {
  max-width: 640px;
}

.guide-block--stacked .guide-gallery--equal {
  margin-top: 4px;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-copy h3 {
  margin: 8px 0 16px;
}

.guide-copy ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide-copy li + li {
  margin-top: 10px;
}

.guide-sublist {
  margin: 10px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.guide-sublist li + li {
  margin-top: 6px;
}

.guide-copy strong {
  color: var(--text);
}

.guide-shot {
  margin: 0;
  flex-shrink: 0;
}

.guide-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--phone-shot-w);
  max-height: var(--phone-shot-h);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-shot--single img {
  max-width: 180px;
  max-height: 360px;
}

.guide-gallery {
  display: flex;
  gap: 16px;
}

.guide-gallery--equal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  justify-items: center;
}

.guide-gallery--equal .guide-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 150px;
  margin: 0;
}

.guide-gallery--equal .guide-shot img {
  width: 100%;
  height: 260px;
  max-width: 150px;
  max-height: 260px;
  object-fit: contain;
  object-position: center top;
}

.guide-gallery--pair {
  flex-wrap: wrap;
  justify-content: center;
}

.guide-gallery--pair .guide-shot {
  flex: 0 1 auto;
  max-width: var(--phone-shot-w);
}

.gallery-caption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.gallery-caption.result-label--halal {
  color: var(--brand-dark);
}

.gallery-caption.result-label--avoid {
  color: #dc2626;
}

.gallery-caption.result-label--doubtful {
  color: #d97706;
}

@media (max-width: 768px) {
  .guide-block,
  .guide-block--reverse {
    grid-template-columns: 1fr;
  }

  .guide-gallery--equal {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
  }

  .guide-gallery--equal .guide-shot {
    max-width: 130px;
  }

  .guide-gallery--equal .guide-shot img {
    height: 220px;
    max-width: 130px;
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
