/* Madinah Musalla Carpets — brand: Forest #0D5A2D, Gold #B2893C (decorative only), Ivory #FAF8F3, Ink #0F2A1A */
:root {
  --forest: #0D5A2D;
  --forest-deep: #0A4623;
  --forest-tint: #E8F1EA;
  --gold: #B2893C;
  --ivory: #FAF8F3;
  --ink: #0F2A1A;
  --muted: #475B4E;
  --line: #E6E1D4;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 26, .05), 0 8px 24px -12px rgba(15, 42, 26, .18);
  --head: "Gelasio", Georgia, "Times New Roman", serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--head); line-height: 1.18; margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-light { background: #fff; color: var(--forest); border-color: var(--gold); }
.btn-light:hover { background: var(--ivory); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--forest-deep); border-color: #fff; }
.btn-outline { color: var(--forest); border-color: var(--forest); background: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { width: 172px; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 26px; }
.nav a, .header-phone { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .header-phone:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone { display: none; font-weight: 600; }
.menu-btn { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu ul { width: min(1160px, 100% - 40px); margin: 0 auto; padding: 8px 0 16px; }
.mobile-menu a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.header-cta .btn { display: none; }

@media (min-width: 640px) { .header-cta .btn { display: inline-flex; } }
@media (min-width: 1040px) {
  .nav { display: block; }
  .header-cta { margin-left: 8px; }
  .header-phone { display: inline; }
  .menu-btn, .mobile-menu { display: none !important; }
  .brand img { width: 190px; }
}

/* ---------- Shared ---------- */
.section { padding: 88px 0; }
.bg-white { background: #fff; }
.bg-green { background: var(--forest); color: #fff; }
.bg-green h2 { color: #fff; }
.bg-green .body-lg { color: rgba(255,255,255,.92); margin: 24px 0 32px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px; }
.eyebrow.light { color: #E9D9B8; }
.heading { text-align: center; max-width: 720px; margin: 0 auto 52px; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 20px 0 0; }
.rule.center { margin-inline: auto; }
.intro { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.body-lg { font-size: 1.08rem; color: var(--muted); margin-top: 22px; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.hero-mark { position: absolute; right: -140px; bottom: -40px; width: 640px; max-width: none; opacity: .06; pointer-events: none; filter: brightness(0) invert(1); }
.hero-grid { position: relative; display: grid; gap: 40px; padding: 64px 0 72px; align-items: center; }
.hero .rule { margin: 0 0 24px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 3.9rem); letter-spacing: -.01em; max-width: 13ch; }
.hero .lead { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; }
.hero .sub { margin-top: 12px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.45); outline: 1px solid rgba(178,137,60,.55); outline-offset: 6px; }
.hero-photo figcaption { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.8); }
@media (min-width: 560px) { .hero-actions { flex-direction: row; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; padding: 96px 0 104px; }
  .hero-photo img { aspect-ratio: 3 / 4; max-height: 540px; }
}

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; }
.trust-list li { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list li:nth-child(2n) { border-right: 0; }
.trust-list strong { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--forest); }
.trust-list span { font-size: .88rem; color: var(--muted); }
@media (min-width: 860px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-list li { border-bottom: 0; padding: 28px 12px; }
  .trust-list li:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-list li:last-child { border-right: 0; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.card .icon { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); }
@media (min-width: 640px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Turkish carpet ---------- */
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 10px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 600; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.mosaic figure { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-tall img { aspect-ratio: auto; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; font-size: .82rem; font-weight: 500; color: #fff; background: linear-gradient(to top, rgba(10,30,18,.78), transparent); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide img { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .gallery .g-wide { grid-row: span 2; }
  .gallery .g-wide img { aspect-ratio: auto; }
  .gallery figcaption { font-size: .88rem; }
}
.projects { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.projects li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.projects strong { font-family: var(--head); font-size: 1.08rem; }
.projects span { color: var(--muted); }
@media (min-width: 760px) {
  .projects { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ---------- Diagram ---------- */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; counter-reset: s; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); font: 700 1.25rem var(--head); color: var(--forest); }
.steps h3 { margin-top: 16px; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 22px; box-shadow: var(--shadow); }
.contact-info p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.05rem; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.contact-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--forest); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.grid-2 { display: grid; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: #fff; border: 1.5px solid #CFC9BA; border-radius: 8px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(13,90,45,.15); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-size: .85rem; margin-top: 5px; min-height: 0; }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status.ok { color: var(--forest); background: var(--forest-tint); padding: 14px 16px; border-radius: 8px; }
.form-status.bad { color: #B42318; }
.quote-form .btn { width: 100%; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .quote-form .btn { width: auto; } }
@media (min-width: 960px) { .contact-card { grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 52px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.9); padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { width: 200px; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.site-footer a { color: #fff; font-weight: 500; }
.site-footer .muted { color: rgba(255,255,255,.75); font-size: .92rem; }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } .site-footer { padding-bottom: 40px; } }

/* ---------- Mobile bar ---------- */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(15,42,26,.25); }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}
.mosaic .m-tall img { object-position: 50% 85%; }
.hero .lead { max-width: 38ch; }
.mosaic .m-tall img { height: 100%; object-fit: cover; object-position: 50% 50%; }
.family-photo { overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.family-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 100%; }
#family { background: var(--ivory); }
#prayer-rows { background: #fff; }
