/* ============================================================================
   SAUDINFRA — Corporate Website Stylesheet
   ----------------------------------------------------------------------------
   HOW TO EDIT (for the IT team):
   - Brand colours, fonts and spacing are all defined once in :root below.
     Change a value there and it updates everywhere on every page.
   - Each section has a clearly-labelled comment block.
   - No build step, no framework. Plain CSS. Edit and save.
   ============================================================================ */

:root{
  /* ---- Brand colours (from the SAUDINFRA brand guidelines) ---- */
  --ink:#0C0C0E;          /* near-black text            */
  --night:#121517;        /* dark section background    */
  --deep:#0B4A28;         /* Deep Signal green (primary)*/
  --moss:#5E8C37;         /* Moss green (secondary)     */
  --moss-light:#8FBF63;   /* Moss Light (accents on dark)*/
  --mist:#EEF2EC;         /* pale green-grey background */
  --paper:#ffffff;
  --slate:#1F2A31;        /* slate-deep for headings    */
  --grey:#6E7670;         /* muted captions             */
  --line:#e2e8e0;         /* hairline borders           */

  /* ---- Type ---- */
  --font:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;

  /* ---- Layout ---- */
  --maxw:1200px;          /* max content width          */
  --gutter:clamp(20px,5vw,64px);
  --radius:14px;
}

