/* Mariam Maids shared styles
   Palette: professional Arabic — deep green, refined gold, ivory, warm charcoal
   Fonts: system serif for headings, system sans for body (zero external requests) */

:root {
  --green-900: #0e3325;
  --green-800: #14432f;
  --green-700: #1d5540;
  --green-600: #2a6a51;
  --gold: #c2a24d;
  --gold-soft: #e0c583;
  --gold-deep: #9c7d34;
  --cream: #f7f2e7;
  --cream-deep: #efe6d2;
  --paper: #fffdf7;
  --ink: #23241f;
  --muted: #6b6a5f;
  --line: #e6decb;
  --white: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 45, 35, 0.06);
  --shadow-md: 0 14px 40px rgba(20, 45, 35, 0.12);

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23c2a24d' stroke-width='1' opacity='0.5'%3E%3Crect x='9' y='9' width='26' height='26'/%3E%3Crect x='9' y='9' width='26' height='26' transform='rotate(45 22 22)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--green-900);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-700); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}

.lead { font-size: 1.16rem; color: var(--muted); }

section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-call {
  background: var(--green-800);
  color: var(--white);
}
.btn-call:hover { background: var(--green-900); box-shadow: var(--shadow-md); }

.btn-wa {
  background: #1faf54;
  color: var(--white);
}
.btn-wa:hover { background: #178f44; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-ghost:hover { background: var(--green-800); color: var(--white); }

.btn-lg { padding: 1.15rem 2rem; font-size: 1.1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1;
}
.brand-name span { display: block; font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a[aria-current="page"] { color: var(--green-800); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--white);
  background: var(--green-800);
  padding: 0.65rem 1.15rem;
  border-radius: 9px;
}
.header-call:hover { background: var(--green-900); }
.header-call svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  width: 46px; height: 44px;
  cursor: pointer;
  color: var(--green-900);
}
.nav-toggle svg { width: 24px; height: 24px; margin: 0 auto; }

/* ---------- Divider (Arabic geometric) ---------- */
.divider {
  height: 46px;
  background-image: var(--star);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}
.divider-inline {
  height: 40px;
  background-image: var(--star);
  background-repeat: repeat-x;
  background-position: center;
  margin: 0 auto;
  max-width: 320px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-900);
  color: var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hero h1 { color: var(--cream); }
.hero-copy .eyebrow { color: var(--gold-soft); }
.hero-copy p { color: rgba(246, 240, 226, 0.85); font-size: 1.18rem; max-width: 34ch; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.hero-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--gold);
  color: var(--green-900);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  line-height: 1.3;
}
.hero-badge small { display: block; font-weight: 600; font-size: 0.78rem; opacity: 0.8; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--star);
  background-size: 88px;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}
.trust-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.trust-item strong { display: block; color: var(--green-900); font-family: var(--serif); font-size: 1.06rem; }
.trust-item span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Section headings ---------- */
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services preview grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card img { width: 100%; height: 200px; object-fit: cover; }
.svc-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.svc-card h3 { margin-bottom: 0.35rem; }
.svc-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.6rem; }
.svc-card .more { color: var(--gold-deep); font-weight: 600; font-size: 0.92rem; }

.svc-grid .span-2 { grid-column: span 2; }

/* ---------- Value / what you get ---------- */
.value-band { background: var(--cream); }
.value-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.value-split .lead { color: var(--muted); }
.incl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.incl-card h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 1.2rem 0 0.4rem;
  margin: 0;
}
.incl-list { list-style: none; margin: 0; padding: 0; }
.incl-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.incl-list li:last-child { border-bottom: none; }
.incl-list svg { width: 24px; height: 24px; flex: none; color: #1faf54; margin-top: 1px; }
.incl-list strong { display: block; color: var(--green-900); font-family: var(--serif); font-size: 1.08rem; }
.incl-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why choose ---------- */
.why { background: var(--green-900); color: var(--cream); position: relative; }
.why h2 { color: var(--cream); }
.why .lead { color: rgba(246,240,226,0.8); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2.2rem;
  margin-top: 2.4rem;
}
.why-item { padding-top: 1.1rem; border-top: 2px solid rgba(194, 162, 77, 0.35); }
.why-item h3 { color: var(--gold-soft); font-size: 1.15rem; }
.why-item p { color: rgba(246,240,226,0.78); font-size: 0.98rem; margin: 0; }

/* ---------- Split / alternating blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.split-copy .eyebrow { margin-bottom: 0.6rem; }

/* ---------- Service detail rows ---------- */
.service-row { border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: none; }
.service-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}
.service-row.alt .service-media { order: 2; }
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 380px; object-fit: cover; }
.service-copy .idx {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.service-copy ul { padding-left: 0; list-style: none; margin: 1rem 0 1.4rem; }
.service-copy li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; color: var(--ink); }
.service-copy li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.tst-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.tst-card p { font-size: 1.02rem; color: var(--ink); }
.tst-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.7rem; font-size: 0.95rem; }
.tst-who { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.tst-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-700); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.tst-who strong { display: block; color: var(--green-900); font-size: 0.98rem; }
.tst-who span { color: var(--muted); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 2.2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 2.4rem 1.25rem 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--green-900);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold-deep);
  font-family: var(--sans); line-height: 1;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { padding: 0 0 1.25rem; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-800);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 120px;
  background-image: var(--star);
  background-size: 60px;
  opacity: 0.08;
}
.cta-band::before { left: 0; }
.cta-band::after { right: 0; }
.cta-band h2 { color: var(--cream); position: relative; }
.cta-band p { color: rgba(246,240,226,0.85); max-width: 46ch; margin: 0 auto 1.6rem; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Contact page ---------- */
.contact-hero { background: var(--cream); text-align: center; }
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 640px;
  margin: 2.4rem auto 0;
}
.contact-actions .btn { padding: 1.6rem; font-size: 1.15rem; flex-direction: column; gap: 0.6rem; }
.contact-actions .btn svg { width: 30px; height: 30px; }
.contact-details {
  max-width: 560px;
  margin: 2.6rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem 1.4rem; text-align: left; }
