/* Wasat website styles. Colours match the app (Theme.swift). */
:root {
  --emerald: #0F5440;
  --emerald-dark: #08332A;
  --gold: #C9A042;
  --gold-light: #EDCC7A;
  --cream: #F7EDD9;
  --card: #FCF7EB;
  --ink: #3D2B1A;
  --ink-soft: #735C42;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Geeza Pro", "Damascus", "Traditional Arabic", "Amiri", "Noto Naskh Arabic", serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23C9A042' stroke-width='1'%3E%3Cpath d='M24 7.5 35.7 12.3 40.5 24 35.7 35.7 24 40.5 12.3 35.7 7.5 24 12.3 12.3Z' opacity='0'/%3E%3Crect x='12.3' y='12.3' width='23.4' height='23.4'/%3E%3Crect x='12.3' y='12.3' width='23.4' height='23.4' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 -6 6 0 0 6 -6 0Z M48 -6 54 0 48 6 42 0Z M0 42 6 48 0 54 -6 48Z M48 42 54 48 48 54 42 48Z'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: var(--star); background-size: 48px; opacity: .13;
}
img, svg { max-width: 100%; }
a { color: var(--emerald); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--emerald-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--emerald-dark); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.arabic { font-family: var(--arabic); direction: rtl; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--emerald-dark);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(8,51,42,.35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--card); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--card);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  border-bottom: 3px solid var(--gold);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--star); background-size: 56px; opacity: .16; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: var(--gold-light); font-size: clamp(2.6rem, 7vw, 4.4rem); margin: .2rem 0 .6rem; }
.hero .lead { font-size: 1.2rem; max-width: 34rem; color: #F3EBD8; }
.verse { margin: 0 0 1rem; }
.verse .arabic { font-size: 1.9rem; color: var(--gold-light); line-height: 1.8; display: block; }
.verse small { color: #D9CFB7; font-size: .9rem; font-style: italic; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  color: var(--emerald-dark); background: linear-gradient(var(--gold-light), var(--gold));
  border: 1px solid rgba(8,51,42,.2); box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.btn:hover { color: var(--emerald-dark); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--gold-light); border: 1.5px solid var(--gold); box-shadow: none; }
.btn.ghost:hover { background: rgba(237,204,122,.12); color: #fff; }
.soon { font-size: .92rem; color: #E7DDC5; }

/* Phone mockup */
.phone {
  justify-self: center; width: 100%; max-width: 290px; aspect-ratio: 9 / 18.5;
  background: #111; border-radius: 44px; padding: 12px; box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 2px var(--gold);
}
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--cream); position: relative; display: flex; flex-direction: column; }
.screen::before { content: ""; position: absolute; inset: 0; background-image: var(--star); background-size: 34px; opacity: .14; }
.screen > * { position: relative; }
.screen .bar { background: var(--emerald); color: var(--gold-light); font-family: var(--serif); text-align: center; padding: 26px 0 10px; font-size: 1.05rem; border-bottom: 1px solid var(--gold); }
.screen .next {
  margin: 12px; padding: 14px; border-radius: 18px; text-align: center; color: var(--card);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); border: 1.5px solid var(--gold);
}
.screen .next .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.screen .next .p { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); }
.screen .next .t { font-size: .8rem; }
.screen ul { list-style: none; margin: 0 12px; padding: 6px 12px; background: var(--card); border: 1px solid rgba(201,160,66,.8); border-radius: 16px; color: var(--ink); font-size: .85rem; }
.screen li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(201,160,66,.25); }
.screen li:last-child { border-bottom: 0; }
.screen li.on { color: var(--emerald); font-weight: 700; }
.screen .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 16px; background: var(--card); border-top: 1px solid rgba(201,160,66,.5); font-size: .62rem; color: var(--ink-soft); }
.screen .tabs span.on { color: var(--emerald); font-weight: 700; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.divider { display: flex; align-items: center; gap: 10px; max-width: 220px; margin: 0 auto 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .7; }
.divider svg { width: 14px; height: 14px; }

.card {
  background: var(--card); border-radius: 20px; padding: 24px; position: relative;
  border: 1.5px solid rgba(201,160,66,.85); box-shadow: 0 6px 16px rgba(61,43,26,.10);
}
.card::after { content: ""; position: absolute; inset: 5px; border-radius: 15px; border: .75px solid rgba(201,160,66,.4); pointer-events: none; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card .icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); border: 1.5px solid var(--gold); color: var(--gold-light);
}
.card .icon svg { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--ink-soft); }
.tag { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 600; color: var(--emerald); background: rgba(15,84,64,.08); border: 1px solid rgba(15,84,64,.2); padding: 2px 10px; border-radius: 99px; }

