/* =========================================================
   AJCO — AL AFDAL AL JADEED COMPANY
   Global Stylesheet — Official Brand: AJCO Green #006747 + White
   ========================================================= */

:root {
  --green-900: #012E20;
  --green-800: #014A34;
  --green-700: #006747; /* AJCO Green — master colour, do not substitute */
  --green-600: #128A62;
  --green-500: #3DBE8E; /* light accent tint for on-dark eyebrows/links */
  --green-100: #E7F3EE; /* soft section background tint */
  --steel-200: #E3E7ED;
  --steel-400: #A9B2C3;
  --white: #FFFFFF;
  --ink-900: #131A28;
  --ink-600: #4C5566;
  --ink-400: #7C8494;
  --bg-soft: #F5F8F6;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(1, 46, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(1, 46, 32, 0.10);
  --shadow-lg: 0 20px 48px rgba(1, 46, 32, 0.16);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--green-800);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; }

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

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-green {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.bg-green h2, .bg-green h3 { color: var(--white); }
.bg-green p { color: rgba(255,255,255,0.78); }

/* diagonal arch motif — echoes AJCO's pointed-arch brand device */
.arch-motif {
  position: absolute;
  right: -6%;
  top: -18%;
  width: 60%;
  height: 140%;
  background: linear-gradient(200deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green-700);
  display: inline-block;
}
.bg-green .eyebrow { color: var(--green-500); }
.bg-green .eyebrow::before { background: var(--green-500); }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.08rem; color: var(--ink-600); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--green-700); }
.btn-white:hover { background: var(--green-100); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-green { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline-green:hover { background: var(--green-100); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

.tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid rgba(0,103,71,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-800); flex-shrink: 0; }
.brand img.logo-img { height: 46px; width: auto; display: block; }
.brand .brand-text { line-height: 1.1; }
.brand .brand-text strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; color: var(--green-800); }
.brand .brand-text span { display: block; font-size: .66rem; color: var(--ink-400); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--ink-600);
  font-weight: 600;
  font-size: .93rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a.active { color: var(--green-700); }
.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone {
  color: var(--green-800);
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--green-700); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green-800);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.10), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px);
  pointer-events: none;
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero.hero-page { padding: 74px 0; }
.hero.hero-page .hero-inner { max-width: 100%; }
.hero p.lede { color: rgba(255,255,255,0.82); max-width: 620px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--white); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 36px;
}
.stat-strip .stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--green-500); }
.stat-strip .stat span { font-size: .8rem; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon-badge svg { width: 26px; height: 26px; fill: var(--white); }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-600); font-size: .92rem; }
.card ul li { margin-bottom: 6px; }
.card > a { font-weight: 700; color: var(--green-700); font-size: .88rem; }
.card > a:hover { color: var(--green-800); }

.value-card { text-align: center; padding: 30px 22px; }
.value-card .icon-badge { margin: 0 auto 18px; }

/* ---------- Feature rows ---------- */
.feature-row { display: flex; align-items: center; gap: 60px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .col { flex: 1; }
.feature-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--green-800), var(--green-600));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 22px);
}
.feature-visual svg { width: 42%; height: 42%; fill: rgba(255,255,255,0.92); position: relative; z-index: 1; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink-600); }
.checklist li svg { width: 20px; height: 20px; fill: var(--green-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Numbered capability rows (Company Profile style) ---------- */
.cap-row { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--steel-200); }
.cap-row:last-child { border-bottom: none; }
.cap-num { font-size: 1.4rem; font-weight: 800; color: var(--green-600); min-width: 46px; flex-shrink: 0; }
.cap-body h4 { margin: 0 0 4px; color: var(--green-800); font-size: 1.02rem; }
.cap-body p { margin: 0; font-size: .92rem; }

/* ---------- Projects ---------- */
.project-card {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-media {
  height: 120px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 30px);
}
.project-media svg { width: 40px; height: 40px; fill: var(--white); position: relative; z-index: 1; }
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-body .tag { margin-bottom: 12px; align-self: flex-start; }
.project-body h3 { margin-bottom: 10px; font-size: 1.08rem; }
.project-meta { list-style: none; padding: 0; margin: 0 0 12px; font-size: .82rem; color: var(--ink-400); }
.project-meta li { margin-bottom: 3px; }
.project-meta b { color: var(--ink-600); font-weight: 600; }
.project-body p.desc { font-size: .92rem; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.14), transparent 45%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--green-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  background: var(--bg-soft);
  color: var(--ink-900);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-card .icon-badge { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
.contact-card .icon-badge svg { width: 20px; height: 20px; }
.contact-card h4 { margin-bottom: 4px; color: var(--green-800); font-size: .98rem; }
.contact-card p { margin-bottom: 0; font-size: .9rem; }
.contact-card a:hover { color: var(--green-700); }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--steel-200);
  margin-top: 18px;
  height: 220px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Logos / partner strip ---------- */
.divisions-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.divisions-strip span {
  background: var(--white);
  border: 1px solid var(--steel-200);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-800);
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.partner-card .partner-name { font-weight: 800; color: var(--green-800); font-size: 1.05rem; margin-bottom: 8px; }
.partner-card p { font-size: .9rem; margin-bottom: 12px; }
.partner-card ul { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--ink-600); }
.partner-card ul li { padding: 4px 0 4px 18px; position: relative; }
.partner-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--green-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.75); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; letter-spacing: .03em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 12px; font-size: .9rem; }
.footer-grid ul li a:hover { color: var(--green-500); }
.footer-brand img.logo-img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--green-500); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .feature-row, .feature-row.reverse { flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; height: calc(100vh - 84px); background: var(--green-900); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 90; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; color: rgba(255,255,255,0.85); }
  .main-nav a:hover, .main-nav a.active { color: var(--green-500); }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-banner { padding: 36px; flex-direction: column; text-align: center; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 84px 0 64px; }
  .cap-row { flex-direction: column; gap: 8px; }
}
