/* Marboot site — design-guide/brand-tokens: dome green, brass, marble cream.
   One cream surface; hierarchy from type and space, hairline rules, no
   gradients, no lifted cards. Montserrat throughout (the brand face); the
   wordmark is artwork and is never typeset. */
:root {
  --green-900: #07361F; --green-700: #0B5D3B; --green-600: #0C5545; --green-500: #4C6B58; --green-100: #E4EFE7;
  --brass-600: #C69239; --brass-500: #C9A227; --brass-300: #E3C87A;
  --cream-050: #FFFDF8; --cream-100: #F7F3E9; --cream-200: #F6F1E4;
  --line: #E1DAC7; --line-strong: #CFC6AE;
  --ink: #07361F; --ink-muted: #6E6A5C;
  --r-field: 14px; --r-card: 20px; --r-pill: 999px;
  --dur: 120ms; --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream-100); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-700); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- Header: horizontal lockup left, links right ---- */
header { background: var(--cream-050); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; gap: 4px; padding: 14px 0; }
.nav .brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; padding: 0; }
.nav .brand .symbol { width: 36px; height: 36px; }
.nav .brand .word { height: 14px; width: auto; } /* min wordmark height per the kit */
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: var(--r-pill); }
.nav a:hover { color: var(--green-700); background: var(--green-100); }
.nav a.cta { color: var(--cream-100); background: var(--green-700); margin-left: 6px; }
.nav a.cta:hover { background: #07472C; }
.nav .links { display: flex; align-items: center; gap: 4px; }
.nav .menu { display: none; }

/* ---- Hero: the stacked lockup IS the headline ---- */
.hero { text-align: center; padding: 72px 24px 64px; }
.hero .symbol { width: 132px; height: 132px; margin: 0 auto; }
.hero .word { height: 36px; width: auto; margin: 22px auto 0; }
.hero .tagline { margin-top: 12px; font-size: 17px; font-weight: 500; color: var(--green-500); }
.hero .lede { margin: 26px auto 0; max-width: 620px; font-size: 19px; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pill, .btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: var(--r-field); font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.pill { background: var(--green-100); color: var(--green-700); }
.btn { background: var(--cream-050); color: var(--green-900); border: 1px solid var(--line); }
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--green-700); color: var(--cream-100); border-color: var(--green-700); }
.btn.primary:hover { background: #07472C; border-color: #07472C; }
.hero .stores { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }

/* ---- Sections ---- */
section { padding: 64px 0; }
/* Cream sections are also .wrap, whose `padding: 0 24px` outranks the rule
   above — give them their vertical room explicitly (112px between sections). */
section.wrap { padding-top: 56px; padding-bottom: 56px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-500); margin-bottom: 10px; }
h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: var(--green-900); line-height: 1.2; }
.sub { color: var(--ink-muted); max-width: 640px; margin-top: 10px; font-size: 16.5px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 34px; }
.card { background: var(--cream-050); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card:hover { border-color: var(--line-strong); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; color: var(--green-900); }
.card p { font-size: 14.5px; color: var(--ink-muted); }

/* ---- Wall display: live frame beside the copy ---- */
.display { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.display .copy p { color: var(--ink-muted); margin-top: 14px; font-size: 16px; }
.display code, .way code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--cream-200); padding: 2px 6px; border-radius: 6px; color: var(--green-900); }
.display .copy .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.frame { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--green-900); aspect-ratio: 16 / 9; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.frame-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 10px; }
/* Breathing room between the last cream section and the dome-green band below. */
section#website { padding-bottom: 112px; }

