/* kdawah — Korean Islamic dawah demo · shared peaceful theme
   Deep emerald + warm cream + calm gold (white-logo friendly) */

:root {
  --bg: #faf7ef;
  --bg-2: #f2eddf;
  --panel: #ffffff;
  --line: #e4dcc8;
  --text: #2a2a24;
  --muted: #6f6a5c;
  --accent: #1d6b5c;        /* deep emerald */
  --accent-dark: #124a3f;
  --accent-soft: #e3efe9;
  --header-bg: #113c34;     /* dark emerald surface for white logo */
  --header-bg-deep: #0c2b26;
  --gold: #c9a24b;
  --gold-soft: #f8f1de;
  --shadow: 0 14px 34px rgba(18, 74, 63, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

::selection { background: var(--accent); color: #fff; }

.container { width: 90%; max-width: 1140px; margin: auto; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ----- top utility bar ----- */
.topbar {
  background: var(--header-bg-deep);
  color: #d9e6e1;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 42px; gap: 14px; flex-wrap: wrap;
}
.topbar-contact span { margin-right: 18px; }
.lang-switch {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px; overflow: hidden;
}
.lang-switch button {
  background: transparent; border: none; color: #d9e6e1;
  padding: 5px 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.4px; transition: 0.25s;
}
.lang-switch button.active { background: #ffffff; color: var(--header-bg-deep); }

/* ----- header / nav (dark emerald, single-line menu) ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  box-shadow: 0 6px 22px rgba(12, 43, 38, 0.28);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 19px; line-height: 1.25; color: #ffffff; }
.brand-name small { display: block; font-weight: 400; font-size: 10.5px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.5px; }

.menu {
  display: flex; align-items: center; gap: 15px;
  flex-wrap: nowrap; white-space: nowrap;
}
.menu > li { position: relative; }
.menu a, .menu .drop-toggle {
  font-size: 13.5px; font-weight: 500; color: #eef5f2;
  background: none; border: none; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: color 0.25s;
}
.menu a:hover, .menu .drop-toggle:hover { color: var(--gold); }
.menu a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.menu .drop-toggle::after { content: "\25BE"; font-size: 10px; color: var(--gold); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 175px; padding: 10px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px; white-space: nowrap;
}
.menu li:hover .dropdown, .menu li:focus-within .dropdown { display: flex; }
.dropdown a { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.dropdown a[aria-current="page"] { color: var(--accent-dark); }

.header-cta { display: none; } /* menu stays single-line; CTA lives in hero */

.hamburger {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #ffffff; border-radius: 2px; }

/* ----- hero ----- */
.hero {
  padding: 80px 0 66px;
  background:
    radial-gradient(circle at 88% -10%, rgba(29, 107, 92, 0.14), transparent 38%),
    radial-gradient(circle at 0% 110%, rgba(201, 162, 75, 0.16), transparent 36%),
    var(--bg);
  text-align: center;
}
.hero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.22; color: var(--text); }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.hero p { color: var(--muted); max-width: 640px; margin: 18px auto 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ----- inner page hero ----- */
.page-head { padding: 58px 0 10px; text-align: center; }
.page-head .eyebrow {
  color: var(--accent-dark); font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin: 8px 0 10px; color: var(--text); }
.page-head p { color: var(--muted); font-size: 15px; max-width: 620px; margin: 0 auto; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: 0.25s; border: none;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 8px 20px rgba(29, 107, 92, 0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.text-link { color: var(--accent-dark); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ----- sections ----- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--accent-dark); font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin: 8px 0 10px; color: var(--text); }
.section-head p { color: var(--muted); font-size: 15px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ----- question accordion ----- */
.qa-wrap { max-width: 780px; margin: 0 auto; }
.qa-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  transition: border-color 0.25s;
}
.qa-item.open { border-color: rgba(29, 107, 92, 0.5); }
.qa-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.qa-question .q-arrow {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 15px; transition: transform 0.3s;
}
.qa-item.open .q-arrow { transform: rotate(180deg); }
.qa-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.qa-answer-inner { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.verse {
  margin-top: 12px; padding: 14px 16px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 10px; color: var(--text); font-size: 14px;
}
.verse .ref { display: block; margin-top: 6px; font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.verse.gold-verse { background: var(--gold-soft); border-left-color: var(--gold); }
.verse.gold-verse .ref { color: #8a6d2b; }

/* ----- featured QA (homepage) ----- */
.featured-qa {
  max-width: 780px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; box-shadow: var(--shadow);
}
.featured-qa .fq-tag {
  display: inline-block; background: var(--gold-soft); color: #8a6d2b;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.featured-qa h3 { font-size: 19px; margin-bottom: 10px; color: var(--text); }
.featured-qa p { color: var(--muted); font-size: 14.5px; }

/* ----- summary cards (homepage) ----- */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.summary-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.summary-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 107, 92, 0.45);
  box-shadow: var(--shadow);
}
.summary-card .s-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(29, 107, 92, 0.28);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 6px;
}
.summary-card h3 { font-size: 17.5px; color: var(--text); }
.summary-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.summary-card .text-link { font-size: 14px; margin-top: 6px; }

/* ----- content cards (articles, videos, events, downloads) ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: 0.25s;
}
.info-card:hover { border-color: rgba(29, 107, 92, 0.45); box-shadow: var(--shadow); }
.info-card .c-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--accent-soft); border: 1px solid rgba(29, 107, 92, 0.28);
  display: grid; place-items: center; font-size: 23px; margin-bottom: 4px;
}
.info-card h3 { font-size: 17px; color: var(--text); }
.info-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.info-card .meta { font-size: 12.5px; color: var(--accent-dark); font-weight: 600; }

.video-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: 0.25s;
}
.video-card:hover { transform: translateY(-5px); border-color: rgba(29, 107, 92, 0.45); box-shadow: var(--shadow); }
.video-thumb {
  height: 170px; display: grid; place-items: center;
  background: linear-gradient(135deg, #124a3f, #1d6b5c);
  color: #fff; font-size: 44px; position: relative; cursor: pointer;
}
.video-thumb .v-length {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(12, 43, 38, 0.8); color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
}
.video-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.video-info h3 { font-size: 15.5px; color: var(--text); }
.video-info p { color: var(--muted); font-size: 13px; flex: 1; }
.video-info .meta { font-size: 12px; color: var(--accent-dark); font-weight: 600; }

/* ----- steps ----- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px; position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 20px; right: 22px;
  font-size: 30px; font-weight: 800; color: var(--accent-soft);
}
.step-card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--text); max-width: 75%; }
.step-card p { color: var(--muted); font-size: 13.5px; }

.shahada-box {
  max-width: 720px; margin: 0 auto 40px; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.18), transparent 60%),
    var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 42px 32px; box-shadow: var(--shadow);
}
.shahada-box .arabic { font-size: 30px; color: var(--accent-dark); margin-bottom: 12px; }
.shahada-box .translit { font-size: 18px; font-weight: 600; color: var(--text); }
.shahada-box .meaning { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ----- forms ----- */
.form-card {
  max-width: 760px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; transition: border-color 0.25s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ----- lists ----- */
.check-list { margin: 14px 0; }
.check-list li { padding: 6px 0 6px 32px; position: relative; font-size: 14.5px; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ----- footer (dark emerald) ----- */
footer { border-top: 4px solid var(--gold); background: var(--header-bg); padding: 46px 0 0; color: #e3ece8; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px;
  padding-bottom: 36px;
}
.footer-grid h4 { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid li { color: #e3ece8; font-size: 13.5px; }
.footer-grid p, .footer-grid a { color: #e3ece8; font-size: 13.5px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: #ffffff; }
.footer-grid .brand-name { color: #ffffff; }
.footer-grid .brand-name small { color: rgba(255, 255, 255, 0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #b9c9c3;
}
.footer-bottom a { color: var(--gold); font-weight: 600; }

/* ----- demo notice & toast ----- */
.demo-note {
  position: fixed; bottom: 18px; left: 18px; z-index: 90;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 10px 16px;
  font-size: 12px; color: var(--muted);
  box-shadow: var(--shadow);
}
.demo-note a { color: var(--accent-dark); font-weight: 600; }
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--panel); border: 1px solid var(--accent);
  color: var(--text); border-radius: 12px; padding: 14px 20px;
  font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: 0.3s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ----- responsive ----- */
@media (max-width: 1080px) {
  .menu { gap: 12px; }
  .menu a, .menu .drop-toggle { font-size: 12.5px; }
  .brand-name small { display: none; }
}

@media (max-width: 1024px) {
  .summary-grid, .card-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg); border-bottom: 3px solid var(--gold);
    box-shadow: 0 20px 40px rgba(12, 43, 38, 0.35);
    flex-direction: column; align-items: stretch; gap: 0; padding: 14px 5%;
    white-space: normal;
  }
  .menu.is-open { display: flex; }
  .menu a, .menu .drop-toggle { padding: 12px 4px; font-size: 14.5px; color: #eef5f2; }
  .dropdown {
    position: static; transform: none; display: none;
    background: rgba(255, 255, 255, 0.06); border: none; box-shadow: none;
    padding: 0 0 8px 18px; min-width: 0;
  }
  .menu li.is-open .dropdown { display: flex; }
  .menu li.is-open .dropdown a { color: #eef5f2; }
  .topbar-contact { display: none; }
}

@media (max-width: 620px) {
  .summary-grid, .card-grid, .card-grid.cols-2, .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
  section { padding: 50px 0; }
  .page-head { padding: 42px 0 6px; }
  .form-grid { grid-template-columns: 1fr; }
}
