/* ===== AAE — Al-Adha Engineering Company website styles ===== */

:root {
  --navy: #10214a;
  --navy-dark: #0a1730;
  --navy-light: #1c3266;
  --gold: #d6a233;
  --gold-light: #efc667;
  --ink: #1c2433;
  --muted: #5c6577;
  --paper: #ffffff;
  --paper-alt: #f4f6fa;
  --line: #e3e7ef;
  --shadow: 0 12px 32px rgba(16, 33, 74, 0.12);
  --radius: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}

.section {
  padding: 80px 0;
}
.section.alt { background: var(--paper-alt); }
.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--paper); background: rgba(255,255,255,0.08); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd7e8;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd7e8; }
.topbar a:hover { color: var(--gold-light); }
.topbar .contact-strip { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .contact-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--paper);
  box-shadow: 0 2px 14px rgba(16,33,74,0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}
.brand img { height: 52px; width: auto; }
.brand .brand-text { line-height: 1.15; }
.brand .brand-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--navy);
  color: #fff;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,23,48,0.78), rgba(10,23,48,0.88)), url("../img/hero-water-plant.jpg") center/cover no-repeat;
  padding: 130px 0 110px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead {
  color: #dfe5f2;
  max-width: 640px;
  font-size: 1.12rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,23,48,0.82), rgba(10,23,48,0.9)), url("../img/thickener-tank-rebar.jpg") center/cover no-repeat;
  padding: 92px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero .breadcrumb { color: #b9c4de; font-size: 0.9rem; }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ---------- stat strip ---------- */
.stat-strip {
  background: var(--navy);
  color: #fff;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-light);
}
.stat-strip .stat .label {
  font-size: 0.85rem;
  color: #c3cce2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.card-brand {
  border-color: rgba(214,162,51,0.5);
  background: linear-gradient(135deg, rgba(214,162,51,0.06), transparent);
}
.card.card-brand .icon { background: var(--gold); color: var(--navy-dark); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(214,162,51,0.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

/* value pillars */
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-bottom: none; }
.pillar .num {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 44px;
}
.pillar h4 { margin-bottom: 4px; }
.pillar p { margin-bottom: 0; font-size: 0.94rem; }

/* about split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* service list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 6px 0;
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--gold);
}

.service-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.service-block + .service-block { margin-top: 28px; }
.service-block.brand-callout {
  background: linear-gradient(135deg, rgba(214,162,51,0.08), rgba(16,33,74,0.03));
  border: 1px solid rgba(214,162,51,0.4);
}
.service-block.brand-callout .service-block-head .icon {
  background: var(--gold);
  color: var(--navy-dark);
}
.service-block .service-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.service-block .service-block-head .icon {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ---------- project cards ---------- */
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.project-card .thumb {
  height: 210px;
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: rgba(16,33,74,0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.project-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.project-card p { font-size: 0.9rem; margin-bottom: 14px; }
.project-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.82rem;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.project-meta div span { display: block; }
.project-meta .k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }
.project-meta .v { color: var(--ink); font-weight: 600; }

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.video-card video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #0a1730;
}
.video-card .body { padding: 16px 20px 20px; }
.video-card h3 { font-size: 1rem; margin-bottom: 4px; }
.video-card p { font-size: 0.86rem; margin-bottom: 0; color: var(--muted); }

/* project filter tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.15s ease;
}
.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- team ---------- */
.team-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  background: #fff;
}
.team-card .avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.88rem; text-align: left; margin-bottom: 0; }
.team-card .creds { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.team-card.team-card-lead {
  border-color: rgba(214,162,51,0.55);
  background: linear-gradient(160deg, rgba(214,162,51,0.08), transparent);
}
.team-card.team-card-lead .avatar { background: var(--gold); color: var(--navy-dark); }

.grid.featured-leaders { margin-bottom: 36px; }
.team-card.team-card-featured {
  text-align: left;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.team-card.team-card-featured .avatar {
  width: 68px;
  height: 68px;
  font-size: 1.3rem;
  margin: 0 0 18px;
}
.team-card.team-card-featured .avatar-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 18px;
  border: 3px solid var(--gold);
}
.team-card.team-card-featured h3 { font-size: 1.35rem; }
.team-card.team-card-featured .role { font-size: 0.88rem; }
.team-card.team-card-featured p { font-size: 0.95rem; }
.team-card.team-card-featured .team-contact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(214,162,51,0.4);
}
.team-card.team-card-featured .team-contact a {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.team-card.team-card-featured .team-contact a:hover { color: var(--gold); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 54px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #cdd6ea; margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--navy);
  color: #dbe1f0;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item .icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(214,162,51,0.16);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 0.9rem; color: #c3cce2; }

form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
form.contact-form .full { grid-column: 1 / -1; }
form.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,162,51,0.18);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 28px;
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c0d6;
  padding: 58px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-grid p { color: #9aa5bf; font-size: 0.9rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: #b7c0d6; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #8994ac;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #cdd6ea;
}
.footer-bottom .socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.badge-row span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(16,33,74,0.07);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar .contact-strip { gap: 12px; }
  nav.main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    padding: 90px 26px 26px;
    transition: right 0.25s ease;
    z-index: 60;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { color: #e7ebf5; }
  nav.main-nav a:hover, nav.main-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
  .menu-toggle { display: flex; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  form.contact-form { grid-template-columns: 1fr; }
  .cta { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 80px; }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,23,48,0.5);
  z-index: 55;
}
.nav-overlay.show { display: block; }
