/* ============================================
   Hassan Faqih Engineering Consultancy
   Brand Identity: Navy #0a2038 + Red #a93739
   ============================================ */

:root {
  --navy: #0a2038;
  --navy-dark: #061729;
  --red: #a93739;
  --red-dark: #8a2d2f;
  --text-dark: #1d1d1b;
  --gray-light: #e6e7e8;
  --white: #ffffff;
  --off-white: #f5f6f7;
  --gray-100: #e6e7e8;
  --gray-200: #d4d6d8;
  --gray-600: #4a4a4a;
  --gray-800: #1d1d1b;
  --black: #1d1d1b;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-img {
  height: 140px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}

.lang-btn:hover {
  color: var(--red);
}

.lang-btn.active {
  color: var(--red);
}

.lang-divider {
  color: var(--gray-200);
  font-weight: 400;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(169, 55, 57, 0.35);
}

.btn-full {
  width: 100%;
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(10, 32, 56, 0.4) 0%, rgba(10, 32, 56, 0.5) 100%),
    url('hero-bg.png') center/cover no-repeat;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}


/* ========== Section Styles ========== */
.section-header {
  margin-bottom: 48px;
  max-width: 600px;
}

.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

.section-header-light .section-label {
  color: rgba(255, 255, 255, 0.8);
}

.section-header-light .section-title {
  color: var(--white);
}

/* ========== About Section ========== */
.about {
  padding: 100px 24px 120px;
  background: linear-gradient(to bottom, #eef3f7 0%, #e5ecf2 50%, #dce4eb 100%);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.about-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.about-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-paragraph {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-divider {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: 0 0 28px 0;
}

.about-stats {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.about .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about .stat-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.about .stat-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 8px;
}

.about .stat-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ========== Services Section ========== */
.services {
  padding: 100px 0 120px;
  background: var(--navy);
}

.services .container {
  max-width: 1100px;
}

.services-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d1d1b;
  line-height: 1.4;
}

/* ========== Projects Section ========== */
.projects {
  padding: 120px 0;
  background: var(--off-white);
}

.projects-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  padding-inline: 24px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-tabs::-webkit-scrollbar {
  display: none;
}

.project-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-600);
  background: none;
  border: none;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
}

.project-tab-label {
  display: inline-block;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.project-tab:hover {
  color: var(--navy);
}

.project-tab.active {
  color: var(--red);
}

.project-tab.active .project-tab-label {
  border-bottom-color: var(--red);
}

.projects-panels {
  position: relative;
  min-height: 200px;
}

.projects-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.projects-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.projects-empty {
  text-align: center;
  color: var(--gray-600);
  font-size: 1rem;
  padding: 60px 24px;
}

.projects-panel:has(.project-card) .projects-empty {
  display: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 24px;
}

.projects-grid:empty {
  display: none;
}

/* Project category layout (e.g. Urban Planning) */
.project-category-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: start;
  padding: 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

html[dir="rtl"] .project-category-layout {
  direction: rtl;
}

.project-category-header {
  text-align: right;
  position: sticky;
  top: 24px;
}

html[dir="ltr"] .project-tab {
  font-size: 0.8125rem;
  padding: 8px 12px;
}

html[dir="ltr"] .project-category-header {
  text-align: left;
  order: 1;
}

html[dir="ltr"] .project-category-layout .project-list {
  order: 2;
}

.project-category-icon {
  width: 64px;
  height: 64px;
  color: var(--red);
  margin-bottom: 20px;
}

.project-category-icon svg {
  width: 100%;
  height: 100%;
  transform: rotate(5deg);
}

.project-category-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1.25;
}

