/* Islamic Marriage Counselling — site styles
   No external fonts, scripts or trackers: system font stacks only. */

:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-2: #efe9df;
  --ink: #1d2b2a;
  --ink-soft: #46524f;
  --muted: #5e6966;
  --line: #ddd5c8;
  --brand: #1f4a45;        /* deep green-teal */
  --brand-ink: #ffffff;
  --brand-hover: #163834;
  --accent: #9a5b3c;       /* muted clay, used sparingly */
  --focus: #b5651d;
  --tbc-bg: #fff3c4;
  --tbc-ink: #5a4300;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 43, 42, .05), 0 8px 24px rgba(29, 43, 42, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-hover); }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 1.25rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 40rem; }
.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem;
}

/* Placeholder marker — visible in preview so nothing unconfirmed slips through */
.tbc {
  background: var(--tbc-bg); color: var(--tbc-ink);
  border-radius: 4px; padding: 0 .3em; font-size: .92em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.preview-banner {
  background: var(--tbc-bg); color: var(--tbc-ink);
  font-size: .9rem; text-align: center; padding: .5rem 1rem;
  border-bottom: 1px solid #ecd98a;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--surface-2); color: var(--brand-hover); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: #c9c3b8; border-color: #c9c3b8; color: #3b3b3b; cursor: not-allowed;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.2; }
.brand small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 .9rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--brand); }
.header-cta { display: none; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a { padding: .4rem 0; border: 0; font-size: .97rem; }
  .header-cta { display: inline-flex; min-height: 42px; padding: .55rem 1.15rem; }
  .site-nav .nav-book { display: none; }
}

/* Sections */
section, .booking-panel, #main { scroll-margin-top: 5.5rem; }
section { padding: 4.5rem 0; }
@media (min-width: 48rem) { section { padding: 6rem 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* Hero */
.hero { padding-top: 4rem; }
@media (min-width: 48rem) { .hero { padding-top: 6.5rem; padding-bottom: 6.5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts svg { width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--brand); }

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--accent); background: var(--surface-2);
  padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--ink-soft); font-size: .98rem;
}
.note p:last-child { margin-bottom: 0; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.cred-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.cred-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.cred-list span { color: var(--muted); font-size: .95rem; }

/* Sessions */
.session-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; }
.session-card h3 { font-size: 1.45rem; margin: 0; }
.session-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.session-card .btn { align-self: flex-start; margin-top: auto; }
.session-card[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.session-card ul.details { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }

/* Booking panel */
.booking-panel {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .booking-panel { padding: 2rem 2.25rem; } }
.booking-panel[hidden] { display: none; }
.summary { display: grid; gap: .25rem 1.5rem; grid-template-columns: max-content 1fr; margin: 0 0 1.5rem; }
.summary dt { font-weight: 600; }
.summary dd { margin: 0; color: var(--ink-soft); }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; margin: 1rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--brand); }
.status-msg { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(5, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact / footer */
.urgent {
  background: #fbeee8; border: 1px solid #e9c8b8; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; color: #4a2a1c;
}
.urgent strong { color: #3a1d10; }
.site-footer { background: var(--ink); color: #dfe6e4; padding: 3rem 0 2.5rem; font-size: .95rem; }
.site-footer a { color: #ffffff; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 2fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .small { color: #b7c2bf; font-size: .88rem; }

/* Legal pages */
.legal { max-width: 46rem; padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .6rem .75rem; }
.legal th { background: var(--surface-2); }

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