/* Imaan Companion — site styles
   Layout: emerald bands (header, hero, footer) frame calm light reading sections; one 1120px column,
   product cards as book covers drawn in CSS, blog set at a ~68ch measure. */
:root {
  --emerald-900: #00241A;   /* logo ground */
  --emerald-800: #0A3528;
  --emerald-700: #124A38;
  --emerald-line: #24563F;
  --gold: #D6AE5C;          /* on dark */
  --gold-deep: #8E6A22;     /* gold for text on light */
  --gold-soft: #EBD9A6;
  --paper: #F7F8F5;         /* light section ground, faint green bias */
  --paper-2: #EDF1EC;
  --ink: #142620;           /* body text on light */
  --ink-soft: #4C5F57;
  --white: #FFFFFF;
  --on-dark-muted: #A6C3B7;
  --rose: #6E2E3E;          /* Becoming Her cover */
  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-ar: "Amiri", "Noto Naskh Arabic", serif;
  --wrap: 1120px;
  --radius: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { background: var(--emerald-900); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--emerald-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 46px; object-fit: contain; }
.brand span { font: 400 19px/1 var(--f-display); letter-spacing: .14em; }
.brand small { display: block; font-size: 10px; letter-spacing: .38em; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: #DCE8E2; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: var(--emerald-800); }
.nav a.cta { background: var(--gold); color: var(--emerald-900); margin-left: 6px; }
.nav a.cta:hover { background: var(--gold-soft); }
.menu-btn { display: none; background: none; border: 1px solid var(--emerald-line); color: var(--white); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--f-body); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
         background: var(--emerald-900); padding: 10px max(20px, env(safe-area-inset-left, 0px)) 18px; border-bottom: 1px solid var(--emerald-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { background: var(--emerald-900); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 78% 40%, #0F4A37 0%, transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.hero .bism { font: 400 24px/1 var(--f-ar); color: var(--gold-soft); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #CFE0D8; font-size: 19px; max-width: 46ch; margin-top: 18px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .logo-big { justify-self: center; width: min(360px, 100%); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-block: 36px 52px; gap: 22px; }
  .hero .logo-big { width: 200px; order: -1; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
}
.page-hero { background: var(--emerald-900); color: var(--white); }
.page-hero .wrap { padding-block: 52px 56px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 10px; }
.page-hero p { color: #CFE0D8; max-width: 58ch; margin-top: 14px; font-size: 18px; }

/* ---------- buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 16px/1 var(--f-body); padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--emerald-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-dark { background: var(--emerald-900); color: var(--white); }
.btn-dark:hover { background: var(--emerald-700); }
.eyebrow { font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section.tint { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--ink-soft); max-width: 52ch; margin-top: 10px; }
.section-head .more { font-weight: 600; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid #DDE5DF; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 36, 26, .45); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.card .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tag { font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--emerald-700); }
.tag.free { background: #E9F3D8; color: #3E5A12; }
.card .go { font-weight: 600; color: var(--emerald-700); text-decoration: none; }
.card .go::after { content: " →"; }
.card a.cover-link { text-decoration: none; }

/* CSS book cover */
.cover { aspect-ratio: 4 / 3; background: var(--emerald-800); color: var(--white); position: relative; display: grid; place-items: center; text-align: center; padding: 22px; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(214, 174, 92, .55); border-radius: 10px; }
.cover::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(214,174,92,.18), transparent 65%); top: -10%; right: -20%; }
.cover .arch { width: 34px; height: 44px; color: var(--gold); margin: 0 auto 10px; }
.cover .ct { font: 400 clamp(20px, 2vw, 25px)/1.15 var(--f-display); position: relative; text-wrap: balance; }
.cover .cs { font: 500 11px/1.3 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-top: 10px; position: relative; }
.cover.v-teal { background: #0B3B40; }
.cover.v-deep { background: #062019; }
.cover.v-olive { background: #2C3A1D; }
.cover.v-rose { background: var(--rose); }
.cover.v-rose::before { border-color: rgba(255, 220, 220, .5); }
.cover.v-rose .cs { color: #F5D5D9; }

/* feature band */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--white); border-radius: 24px; overflow: hidden; border: 1px solid #DDE5DF; }
.feature .cover { aspect-ratio: auto; min-height: 340px; }
.feature .cover .ct { font-size: clamp(30px, 3.4vw, 42px); }
.feature .txt { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature h2 { font-size: clamp(28px, 3.2vw, 38px); }
.feature ul { margin: 4px 0 6px; padding-left: 20px; color: var(--ink-soft); }
.feature li { margin: 4px 0; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .cover { min-height: 240px; } .feature .txt { padding: 26px 22px; } }

/* creators strip */
.strip { background: var(--emerald-900); color: var(--white); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.strip h2 { font-size: clamp(26px, 3vw, 36px); }
.strip p { color: #CFE0D8; margin-top: 10px; max-width: 56ch; }
.strip .eyebrow { color: var(--gold); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; padding: 28px 22px; } }

/* blog cards */
.post-card { background: var(--white); border-radius: var(--radius); border: 1px solid #DDE5DF; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 36, 26, .45); }
.post-card .meta { font-size: 13.5px; color: var(--ink-soft); }
.post-card h3 { font-size: 23px; }
.post-card p { color: var(--ink-soft); font-size: 15.5px; }
.post-card .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--emerald-700); }

/* social band */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.social a { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); text-decoration: none; background: var(--white); border: 1px solid #DDE5DF; }
.social a:hover { border-color: var(--gold-deep); }
.social .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold); flex: none; }
.social .ic svg { width: 26px; height: 26px; }
.social b { display: block; font-size: 18px; }
.social span span { color: var(--ink-soft); font-size: 15px; }

/* ---------- article ---------- */
.article-head { background: var(--emerald-900); color: var(--white); }
.article-head .wrap { max-width: 820px; padding-block: 52px 56px; }
.article-head .eyebrow { color: var(--gold); }
.article-head h1 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 12px; }
.article-head .meta { color: var(--on-dark-muted); margin-top: 16px; font-size: 15px; }
.article { max-width: 820px; margin: 0 auto; padding: 48px max(20px, env(safe-area-inset-left, 0px)) 72px; }
.article .prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 28px; margin: 1.7em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--paper-2); border-radius: 14px; }
.prose blockquote p { margin: 0; }
.prose blockquote .ar { font: 400 26px/1.8 var(--f-ar); direction: rtl; text-align: right; color: var(--emerald-900); margin-bottom: 8px; }
.prose blockquote cite { display: block; font-style: normal; color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.prose a { color: var(--emerald-700); font-weight: 600; }
.callout { margin-top: 36px; padding: 26px; border-radius: 20px; background: var(--emerald-900); color: var(--white); display: grid; gap: 12px; }
.callout p { color: #CFE0D8; }
.callout .btn { justify-self: start; }

/* ---------- about / contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col .prose { max-width: 60ch; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.values { display: grid; gap: 14px; }
.values div { background: var(--white); border: 1px solid #DDE5DF; border-radius: 16px; padding: 18px 20px; }
.values b { font-family: var(--f-display); font-weight: 400; font-size: 21px; display: block; }
.values span { color: var(--ink-soft); font-size: 15.5px; }
.mail-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--white); border: 1px dashed var(--emerald-line); border-radius: 16px; padding: 18px 20px; }
.mail-box span { font-weight: 600; user-select: all; overflow-wrap: anywhere; min-width: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--emerald-900); color: #CFE0D8; margin-top: 0; }
.site-footer .wrap { padding-block: 48px 36px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #DCE8E2; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .fbrand img { width: 120px; }
.site-footer .fbrand p { margin-top: 12px; max-width: 34ch; font-size: 15px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--emerald-line); padding-top: 20px; font-size: 13.5px; color: var(--on-dark-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .card:hover, .post-card:hover, .btn:hover { transform: none; } }
@media (max-width: 600px) { .grid .cover { aspect-ratio: 16 / 9; } .grid .cover .arch { width: 26px; height: 34px; margin-bottom: 6px; } }

/* product photo: covers the drawn cover when a file exists in assets/products/ */
.cover .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
