/* =========================================================
   Dur Al Khaleej International Plus — site styles
   ========================================================= */

:root {
  --ivory-50: #fffdf8;
  --ivory-100: #fbf8f0;
  --ivory-200: #f3ecdc;
  --white: #ffffff;

  --charcoal-900: #151411;
  --charcoal-800: #302d27;
  --charcoal-700: #403c34;
  --charcoal-600: #575247;

  --bronze-200: #e6d2a5;
  --bronze-300: #d6b875;
  --bronze-500: #aa8642;
  --bronze-600: #876636;
  --bronze-700: #674e2f;
  --bronze-800: #463520;

  --gold-gradient: linear-gradient(135deg, var(--bronze-300) 0%, var(--bronze-500) 48%, var(--bronze-700) 100%);
  --line: rgba(170, 134, 66, 0.28);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1400px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--charcoal-600);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Fine paper grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--bronze-200); color: var(--charcoal-900); }
:focus-visible { outline: 2px solid var(--bronze-500); outline-offset: 3px; }
html { scrollbar-color: var(--bronze-300) var(--ivory-100); }

img { display: block; max-width: 100%; height: auto; }
/* One warm grade across all photography so mixed sources read as a single set */
.photo, .service-media img, .project img, .about-figure img {
  filter: saturate(.82) contrast(1.04) sepia(.1) brightness(.98);
}
.js img[loading="lazy"] { opacity: 0; transition: opacity .8s var(--ease), transform 1.4s var(--ease), filter .6s; }
.js img[loading="lazy"].loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal-900); margin: 0; line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  padding: 17px 28px; border: 1px solid transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-dark {
  background: var(--charcoal-900); color: var(--ivory-50);
  box-shadow: inset 0 0 0 1px rgba(214,184,117,.28), 0 14px 30px -18px rgba(21,20,17,.6);
}
/* bronze fill wipes in from the left on hover */
.btn-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--bronze-700), var(--bronze-600));
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.btn-dark:hover::before { transform: scaleX(1); }
.btn-outline { border-color: rgba(170,134,66,.5); color: var(--charcoal-900); background: rgba(255,253,248,.6); }
.btn-outline:hover { border-color: var(--bronze-600); background: var(--ivory-50); box-shadow: 0 12px 28px -20px rgba(103,78,47,.6); }
.btn-block { width: 100%; }
.btn-pill {
  border: 1px solid var(--charcoal-900); border-radius: 999px;
  padding: 8px 8px 8px 24px; color: var(--charcoal-900); font-size: 15px;
}
.btn-pill .pill-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--charcoal-900); color: var(--bronze-300);
  display: grid; place-items: center; transition: background .3s;
}
.btn-pill:hover .pill-icon { background: var(--bronze-600); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 253, 248, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.site-header.scrolled { background: rgba(255, 253, 248, .9); border-color: rgba(170,134,66,.18); box-shadow: 0 10px 40px -28px rgba(21,20,17,.4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; transition: height .45s var(--ease); }
.site-header.scrolled .header-inner { height: calc(var(--header-h) - 12px); }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--bronze-300), var(--bronze-600));
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--charcoal-900); text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-family: var(--font-display); font-size: 10px; color: var(--bronze-600); text-transform: uppercase; letter-spacing: .18em; }
.brand.light strong { color: var(--ivory-50); }
.brand.light small { color: var(--bronze-300); }
@media (max-width: 420px) { .brand-text strong { font-size: 11.5px; letter-spacing: 0; white-space: nowrap; } .brand-text small { font-size: 9px; letter-spacing: .14em; } }