.project-category-subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.project-list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.project-list-text {
  flex: 1;
  order: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.project-list-num {
  order: 1;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1.3;
}

/* English: number on the left of the text */
html[dir="ltr"] .project-list-num {
  order: -1;
}

html[dir="rtl"] .project-list-num {
  order: -1;
}

/* Studies & Supervision: icon (hidden in LTR / numbered layout) */
.project-list-icon {
  display: none;
}

/* Studies & Supervision – Arabic (RTL): centered header + 3×3 grid with red circle icons */
html[dir="rtl"] .studies-supervision-layout {
  grid-template-columns: 1fr;
  gap: 32px 0;
}

html[dir="rtl"] .studies-supervision-layout .project-category-header {
  text-align: center;
  position: static;
  order: 0;
}

html[dir="rtl"] .studies-supervision-layout .project-category-icon {
  margin-left: auto;
  margin-right: auto;
}

html[dir="rtl"] .studies-supervision-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  order: 1;
}

html[dir="rtl"] .studies-supervision-list .project-list-item {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

html[dir="rtl"] .studies-supervision-list .project-list-num {
  order: -1;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red);
}

html[dir="rtl"] .studies-supervision-list .project-list-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  flex-shrink: 0;
  order: -1;
}

html[dir="rtl"] .studies-supervision-list .project-list-icon svg {
  width: 28px;
  height: 28px;
}

html[dir="rtl"] .studies-supervision-list .project-list-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: center;
}

/* Security and Safety – same design as Studies & Supervision (EN + AR: centered header + 3-col grid) */
.quality-support-layout {
  grid-template-columns: 1fr;
  gap: 32px 0;
}

.quality-support-layout .project-category-header {
  text-align: center;
  position: static;
  order: 0;
}

.quality-support-layout .project-category-icon {
  margin-left: auto;
  margin-right: auto;
}

.quality-support-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  order: 1;
}

.quality-support-list .project-list-item {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.quality-support-list .project-list-num {
  order: -1;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red);
}

.quality-support-list .project-list-icon {
  display: none;
}

.quality-support-list .project-list-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: center;
}

/* Architectural Design panel */
.arch-design-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.arch-design-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #8c2f2f;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.25;
}

.arch-design-subtitle {
  font-size: 1.0625rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.arch-design-paragraph {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: right;
}

html[dir="ltr"] .arch-design-paragraph {
  text-align: left;
}

.arch-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.arch-design-card {
  margin: 0;
}

.arch-design-card-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.arch-design-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--gray-200);
}

.arch-design-line {
  display: block;
  height: 1px;
  background: var(--gray-600);
  margin: 0;
}

.arch-design-line-top {
  margin-top: 0;
}

.arch-design-card-title {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-dark);
  text-align: center;
  margin: 0;
  padding: 14px 10px;
  font-weight: 500;
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.arch-design-line-red {
  height: 2px;
  background: var(--red);
  margin: 0 0 0;
}

.arch-design-vline {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--gray-600);
  pointer-events: none;
}

.arch-design-vline-l {
  left: 0;
}

.arch-design-vline-r {
  right: 0;
  left: auto;
}

/* Urban Observatory panel */
.observatory-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0 48px;
  text-align: center;
}

.observatory-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #8c2f2f;
  margin-bottom: 20px;
  line-height: 1.25;
}

.observatory-intro {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.observatory-map-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 28px;
  aspect-ratio: 100 / 120;
}

.observatory-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.observatory-map-outline {
  fill: #d4d6d8;
  stroke: #9ca3af;
}

.observatory-map-regions {
  stroke: #9ca3af;
  fill: none;
}

.observatory-dot {
  fill: var(--text-dark);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.observatory-line {
  stroke: var(--text-dark);
  stroke-width: 0.8;
  stroke-linecap: round;
}

.observatory-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.observatory-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 42%;
  pointer-events: auto;
}

.observatory-label-left {
  left: 0;
  top: var(--y, 50%);
  transform: translateY(-50%);
  text-align: left;
  flex-direction: row;
}

.observatory-label-right {
  right: 0;
  left: auto;
  top: var(--y, 50%);
  transform: translateY(-50%);
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .observatory-label-left {
  left: auto;
  right: 0;
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .observatory-label-right {
  right: auto;
  left: 0;
  text-align: left;
  flex-direction: row;
}

.observatory-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dark);
  flex-shrink: 0;
}

