/* Al-Mutamayiz Consultant — bilingual corporate site */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --paper: #f8fafc;
  --cream: #fdfbf7;
  --gold: #c9a227;
  --gold-deep: #9a7618;
  --electric: #0ea5e9;
  --electric-dark: #0369a1;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --radius: 14px;
  --font-primary: "Tajawal", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-primary);
  font-weight: 700;
}

strong {
  font-weight: 800;
}

[dir="rtl"] .lang-switch {
  flex-direction: row-reverse;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--electric-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav a:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold), #e4c04a);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 18ch;
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  max-width: 38ch;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8c85c);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--gold);
  width: 22px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(201, 162, 39, 0.15));
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--electric-dark);
}

/* Vision / Mission / Goals */
.vmg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vmg-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vmg-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--electric));
}

.vmg-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--ink), #1e3a5f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.vmg-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  fill: none;
}

.vmg-card .icon-wrap svg path {
  stroke: currentColor;
}

.vmg-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.vmg-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.contact-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.contact-list a {
  color: #fff;
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--gold);
}

.social-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.fb-link:hover {
  background: rgba(14, 165, 233, 0.35);
  text-decoration: none;
}

.map-note {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.map-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .nav {
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    justify-content: center;
  }

  .hero h1 {
    max-width: none;
  }
}
