﻿:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --surface-alt: #f0ede8;
  --text: #1f2124;
  --muted: #646973;
  --brand-red: #8f1b23;
  --brand-red-dark: #5f1117;
  --brand-gold: #c9a24f;
  --line: #e5ddcf;
  --shadow: 0 16px 40px rgba(33, 24, 17, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1160px, 92vw);
  --header-height: 84px;
  --section-pad-x: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, rgba(201, 162, 79, 0.14), transparent 45%),
    radial-gradient(circle at 10% 0%, rgba(143, 27, 35, 0.08), transparent 40%),
    var(--bg);
  font-family: "Cairo", "Manrope", "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body[dir="ltr"] {
  font-family: "Manrope", "Cairo", "Segoe UI", sans-serif;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
  padding-inline: var(--section-pad-x);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease-out;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fcfbf9;
  transition: background 300ms ease-out, box-shadow 300ms ease-out, backdrop-filter 300ms ease-out;
  z-index: -1;
}

.site-header.is-scrolled::before {
  background: rgba(252, 249, 244, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(28, 22, 15, 0.08);
}

.site-header.is-scrolled {
  border-bottom-color: #e7ddcd;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: center;
  gap: 1.2rem;
  height: 100%;
  transition: transform 300ms ease-out, gap 300ms ease-out;
}

body[dir="rtl"] .header-inner {
  grid-template-areas: "actions nav brand";
}

body[dir="ltr"] .header-inner {
  grid-template-areas: "brand nav actions";
}

.site-header.is-scrolled .header-inner {
  transform: scaleY(0.88);
  gap: 1rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  justify-self: start;
  max-width: 340px;
  min-width: 0;
  min-height: 56px;
}

body[dir="rtl"] .brand {
  justify-self: end;
  flex-direction: row-reverse;
}

.logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 14px;
  border: 1px solid rgba(85, 64, 36, 0.12);
  background: rgba(250, 246, 240, 0.56);
  box-shadow: 0 4px 12px rgba(35, 26, 17, 0.05);
  transition: transform 240ms ease-out, border-color 240ms ease-out, box-shadow 240ms ease-out, background-color 240ms ease-out;
}

.brand img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  transition: transform 240ms ease-out;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: #343942;
  letter-spacing: 0.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 260ms ease-out;
}

.brand:hover .logo-shell {
  border-color: rgba(143, 106, 58, 0.2);
  background: rgba(251, 247, 241, 0.72);
  box-shadow: 0 8px 16px rgba(36, 27, 16, 0.08);
}

.brand:hover .brand-name {
  color: #262b33;
}

.brand:hover img {
  transform: scale(1.03);
}

.header-actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

body[dir="rtl"] .header-actions {
  justify-self: start;
}

.menu-toggle {
  display: none;
}

.main-nav {
  grid-area: nav;
  display: flex;
  gap: clamp(0.65rem, 1.4vw, 1.15rem);
  align-items: center;
  justify-content: center;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.2rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 250ms ease-out;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease-out;
}

.main-nav a:hover {
  color: var(--brand-red);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--brand-red);
}