/* ---------- Reset / base ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-weight:300;line-height:1.15;color:var(--slate);letter-spacing:-.01em}
strong{font-weight:600}
.container{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter)}

/* ---------- Reusable buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:100px;
  font-weight:500;font-size:.95rem;
  transition:transform .15s ease,background .2s ease,color .2s ease;
  border:1.5px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--deep);color:#fff}
.btn-primary:hover{background:var(--moss);transform:translateY(-2px)}
.btn-ghost{border-color:currentColor;color:var(--deep)}
.btn-ghost:hover{background:var(--deep);color:#fff;border-color:var(--deep)}
.btn-ghost.on-dark{color:#fff}
.btn-ghost.on-dark:hover{background:#fff;color:var(--night)}

/* ---------- Section rhythm ---------- */
.section{padding-block:clamp(56px,9vw,120px)}
.section-dark{background:var(--night);color:#dfe6e1}
.section-dark h1,.section-dark h2,.section-dark h3{color:#fff}
.section-mist{background:var(--mist)}
.eyebrow{                       /* small green label above a heading */
  display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.04em;
  color:var(--moss);margin-bottom:1rem;
}
.section-dark .eyebrow{color:var(--moss-light)}
.lead{font-size:clamp(1.05rem,2vw,1.25rem);max-width:60ch;color:var(--grey)}
.section-dark .lead{color:#aeb9b1}
h2.title{font-size:clamp(1.9rem,4.4vw,3rem);max-width:20ch}

/* The "route line" — the signature connective motif (signal-green line + node).
   Used as a section separator to echo the metro-map brand pattern. */
.route-sep{display:flex;align-items:center;gap:0;height:2px;margin:0}
.route-sep .l{flex:1;height:2px;background:linear-gradient(90deg,transparent,var(--moss))}
.route-sep .n{width:12px;height:12px;border-radius:50%;background:var(--moss-light);border:2.5px solid var(--deep);flex:none}

/* ============================================================================
   HEADER / NAV
   ============================================================================ */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(18,21,23,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav .brand img{height:34px;width:auto}
.nav ul{list-style:none;display:flex;gap:2rem;align-items:center}
.nav a{color:#cdd6cf;font-size:.95rem;font-weight:400;transition:color .2s}
.nav a:hover,.nav a.active{color:var(--moss-light)}
.nav .cta-mini{padding:.55rem 1.2rem;border:1.5px solid var(--moss);border-radius:100px;color:#fff}
.nav .cta-mini:hover{background:var(--moss);color:var(--night)}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:8px}
.nav-toggle span{display:block;width:24px;height:2px;background:#fff;margin:5px 0;transition:.3s}

@media (max-width:860px){
  .nav-toggle{display:block}
  .nav ul{
    position:absolute;top:72px;left:0;right:0;flex-direction:column;gap:0;
    background:var(--night);border-bottom:1px solid rgba(255,255,255,.08);
    max-height:0;overflow:hidden;transition:max-height .3s ease;
  }
  .nav ul.open{max-height:420px}
  .nav ul li{width:100%;border-top:1px solid rgba(255,255,255,.06)}
  .nav ul a{display:block;padding:1rem var(--gutter)}
  .nav .cta-mini{border:0;border-radius:0}
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero{
  position:relative;background:var(--night);color:#fff;overflow:hidden;
  padding-block:clamp(80px,14vw,160px);
}
.hero::before{                 /* faint network pattern behind hero */
  content:"";position:absolute;inset:0;
  background:url('../img/pattern-dark.png') center/cover no-repeat;
  opacity:.5;
}
.hero .container{position:relative;z-index:2}
.hero h1{
  color:#fff;font-size:clamp(2.3rem,6vw,4.4rem);max-width:16ch;
  font-weight:300;
}
.hero h1 b{font-weight:700}
.hero p{margin-top:1.4rem;max-width:52ch;color:#b9c4bc;font-size:clamp(1.05rem,2vw,1.3rem)}
.hero .actions{margin-top:2.4rem;display:flex;gap:1rem;flex-wrap:wrap}
.hero .scroll-cue{
  position:absolute;bottom:26px;left:50%;transform:translateX(-50%);
  z-index:2;color:#7f8b83;font-size:.8rem;letter-spacing:.03em;
}

/* ============================================================================
   VALUE PILLARS (Strength / Innovation / Sustainability)
   ============================================================================ */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.pillar{padding:2rem 1.75rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);transition:border-color .25s,transform .25s}
.pillar:hover{border-color:var(--moss);transform:translateY(-3px)}
.pillar .dot{width:14px;height:14px;border-radius:50%;background:var(--moss-light);border:3px solid var(--deep);margin-bottom:1.2rem}
.pillar h3{font-size:1.25rem;font-weight:500;margin-bottom:.5rem}
.pillar p{color:var(--grey);font-size:.98rem}
@media (max-width:760px){.pillars{grid-template-columns:1fr}}

/* ============================================================================
   SECTORS grid
   ============================================================================ */
.sectors{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-top:3rem}
.sector{
  position:relative;padding:1.75rem 1.5rem;border-radius:var(--radius);
  background:var(--paper);border:1px solid var(--line);
  min-height:190px;display:flex;flex-direction:column;justify-content:flex-end;
  transition:.25s;
}
.sector:hover{background:var(--deep);border-color:var(--deep);color:#fff;transform:translateY(-3px)}
.sector:hover h3,.sector:hover p{color:#fff}
.sector .num{font-size:.8rem;color:var(--moss);font-weight:600;position:absolute;top:1.4rem;left:1.5rem}
.sector:hover .num{color:var(--moss-light)}
.sector h3{font-size:1.15rem;font-weight:500;margin-bottom:.35rem}
.sector p{font-size:.9rem;color:var(--grey)}
@media (max-width:900px){.sectors{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.sectors{grid-template-columns:1fr}}

/* ============================================================================
   SPLIT (image / text) blocks
   ============================================================================ */
.split{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.split.reverse{grid-template-columns:1fr 1.1fr}
.split.reverse .split-media{order:2}
.split-media{
  border-radius:var(--radius);overflow:hidden;position:relative;
  background:var(--night);min-height:340px;
  display:flex;align-items:center;justify-content:center;
}
.split-media img{width:60%;opacity:.95}
.split-media.pattern::before{content:"";position:absolute;inset:0;background:url('../img/pattern-dark.png') center/cover;opacity:.6}
.split-media .badge-mark{position:relative;z-index:2;width:120px}
.split-body h2{margin-bottom:1.2rem}
.split-body p{color:var(--grey);margin-bottom:1rem}
.section-dark .split-body p{color:#aeb9b1}
@media (max-width:840px){
  .split,.split.reverse{grid-template-columns:1fr}
  .split.reverse .split-media{order:0}
}

/* ============================================================================
   STATS strip
   ============================================================================ */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;text-align:center}
.stat .big{font-size:clamp(2rem,5vw,3.2rem);font-weight:700;color:var(--moss-light);line-height:1}
.stat .lbl{margin-top:.5rem;color:#aeb9b1;font-size:.95rem}
@media (max-width:760px){.stats{grid-template-columns:repeat(2,1fr);gap:2.5rem 1rem}}

/* ============================================================================
   SERVICES / segments list (used on About)
   ============================================================================ */
.seglist{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:2.5rem}
.seg{padding:1.6rem;border-left:3px solid var(--moss);background:var(--mist);border-radius:0 var(--radius) var(--radius) 0}
.seg h3{font-size:1.1rem;font-weight:500;margin-bottom:.4rem}
.seg p{font-size:.92rem;color:var(--grey)}
@media (max-width:820px){.seglist{grid-template-columns:1fr}}

/* ============================================================================
   CONTACT
   ============================================================================ */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem)}
.contact-info p{margin-bottom:1.4rem;color:var(--grey)}
.contact-info .k{color:var(--slate);font-weight:600;display:block;margin-bottom:.15rem}
.form-field{margin-bottom:1.2rem}
.form-field label{display:block;font-size:.9rem;font-weight:500;margin-bottom:.4rem;color:var(--slate)}
.form-field input,.form-field textarea{
  width:100%;padding:.85rem 1rem;border:1px solid var(--line);border-radius:10px;
  font-family:inherit;font-size:1rem;background:var(--paper);color:var(--ink);
}
.form-field input:focus,.form-field textarea:focus{outline:2px solid var(--moss);border-color:transparent}
.form-note{font-size:.82rem;color:var(--grey);margin-top:.5rem}
@media (max-width:820px){.contact-grid{grid-template-columns:1fr}}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer{background:var(--ink);color:#aab4ac;padding-block:clamp(48px,7vw,80px) 0}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:2.5rem}
.site-footer img.flogo{height:40px;margin-bottom:1.2rem}
.site-footer p{font-size:.92rem;max-width:40ch;color:#8b968d}
.site-footer h4{color:#fff;font-size:1rem;font-weight:500;margin-bottom:1.1rem}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:.6rem}
.site-footer a{color:#aab4ac;font-size:.92rem;transition:color .2s}
.site-footer a:hover{color:var(--moss-light)}
.footer-bottom{
  margin-top:3rem;border-top:1px solid rgba(255,255,255,.08);
  padding-block:1.4rem;font-size:.85rem;color:#6f7a71;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;
}
@media (max-width:820px){.footer-grid{grid-template-columns:1fr;gap:2rem}}

/* ---------- Page hero (interior pages) ---------- */
.page-hero{background:var(--night);color:#fff;position:relative;overflow:hidden;padding-block:clamp(72px,11vw,130px)}
.page-hero::before{content:"";position:absolute;inset:0;background:url('../img/pattern-dark.png') center/cover;opacity:.4}
.page-hero .container{position:relative;z-index:2}
.page-hero h1{color:#fff;font-size:clamp(2rem,5vw,3.4rem)}
.page-hero p{color:#b9c4bc;margin-top:1rem;max-width:56ch}
.breadcrumb{font-size:.85rem;color:#7f8b83;margin-bottom:1rem}
.breadcrumb a:hover{color:var(--moss-light)}

/* ---------- Simple reveal-on-scroll (progressive enhancement) ----------
   Content is fully visible by default. Only when JS adds the .js-reveal class
   to <html> do elements start hidden and then animate in. This guarantees the
   site is readable even if JavaScript is disabled or fails. */
.js-reveal .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.js-reveal .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js-reveal .reveal{opacity:1;transform:none;transition:none}}