.contact-details dt { color: var(--gold-deep); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.contact-details dd { margin: 0; color: var(--ink); }
.contact-details dd a { color: var(--green-800); font-weight: 600; text-decoration: none; }
.contact-details dd a:hover { text-decoration: underline; }

/* ---------- Stats / values ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.stat { text-align: center; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--green-800); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; margin-top: 2.2rem; }
.value h3 { display: flex; align-items: baseline; gap: 0.6rem; }
.value h3 .n { font-size: 0.9rem; color: var(--gold-deep); font-family: var(--sans); font-weight: 700; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(246, 240, 226, 0.82);
  padding: 3.4rem 0 7.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
}
.footer-brand .brand-name { color: var(--cream); }
.site-footer p { font-size: 0.95rem; max-width: 34ch; }
.site-footer h4 { color: var(--gold-soft); font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.55rem; }
.footer-list a { color: rgba(246, 240, 226, 0.82); text-decoration: none; font-size: 0.96rem; }
.footer-list a:hover { color: var(--gold-soft); }
.footer-contact strong { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(246, 240, 226, 0.14);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  font-size: 0.86rem;
  color: rgba(246, 240, 226, 0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
  box-shadow: 0 -6px 20px rgba(20, 45, 35, 0.1);
}
.mobile-bar .btn { flex: 1; padding: 1rem; font-size: 1.05rem; }

/* ---------- Floating desktop WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 55;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #1faf54;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.5rem; }
  .svc-grid, .why-grid, .tst-grid, .stats { grid-template-columns: 1fr 1fr; }
  .svc-grid .span-2 { grid-column: span 1; }
  .split, .service-inner, .value-split { grid-template-columns: 1fr; }
  .split.reverse .split-media, .service-row.alt .service-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .header-call span { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 22px 1.4rem;
    gap: 0.4rem;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .svc-grid, .why-grid, .tst-grid, .stats, .contact-actions, .values-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 76px; }
  .hero-badge { position: static; margin-top: 1.2rem; max-width: none; }
}

@media (min-width: 621px) {
  .wa-float { display: flex; }
  .mobile-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* ---------- RTL / Arabic ---------- */
[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: "Traditional Arabic", "Times New Roman", Georgia, serif;
  letter-spacing: 0;
}

/* Arabic script must not be letter-spaced or it breaks the connected forms */
[dir="rtl"] .eyebrow,
[dir="rtl"] .brand-name span,
[dir="rtl"] .incl-card h3,
[dir="rtl"] .site-footer h4,
[dir="rtl"] .contact-details dt,
[dir="rtl"] .service-copy .idx { letter-spacing: 0; }

/* Keep Latin phone numbers left to right inside RTL text */
.ltr { direction: ltr; unicode-bidi: embed; }

/* Flip directional layout bits */
[dir="rtl"] .hero-badge { left: auto; right: -18px; }
[dir="rtl"] .service-copy ul { padding-left: 0; padding-right: 0; }
[dir="rtl"] .service-copy li { padding-left: 0; padding-right: 1.6rem; }
[dir="rtl"] .service-copy li::before { left: auto; right: 0; }
[dir="rtl"] .faq-q { text-align: right; padding: 1.25rem 0 1.25rem 2.4rem; }
[dir="rtl"] .faq-q::after { right: auto; left: 4px; }
[dir="rtl"] .contact-details dl { text-align: right; }
[dir="rtl"] .nav.open .nav-links { left: 0; right: 0; }

@media (max-width: 620px) {
  [dir="rtl"] .hero-badge { right: auto; }
}
