/* Gulf Integrated Group — site styles */
:root {
  --navy: #1f2b7a;
  --navy-deep: #151f5c;
  --brick: #b3443a;
  --sky: #a9dff0;
  --ink: #1b2130;
  --muted: #5a6275;
  --line: #e3e7f0;
  --soft: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 31, 92, 0.08);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
section { padding: 84px 0; }
.section-alt { background: var(--soft); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brick); margin-bottom: .6rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer; font-size: .98rem; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: #9c3930; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-weight: 800; line-height: 1.1; font-size: 1rem; }
.brand-name small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: .5rem .75rem; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); background: var(--soft); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-deep); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .75rem; }
  .nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(169,223,240,.28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(179,68,58,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 110px 0 150px;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -1px -10%; height: 90px;
  background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.badge {
  font-size: .85rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}

.stats {
  position: relative; z-index: 2; margin-top: -90px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--brick);
}
.stat strong { display: block; font-size: 2rem; color: var(--navy-deep); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* About */
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.facts { background: var(--soft); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Cards / grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; font-size: .95rem;
}
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .94rem; }
.card ul li { margin-bottom: .2rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 3px solid var(--brick); border-bottom: 3px solid var(--brick); transform: rotate(-45deg);
}

/* Engineering standards */
.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.standards .card h3 { color: var(--navy); }
.standards ul { list-style: disc; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; color: var(--navy); }
@media (max-width: 860px) { .standards { grid-template-columns: 1fr; } }

/* Quality */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.policy {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff;
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}
.policy h3 { color: #fff; font-size: 1.4rem; }
.policy p { color: rgba(255,255,255,.88); }
.policy .iso { display: inline-block; margin-top: 10px; background: var(--brick); color: #fff; padding: .35rem .8rem; border-radius: 8px; font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .quality-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.member .photo { aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--soft), #e6ebf5); display: grid; place-items: center; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member .initials {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: .04em;
}
.member .body { padding: 20px 22px 24px; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--brick); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.member .meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* Group */
.group-chart {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 8px;
}
.group-co {
  border-left: 4px solid var(--navy); background: #fff; border-radius: 10px; padding: 18px 20px;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.group-co h3 { font-size: 1rem; margin-bottom: 4px; }
.group-co p { color: var(--muted); font-size: .92rem; margin: 0; }
.group-parent {
  display: inline-block; background: var(--navy-deep); color: #fff; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600; margin-bottom: 26px;
}

/* Projects */
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .5rem 1rem; border-radius: 999px;
  font: inherit; font-size: .92rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--navy);
}
.project .year { font-size: .82rem; font-weight: 700; color: var(--brick); letter-spacing: .06em; }
.project h3 { font-size: 1.05rem; margin: 0; }
.project .client { color: var(--muted); font-size: .92rem; margin: 0; }
.project .scope { font-size: .9rem; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }
.project .sector { font-size: .78rem; color: var(--navy); background: var(--soft); border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
.project[hidden] { display: none; }
.empty-note { color: var(--muted); display: none; }

.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.stat-row div strong { display: block; font-size: 1.6rem; color: var(--navy-deep); }
.stat-row div span { color: var(--muted); font-size: .9rem; }

.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: 22px;
  padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.7rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { color: var(--navy); font-size: 1.05rem; }
.contact-card p, .contact-card li { color: var(--ink); }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-card a { text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 70px 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.crumbs a { color: var(--sky); }

.notice {
  border: 1px dashed var(--brick); background: #fff8f7; color: #5a2a25; border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin-top: 26px;
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 80px 0 130px; }
  .stats { margin-top: -70px; }
  .cta-band { padding: 30px; }
  .policy { padding: 28px; }
  .container { width: min(100% - 32px, var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