.lang-toggle {
  border: 1px solid #d6c8ad;
  background: linear-gradient(130deg, #fffaf0, #f7eee0);
  color: var(--brand-red-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.42rem 0.86rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: #be9c56;
  box-shadow: 0 10px 22px rgba(201, 162, 79, 0.24);
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(143, 27, 35, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 6.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-1 {
  width: min(430px, 45vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(201, 162, 79, 0.32), rgba(201, 162, 79, 0));
  top: -60px;
  inset-inline-start: -80px;
  animation: float 10s ease-in-out infinite;
}

.orb-2 {
  width: min(380px, 35vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(143, 27, 35, 0.2), rgba(143, 27, 35, 0));
  bottom: -70px;
  inset-inline-end: -90px;
  animation: float 13s ease-in-out infinite reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 33, 36, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 33, 36, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-content > :nth-child(1) { animation-delay: 120ms; }
.hero-content > :nth-child(2) { animation-delay: 220ms; }
.hero-content > :nth-child(3) { animation-delay: 320ms; }
.hero-content > :nth-child(4) { animation-delay: 420ms; }

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e4d8c2;
  background: #fff8eb;
  color: var(--brand-red-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 700px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.45rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

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

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transform: translateX(-170%) skewX(-20deg);
  transition: transform 0.7s cubic-bezier(0.18, 0.8, 0.25, 1);
}

.btn:hover::after {
  transform: translateX(290%) skewX(-20deg);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-red), #b92730);
  box-shadow: 0 12px 28px rgba(143, 27, 35, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid #e7dfd3;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid #e7dece;
  border-bottom: 1px solid #e7dece;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1.35rem;
}

.section p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.badge,
.vm-card,
.contact-form,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.card,
.badge,
.info-card {
  transition: transform 320ms ease-out, box-shadow 320ms ease-out, border-color 320ms ease-out;
}

.card:hover,
.badge:hover,
.info-card:hover {
  transform: translateY(-5px);
  border-color: #cfb277;
  box-shadow: 0 20px 36px rgba(32, 22, 15, 0.12);
}

.card {
  padding: 1rem;
  min-height: 140px;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(145deg, #fff6ea, #f4ead7);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.94rem;
  margin: 0;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.badge {
  padding: 1rem;
  font-weight: 700;
  color: #2f343d;
  background: linear-gradient(130deg, #fff, #f8f4ed);
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vm-card {
  padding: 1.25rem;
}

.vm-card h3 {
  margin-bottom: 0.75rem;
  color: var(--brand-red-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.section-intro {
  margin-bottom: 1.3rem;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: linear-gradient(130deg, #fff, #fbf8f3);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: linear-gradient(145deg, #fff2de, #f6e7cc);
}

.info-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-form {
  padding: 1.2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dad1c2;
  background: #fff;
  padding: 0.75rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(143, 27, 35, 0.2);
  border-color: var(--brand-red);
}

.site-footer {
  background: #1f2124;
  color: #edf0f3;
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid p {
  color: #c7cdd6;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid #333a45;
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
  color: #cdd3da;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --section-pad-x: 18px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions";
    gap: 0.8rem;
  }

  .header-actions {
    justify-self: end;
  }

  body[dir="rtl"] .header-actions {
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid #d6c8ad;
    background: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: border-color 250ms ease-out, box-shadow 250ms ease-out;
  }

  .menu-toggle:hover {
    border-color: #be9c56;
    box-shadow: 0 8px 18px rgba(201, 162, 79, 0.22);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline: var(--section-pad-x);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid #e6dccb;
    border-radius: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 300ms ease-out, opacity 300ms ease-out, transform 300ms ease-out;
  }

  .site-header.menu-open .main-nav {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.9rem 1rem;
    min-height: 48px;
    border-bottom: 1px solid #efe7d9;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding: 5.7rem 0 4.4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.3;
    margin-top: 0.95rem;
  }

  .hero-sub,
  .section p,
  .info-card p,
  .card p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    gap: 0.62rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-grid,
  .vm-grid,
  .footer-grid,
  .badge-grid,
  .card-grid,
  .services-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .brand-name {
    display: block;
    max-width: 160px;
    font-size: 0.84rem;
  }

  .logo-shell {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 12px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .orb-1,
  .orb-2 {
    opacity: 0.68;
    filter: blur(3px);
  }

  .reveal {
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 68px;
    --section-pad-x: 16px;
  }

  .header-inner {
    gap: 0.55rem;
  }

  .brand {
    max-width: min(64vw, 248px);
  }

  .brand-name {
    max-width: min(40vw, 168px);
    font-size: 0.79rem;
  }

  .logo-shell {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .lang-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0.65rem;
  }

  .hero {
    padding: 5.1rem 0 3.8rem;
  }

  .eyebrow {
    font-size: 0.78rem;
    padding: 0.22rem 0.64rem;
  }

  h1 {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
    line-height: 1.28;
  }

  .section {
    padding: 3.7rem 0;
  }

  .card,
  .vm-card,
  .contact-form,
  .info-card,
  .badge {
    padding: 0.95rem;
  }

  .card h3,
  .info-card h3 {
    font-size: 0.98rem;
  }

  .main-nav {
    inset-inline: 16px;
  }
}

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