:root {
  --color-bg: #f7f5f2;
  --color-bg-alt: #ffffff;
  --color-primary: #b78a3b;
  --color-primary-soft: #e3c68a;
  --color-primary-dark: #7b5a22;
  --color-text: #2b2b2b;
  --color-muted: #777777;
  --color-border: #e2dfd8;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --transition-fast: 0.2s ease;
  --container-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
}

.brand-en {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-ar {
  font-size: 11px;
  color: var(--color-muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-soft));
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at top left, #f4e2b8 0, #f7f5f2 40%, #fff 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top right, rgba(183, 138, 59, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 520px;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.btn.ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: rgba(183, 138, 59, 0.35);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  min-width: 90px;
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.stat-label {
  font-size: 12px;
  color: var(--color-muted);
}

.hero-image {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

/* SECTIONS */

.section {
  padding: 64px 0;
}

.section-alt {
  padding: 64px 0;
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* LAYOUT UTILITIES */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.about-card {
  background-color: #fff7eb;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(183, 138, 59, 0.25);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
}

.about-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

/* TIMELINE */

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary-soft), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 26px;
}

.timeline-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-primary);
}

.timeline-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.timeline-body p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

/* VERTICALS */

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vertical-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.vertical-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 16px;
}

.vertical-card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.vertical-card ul {
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

.vertical-icon img {
  border-radius: var(--radius-md);
}

/* TABS & CARDS */

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.tab-btn.active {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card-tag {
  font-size: 12px;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 14px;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contact-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--color-muted);
}

.contact-form .form-row {
  margin-top: 10px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(183, 138, 59, 0.2);
}

.contact-form .btn {
  width: 100%;
  margin-top: 14px;
}

.form-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-muted);
}

/* FOOTER */

.site-footer {
  padding: 18px 0 26px;
  background-color: #1d1b19;
  color: #eee1ce;
}

.footer-inner {
  text-align: center;
  font-size: 12px;
}

.footer-small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 72px;
  }

  .two-col,
  .verticals-grid,
  .cards-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset: 56px 0 auto;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 260px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .section-alt {
    padding: 48px 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid {
    gap: 16px;
  }

  .card,
  .vertical-card,
  .about-card,
  .contact-card {
    border-radius: 16px;
  }
}
