/* ==========================================================================
   Exception for Construction — Master Stylesheet
   Theme: High-end Gray / Black / White
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-variant-numeric: normal;
  -moz-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}

html, body {
  font-variant-ligatures: none;
}

:root {
  --black: #0d0d0d;
  --dark-gray: #1a1a1a;
  --mid-gray: #4a4a4a;
  --light-gray: #b0b0b0;
  --off-white: #f5f5f5;
  --white: #ffffff;
  --gold-accent: #c9a24b;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
}

body {
  font-family: var(--font-ar);
  background-color: var(--white);
  color: var(--dark-gray);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.ltr-num, [dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
  font-family: 'Arial', sans-serif;
}

/* ---------------- Header / Navbar ---------------- */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* LOGO — fixed to not distort a square, detailed mark.
   A light chip sits behind it so the dark linework stays crisp
   against the dark navbar, and size is fixed+consistent everywhere. */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo .logo-mark {
  height: 54px;
  width: 54px;
  min-width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 8px;
  padding: 5px;
  overflow: hidden;
}

.logo .logo-mark img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

.logo span {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: var(--off-white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold-accent); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

/* ---------------- Hero Section ---------------- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(13,13,13,0.75), rgba(13,13,13,0.88)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--dark-gray);
  color: var(--white);
  position: relative;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 650px;
  margin: 0 auto 35px;
}

.btn {
  display: inline-block;
  padding: 14px 38px;
  border: 2px solid var(--gold-accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.35s ease;
  letter-spacing: 0.5px;
}

.btn:hover { background: var(--gold-accent); color: var(--black); }

/* ---------------- Stats ---------------- */
.stats { background: var(--dark-gray); padding: 70px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--gold-accent);
  font-weight: 800;
  direction: ltr;
  unicode-bidi: embed;
  font-family: 'Arial', sans-serif;
}

.stat-item p { color: var(--light-gray); margin-top: 8px; font-size: 0.95rem; }

/* ---------------- Section Generic ---------------- */
section { padding: 100px 0; }

.section-title { text-align: center; margin-bottom: 60px; }

.section-title span {
  color: var(--gold-accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 10px;
  color: var(--black);
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid img { border-radius: 4px; filter: grayscale(20%); }

/* FOUNDERS — rebuilt for tall 2:3 portrait photos instead of forcing
   them into a small circle (which cropped faces badly). Cards now use
   a fixed-ratio rectangular frame so the full portrait (suit + face)
   stays visible and consistent if you add a second founder later. */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.founder-card {
  text-align: center;
  background: var(--off-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.founder-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--dark-gray);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(35%);
  transition: filter 0.4s ease, transform 0.5s ease;
  display: block;
}

.founder-card:hover .founder-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.founder-card-body { padding: 22px 20px 26px; }

.founder-card h3 { font-size: 1.15rem; color: var(--black); margin-bottom: 4px; }
.founder-card p { color: var(--mid-gray); font-size: 0.9rem; }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.service-card {
  background: var(--off-white);
  padding: 45px 30px;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--gold-accent);
}

.service-card .icon { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--black); }
.service-card p { color: var(--mid-gray); font-size: 0.95rem; }

/* ---------------- Projects ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  aspect-ratio: 4 / 3;
  background: var(--dark-gray);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-info {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(13,13,13,0.92));
  color: var(--white);
  padding: 25px 20px 18px;
}

.project-info h3 { font-size: 1.15rem; margin-bottom: 5px; }
.project-info p { color: var(--light-gray); font-size: 0.85rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.contact-info-item { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }

.contact-info-item .icon {
  width: 50px; height: 50px;
  background: var(--black);
  color: var(--gold-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-info-item p, .contact-info-item a {
  direction: ltr;
  unicode-bidi: embed;
  font-family: 'Arial', sans-serif;
  display: inline-block;
}

.contact-info-item .label {
  direction: rtl;
  font-family: var(--font-ar);
  display: block;
  color: var(--mid-gray);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

form { display: flex; flex-direction: column; gap: 18px; }

form input, form textarea {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
}

form input:focus, form textarea:focus { outline: none; border-color: var(--gold-accent); }

form button {
  padding: 14px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover { background: var(--gold-accent); color: var(--black); }

/* ---------------- Footer ---------------- */
footer { background: var(--black); color: var(--light-gray); padding: 60px 0 25px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--gold-accent); }

.social-icons { display: flex; gap: 15px; margin-top: 15px; }

.social-icons a {
  width: 38px; height: 38px;
  border: 1px solid var(--mid-gray);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: var(--black);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #2a2a2a;
  font-size: 0.85rem;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 78px; right: 0; left: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }
  .nav-links.active { transform: translateY(0); }
  .hero-content h1 { font-size: 2.1rem; }
  .logo span { font-size: 1.05rem; }
  .founders-grid { max-width: 320px; }
}
