/* ===== Rasqira — Stylesheet ===== */

:root {
  --green: #1E3A2F;
  --green-dark: #172E25;
  --green-line: #4E6B5F;
  --cream: #F6F3EA;
  --sand: #ECE6D6;
  --border: #E2DCCB;
  --rule: #D8D0BC;
  --input-border: #CFC6B0;
  --gold: #D4A84B;
  --gold-text: #8A6418;
  --muted: #46574F;
  --muted-light: #D9E2DC;
  --footer-text: #C9D4CD;
  --white: #FFFFFF;

  --font-display: 'Marcellus', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--green);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }

a { color: var(--green); }
a:hover { color: var(--gold-text); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--green-dark); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: #E0B96A; color: var(--green); }
.btn-outline { border-color: var(--cream); color: var(--cream); font-weight: 600; }
.btn-outline:hover { background: var(--cream); color: var(--green); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(30, 58, 47, .08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .06em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-menu a { text-decoration: none; padding: 10px 0; }
.nav-menu .btn { padding: 12px 22px; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 8px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-menu .btn { margin-top: 10px; border-bottom: none; }
}

/* ===== Shared section styles ===== */
.section { padding-top: 112px; padding-bottom: 112px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow-light { color: var(--gold); }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.2;
}

.section-intro { font-size: 18px; color: var(--muted); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .09;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 128px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.12;
}
.lead { font-size: 19px; max-width: 34rem; color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-emblem { display: flex; justify-content: center; }
.emblem-ring {
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-ring svg { width: 78%; height: auto; }

/* ===== Name story ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arabic {
  font-family: var(--font-arabic);
  font-size: 40px;
  line-height: 1.3;
  color: var(--gold-text);
}
.pillar h3 { font-size: 22px; font-weight: 700; }
.pillar-meaning {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar p:last-child { color: var(--muted); }

/* ===== Services ===== */
.services { background: var(--sand); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.service {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service h3 { font-size: 22px; font-weight: 700; }
.service p { color: var(--muted); }

/* ===== Values ===== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: start;
}
.values .section-head { margin-bottom: 0; }
.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.value-list li:last-child { border-bottom: 1px solid var(--rule); }
.value-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-text);
  min-width: 44px;
}
.value-list h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.value-list p { color: var(--muted); }

/* ===== Contact ===== */
.contact { background: var(--green); color: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
}
.contact-text { display: flex; flex-direction: column; gap: 20px; }
.contact-text .lead { font-size: 18px; }

.contact-form {
  background: var(--cream);
  color: var(--green);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input,
.field textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--green);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field.has-error input,
.field.has-error textarea { border-color: #B3261E; }
.field-error { font-size: 13px; color: #B3261E; min-height: 0; }
.field-error:empty { display: none; }

.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1F6B45; }

/* ===== Footer ===== */
.site-footer { background: var(--green-dark); color: var(--footer-text); }
.footer-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.site-footer .brand-name { font-size: 20px; color: var(--cream); }

/* ===== Small screens ===== */
@media (max-width: 600px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero-grid { padding-top: 80px; padding-bottom: 88px; gap: 40px; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
