/* ============================
   CSS Variables
   ============================ */
:root {
  --pistachio: #93B87C;
  --pistachio-2: #A6C78F;
  --pistachio-3: #7CA263;
  --pistachio-deep: #557A45;
  --pistachio-dark: #44683A;
  --cream: #FAF6EC;
  --cream-2: #F2ECDD;
  --cream-3: #ECE4CF;
  --gold: #C7A448;
  --gold-2: #B28C33;
  --ink: #2F3B2C;
  --ink-soft: #5A6655;
  --white: #FFFFFF;
  --border: #DCD3BC;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(47, 59, 44, 0.10);
}

/* ============================
   Base Reset
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Aref Ruqaa', system-ui, 'Segoe UI', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Amiri', 'Cairo', serif;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ============================
   Layout
   ============================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.center .section-desc {
  margin-inline: auto;
}

/* ============================
   Decorative Patterns
   ============================ */
.khatam-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%232F3B2C' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M28 2 L54 28 L28 54 L2 28 Z'/%3E%3Cpath d='M15 15 L41 15 L41 41 L15 41 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}

.diamond-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23C7A448' stroke-opacity='0.18' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ============================
   Ornamental Divider
   ============================ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto;
}

.ornament .line {
  height: 1px;
  width: 70px;
}

[dir="rtl"] .ornament .line {
  background: linear-gradient(to left, transparent, var(--gold));
}

[dir="ltr"] .ornament .line {
  background: linear-gradient(to right, transparent, var(--gold));
}

.ornament .orn-star {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.ornament .orn-star svg {
  width: 100%;
  height: 100%;
}

/* ============================
   Top Strip
   ============================ */
.top-strip {
  height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--pistachio), var(--gold));
  opacity: 0.9;
}

/* ============================
   Header
   ============================ */
.header {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pistachio-2), var(--pistachio-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  color: #fff;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.logo-mark svg {
  width: 26px;
  height: 26px;
}

.logo-text .logo-ar {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pistachio-dark);
  line-height: 1.2;
}

.logo-text .logo-en {
  font-family: 'Marcellus', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--pistachio-dark);
  background: rgba(147, 184, 124, 0.18);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cream-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--pistachio-deep);
  color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(147, 184, 124, 0.25), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(199, 164, 72, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
}

.hero-text {
  flex: 1.15;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--pistachio-dark);
  border: 1px solid var(--pistachio-3);
  background: rgba(147, 184, 124, 0.14);
  padding: 7px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-title .ar-name {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  color: var(--pistachio-deep);
  display: block;
}

.hero-title .sub {
  color: var(--gold-2);
  display: block;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pistachio-2), var(--pistachio-3));
  color: #fff;
  box-shadow: 0 8px 20px rgba(85, 122, 69, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--pistachio-3), var(--pistachio-deep));
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-2);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(199, 164, 72, 0.12);
}

/* Hero Art */
.hero-art {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.arch-panel {
  width: min(380px, 100%);
  position: relative;
}

.arch-svg {
  width: 100%;
  display: block;
}

.arch-inner {
  position: absolute;
  top: 9%;
  left: 12%;
  right: 12%;
  bottom: 16%;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.arch-inner .arch-name {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.6;
}

.arch-inner .arch-tag {
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.arch-star {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--gold);
}

.float-orn {
  position: absolute;
  width: 54px;
  height: 54px;
  color: rgba(199, 164, 72, 0.55);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-orn { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================
   Section Base
   ============================ */
.section {
  padding: 64px 0;
  position: relative;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(199, 164, 72, 0.5);
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(199, 164, 72, 0.08);
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 16px;
}

.section-desc {
  color: var(--ink-soft);
  max-width: 68ch;
  font-size: 1.04rem;
  margin-top: 10px;
}

/* ============================
   About
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 20px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--pistachio-deep);
  font-weight: 700;
}

.about-quote {
  border-inline-start: 3px solid var(--gold);
  padding: 6px 18px;
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--pistachio-dark);
  margin: 24px 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(47, 59, 44, 0.14);
}

.fact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pistachio-2), var(--pistachio-3));
  color: #fff;
  margin-bottom: 12px;
}

.fact-icon svg {
  width: 24px;
  height: 24px;
}

.fact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fact-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ============================
   Stats Band
   ============================ */
.stats-band {
  background: linear-gradient(120deg, var(--pistachio-dark), var(--pistachio-deep));
  position: relative;
  overflow: hidden;
}

.stats-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M28 2 L54 28 L28 54 L2 28 Z'/%3E%3Cpath d='M15 15 L41 15 L41 41 L15 41 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
  color: #fff;
}

.stat-num {
  font-family: 'Amiri', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* ============================
   Services
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--pistachio));
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(47, 59, 44, 0.15);
}

.svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cream-3), var(--cream));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pistachio-deep);
}

.svc-icon svg {
  width: 28px;
  height: 28px;
}

.svc-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.svc-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================
   Projects
   ============================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(47, 59, 44, 0.16);
}

