/* Dahiat Almayar Markets Central — shared stylesheet */
:root {
  --green-900: #0f3d2a;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-100: #e7f5ec;
  --green-50: #f3faf5;
  --accent: #c2410c;
  --accent-soft: #fff4ec;
  --ink: #1b2420;
  --ink-soft: #46524c;
  --line: #dde5e0;
  --bg: #ffffff;
  --bg-alt: #f7f9f8;
  --todo-bg: #fff7d6;
  --todo-ink: #6b4e00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 42, .06), 0 8px 24px rgba(15, 61, 42, .07);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; color: var(--green-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--green-900); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.02rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-soft); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--green-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.site-nav a {
  display: block; padding: .75rem .5rem; text-decoration: none; color: var(--ink);
  font-weight: 600; border-radius: 8px;
}
.site-nav a:hover { background: var(--green-50); color: var(--green-800); }
.site-nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: transparent; }
  .site-nav ul { display: flex; gap: .25rem; padding: 0; }
  .site-nav a { padding: .5rem .8rem; font-size: .95rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-800); background: #fff; }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12) 0 120px, transparent 121px),
    radial-gradient(circle at 95% 85%, rgba(255,255,255,.08) 0 200px, transparent 201px),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 4rem 0 4.5rem;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { color: #bbf7d0; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 56ch; color: #e6f4ea; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.hero-badges li {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
@media (min-width: 768px) { .hero { padding: 6rem 0 6.5rem; } }

.page-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 3rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.75rem); margin-bottom: .3em; }
.page-hero p { color: #e6f4ea; max-width: 60ch; margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; }
.breadcrumb a { color: #bbf7d0; }
.breadcrumb span { color: #e6f4ea; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .6rem;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
section[id] { scroll-margin-top: 72px; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin: 0; }

.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-100);
  color: var(--green-700); display: grid; place-items: center; margin-bottom: 1rem;
}
.icon svg { width: 28px; height: 28px; }
.icon-accent { background: var(--accent-soft); color: var(--accent); }

.dept-card { display: flex; gap: 1rem; align-items: flex-start; }
.dept-card .icon { flex: none; margin: 0; }

.feature-panel {
  border-radius: var(--radius); padding: 2rem; background: var(--green-50);
  border: 1px solid var(--line);
}
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.stat-list li { display: flex; gap: .85rem; align-items: flex-start; }
.stat-list svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: .2rem; }

/* ---------- Info / visit ---------- */
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--green-900); }
.info-list span, .info-list address { color: var(--ink-soft); font-style: normal; }

.hours-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--green-100);
  color: var(--green-800); font-weight: 800; padding: .4rem .9rem; border-radius: 999px;
}
.hours-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-600); }

.map-frame {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--green-50);
}

.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff;
  border-radius: calc(var(--radius) + 6px); padding: 2.25rem 1.5rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6f4ea; max-width: 56ch; margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Tables / legal ---------- */
.reg-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.reg-table th, .reg-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table th { width: 40%; background: var(--green-50); color: var(--green-900); font-weight: 700; }
.reg-table tr:last-child th, .reg-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .reg-table th, .reg-table td { display: block; width: 100%; }
  .reg-table th { border-bottom: 0; padding-bottom: .2rem; }
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.updated { color: var(--ink-soft); font-size: .95rem; }

.todo {
  background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed #d4a300;
  padding: .05rem .4rem; border-radius: 6px; font-weight: 700; font-size: .92em;
  white-space: normal;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d6e9dd; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 3px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; }
.site-footer .todo { background: #fff3c4; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; color: #b5d3c0;
}

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