/* =========================================================
   SALIHIN — Shariah Advisory & Assurance
   Design system
   ========================================================= */
:root{
  /* Brand */
  --red:        #ba292c;
  --red-600:    #a92327;
  --red-700:    #8f1c20;
  --red-050:    #fbeeee;
  --gold:       #b8912f;
  --gold-soft:  #c8a547;
  --gold-050:   #f8f1de;

  /* Neutrals (warm) */
  --ink:        #211c1b;
  --ink-2:      #4a423f;
  --muted:      #7c726d;
  --line:       #ece6e1;
  --line-2:     #e1d9d3;
  --paper:      #ffffff;
  --ivory:      #faf7f3;
  --ivory-2:    #f4efe9;
  --charcoal:   #1c1817;

  /* Type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(33,28,27,.06), 0 1px 1px rgba(33,28,27,.04);
  --shadow:    0 18px 40px -22px rgba(33,28,27,.28);
  --shadow-lg: 0 40px 80px -40px rgba(33,28,27,.40);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; line-height:1.12; color:var(--ink); margin:0; letter-spacing:-.01em; }
p{ margin:0; }
::selection{ background:var(--red); color:#fff; }

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 32px; }
.section{ padding:108px 0; }
.section--tight{ padding:80px 0; }
.ivory{ background:var(--ivory); }
.ivory-2{ background:var(--ivory-2); }
.grid{ display:grid; gap:32px; }
.center{ text-align:center; }

.eyebrow{
  font-family:var(--sans);
  font-size:13px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--red); display:inline-flex; align-items:center; gap:10px; margin:0 0 20px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--gold); display:inline-block; }
.eyebrow.center{ }
.eyebrow.center::before{ display:none; }

.kicker-line{ width:48px; height:3px; background:var(--red); border-radius:2px; margin:0 0 26px; }
.center .kicker-line{ margin-left:auto; margin-right:auto; }

h1{ font-size:clamp(40px, 5vw, 62px); }
h2{ font-size:clamp(30px, 3.6vw, 44px); }
h3{ font-size:22px; }
.lead{ font-size:20px; color:var(--ink-2); line-height:1.6; }
.muted{ color:var(--muted); }
.maxw{ max-width:680px; }
.maxw.center{ margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--sans); font-weight:700; font-size:15px; letter-spacing:.01em;
  padding:15px 26px; border-radius:var(--radius); cursor:pointer; border:1px solid transparent;
  transition:transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn--primary{ background:var(--red); color:#fff; box-shadow:0 10px 22px -12px rgba(186,41,44,.7); }
.btn--primary:hover{ background:var(--red-700); box-shadow:0 14px 26px -12px rgba(186,41,44,.8); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--ink); background:#fff; }
.btn--light{ background:#fff; color:var(--ink); }
.btn--light:hover{ background:var(--ivory); }
.btn .arr{ transition:transform .2s ease; }
.btn:hover .arr{ transform:translateX(3px); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:84px; }
.brand img{ height:38px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-weight:600; font-size:15px; color:var(--ink-2);
  padding:10px 16px; border-radius:var(--radius); position:relative; transition:color .18s ease;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a.is-active{ color:var(--red); }
.nav-links a.is-active::after{
  content:""; position:absolute; left:16px; right:16px; bottom:2px; height:2px; background:var(--red); border-radius:2px;
}
.nav-right{ display:flex; align-items:center; gap:18px; }
.nav-tel{ font-weight:700; font-size:15px; color:var(--ink); display:inline-flex; align-items:center; gap:8px; }
.nav-tel svg{ color:var(--red); }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; transition:.2s; }

/* ---------- Geometric motif ---------- */
.motif{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ba292c' stroke-width='1' stroke-opacity='0.10'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
  background-size:60px 60px;
}
.motif-gold{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23b8912f' stroke-width='1' stroke-opacity='0.16'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
  background-size:60px 60px;
}

/* ---------- Image placeholders ---------- */
.ph{
  position:relative; overflow:hidden; border-radius:var(--radius);
  background:
    repeating-linear-gradient(135deg, #efe9e3 0 14px, #f5f0ea 14px 28px);
  border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
}
.ph::after{
  content:attr(data-label);
  font-family:"Hanken Grotesk", monospace;
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(255,255,255,.82); padding:7px 12px; border-radius:3px;
  border:1px solid var(--line-2); color:var(--ink-2); font-weight:600;
}

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; background:var(--ivory); border-bottom:1px solid var(--line); }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; padding:96px 0 100px; }
.hero h1 .accent{ color:var(--red); }
.hero .lead{ margin-top:26px; max-width:520px; }
.hero-cta{ display:flex; gap:14px; margin-top:38px; flex-wrap:wrap; }
.hero-media{ position:relative; }
.hero-media .ph{ aspect-ratio:4/5; }
.hero-frame{
  position:absolute; inset:-14px -14px auto auto; width:62%; height:62%;
  border:2px solid var(--gold); border-radius:var(--radius); z-index:-0; opacity:.5;
}
.hero-badge{
  position:absolute; left:-22px; bottom:34px; background:#fff; border:1px solid var(--line);
  box-shadow:var(--shadow); border-radius:6px; padding:18px 22px; display:flex; gap:14px; align-items:center;
}
.hero-badge .num{ font-family:var(--serif); font-size:34px; color:var(--red); line-height:1; }
.hero-badge .lbl{ font-size:13px; color:var(--muted); font-weight:600; line-height:1.3; }

