/* ==========================================================================
   Valor Infra: website styles
   CSS controls how the HTML looks. Each rule picks some elements
   (e.g. ".card") and sets properties (colour, size, spacing) for them.
   ========================================================================== */

/* ---------- 1. Brand colours and sizes ----------
   These are "variables". Change a colour here once and it updates everywhere. */
:root {
  --charcoal: #1b1b1b;      /* dark sections, main text */
  --charcoal-2: #262625;    /* cards on dark sections */
  --stone: #6b6a66;         /* secondary text */
  --line: #e2dfd8;          /* thin borders */
  --paper: #ffffff;         /* main background */
  --tint: #f4f2ed;          /* alternate light sections */
  --gold: #a88a4e;          /* accent from the logo's INFRA text */
  --gold-light: #c9ad72;    /* gold on dark backgrounds */
  --green: #4f8a5b;         /* "Ongoing" status */

  --font-head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1160px;
  --radius: 4px;
}

/* ---------- 2. Base rules for the whole page ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* menu links glide down, stopping below the header */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

/* A centred column so text doesn't stretch across huge screens.
   The 20px side padding keeps content off the edges on phones. */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8f7440; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-small { padding: 9px 18px; font-size: .85rem; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;            /* sticks to the top while scrolling */
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;               /* flexbox lays items out in a row */
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .28em;
}
.brand-text span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  color: var(--stone);
}
.site-nav a:not(.btn):hover { color: var(--charcoal); }

/* The three-line "hamburger" button. Hidden on big screens, shown on phones (section 12). */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--charcoal);
  transition: transform .2s, opacity .2s;
}

/* ---------- 5. Hero ---------- */
.hero {
  background:
    /* faint diagonal lines, like drawing-sheet hatching */
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px),
    radial-gradient(ellipse at 80% 30%, #2d2c2a 0%, var(--charcoal) 60%);
  color: #fff;
  padding: 96px 0 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;   /* text column wider than the emblem column */
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2em;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);   /* clamp = shrinks on phones, grows on desktops */
  font-weight: 400;
  letter-spacing: -.01em;
}
.hero h1 span { color: var(--gold-light); }
.hero-lead { font-size: 1.1rem; color: #cfccc5; max-width: 34em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(300px, 70%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }

.stats {
  list-style: none;
  margin: 80px 0 0;
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.1;
  color: #fff;
}
.stats span { font-size: .9rem; color: #a9a59d; }

/* ---------- 6. General sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--charcoal); color: #fff; }

.section-label {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8em;
}
.section-dark .section-label { color: var(--gold-light); }
.section-intro { color: var(--stone); font-size: 1.1rem; max-width: 40em; }
.section-dark .section-intro { color: #bdb9b0; }

.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.prose p { font-size: 1.08rem; }

.mission {
  margin: 32px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.45;
}
.mission span {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- 7. Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}
.card-num { font-family: var(--font-head); color: var(--gold); font-size: .95rem; }
.card h3 { margin-top: 10px; }
.card p { color: var(--stone); font-size: .98rem; margin: 0; }

.engagement {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.engagement ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.engagement li {
  border: 1px solid #cfc9bc;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .92rem;
  background: var(--paper);
}

/* ---------- 8. Process steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;         /* CSS numbers the steps automatically */
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.steps p { color: var(--stone); font-size: .95rem; margin: 0; }

/* ---------- 9. Projects ---------- */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.project {
  background: var(--charcoal-2);
  border: 1px solid #353432;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.project-featured {
  grid-column: 1 / -1;         /* the ongoing project spans both columns */
  border-color: var(--gold);
  background: linear-gradient(135deg, #2e2b25, var(--charcoal-2));
}
.project-featured h3 { font-size: 1.6rem; }
.project img { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-head h3 { margin: 0; }
.project-meta { color: var(--gold-light); font-size: .88rem; margin: 6px 0 12px; }
.project p:last-child { color: #c4c0b8; font-size: .97rem; margin: 0; }
.status {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a968e;
}
.status-ongoing { color: #7fc18d; }
.status-ongoing::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7fc18d;
  vertical-align: 1px;
}

/* ---------- 10. Why us and leadership ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 48px;
}
.reason { border-left: 2px solid var(--gold); padding-left: 20px; }
.reason p { color: var(--stone); font-size: .98rem; margin: 0; }
.principle {
  margin: 64px 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.leader { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.leader h3 { font-size: 1.4rem; margin-bottom: 2px; }
.role { color: var(--gold); font-size: .9rem; font-style: italic; }
.leader p:last-child { color: var(--stone); margin: 0; }
.capacity { margin: 28px 0 0; color: var(--stone); }
.capacity strong { color: var(--charcoal); }

/* ---------- 11. Contact, form, map, footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid #353432; color: #e6e3dc; }
.contact-list span {
  display: block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }

.quote-form {
  background: var(--paper);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 36px;
}
.quote-form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 16px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  border: 1px solid #d3cfc6;
  border-radius: var(--radius);
  background: #fff;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.quote-form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--stone); margin: 14px 0 0; }

.map {
  display: block;
  width: 100%;
  height: 340px;
  margin-top: 64px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(.6);
}

.site-footer { background: #121212; color: #9a968e; padding: 48px 0; font-size: .88rem; }
.footer-inner { display: flex; align-items: center; gap: 40px; }
.footer-logo {
  width: 110px;
  /* the logo's dark lettering would vanish on black, so it sits on a light tile */
  background: #f4f2ed;
  padding: 10px;
  border-radius: var(--radius);
}
.legal p { margin: 0 0 6px; }
.legal strong { color: #e6e3dc; font-weight: 500; }

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- 12. Tablets and phones ----------
   "@media" rules only apply when the screen is narrower than the given width. */
@media (max-width: 960px) {
  .card-grid, .reasons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }

  /* Phone menu: hidden until the hamburger button is tapped */
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  /* turn the hamburger into an X when open */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }   /* the header already shows the emblem on phones */
  .stats { margin-top: 48px; }
  .stats strong { font-size: 2rem; }

  .card-grid, .reasons, .steps, .project-list, .leaders { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .map { height: 260px; margin-top: 40px; }
}