.main-nav { display: flex; gap: 34px; margin-left: auto; }
.main-nav a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--charcoal-700); position: relative; padding: 6px 0; transition: color .3s; }
.main-nav a:hover, .main-nav a.active { color: var(--charcoal-900); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--bronze-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--charcoal-900); transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--ivory-50); padding: 16px var(--gutter) 24px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 22px; color: var(--charcoal-900); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu-cta { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 0 0, rgba(214,184,117,.22), transparent 34%),
    linear-gradient(var(--ivory-50), var(--ivory-100));
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.hero-grid-bg, .grid-texture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(170,134,66,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,134,66,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-image { position: absolute; top: 0; right: 0; bottom: 0; width: min(52%, 880px); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* gold hairline marking where the image meets the page */
.hero-image::after {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; z-index: 2;
  background: linear-gradient(transparent, rgba(170,134,66,.55), transparent);
}
.hero-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--ivory-50), rgba(255,253,248,.35) 35%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 15px; color: var(--bronze-700);
  margin-bottom: 28px;
}
.hero-title { font-size: clamp(38px, 5.6vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: initial; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { max-width: 480px; font-size: 17px; line-height: 1.65; margin: 32px 0 40px; color: var(--charcoal-700); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page-load sequence: the one orchestrated motion moment on the page */
.js .hero-image img { transform: scale(1.1); opacity: 0; animation: heroImg 2.2s var(--ease) .1s forwards; }
.js .hero-title .line > span { transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--d) * .12s); }
.js .h-in { opacity: 0; transform: translateY(14px); animation: fadeUp 1s var(--ease) forwards; animation-delay: calc(.25s + var(--d) * .12s); }
.hero-ready .hero-image img, .hero-ready .hero-title .line > span, .hero-ready .h-in { animation: none; opacity: 1; transform: none; }
@keyframes heroImg { to { transform: scale(1); opacity: 1; } }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }


/* ---------- Stats band + marquee ---------- */
.stats-band { position: relative; background: var(--white); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(64px, 8vw, 104px); }
.stat { padding: 4px 32px; border-left: 1px solid; border-image: linear-gradient(transparent, var(--line), transparent) 1; display: flex; flex-direction: column; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 64px); font-weight: 400; line-height: .9;
  color: var(--charcoal-900); letter-spacing: -0.05em; margin-bottom: 22px; font-variant-numeric: tabular-nums;
}
.stat .suf { font-style: normal; font-weight: 300; margin-left: .04em; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--charcoal-900); padding-top: 4px; }
.stat-sub { font-size: 14px; color: var(--bronze-600); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 8vw, 104px); overflow: hidden; }
.bg-ivory { background: var(--ivory-100); }
.bg-white { background: var(--white); }
.grid-texture::before { -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); opacity: .8; }
.section > .container { position: relative; }

.section-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--bronze-600);
}
.section-title { font-size: clamp(26px, 2.9vw, 40px); margin-bottom: 28px; letter-spacing: -0.028em; }
.section-title.xl { font-size: clamp(30px, 3.7vw, 52px); letter-spacing: -0.035em; line-height: 1.02; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px);  }
.section-head .section-title { margin-bottom: 0; }
.section-intro { max-width: 400px; justify-self: end; margin: 0; font-size: 16px; }
.lead { font-size: 17.5px; line-height: 1.6; color: var(--charcoal-800); }

.corner { position: absolute; width: 26px; height: 26px; border-color: var(--bronze-500); border-style: solid; z-index: 2; pointer-events: none; }
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-figure { position: relative; margin: 0 24px 24px 0; aspect-ratio: 4 / 5; background: var(--ivory-200); border: 1px solid var(--line); padding: 12px; box-shadow: 0 40px 80px -50px rgba(70,53,32,.55); }
/* offset bronze frame behind the photo */
.about-figure::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid rgba(170,134,66,.45); z-index: -1; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure figcaption {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  background: rgba(21,20,17,.72); backdrop-filter: blur(6px); color: var(--ivory-50); padding: 9px 16px;
  font-family: var(--font-display); font-size: 13px;
  border-left: 2px solid var(--bronze-300);
}
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); margin: 32px 0; }
.fact-grid > div { padding: 18px 20px; background: var(--ivory-50); }
.fact-grid > .wide { grid-column: 1 / -1; }
.fact-grid dt { font-family: var(--font-display); font-size: 13px; color: var(--bronze-600); margin-bottom: 2px; }
.fact-grid dd { margin: 0; color: var(--charcoal-900); font-weight: 500; }

