/* GIC – Ground Improvement Contracting Company
   Colours from the company profile: tan/gold #C29B6E, charcoal #231F20. */
:root {
  --gold: #c29b6e;
  --gold-dark: #8a6a43;      /* text-safe gold on white (AA) */
  --gold-soft: #f6efe6;
  --ink: #231f20;
  --ink-2: #3a3536;
  --text: #2d2a2b;
  --muted: #6b6566;
  --line: #e6e1dc;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 31, 32, .10);
  --wrap: 1180px;
  --header-h: 76px;
}

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

/* Bilingual: every text exists as .en and .ar; show the active language only. */
html[lang="en"] .ar, html[lang="ar"] .en { display: none !important; }
:lang(ar) { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; font-weight: 700; }
html[lang="ar"] .kicker, html[lang="ar"] .eyebrow, html[lang="ar"] .contact-list .label, html[lang="ar"] .strip strong { text-transform: none; font-size: .9rem; }
html[lang="ar"] .hero h1 { text-transform: none; font-size: clamp(2.2rem, 5.6vw, 4.2rem); max-width: 12ch; }
html[lang="ar"] .tagline { font-style: normal; font-weight: 400; }
.qr-url { font-family: "Poppins", system-ui, sans-serif; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.lang-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: .35em .95em; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.header-actions { display: flex; align-items: center; gap: 18px; }
[dir="rtl"] { --shade-dir: 270deg; }
@media (max-width: 900px) { .header-actions { gap: 8px; } }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.7; font-weight: 400;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.kicker { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin-bottom: .5em; }
.gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--gold); color: var(--ink); border: 2px solid var(--gold);
  padding: .8em 1.5em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #d3b08a; border-color: #d3b08a; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-whatsapp { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn-whatsapp:hover { background: #18633e; border-color: #18633e; }
.link { font-weight: 500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--gold-dark); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-text span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .25s, opacity .25s; }
.bars { top: 21px; }
.bars::before { top: -7px; left: 0; }
.bars::after { top: 7px; left: 0; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: .9rem; }
  .brand-text span { font-size: .68rem; }
  .brand img { height: 44px; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(var(--shade-dir, 90deg), rgba(25, 21, 20, .88) 0%, rgba(25, 21, 20, .62) 50%, rgba(25, 21, 20, .2) 100%); }
.hero-content { position: relative; padding-block: 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 700; max-width: 14ch; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 .gold { display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: #e8d6bf; margin-bottom: 1.2em; }
.tagline { font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: #f3e6d5; margin-bottom: .6em; }
.lead { max-width: 560px; color: #ece7e2; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Strip */
.strip { background: var(--ink); color: #d8d2cc; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid > div { padding: 26px 24px; border-inline-start: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 4px; }
.strip-grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip strong { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.strip span { font-size: .88rem; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
  .strip-grid > div:first-child { border-top: 0; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #d9d3cd; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.two-col.align-start { align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.rounded, .photo-pair img, .vm-photo img { border-radius: var(--radius); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow); }
.photo-pair.wide img { aspect-ratio: 4 / 3; }
.photo-pair picture:nth-child(2) { margin-top: 40px; }

.who .narrow { margin-bottom: 40px; }
.team-img { width: 100%; max-width: 1100px; margin-inline: auto; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: var(--gold-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border-top: 4px solid var(--gold); }
.vm-photo { grid-column: 1 / -1; }
.vm-photo img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 32px; color: #f1ece6; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 7px; top: calc(.3em + 4px); width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.why img { width: 100%; max-height: 560px; object-fit: cover; }

/* Services */
.service.feature { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service.feature img { width: 100%; height: clamp(160px, 22vw, 280px); object-fit: cover; }
.service-body { padding: clamp(24px, 4vw, 44px); }
.service-body h3 { font-size: 1.5rem; }
.chips { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--gold-soft); color: var(--ink); border: 1px solid #ead9c4; padding: .45em 1em; border-radius: 999px; font-size: .88rem; font-weight: 500; }

.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px 24px 20px; font-size: .95rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-body h3 { position: relative; padding-bottom: .5em; }
.card-body h3::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; }
.card-cta { background: var(--ink); border-color: var(--ink); color: #d9d3cd; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta .btn { margin-top: 8px; }

/* Capabilities */
.pillars { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pillar img { width: 100%; height: 240px; object-fit: cover; }
.pillar > div { padding: 24px; font-size: .95rem; }
.pillar:first-child img { object-position: center 20%; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Projects */
.projects { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.projects picture, .projects-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.projects-img { object-fit: cover; }
.projects-shade { position: absolute; inset: 0; background: linear-gradient(var(--shade-dir, 90deg), rgba(25, 21, 20, .9) 0%, rgba(25, 21, 20, .7) 55%, rgba(25, 21, 20, .35) 100%); }
.projects-content { position: relative; max-width: var(--wrap); }
.projects-content > * { max-width: 620px; }
.projects h2 { color: #fff; }
.projects .kicker { color: var(--gold); }
.projects p { color: #ece7e2; }

/* Profile download */
.profile-band { background: var(--gold-soft); }
.profile-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.qr-card { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; width: 240px; }
.qr-card img { width: 160px; height: 160px; margin: 0 auto 12px; }
.qr-card figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.qr-card figcaption span { color: var(--ink); font-weight: 500; }
.qr-card .link { font-size: .85rem; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .qr-card { margin-inline: auto; }
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--gold-soft); fill: var(--gold-dark); }
.contact-list .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a:not(.link) { color: var(--ink); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-list a:not(.link):hover { color: var(--gold-dark); }
.contact-list address { margin-bottom: 6px; color: var(--ink); }

.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.quote h3 { font-size: 1.35rem; margin-bottom: 1em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; width: 100%;
  border: 1px solid #cfc8c1; border-radius: 10px; padding: .7em .9em;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 155, 110, .3); }
.field textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-error { color: #a3261d; font-weight: 500; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--ink); color: #bdb5ae; padding-top: 56px; font-size: .92rem; }
.site-footer a { color: #e6dfd8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand strong { color: #fff; font-weight: 600; }
.logo-badge { flex: none; background: #fff; border-radius: 12px; padding: 8px 10px; }
.logo-badge img { height: 64px; width: auto; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; color: #9b938c; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