.project-arch {
  position: relative;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.project-arch .arch-fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.project-arch .arch-fill.grad-a {
  background: linear-gradient(135deg, var(--pistachio-2), var(--pistachio-deep));
}

.project-arch .arch-fill.grad-b {
  background: linear-gradient(135deg, #5D8A72, #334F42);
}

.project-arch .arch-fill.grad-c {
  background: linear-gradient(135deg, #B49A4E, #8A7434);
}

.project-arch .arch-fill.grad-d {
  background: linear-gradient(135deg, #6E9A85, #3E5F50);
}

.project-arch .arch-fill.grad-e {
  background: linear-gradient(135deg, #8FAB7C, #4E6E42);
}

.project-arch .arch-fill.grad-f {
  background: linear-gradient(135deg, #7CA263, #3F6B55);
}

.project-arch .arch-silhouette {
  position: relative;
  z-index: 1;
  width: 150px;
  display: block;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.project-arch .arch-silhouette svg {
  width: 100%;
  display: block;
}

.project-arch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-arch .arch-icon {
  position: absolute;
  top: 26px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.95);
  z-index: 2;
}

[dir="rtl"] .project-arch .arch-icon {
  transform: translateX(50%);
}

.project-arch .arch-icon svg {
  width: 34px;
  height: 34px;
}

.project-body {
  padding: 22px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(199, 164, 72, 0.5);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(199, 164, 72, 0.07);
  align-self: flex-start;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}

.project-link {
  font-weight: 700;
  color: var(--pistachio-deep);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

[dir="rtl"] .project-link svg {
  transform: rotate(180deg);
}

.project-link:hover {
  color: var(--gold-2);
}

/* Restova Featured Card */
.restova-card {
  border: 2px solid #25D366;
  position: relative;
}

.restova-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25D366, #128C7E, #25D366);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.restova-card:hover::after {
  opacity: 0.15;
}

.project-tag--featured {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.5);
  color: #128C7E;
}

.project-link--featured {
  color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s;
}

.project-link--featured:hover {
  background: linear-gradient(135deg, #1ebe5a, #0e7d6e);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.project-link--featured svg {
  width: 16px;
  height: 16px;
}

[dir="rtl"] .project-link--featured svg {
  transform: rotate(0deg);
}

/* CTA Card */
.project-card.cta-card {
  background: linear-gradient(135deg, var(--pistachio-dark), var(--pistachio-deep));
  border: 1px solid var(--pistachio-3);
  color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
}

.project-card.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(85, 122, 69, 0.3);
}

.project-card.cta-card .project-arch {
  display: none;
}

.project-card.cta-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}

.project-card.cta-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  max-width: 30ch;
}

.project-card.cta-card .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--ink);
  border: none;
  transition: all 0.2s;
}

.project-card.cta-card .btn-cta:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

/* ============================
   Contact
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  margin-top: 20px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--pistachio-dark);
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.contact-nodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.contact-node {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 59, 44, 0.12);
}

.contact-node .cn-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pistachio-2), var(--pistachio-3));
  color: #fff;
}

.contact-node .cn-icon svg {
  width: 22px;
  height: 22px;
}

.contact-node .cn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-node .cn-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.contact-node .cn-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  direction: ltr;
  text-align: start;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6b7a65;
  opacity: 1;
}

.form-field input:-ms-input-placeholder,
.form-field textarea:-ms-input-placeholder {
  color: #6b7a65;
}

.form-field input::-ms-input-placeholder,
.form-field textarea::-ms-input-placeholder {
  color: #6b7a65;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--pistachio-3);
  box-shadow: 0 0 0 4px rgba(147, 184, 124, 0.18);
  background: #fff;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Dual CTA Buttons */
.form-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-cta-row .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.95rem;
  padding: 13px 20px;
}

.btn-email {
  background: linear-gradient(135deg, #7A9E69, #5f8a4e);
  color: #fff;
  box-shadow: 0 6px 16px rgba(90, 130, 65, 0.3);
}

.btn-email:hover {
  background: linear-gradient(135deg, #5f8a4e, #4a7540);
  transform: translateY(-2px);
}

.btn-email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: center;
}

.form-ok {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  margin-top: 14px;
  font-size: 0.92rem;
}

.form-ok.success {
  background: rgba(147, 184, 124, 0.15);
  color: var(--pistachio-deep);
  border: 1px solid rgba(147, 184, 124, 0.4);
}

.form-ok.error {
  background: rgba(192, 57, 43, 0.1);
  color: #C0392B;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.form-ok.show {
  display: block;
}

.form-field input.error,
.form-field textarea.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--ink);
  color: #cfd8c9;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23A6C78F' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M28 2 L54 28 L28 54 L2 28 Z'/%3E%3Cpath d='M15 15 L41 15 L41 41 L15 41 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
  position: relative;
}

.footer-brand .logo-ar {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--pistachio-2);
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #a9b8a4;
  max-width: 34ch;
}

.footer h4 {
  color: var(--pistachio-2);
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  color: #cfd8c9;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  position: relative;
  text-align: center;
  font-size: 0.88rem;
  color: #9aa894;
}

.footer-bottom .foot-star {
  width: 18px;
  height: 18px;
  color: var(--gold);
  margin: 0 6px;
  display: inline-block;
  vertical-align: middle;
}

/* ============================
   Reveal Animation
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================
   Back to Top
   ============================ */
.to-top {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pistachio-2), var(--pistachio-3));
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(85, 122, 69, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0;
    top: 64px;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  [dir="rtl"] .nav {
    transform: translateX(-100%);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-cta-row {
    flex-direction: column;
  }

  .form-cta-row .btn {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    gap: 0;
    padding: 2px;
  }

  .lang-switch button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}