/* ---------- Trust strip ---------- */
.trust{ border-top:1px solid var(--line); }
.trust-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 0; flex-wrap:wrap; }
.trust-row .label{ font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.trust-logos{ display:flex; gap:38px; align-items:center; flex-wrap:wrap; }
.trust-logos .mark{ font-family:var(--serif); font-weight:600; color:var(--ink-2); font-size:18px; opacity:.65; }

/* ---------- Stat band ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.stat{ background:#fff; padding:34px 28px; }
.stat .n{ font-family:var(--serif); font-size:46px; color:var(--red); line-height:1; }
.stat .n small{ font-size:26px; color:var(--gold); }
.stat .t{ margin-top:10px; color:var(--ink-2); font-size:15px; font-weight:600; }

/* ---------- Section heading ---------- */
.sec-head{ max-width:720px; }
.sec-head.center{ margin:0 auto; }
.sec-head h2{ margin-bottom:18px; }

/* ---------- Service cards ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{
  background:#fff; border:1px solid var(--line); border-radius:6px; padding:34px 30px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position:relative; overflow:hidden;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--line-2); }
.card .ico{
  width:52px; height:52px; border-radius:8px; background:var(--red-050); color:var(--red);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.card .ico svg{ width:26px; height:26px; }
.card h3{ margin-bottom:12px; }
.card p{ color:var(--muted); font-size:15.5px; }
.card .more{ margin-top:18px; color:var(--red); font-weight:700; font-size:14px; display:inline-flex; gap:7px; align-items:center; }
.card-accent{ position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,var(--red),var(--gold)); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
.card:hover .card-accent{ transform:scaleX(1); }

/* ---------- Split feature ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split.rev .split-media{ order:2; }
.split-media .ph{ aspect-ratio:5/4; height:100%; }
.feature-list{ list-style:none; padding:0; margin:26px 0 0; display:grid; gap:18px; }
.feature-list li{ display:flex; gap:14px; align-items:flex-start; }
.feature-list .tick{ flex:0 0 auto; width:26px; height:26px; border-radius:50%; background:var(--red-050); color:var(--red); display:flex; align-items:center; justify-content:center; margin-top:2px; }
.feature-list .tick svg{ width:14px; height:14px; }
.feature-list h4{ font-family:var(--sans); font-size:16px; font-weight:700; margin:0 0 3px; }
.feature-list p{ color:var(--muted); font-size:15px; }

/* ---------- Process steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; counter-reset:step; }
.step{ position:relative; padding-top:30px; }
.step::before{
  counter-increment:step; content:"0" counter(step);
  font-family:var(--serif); font-size:15px; font-weight:700; color:var(--gold);
  position:absolute; top:0; left:0; letter-spacing:.05em;
}
.step .bar{ height:3px; background:var(--line); border-radius:2px; margin-bottom:18px; position:relative; }
.step .bar::after{ content:""; position:absolute; left:0; top:0; height:100%; width:34px; background:var(--red); border-radius:2px; }
.step h4{ font-family:var(--serif); font-size:19px; margin:0 0 8px; }
.step p{ color:var(--muted); font-size:14.5px; }

/* ---------- Quote / testimonial ---------- */
.quote{ max-width:880px; margin:0 auto; text-align:center; }
.quote blockquote{ font-family:var(--serif); font-size:clamp(24px,2.6vw,32px); line-height:1.4; margin:0 0 28px; color:var(--ink); }
.quote .mark{ color:var(--gold); font-size:52px; line-height:0; font-family:var(--serif); display:block; margin-bottom:6px; }
.quote cite{ font-style:normal; font-weight:700; }
.quote .role{ color:var(--muted); font-size:14px; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--charcoal); color:#fff; position:relative; overflow:hidden; }
.cta-band .container{ position:relative; z-index:1; }
.cta-band h2{ color:#fff; }
.cta-band p{ color:rgba(255,255,255,.72); }
.cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ background:var(--ivory); border-bottom:1px solid var(--line); position:relative; overflow:hidden; }
.page-hero .container{ position:relative; z-index:1; padding-top:78px; padding-bottom:78px; }
.page-hero .crumb{ font-size:13px; font-weight:600; color:var(--muted); margin-bottom:18px; letter-spacing:.04em; }
.page-hero .crumb a:hover{ color:var(--red); }
.page-hero h1{ max-width:760px; }
.page-hero p{ max-width:620px; margin-top:20px; }

/* ---------- About values ---------- */
.values{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.value{ background:#fff; padding:36px 32px; }
.value .ico{ color:var(--red); margin-bottom:16px; }
.value h3{ font-size:20px; margin-bottom:10px; }
.value p{ color:var(--muted); font-size:15px; }

/* ---------- Team ---------- */
.team{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.member .ph{ aspect-ratio:3/4; margin-bottom:16px; }
.member h4{ font-family:var(--serif); font-size:19px; }
.member .role{ color:var(--red); font-size:14px; font-weight:600; margin-top:2px; }

/* ---------- Services detail ---------- */
.svc{ display:grid; grid-template-columns:48px 1fr; gap:24px; padding:38px 0; border-top:1px solid var(--line); }
.svc:first-child{ border-top:0; }
.svc .ico{ width:48px; height:48px; border-radius:8px; background:var(--red-050); color:var(--red); display:flex; align-items:center; justify-content:center; }
.svc h3{ font-size:24px; margin-bottom:10px; }
.svc p{ color:var(--ink-2); max-width:680px; }
.svc .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.svc .tag{ font-size:13px; font-weight:600; color:var(--ink-2); background:var(--ivory-2); border:1px solid var(--line); padding:6px 12px; border-radius:100px; }

/* ---------- FAQ ---------- */
.faq{ max-width:840px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:24px;
  padding:26px 0; font-family:var(--serif); font-size:20px; font-weight:600; color:var(--ink);
}
.faq-q .pm{ flex:0 0 auto; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-2); position:relative; transition:.2s; }
.faq-q .pm::before,.faq-q .pm::after{ content:""; position:absolute; background:var(--red); left:50%; top:50%; transform:translate(-50%,-50%); }
.faq-q .pm::before{ width:12px; height:2px; }
.faq-q .pm::after{ width:2px; height:12px; transition:transform .2s ease; }
.faq-item.open .pm{ background:var(--red); border-color:var(--red); }
.faq-item.open .pm::before,.faq-item.open .pm::after{ background:#fff; }
.faq-item.open .pm::after{ transform:translate(-50%,-50%) scaleY(0); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p{ color:var(--muted); padding:0 0 26px; max-width:680px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:64px; align-items:start; }
.contact-info .item{ display:flex; gap:16px; padding:22px 0; border-bottom:1px solid var(--line); }
.contact-info .item:last-child{ border-bottom:0; }
.contact-info .ico{ flex:0 0 auto; width:44px; height:44px; border-radius:8px; background:var(--red-050); color:var(--red); display:flex; align-items:center; justify-content:center; }
.contact-info h4{ font-family:var(--sans); font-size:15px; font-weight:700; margin:0 0 3px; }
.contact-info p{ color:var(--muted); font-size:15px; }
.contact-info a:hover{ color:var(--red); }

.form-card{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:38px; box-shadow:var(--shadow); }
.field{ margin-bottom:20px; }
.field.row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:0; }
.field label{ display:block; font-size:14px; font-weight:600; margin-bottom:8px; color:var(--ink-2); }
.field label .req{ color:var(--red); }
.input, .select, textarea.input{
  width:100%; font-family:var(--sans); font-size:15.5px; color:var(--ink);
  padding:13px 15px; border:1px solid var(--line-2); border-radius:var(--radius); background:#fff;
  transition:border .18s ease, box-shadow .18s ease;
}
.input:focus,.select:focus,textarea.input:focus{ outline:0; border-color:var(--red); box-shadow:0 0 0 3px var(--red-050); }
.input.err{ border-color:var(--red); }
textarea.input{ resize:vertical; min-height:130px; }
.field .hint{ font-size:13px; color:var(--muted); margin-top:6px; }
.field .error{ font-size:13px; color:var(--red); margin-top:6px; font-weight:600; }
.alert{ padding:18px 20px; border-radius:6px; margin-bottom:26px; font-size:15px; display:flex; gap:12px; align-items:flex-start; }
.alert--ok{ background:#eef7ef; border:1px solid #cfe7d3; color:#1f6b35; }
.alert--err{ background:var(--red-050); border:1px solid #f0cccd; color:var(--red-700); }
.alert svg{ flex:0 0 auto; margin-top:2px; }
.form-note{ font-size:13px; color:var(--muted); margin-top:8px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--charcoal); color:rgba(255,255,255,.66); }
.footer-top{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:48px; padding:72px 0 56px; }
.footer-brand img{ height:34px; margin-bottom:22px; }
.footer-brand p{ font-size:15px; max-width:300px; line-height:1.6; }
.footer-col h5{ font-family:var(--sans); color:#fff; font-size:14px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; margin:0 0 18px; }
.footer-col ul{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.footer-col a{ font-size:15px; color:rgba(255,255,255,.66); transition:color .18s ease; }
.footer-col a:hover{ color:#fff; }
.footer-contact .li{ display:flex; gap:12px; font-size:15px; margin-bottom:14px; }
.footer-contact .li svg{ flex:0 0 auto; color:var(--gold); margin-top:3px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.10); padding:24px 0; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; font-size:13.5px; }
.footer-bottom a:hover{ color:#fff; }

/* ---------- Reveal ---------- */
[data-reveal]{ opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
[data-reveal].in{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; padding:64px 0 72px; }
  .hero-media{ max-width:460px; }
  .cards,.team{ grid-template-columns:repeat(2,1fr); }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .values{ grid-template-columns:1fr; }
  .split,.contact-grid{ grid-template-columns:1fr; gap:40px; }
  .split.rev .split-media{ order:0; }
  .footer-top{ grid-template-columns:1fr 1fr; gap:36px; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  .section{ padding:72px 0; }
  .container{ padding:0 22px; }
  .nav-links,.nav-tel{ display:none; }
  .nav-toggle{ display:block; }
  .nav.open .nav-links{
    display:flex; position:absolute; top:84px; left:0; right:0; flex-direction:column; align-items:stretch;
    background:#fff; border-bottom:1px solid var(--line); padding:14px 22px; gap:2px; box-shadow:var(--shadow);
  }
  .nav.open .nav-links a{ padding:14px 12px; }
  .cards,.team,.stats,.steps,.footer-top{ grid-template-columns:1fr; }
  .field.row{ grid-template-columns:1fr; gap:0; }
  .hero-badge{ left:0; }
}