/* ---------- Services ---------- */
.service-list { border: 1px solid var(--line); box-shadow: 0 50px 100px -70px rgba(70,53,32,.5); }
.service { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service.reverse .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; background: var(--charcoal-800); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(21,20,17,.45), transparent 45%); pointer-events: none; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; }
.service-body { position: relative; padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; background: var(--ivory-50); }
.service-body h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 18px; letter-spacing: -0.025em; }
.service-body p { font-size: 17px; color: var(--charcoal-700); max-width: 440px; }
.service-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 18px; max-width: 460px; }
.service-body li { font-size: 14px; color: var(--charcoal-800); display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(170,134,66,.18); }
.service-body li::before { content: ""; width: 5px; height: 5px; background: var(--bronze-500); transform: rotate(45deg); flex: none; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 18px; }
.project { position: relative; overflow: hidden; background: var(--charcoal-800); isolation: isolate; }
.project.p-feature { grid-column: span 2; grid-row: span 2; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity .8s var(--ease); z-index: -2; }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21,20,17,.88), rgba(21,20,17,.2) 50%, rgba(21,20,17,.05)); transition: opacity .6s; }
.tag {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-display); font-size: 12.5px;
  background: rgba(21,20,17,.5); color: var(--ivory-50); padding: 7px 11px; backdrop-filter: blur(6px);
  border: 1px solid rgba(214,184,117,.25);
}
.project-meta { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.project-meta h3 { color: #fff; font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.p-feature .project-meta h3 { font-size: clamp(22px, 2.2vw, 30px); }
.project-meta p { margin: 0; font-size: 12px; letter-spacing: .04em; color: var(--bronze-200); display: flex; align-items: center; gap: 10px; }
.project-meta p::before { content: ""; width: 20px; height: 1px; background: var(--bronze-300); }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.coverage { margin: 28px 0 0; border-top: 1px solid var(--line); }
.coverage > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coverage dt { font-family: var(--font-display); font-size: 13.5px; color: var(--bronze-600); }
.coverage dd { margin: 0; font-weight: 500; color: var(--charcoal-900); }
.map-card { position: relative; max-width: 560px; width: 100%; justify-self: end; align-self: start; margin-top: 44px; border: 1px solid var(--line); background: var(--ivory-50); padding: 20px; box-shadow: 0 30px 60px -40px rgba(103,78,47,.4); }
.map-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); font-size: 13px; color: var(--bronze-600); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ksa-map { width: 100%; height: auto; display: block; margin: 12px 0; }
.ksa-map .land { fill: url(#landGrad); stroke: var(--bronze-600); stroke-width: 1.4; stroke-linejoin: round; }
.ksa-map .route { stroke: var(--bronze-500); stroke-width: 1; stroke-dasharray: 3 4; fill: none; opacity: .7; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -300; } }
.ksa-map .dot { fill: var(--bronze-700); }
.ksa-map .hq-dot { fill: var(--charcoal-900); }
.ksa-map .pulse { fill: var(--bronze-500); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }
.ksa-map .label rect { fill: #fff; stroke: var(--line); }
.ksa-map .label text { font-family: var(--font-display); font-size: 8px; fill: var(--charcoal-900); }
.ksa-map .label .sub { font-size: 6px; fill: var(--bronze-600); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--charcoal-800); }
.map-legend li { display: flex; align-items: center; gap: 10px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; }
.map-legend .lg-hq { background: var(--charcoal-900); box-shadow: 0 0 0 3px rgba(170,134,66,.35); }
.map-legend .lg-pt { background: var(--bronze-700); width: 6px; height: 6px; }
.map-legend .lg-br { width: 7px; height: 7px; background: var(--bronze-700); box-shadow: 0 0 0 2px var(--ivory-50), 0 0 0 3px var(--bronze-600); }
.ksa-map .branch-ring { fill: none; stroke: var(--bronze-600); stroke-width: 1.2; }

/* ---------- Leadership ---------- */
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.leader-card { border: 1px solid var(--line); background: var(--ivory-50); display: flex; flex-direction: column; }
.leader-media { position: relative; height: clamp(240px, 22vw, 300px); background: linear-gradient(160deg, #fff, var(--ivory-100)); margin: 16px 16px 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.leader-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.leader-media.contain img { inset: 11% 6%; width: 88%; height: 78%; }
.leader-body { padding: 28px; }
.leader-body small { font-family: var(--font-display); font-size: 13px; color: var(--bronze-600); }
.leader-body h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; margin: 10px 0 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.contact-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); padding: 18px; padding-right: 32px;
  font-size: 14px; color: var(--charcoal-900); word-break: break-word;
  transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--bronze-500); transform: translateY(-2px); }
.contact-card::after { content: ""; position: absolute; left: -1px; bottom: -1px; width: 22px; height: 22px; border-left: 2px solid var(--bronze-500); border-bottom: 2px solid var(--bronze-500); }
.contact-card small { display: block; font-family: var(--font-display); font-size: 12.5px; color: var(--bronze-600); }
.cc-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); flex: none; color: var(--charcoal-900); }