.observatory-label-text {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.observatory-footer {
  font-size: 0.9375rem;
  color: var(--text-dark);
  margin: 0;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card-large {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 32, 56, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.project-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ========== Contact Section ========== */
.contact {
  padding: 120px 0;
  background: var(--navy);
  color: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  display: block;
}

.contact-item address,
.contact-item a,
.contact-item span {
  font-style: normal;
  color: var(--white);
}

.contact-sep {
  margin: 0 4px;
  opacity: 0.8;
}

.contact-item a:hover {
  opacity: 0.85;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form .btn-primary {
  margin-top: 8px;
}

.contact-form .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
}

/* ========== Footer ========== */
.footer {
  padding: 40px 0;
  background: var(--navy-dark);
  text-align: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .project-card-large {
    grid-row: span 1;
    grid-column: span 2;
  }

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

  .project-category-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-category-header {
    position: static;
    text-align: center;
  }

  html[dir="ltr"] .project-category-header {
    order: 1;
  }

  html[dir="ltr"] .project-category-layout .project-list {
    order: 2;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .studies-supervision-list,
  html[dir="rtl"] .quality-support-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 165px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-toggle {
    display: flex;
  }

  .about-content {
    padding: 0;
  }
  .about-stats {
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 280px);
  }

  .project-card-large {
    grid-column: span 1;
  }

  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 32, 56, 0.85) 0%, transparent 50%);
  }

  .contact-form {
    padding: 32px;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .about {
    padding: 80px 20px 100px;
  }
  .about-content {
    padding: 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .services,
  .projects,
  .contact {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .observatory-content {
    padding: 16px 0 32px;
  }
  .observatory-label {
    max-width: 38%;
  }

  html[dir="rtl"] .studies-supervision-list,
  html[dir="rtl"] .quality-support-list {
    grid-template-columns: 1fr;
  }

  .arch-design-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LTR – English (official typography) ========== */
html[dir="ltr"] body {
  font-family: Georgia, 'Times New Roman', serif;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
  font-family: Georgia, 'Times New Roman', serif;
}

html[dir="ltr"] .logo,
html[dir="ltr"] .hero-title,
html[dir="ltr"] .hero-tagline,
html[dir="ltr"] .section-label,
html[dir="ltr"] .section-title,
html[dir="ltr"] .about-tagline,
html[dir="ltr"] .about-title,
html[dir="ltr"] .services-title,
html[dir="ltr"] .project-category-title,
html[dir="ltr"] .project-tab,
html[dir="ltr"] .arch-design-title,
html[dir="ltr"] .observatory-title,
html[dir="ltr"] .contact-title,
html[dir="ltr"] .btn,
html[dir="ltr"] .nav-links a,
html[dir="ltr"] .lang-btn,
html[dir="ltr"] .footer-logo {
  font-family: Georgia, 'Times New Roman', serif;
}

/* ========== RTL & Arabic ========== */
html[dir="rtl"] body,
body.rtl {
  font-family: 'Almarai', 'Tajawal', sans-serif;
  font-weight: 400;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
body.rtl h1,
body.rtl h2,
body.rtl h3 {
  font-family: 'Almarai', 'Tajawal', sans-serif;
  font-weight: 800;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .section-label,
html[dir="rtl"] .section-title,
html[dir="rtl"] .about-tagline,
html[dir="rtl"] .about-title,
html[dir="rtl"] .services-title,
html[dir="rtl"] .project-category-title,
html[dir="rtl"] .project-tab,
html[dir="rtl"] .arch-design-title,
html[dir="rtl"] .observatory-title,
html[dir="rtl"] .contact-title,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] .footer-logo {
  font-family: 'Almarai', 'Tajawal', sans-serif;
  font-weight: 800;
}

html[dir="rtl"] .section-label,
html[dir="rtl"] .hero-tagline {
  letter-spacing: 0.05em;
}
