/* =========================================================
   Moaviz Hassan — site styles
   Colors are set once below. Change them here and the whole
   site updates.
   ========================================================= */

:root {
  --bg: #f5f2eb;          /* page background (cream) */
  --surface: #fffdf8;     /* cards */
  --ink: #121212;         /* headings and main text */
  --text: #2b2b29;
  --muted: #61605b;       /* small grey text */
  --line: #e2ddd1;        /* borders */
  --accent: #1e4d3b;      /* deep green, used a little */
  --accent-soft: #e4ece6;
  --btn-bg: #121212;
  --btn-text: #ffffff;
  --radius: 14px;
  --sidebar: 280px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --base-size: 17px;
}

/* Dark mode */
html[data-theme="dark"] {
  --bg: #121311;
  --surface: #1b1c1a;
  --ink: #f3f1ea;
  --text: #dcd9d0;
  --muted: #a3a097;
  --line: #2e2f2b;
  --accent: #8cc9a8;
  --accent-soft: #20302a;
  --btn-bg: #f3f1ea;
  --btn-text: #121212;
}

/* High contrast */
html[data-contrast="high"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #000000;
  --text: #000000;
  --muted: #1a1a1a;
  --line: #000000;
  --accent: #003d1f;
  --accent-soft: #ffffff;
  --btn-bg: #000000;
  --btn-text: #ffffff;
}
html[data-theme="dark"][data-contrast="high"] {
  --bg: #000000;
  --surface: #000000;
  --ink: #ffffff;
  --text: #ffffff;
  --muted: #f0f0f0;
  --line: #ffffff;
  --accent: #ffe14d;
  --accent-soft: #000000;
  --btn-bg: #ffffff;
  --btn-text: #000000;
}
html[data-contrast="high"] a { text-decoration: underline; }

/* Text size options */
html[data-text="large"]  { --base-size: 19px; }
html[data-text="xlarge"] { --base-size: 21px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--base-size); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text); padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Layout: sidebar + main ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto; z-index: 40;
}
.main { margin-left: var(--sidebar); min-height: 100vh; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 32px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo {
  width: 52px; height: 52px; flex: none; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-text);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
}
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.brand-role { font-size: .8rem; color: var(--muted); font-weight: 500; }
.side-note { font-size: .85rem; color: var(--muted); margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.tool-row { display: flex; gap: 8px; }
.tool-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.tool-btn:hover { border-color: var(--ink); }
.tool-btn svg { width: 18px; height: 18px; }

/* Mobile top bar */
.topbar { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30; padding: 12px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .topbar .logo { width: 40px; height: 40px; font-size: .95rem; border-radius: 10px; }
  .menu-btn { display: inline-flex; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(86vw, 320px); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .wrap { padding: 0 20px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--btn-bg); cursor: pointer; font-family: inherit;
}
.btn:hover { color: var(--btn-text); opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--surface); opacity: 1; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 96px 0 72px; }
.page-head { padding: 80px 0 40px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.small { font-size: .85rem; color: var(--muted); }
.section-intro { max-width: 640px; color: var(--muted); margin-bottom: 36px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0; }
.card li { margin-bottom: 6px; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }

.demo-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .9rem; color: var(--muted);
}

/* Steps */
.steps { counter-reset: step; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); font-weight: 800; color: var(--ink); margin-bottom: 14px;
}

/* Go-Live checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.checklist li {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.checklist .n {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.checklist strong { display: block; color: var(--ink); }
.checklist span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink); }

.cta-box {
  background: var(--btn-bg); color: var(--btn-text); border-radius: 20px; padding: 48px;
}
.cta-box h2, .cta-box p { color: var(--btn-text); }
.cta-box p { opacity: .85; }
.cta-box .btn { background: var(--btn-text); color: var(--btn-bg); border-color: var(--btn-text); }
@media (max-width: 760px) { .cta-box { padding: 32px 24px; } }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--ink); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; width: fit-content; }
.price { margin: 14px 0 6px; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price .per { color: var(--muted); font-size: .9rem; }
.price-setup { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .93rem; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.not-list li::before { content: "✕" !important; color: var(--muted) !important; }

/* ---------- Demos ---------- */
.media-slot {
  aspect-ratio: 16 / 9; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; margin-bottom: 18px;
}
.media-slot img, .media-slot video, .media-slot iframe { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 0; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; color: var(--ink); font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; max-width: 700px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b3261e; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--muted); }

/* ---------- Accessibility panel ---------- */
.a11y-panel {
  position: fixed; left: calc(var(--sidebar) + 16px); bottom: 16px; z-index: 60;
  width: 290px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1rem; margin-bottom: 14px; }
.a11y-group { margin-bottom: 16px; }
.a11y-group > span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button {
  flex: 1; background: transparent; border: 0; padding: 9px 6px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.a11y-close { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); line-height: 1; padding: 4px 8px; }
@media (max-width: 900px) { .a11y-panel { left: 16px; right: 16px; width: auto; } }