/* ---- Your website: three ways in, live embed beside them ---- */
.integrate { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ways { display: grid; gap: 12px; margin-top: 26px; }
.way { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--cream-050); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: inherit; }
.way:hover { border-color: var(--line-strong); }
.way h3 { font-size: 16px; font-weight: 700; color: var(--green-900); }
.way p { font-size: 14.5px; color: var(--ink-muted); margin-top: 4px; }
.way .go { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--green-700); }
.embed-demo { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--cream-050); }
.embed-demo iframe { width: 100%; height: 540px; border: 0; display: block; pointer-events: none; }
#website .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Guide page (website.html): steps, snippets, option tables, live frames ---- */
.prose h2.step { display: flex; gap: 12px; align-items: baseline; }
.prose .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-700); color: var(--cream-100); font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; transform: translateY(-2px); }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--green-900); margin: 22px 0 6px; }
.prose pre { margin: 12px 0; padding: 14px 16px; background: var(--green-900); color: var(--cream-100); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.prose pre .ph { color: var(--brass-300); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.prose td:first-child { white-space: nowrap; }
.prose .table-wrap { overflow-x: auto; }
.prose .note { background: var(--green-100); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin: 14px 0; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.prose .toc a { text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 7px 13px; border-radius: var(--r-pill); background: var(--green-100); }
.prose .toc a:hover { background: #D5E6DA; }
.previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 6px; }
.previews figure { margin: 0; }
.previews .frame-note { margin-top: 8px; }
.previews iframe { width: 100%; border: 0; display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--cream-200); }

/* ---- For mosque administrations: dome-green band ---- */
.admins { background: var(--green-900); color: var(--cream-100); }
.admins .eyebrow { color: var(--brass-300); }
.admins h2 { color: var(--cream-100); }
.admins .sub { color: rgba(247,243,233,0.72); }
.admins .card { background: rgba(247,243,233,0.05); border-color: rgba(247,243,233,0.14); }
.admins .card:hover { border-color: rgba(247,243,233,0.28); }
.admins .icon { background: rgba(227,200,122,0.14); color: var(--brass-300); }
.admins .card h3 { color: var(--cream-100); }
.admins .card p { color: rgba(247,243,233,0.72); }
.admins .card a { color: var(--brass-300); }
.admins .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.admins .btn { background: transparent; color: var(--cream-100); border-color: rgba(247,243,233,0.35); }
.admins .btn:hover { border-color: var(--cream-100); }
.admins .btn.primary { background: var(--brass-300); color: var(--green-900); border-color: var(--brass-300); }
.admins .btn.primary:hover { background: #EBD48F; border-color: #EBD48F; }

/* ---- Legal / prose pages ---- */
.prose { background: var(--cream-050); border: 1px solid var(--line); border-radius: var(--r-card); padding: 44px; margin: 48px 0; }
.prose h1 { font-size: 30px; font-weight: 700; color: var(--green-900); margin-bottom: 4px; letter-spacing: -0.01em; }
.prose .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 26px; }
.prose h2 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { font-size: 15.5px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
.prose li { margin: 6px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--cream-200); padding: 2px 6px; border-radius: 6px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--ink-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer .mark { display: flex; align-items: center; gap: 10px; margin-right: auto; }
footer .mark img.symbol { width: 22px; height: 22px; }
footer .mark img.word { height: 11px; width: auto; opacity: 0.9; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--green-900); }
footer .copy { flex-basis: 100%; font-size: 13px; }

/* ---- Phones ---- */
@media (max-width: 720px) {
  .nav { position: relative; padding: 10px 0; }
  .nav .menu {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--green-700); cursor: pointer; padding: 0;
  }
  .nav .menu .ico-x, .nav.open .menu .ico-bars { display: none; }
  .nav.open .menu .ico-x { display: block; }
  .nav .links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 16px 14px; background: var(--cream-050); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.3);
  }
  .nav.open .links { display: flex; }
  .nav .links a { font-size: 15px; padding: 12px 14px; }
  .nav a.cta { margin-left: 0; }
  .hero { padding: 48px 20px 44px; }
  .hero .symbol { width: 104px; height: 104px; }
  .hero .word { height: 28px; margin-top: 18px; }
  .hero .lede { font-size: 17px; }
  section { padding: 48px 0; }
  section.wrap { padding-top: 40px; padding-bottom: 40px; }
  h2 { font-size: 25px; }
  .display { grid-template-columns: 1fr; gap: 24px; }
  .integrate { grid-template-columns: 1fr; gap: 28px; }
  section#website { padding-bottom: 80px; }
  .prose { padding: 26px; margin: 28px 0; }
  .prose h1 { font-size: 26px; }
}
