/* Golden Dar Al Wafa Documents Typing & Copying — concept by Beans Digital
   Palette derived from the business's real identity: "Golden" in the name
   sets the gold accent; deep emerald green and warm cream give the calm,
   trustworthy feel of a government-services office. Light theme, serif
   display type, document/stamp aesthetic. */

@view-transition { navigation: auto; }

:root {
  --cream: #faf6ec;
  --paper: #ffffff;
  --ink: #1d2b24;
  --emerald: #14503c;
  --emerald-deep: #0c3527;
  --gold: #b8860b;
  --gold-soft: #d9b944;
  --line: #e2d9c2;
  --mute: #5f6d63;
  --wa: #128c7e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--emerald-deep);
}

a { color: var(--emerald); }

.container { width: min(1060px, 100% - 2.5rem); margin-inline: auto; }

/* Concept banner */
.concept-banner {
  background: var(--emerald-deep);
  color: #f3eeda;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  view-transition-name: site-logo;
}
.logo .seal {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--emerald-deep);
  background: var(--paper);
  font-size: 0.9rem;
  flex: none;
}
.logo .word {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--emerald-deep);
  font-size: 1.05rem;
  line-height: 1.2;
}
.logo .word small { display: block; font-family: "Karla", sans-serif; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--emerald-deep); }
.main-nav a[aria-current="page"] {
  color: var(--emerald-deep);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}
.main-nav .nav-cta {
  background: var(--emerald);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  margin-left: 0.4rem;
}
.main-nav .nav-cta:hover { background: var(--emerald-deep); color: #fff; }

.menu-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--emerald-deep);
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 60% at 50% 0%, rgba(184, 134, 11, 0.09), transparent 70%);
  pointer-events: none;
}

.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  color: var(--emerald-deep);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
}
.badge-247 .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 7.5vw, 4.4rem);
  max-width: 18ch;
  margin-inline: auto;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero .lede {
  max-width: 62ch;
  margin: 1.4rem auto 0;
  color: var(--mute);
  font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-outline { border: 1.5px solid var(--emerald); color: var(--emerald-deep); background: transparent; }
.btn-outline:hover { border-color: var(--gold); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;
  margin-top: 3rem;
}
.trust-row .t b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  color: var(--emerald-deep);
}
.trust-row .t span { font-size: 0.8rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; }

/* Gold rule divider */
.rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border: 0;
  margin: 0 auto 1.2rem;
}
.rule.left { margin: 0 0 1.2rem; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.2rem) 0; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.section-head p { color: var(--mute); margin-top: 0.7rem; max-width: 60ch; margin-inline: auto; }

.alt { background: var(--paper); border-block: 1px solid var(--line); }

/* Service ledger rows */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, padding-left 0.25s;
}
.ledger-row:hover { background: rgba(184, 134, 11, 0.06); padding-left: 0.9rem; }
.ledger-row .no {
  font-family: "Fraunces", serif;
  color: var(--gold);
  font-size: 1.1rem;
}
.ledger-row h3 { font-size: 1.3rem; }
.ledger-row p { color: var(--mute); font-size: 0.95rem; margin-top: 0.25rem; }
.ledger-row .go { color: var(--emerald); font-weight: 700; white-space: nowrap; }

/* Service detail panels */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
}
.panel h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.panel p { color: var(--mute); font-size: 0.97rem; }
.panel ul { margin: 0.8rem 0 0 1.1rem; color: var(--mute); font-size: 0.95rem; }
.panel li { margin-bottom: 0.3rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.2rem;
}

/* Steps timeline */
.steps { list-style: none; counter-reset: step; max-width: 640px; margin-inline: auto; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.2rem 4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--paper);
  color: var(--emerald-deep);
  font-family: "Fraunces", serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.9rem;
  bottom: 0.3rem;
  width: 1.5px;
  background: var(--line);
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { color: var(--mute); font-size: 0.96rem; }

/* Quotes */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
  position: relative;
  font-size: 0.97rem;
}
.quote::before {
  content: "\201C";
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.2rem;
}
.quote footer { margin-top: 0.8rem; color: var(--mute); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.quote .stars { color: var(--gold); letter-spacing: 0.15em; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { color: var(--mute); font-weight: 500; }
.hours-table td { font-weight: 700; color: var(--emerald-deep); }

/* Contact layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.15rem;
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--emerald-deep);
  color: #f3eeda;
  border-radius: 14px;
  padding: clamp(2rem, 6vw, 3.2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 185, 68, 0.4);
  border-radius: 10px;
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.cta-band p { color: rgba(243, 238, 218, 0.8); margin: 0.8rem auto 1.5rem; max-width: 52ch; }
.cta-band .btn { background: var(--gold); color: #1d2b24; }

/* FAQ */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--emerald-deep);
}
details p { margin-top: 0.6rem; color: var(--mute); }

/* Footer */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(243, 238, 218, 0.85);
  padding: 2.6rem 0 6rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.site-footer a { color: #f3eeda; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; }
.credit { margin-top: 1.6rem; font-size: 0.8rem; color: rgba(243, 238, 218, 0.6); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(12, 53, 39, 0.35);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 22px; height: 22px; flex: none; }

/* Reveal animations (JS-gated so content shows without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Inner page hero */
.page-hero {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(40% 80% at 50% 0%, rgba(184, 134, 11, 0.08), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.page-hero p { color: var(--mute); margin: 1rem auto 0; max-width: 58ch; }

/* Mobile */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.4rem; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 2.4rem 1fr; }
  .ledger-row .go { grid-column: 2; }
  .wa-float span.wa-label { display: none; }
  .wa-float { padding: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-247 .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .wa-float:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
