/* Barakah Home Solutions — site styles */
:root {
  --black: #0f0e0c;
  --ink: #1b1a17;
  --charcoal: #2a2824;
  --gold: #c9a44c;
  --gold-light: #e4c77a;
  --gold-dark: #9c7a2c;
  --cream: #f7f1e3;
  --ivory: #fbf8f1;
  --text: #2a2824;
  --muted: #6b655a;
  --line: #e4dccb;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(201,164,76,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.05; }
.brand-name small { display: block; white-space: nowrap; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--cream); text-decoration: none; font-size: .93rem; opacity: .85; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); opacity: 1; }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--black); text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.header-call:hover { background: var(--gold-light); }
.header-call svg { width: 16px; height: 16px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(201,164,76,.5); color: var(--cream); border-radius: 8px; padding: 8px 10px; font-size: .9rem; cursor: pointer; }

@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid rgba(201,164,76,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); }
  .menu-toggle { display: inline-block; }
  .header-actions { display: flex; gap: 8px; align-items: center; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.05rem; }
  .brand-name small { display: none; }
  .brand img { width: 34px; height: 34px; }
  .header-call { padding: 9px 12px; font-size: .88rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--gold); color: var(--black); font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 8px; transition: background .15s;
}
.btn:hover { background: var(--gold-light); }
.btn-dark { background: var(--black); color: var(--gold-light); }
.btn-dark:hover { background: var(--charcoal); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--cream); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(201,164,76,.14), transparent); pointer-events: none; }
.hero h1 { color: var(--cream); }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero .lead { color: #cfc6b2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-points { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #e8e0cc; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 700; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-points { display: none; }
}

.page-hero { background: var(--black); color: var(--cream); padding: 56px 0 48px; }
.page-hero h1 { color: var(--cream); }
.page-hero .lead { color: #cfc6b2; max-width: 720px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--ivory); color: var(--text); border-radius: 14px; padding: 28px;
  border-top: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.form-card.light { box-shadow: 0 10px 30px rgba(15,14,12,.08); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.form-card h2, .form-card h3 { margin-bottom: .2em; }
.form-card .form-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1em; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  padding: 12px 14px; border: 1px solid #cfc5ae; border-radius: 8px; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.hidden { display: none !important; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-list li { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 600; color: var(--ink); font-size: .98rem; }
.trust-list svg { width: 26px; height: 26px; flex: none; color: var(--gold-dark); }
@media (max-width: 760px) { .trust-list { grid-template-columns: 1fr 1fr; } .trust-list li { justify-content: flex-start; font-size: .9rem; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--black); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 700px) { .section { padding: 52px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--gold-light); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold-dark); font-weight: 700; }
.section-dark .check-list li { border-color: rgba(255,255,255,.08); }

.area-callout { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.area-callout p { color: #cfc6b2; margin: 0; max-width: 640px; }

.process-list { display: grid; gap: 18px; }
.process-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.process-item .step-num { margin: 0; }
.process-item p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 22px; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--sans); color: var(--gold-dark); font-size: 1.5rem; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 20px; color: var(--text); }

/* ---------- About ---------- */
.bio { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.bio-photo { aspect-ratio: 4/5; border-radius: 12px; background: var(--black); display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold-dark); text-align: center; font-size: .85rem; padding: 20px; }
.bio-photo img { width: 90px; margin: 0 auto 10px; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio-photo { max-width: 240px; } }

/* ---------- Contact ---------- */
.contact-methods { display: grid; gap: 14px; margin-bottom: 26px; }
.contact-method { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); }
.contact-method svg { width: 26px; height: 26px; color: var(--gold-dark); flex: none; }
.contact-method strong { display: block; font-size: 1.1rem; }
.contact-method span { color: var(--muted); font-size: .9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--cream); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 680px; margin: 0 auto; }
.thanks .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: var(--gold-light); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; }
.next-steps { text-align: left; margin: 30px 0; }
.phone-big { display: inline-block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: var(--cream); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #cfc6b2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #a79f8c; padding: 48px 0 28px; font-size: .92rem; border-top: 1px solid rgba(201,164,76,.25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.site-footer h4 { color: var(--gold); font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky call bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
  .mobile-cta a { padding: 14px 10px; text-align: center; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .mobile-cta .call { background: var(--black); color: var(--gold-light); }
  .mobile-cta .offer { background: var(--gold); color: var(--black); }
  body { padding-bottom: 52px; }
}

/* ---------- Exit popup ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(15,14,12,.6); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.popup-overlay.show { display: flex; }
.popup { background: var(--ivory); max-width: 440px; width: 100%; border-radius: 14px; padding: 30px 26px 24px; border-top: 4px solid var(--gold); position: relative; max-height: 92vh; overflow: auto; }
.popup-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px; }
.popup h3 { font-size: 1.6rem; }
.popup p { color: var(--muted); font-size: .95rem; }
.contact-method div { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Brand wordmark (matches logo lockup) ---------- */
.brand img { width: 46px; height: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; color: #f4efe4; }
.wm-sub { font-family: var(--sans); font-weight: 500; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
@media (max-width: 480px) { .brand img { width: 38px; } .wm-top { font-size: 1.15rem; } .wm-sub { font-size: .52rem; letter-spacing: .18em; } }
.footer-logo { width: 190px; height: auto; }

/* ---------- Audience split ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.audience-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.audience-card .check-list { flex: 1; margin-bottom: 22px; }
.audience-card.dark { background: var(--black); color: var(--cream); border-color: var(--black); border-top-color: var(--gold); }
.audience-card.dark h3 { color: var(--cream); }
.audience-card.dark .eyebrow { color: var(--gold-light); }
.audience-card.dark .check-list li { border-color: rgba(255,255,255,.1); }
.audience-card .btn { align-self: flex-start; }
@media (max-width: 800px) { .audience { grid-template-columns: 1fr; } .audience-card { padding: 26px 20px; } .audience-card .btn { align-self: stretch; } }

/* ---------- Brand band / markets ---------- */
.brand-band { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.brand-band img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.muted-dark { color: #cfc6b2; }
@media (max-width: 800px) { .brand-band { grid-template-columns: 1fr; gap: 28px; text-align: center; } .brand-band img { max-width: 200px; } .brand-band .markets { text-align: left; } }
.markets { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 10px; }
.markets li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(201,164,76,.35); border-radius: 10px; }
.m-state { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--cream); }
.m-detail { color: #cfc6b2; font-size: .92rem; }
.m-status { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.m-status.soon { background: transparent; color: var(--gold-light); border: 1px solid var(--gold); }
.markets.light li { background: #fff; border-color: var(--line); }
.markets.light .m-state { color: var(--ink); }
.markets.light .m-detail { color: var(--muted); }
.markets.light .m-status.soon { color: var(--gold-dark); }
@media (max-width: 480px) { .markets li { grid-template-columns: 1fr auto; } .m-detail { grid-column: 1 / -1; grid-row: 2; } }
.area-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.area-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.area-card h3 svg { width: 22px; height: 22px; color: var(--gold-dark); }

/* ---------- About / thank-you logo ---------- */
.bio-photo { background: #000; }
.bio-photo img { width: 80%; margin: 0 auto; }
.thanks-mark { width: 96px; height: auto; margin: 0 auto 16px; background: var(--black); border-radius: 50%; padding: 10px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-dark) 50%), linear-gradient(135deg, var(--gold-dark) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