/* Arch band (promises) */
.band { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: var(--card); position: relative; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.band::before { content: ""; position: absolute; inset: 0; background-image: var(--star); background-size: 56px; opacity: .12; }
.band .wrap { position: relative; }
.band h2 { color: var(--gold-light); }
.band .section-head p { color: #E7DDC5; }
.arches { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.arch {
  border: 1.5px solid var(--gold); border-radius: 120px 120px 16px 16px; padding: 44px 22px 26px; text-align: center;
  background: rgba(8,51,42,.45);
}
.arch .big { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-light); line-height: 1; margin-bottom: 8px; }
.arch h3 { color: var(--gold-light); }
.arch p { margin: 0; color: #E7DDC5; font-size: .97rem; }

/* Pricing */
.prices { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; }
.price { font-family: var(--serif); font-size: 2.3rem; color: var(--emerald); margin: 6px 0 4px; }
.price small { font-size: 1rem; color: var(--ink-soft); }
.card.featured { border-width: 2px; border-color: var(--gold); background: #FFFBF0; }
.note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 22px; }

/* Charity */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.ring {
  width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: conic-gradient(var(--gold) 0 25%, var(--emerald) 25% 100%); padding: 18px; box-shadow: 0 10px 24px rgba(8,51,42,.25);
}
.ring div { width: 100%; height: 100%; border-radius: 50%; background: var(--card); display: grid; place-content: center; border: 1.5px solid var(--gold); }
.ring b { font-family: var(--serif); font-size: 3rem; color: var(--emerald); line-height: 1; }
.ring span { color: var(--ink-soft); font-size: .9rem; max-width: 9rem; }
ul.ticks { padding: 0; list-style: none; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }

/* Doc pages (privacy, support, terms) */
.page-hero { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: var(--card); position: relative; border-bottom: 3px solid var(--gold); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--star); background-size: 56px; opacity: .14; }
.page-hero .wrap { position: relative; padding-top: 52px; padding-bottom: 52px; }
.page-hero h1 { color: var(--gold-light); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .3rem; }
.page-hero p { margin: 0; color: #E7DDC5; }
.doc { padding: 48px 0 72px; }
.doc .card { padding: clamp(22px, 4vw, 44px); }
.doc h2 { font-size: 1.55rem; margin-top: 2rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.4rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(201,160,66,.4); vertical-align: top; min-width: 140px; }
.doc th { background: rgba(15,84,64,.07); color: var(--emerald-dark); font-family: var(--serif); }
details { border-bottom: 1px solid rgba(201,160,66,.45); padding: 14px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; color: var(--emerald-dark); font-weight: 600; list-style: none; padding-right: 28px; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--gold); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details p, details ol, details ul { color: var(--ink-soft); margin: .6rem 0 0; }
.contact-box { text-align: center; }
.contact-box .btn { margin-top: 10px; }

/* Footer */
.site-footer { background: var(--emerald-dark); color: #D9CFB7; border-top: 3px solid var(--gold); padding: 40px 0 28px; font-size: .93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--gold-light); }
.site-footer .links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer .fine { width: 100%; border-top: 1px solid rgba(201,160,66,.3); padding-top: 18px; margin-top: 6px; font-size: .85rem; }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .badge-row { justify-content: center; }
  .phone { max-width: 250px; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .nav { justify-content: center; }
}
