/* ============================================================
   Isa Domestic Services - Riyadh (Arabic, RTL)
   Palette: deep green, warm gold, cream, soft neutrals
   Type: Amiri (display) + Tajawal (body)
   ============================================================ */

:root {
  --green-950: #0B2A1F;
  --green-900: #103828;
  --green-800: #16472F;
  --green-700: #1D573B;
  --gold-600: #A9803D;
  --gold-500: #C09A57;
  --gold-300: #DFC594;
  --cream: #FBF7EE;
  --cream-2: #F4EDDD;
  --white: #FFFFFF;
  --ink: #21312A;
  --muted: #5C685F;
  --wa: #1E9E54;
  --wa-dark: #187F43;
  --line: rgba(22, 71, 47, 0.16);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 56, 40, 0.10);
  --font-display: "Amiri", "Georgia", serif;
  --font-body: "Tajawal", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6em;
  color: var(--green-900);
}

h1 { font-size: clamp(2.15rem, 5.6vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }

p {
  margin: 0 0 1em;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Khatam pattern helpers ---------- */

.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23C09A57' stroke-opacity='0.16'%3E%3Crect x='26' y='26' width='32' height='32'/%3E%3Crect x='26' y='26' width='32' height='32' transform='rotate(45 42 42)'/%3E%3C/g%3E%3C/svg%3E");
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 44px;
  background: var(--gold-500);
  opacity: 0.55;
}

.ornament.left::before { display: none; }

.ornament svg {
  flex: none;
  color: var(--gold-600);
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  flex: none;
}

.btn-green {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(16, 56, 40, 0.25);
}

.btn-green:hover { background: var(--green-700); }

.btn-wa {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(24, 127, 67, 0.25);
}

.btn-wa:hover { background: var(--wa-dark); }

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border: 2px solid var(--green-800);
}

.btn-outline:hover { background: rgba(22, 71, 47, 0.06); }

.btn-gold {
  background: var(--gold-500);
  color: var(--green-950);
}

.btn-gold:hover { background: var(--gold-300); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--green-900);
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-600);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green-800);
}

.site-nav a[aria-current="page"] {
  color: var(--green-800);
  border-bottom-color: var(--gold-500);
}

.header-call {
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-800);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--green-800);
}

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--gold-600);
  }

  .header-call span { display: none; }

  .header-call {
    padding: 0.7rem 0.85rem;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  opacity: 0.6;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--green-900);
  color: var(--cream);
  padding: 1.4rem 0;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.4rem;
  justify-content: center;
  align-items: center;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  font-weight: 500;
}

.trust-strip svg {
  flex: none;
  color: var(--gold-300);
}

/* ---------- Generic section rhythm ---------- */

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--cream-2);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.section-head h2 { margin-bottom: 0; }

.section-head .more-link {
  font-weight: 700;
  color: var(--green-800);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
}

.section-head .more-link:hover { color: var(--gold-600); }

/* ---------- Services preview grid (home) ---------- */

.services-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid .service-card:nth-child(-n+2) { grid-column: span 3; }
  .services-grid .service-card:nth-child(n+3) { grid-column: span 2; }
}

.service-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.service-card h3 {
  margin-bottom: 0.35rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.service-card .card-cta {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-600);
}

/* ---------- Why choose us ---------- */

.why-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
  }

  .why-intro {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.why-intro p {
  color: var(--muted);
}

.why-intro .btn { margin-top: 0.6rem; }

.why-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.why-list li:first-child { padding-top: 0; }

.why-list svg {
  color: var(--gold-600);
  margin-top: 0.2rem;
}

.why-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.why-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Testimonials ---------- */

.quotes-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 800px) {
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid blockquote:nth-child(2) { transform: translateY(1.6rem); }
}

.quotes-grid blockquote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
}

.quotes-grid blockquote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--green-900);
}

.quotes-grid cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-600);
}

.quotes-grid cite span {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-900);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-600);
  flex: none;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0.2rem 1.3rem;
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--green-900);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.cta-band h2 {
  color: var(--cream);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  color: rgba(251, 247, 238, 0.78);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

.cta-band .ornament {
  justify-content: center;
  margin-bottom: 1.4rem;
}

.cta-band .ornament svg { color: var(--gold-300); }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { margin-bottom: 0.4rem; }

.page-head .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0;
}

/* ---------- Service rows (services page) ---------- */

.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-of-type { border-bottom: none; }

@media (min-width: 860px) {
  .service-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .service-row:nth-of-type(even) .service-row-media { order: 2; }
}

.service-row-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-row-copy p {
  color: var(--muted);
}

.service-row-copy .hero-ctas {
  margin-top: 1.4rem;
  margin-bottom: 0;
}

/* ---------- About page ---------- */

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .story-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .story-media {
    position: sticky;
    top: 100px;
  }
}

.story-copy p { color: var(--ink); }

.story-copy p + p { margin-top: 1.1em; }

.story-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.story-media figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.process-steps {
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}

.process-steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}

.process-steps h3 { margin-bottom: 0.4rem; }

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.values-row {
  display: grid;
  gap: 1.8rem;
  margin-top: 2.2rem;
}

@media (min-width: 720px) {
  .values-row { grid-template-columns: repeat(3, 1fr); }
}

.values-row h3 {
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--gold-500);
}

.values-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Contact page ---------- */

.contact-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.contact-hero .lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.contact-actions {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

@media (min-width: 560px) {
  .contact-actions { grid-template-columns: 1fr 1fr; }
}

.contact-actions .btn {
  padding: 1.35rem 1.5rem;
  font-size: 1.15rem;
}

.contact-details {
  max-width: 640px;
  margin: 0 auto;
  text-align: start;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  font-weight: 700;
  color: var(--green-900);
}

.contact-details dd {
  margin: 0;
  color: var(--muted);
}

.contact-details dd a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration: none;
}

.contact-details dd a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-950);
  color: rgba(251, 247, 238, 0.85);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
}

.site-footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-name {
  color: var(--cream);
  font-size: 1.3rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: rgba(251, 247, 238, 0.66);
  max-width: 34ch;
}

.site-footer ul li {
  padding: 0.28rem 0;
}

.site-footer a {
  color: rgba(251, 247, 238, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.footer-contact strong {
  color: var(--gold-300);
  font-weight: 600;
  min-width: 92px;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.14);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(251, 247, 238, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar + floating WhatsApp ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(11, 42, 31, 0.97);
  backdrop-filter: blur(6px);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--white);
}

.mobile-bar .bar-call { background: var(--gold-600); }
.mobile-bar .bar-wa { background: var(--wa); }

.wa-float {
  display: none;
}

@media (min-width: 841px) {
  .mobile-bar { display: none; }

  .wa-float {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 110;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(24, 127, 67, 0.4);
    transition: transform 0.18s ease, background-color 0.18s ease;
  }

  .wa-float:hover {
    background: var(--wa-dark);
    transform: scale(1.06);
  }
}

@media (max-width: 840px) {
  body { padding-bottom: 78px; }
}