.contact-form {
  position: relative; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; box-shadow: 0 30px 60px -40px rgba(103,78,47,.4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; color: var(--charcoal-900); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--charcoal-900);
  border: 0; border-bottom: 1px solid var(--bronze-200); background: transparent;
  /* bronze underline draws across on focus */
  background-image: linear-gradient(var(--bronze-600), var(--bronze-600));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0 1px;
  padding: 11px 0; border-radius: 0; outline: none; transition: background-size .6s var(--ease), border-color .3s; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(var(--bronze-600), var(--bronze-600)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23876636' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: left bottom, right 4px center; background-size: 0 1px, 12px 8px; padding-right: 24px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field select:focus { background-size: 100% 1px, 12px 8px; }
.field:focus-within span { color: var(--bronze-700); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #9b958a; }
.field.invalid input, .field.invalid textarea { border-color: #b4452f; }
.contact-form .btn-block { grid-column: 1 / -1; margin-top: 8px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #b4452f; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 0 0, #221f19, var(--charcoal-900) 60%); color: #b7b0a2; padding: 88px 0 32px; font-size: 14px; }
.to-top { color: var(--bronze-300); font-size: 13px; }
.to-top:hover { color: var(--ivory-50); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.6fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { margin: 20px 0; max-width: 320px; }
.site-footer h4 { font-size: 15px; letter-spacing: 0; color: var(--bronze-300); font-weight: 500; margin-bottom: 18px; }
.f-links li { margin-bottom: 10px; }
.f-links a:hover, .f-contact:hover { color: var(--bronze-300); }
.f-contact { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.f-contact .ico { width: 28px; height: 28px; padding: 6px; border: 1px solid rgba(214,184,117,.3); color: var(--bronze-300); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.office { border: 1px solid rgba(255,255,255,.1); padding: 18px; line-height: 1.6; transition: border-color .3s; }
.office:hover { border-color: var(--bronze-500); }
.office small { display: block; font-size: 13px; color: var(--bronze-300); margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-right: 80px; font-size: 12px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -10px rgba(21,20,17,.5);
  transition: background .3s, transform .3s var(--ease);
}
.wa-float:hover { background: #1ebe5a; transform: translateY(-3px); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .h-in, .js .hero-title .line > span, .js .hero-image img { opacity: 1; transform: none; transition: none; animation: none; }
  .ksa-map .pulse, .ksa-map .route { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .main-nav { gap: 26px; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-image { width: 100%; opacity: .32; }
  .hero-image::before { background: linear-gradient(to right, var(--ivory-50) 10%, rgba(255,253,248,.4)); }

  .section-head, .about-grid, .location-grid, .contact-grid, .leader-grid { grid-template-columns: 1fr; }
  .section-intro { justify-self: start; }
  .about-figure { max-width: 520px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; padding-block: 56px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .service, .service.reverse { grid-template-columns: 1fr; }
  .service.reverse .service-media { order: 0; }
  .service-media { aspect-ratio: 16 / 10; }

  .project-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-offices { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .about-figure { margin: 0 14px 14px 0; }
  .about-figure::before { inset: 14px -14px -14px 14px; }

  .stat { padding: 0 16px; }
  .service-body ul { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project.p-feature { grid-column: auto; grid-row: span 1; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .footer-grid, .office-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Certificates
   ========================================================= */
.brand img { width: auto; height: 40px; }
.brand-ar { font-family: system-ui, "Geeza Pro", "Noto Kufi Arabic", sans-serif; font-size: 15px; color: var(--bronze-300); margin: 14px 0 0; text-align: left; }

/* Certificates */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.cert:hover { border-color: var(--bronze-500); box-shadow: 0 30px 60px -40px rgba(70,53,32,.6); transform: translateY(-3px); }
.cert-thumb { display: block; background: var(--ivory-200); padding: 18px 18px 0; overflow: hidden; aspect-ratio: 4 / 3; }
.cert-thumb img { width: 100%; height: auto; box-shadow: 0 10px 30px -12px rgba(21,20,17,.35); }
.cert-body { display: flex; flex-direction: column; flex: 1; padding: 24px; border-top: 1px solid var(--line); }
.cert-body strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--charcoal-900); }
.cert-name { margin-top: 2px; color: var(--charcoal-700); }
.cert-link { margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-weight: 500; color: var(--charcoal-900); text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 4px; }
.cert:hover .cert-link { text-decoration-color: var(--bronze-600); }

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cert-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cert { transition: none; }
}
@media (max-width: 900px) {
  .map-card { margin-top: 0; justify-self: stretch; max-width: none; }
}
@media (max-width: 600px) {
  .coverage > div { grid-template-columns: 1fr; gap: 2px; }
}
