/* ============================================================
   CACILE GROUP — stylesheet
   Design system: civil engineering site register / survey drawing
   Palette: concrete charcoal, structural steel blue, site amber
   ============================================================ */

:root{
  --charcoal: #1C1D1B;
  --charcoal-2: #262824;
  --steel: #2C4A5E;
  --steel-light: #3E657D;
  --amber: #D68C1F;
  --amber-light: #F0AB3D;
  --aggregate: #8B8680;
  --paper: #F4F2EE;
  --paper-2: #EAE7E0;
  --line: #D8D4CB;
  --white: #FFFFFF;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
}

/* ---------- Benchmark tick motif (survey marker) ---------- */
.tick{
  display:inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.tick::after{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:1px; height:20px;
  background:currentColor;
  transform: translate(-50%,-50%);
}
.tick::before{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:20px; height:1px;
  background:currentColor;
  transform: translate(-50%,-50%);
}

/* ---------- Top strip ---------- */
.topstrip{
  background: var(--charcoal);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.topstrip .wrap{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top:9px;
  padding-bottom:9px;
  gap: 20px;
  flex-wrap: wrap;
}
.topstrip a{ color: var(--amber-light); }
.topstrip a:hover{ text-decoration: underline; }
.topstrip .divider{ opacity:0.4; margin: 0 8px; }

/* ---------- Header / nav ---------- */
header.site{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand .tick{ color: var(--amber); }
.brand-text{
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  line-height:1;
}
.brand-text span{
  display:block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-top: 4px;
  text-transform: uppercase;
}

nav.primary ul{
  display:flex;
  gap: 4px;
  align-items:center;
}
nav.primary a{
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 10px 16px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
nav.primary a:hover{ background: var(--paper-2); }
nav.primary a.active{
  color: var(--white);
  background: var(--steel);
}
nav.primary .cta{
  margin-left: 8px;
  background: var(--amber);
  color: var(--charcoal);
}
nav.primary .cta:hover{ background: var(--amber-light); }

.nav-toggle{ display:none; }

@media (max-width: 860px){
  nav.primary ul{
    display:none;
  }
  .nav-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding: 8px;
  }
  .nav-toggle span{
    width: 24px; height: 2px;
    background: var(--charcoal);
  }
  nav.primary.open ul{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    position:absolute;
    top: 100%;
    left:0; right:0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    gap: 2px;
  }
  nav.primary.open a{ padding: 12px 8px; }
  nav.primary.open .cta{ margin-left:0; margin-top:6px; text-align:center; }
}

/* ---------- Hero ---------- */
.hero{
  background:
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 55%, var(--steel) 130%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
}
.hero::before{
  /* grid/coordinate motif, like an engineering drawing */
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to right, rgba(244,242,238,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,242,238,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events:none;
}
.hero .wrap{ position:relative; z-index:2; }
.hero-eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-light);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 22px;
}
.hero-eyebrow .rule{
  width: 40px; height:1px;
  background: var(--amber-light);
}
.hero h1{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 26px;
}
.hero h1 em{
  font-style: normal;
  color: var(--amber-light);
}
.hero p.lead{
  font-size: 17.5px;
  color: rgba(244,242,238,0.82);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 56px;
}
.btn{
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  border: 1.5px solid transparent;
}
.btn-primary{
  background: var(--amber);
  color: var(--charcoal);
}
.btn-primary:hover{ background: var(--amber-light); transform: translateY(-1px); }
.btn-outline{
  border-color: rgba(244,242,238,0.35);
  color: var(--paper);
}
.btn-outline:hover{ border-color: var(--paper); background: rgba(244,242,238,0.06); }
.btn-dark{
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-dark:hover{ background: var(--charcoal); color: var(--paper); }

/* Register strip inside hero: BBBEE / CIDB grading, like a site signage board */
.register-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 0;
  border: 1px solid rgba(244,242,238,0.22);
  border-radius: 2px;
  overflow:hidden;
}
.register-strip .cell{
  flex:1 1 200px;
  padding: 16px 20px;
  border-right: 1px solid rgba(244,242,238,0.22);
}
.register-strip .cell:last-child{ border-right:none; }
.register-strip .cell .k{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 6px;
}
.register-strip .cell .v{
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--paper);
}

/* ---------- Section basics ---------- */
section{ padding: 84px 0; }
section.tight{ padding: 64px 0; }
.section-head{
  margin-bottom: 48px;
  max-width: 62ch;
}
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
}
.eyebrow .rule{ width:32px; height:1px; background: var(--steel); }
h2.section-title{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--charcoal);
}
.section-sub{
  margin-top: 14px;
  color: #4A473F;
  font-size: 16px;
}
.bg-charcoal{ background: var(--charcoal); color: var(--paper); }
.bg-charcoal .eyebrow{ color: var(--amber-light); }
.bg-charcoal .eyebrow .rule{ background: var(--amber-light); }
.bg-charcoal h2.section-title{ color: var(--paper); }
.bg-charcoal .section-sub{ color: rgba(244,242,238,0.72); }
.bg-steel{ background: var(--steel); color: var(--paper); }
.bg-paper2{ background: var(--paper-2); }

/* ---------- Divisions grid (home) ---------- */
.divisions{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.division{
  background: var(--paper);
  padding: 30px 22px 26px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  transition: background 0.15s;
}
.division:hover{ background: var(--white); }
.division .num{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.division h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 16.5px;
  line-height: 1.25;
  color: var(--charcoal);
}
.division p{
  font-size: 13.5px;
  color: #6B675E;
  line-height:1.5;
}
@media (max-width: 980px){
  .divisions{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .divisions{ grid-template-columns: 1fr; }
}

/* ---------- Stat blocks ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(244,242,238,0.14);
  border: 1px solid rgba(244,242,238,0.14);
  margin-top: 10px;
}
.stat{
  background: var(--charcoal);
  padding: 30px 22px;
}
.stat .figure{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--amber-light);
  line-height:1;
  margin-bottom: 8px;
}
.stat .label{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(244,242,238,0.7);
  text-transform: uppercase;
}
@media (max-width: 760px){
  .stats{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Two column layout ---------- */
.two-col{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items:start;
}
@media (max-width: 860px){
  .two-col{ grid-template-columns: 1fr; gap:40px; }
}

.prose p{ margin-bottom: 16px; color:#3A3830; font-size: 16px; }
.prose p:last-child{ margin-bottom:0; }

/* ---------- Values / cards ---------- */
.card-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px){
  .card-row{ grid-template-columns: 1fr; }
}
.value-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  padding: 30px 26px;
}
.value-card h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.value-card p{
  font-size: 14.5px;
  color: #57544B;
}

/* ---------- Credential logos strip ---------- */
.accred-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.accred-strip .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap:wrap;
  gap: 28px;
}
.accred-badge{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--white);
  white-space: nowrap;
}
.accred-note{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  background: var(--amber);
  padding: 10px 16px;
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- Placeholder site graphic (in lieu of photography) ---------- */
.site-graphic{
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, var(--steel) 0%, var(--charcoal) 100%);
  border-radius: 2px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding: 22px;
}
.site-graphic .tag{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,242,238,0.75);
  border: 1px solid rgba(244,242,238,0.3);
  padding: 8px 12px;
  border-radius: 2px;
}
.site-graphic::before{
  content:"";
  position:absolute; top:16px; right:16px;
  width: 26px; height: 26px;
  border: 2px solid var(--amber-light);
  border-radius:50%;
}
.site-graphic::after{
  content:"";
  position:absolute; top:16px; right:16px;
  width: 1px; height: 46px;
  background: var(--amber-light);
  transform-origin: top;
  transform: translate(12px,-10px);
}

/* ---------- Project register (Projects page signature element) ---------- */
.register{
  border: 1px solid var(--line);
  background: var(--white);
}
.register-row{
  display:grid;
  grid-template-columns: 64px 1fr 200px;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.register-row:last-child{ border-bottom:none; }
.register-row:hover{ background: var(--paper-2); }
.register-row .idx{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
}
.register-row .title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--charcoal);
  line-height: 1.35;
}
.register-row .meta{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--aggregate);
  text-transform: uppercase;
  text-align: right;
}
.register-head{
  display:grid;
  grid-template-columns: 64px 1fr 200px;
  gap: 18px;
  padding: 14px 24px;
  background: var(--charcoal);
  color: var(--paper-2);
}
.register-head span{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.register-head span:last-child{ text-align:right; }

@media (max-width: 700px){
  .register-row, .register-head{
    grid-template-columns: 40px 1fr;
  }
  .register-row .meta{ display:none; }
  .register-head span:last-child{ display:none; }
}

/* Client mark strip on projects page */
.client-marks{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.client-mark{
  background: var(--white);
  padding: 26px 16px;
  text-align:center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--steel);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 84px;
}
@media (max-width: 760px){
  .client-marks{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Services page: division blocks ---------- */
.service-block{
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 22px;
}
.service-block-head{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--charcoal);
  color: var(--paper);
}
.service-block-head .tick{ color: var(--amber-light); }
.service-block-head h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.service-block-head .sub{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.service-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service-list li{
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 14.5px;
  color: #3A3830;
  display:flex;
  align-items:flex-start;
  gap: 10px;
}
.service-list li:nth-child(3n+1){ border-left:none; }
.service-list li::before{
  content:"—";
  color: var(--amber);
  font-weight:700;
  flex-shrink:0;
}
@media (max-width: 860px){
  .service-list{ grid-template-columns: repeat(2, 1fr); }
  .service-list li:nth-child(3n+1){ border-left:1px solid var(--line); }
  .service-list li:nth-child(2n+1){ border-left:none; }
}
@media (max-width: 560px){
  .service-list{ grid-template-columns: 1fr; }
  .service-list li{ border-left:none !important; }
}

/* ---------- Community section ---------- */
.community-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 860px){
  .community-row{ grid-template-columns:1fr; gap:32px; }
}


/* ---------- Contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media (max-width: 860px){
  .contact-grid{ grid-template-columns:1fr; gap:40px; }
}
.contact-detail{
  display:flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:first-child{ padding-top:0; }
.contact-detail .ic{
  width: 38px; height:38px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  color: var(--amber);
  font-family: var(--mono);
  font-weight:700;
  font-size: 14px;
}
.contact-detail .k{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color: var(--aggregate);
  margin-bottom: 4px;
}
.contact-detail .v{
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}
.contact-detail .v a:hover{ color: var(--steel); }

.map-frame{
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  overflow:hidden;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

form.enquiry{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
}
form.enquiry .field{ margin-bottom: 20px; }
form.enquiry label{
  display:block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
form.enquiry input, form.enquiry textarea, form.enquiry select{
  width:100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--charcoal);
  border-radius: 2px;
}
form.enquiry input:focus, form.enquiry textarea:focus, form.enquiry select:focus{
  outline: none;
  border-color: var(--steel);
  background: var(--white);
}
form.enquiry textarea{ min-height: 130px; resize: vertical; }
form.enquiry .row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width:560px){
  form.enquiry .row2{ grid-template-columns:1fr; }
}

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--steel), var(--charcoal));
  color: var(--paper);
  padding: 64px 0;
}
.cta-band .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 28px;
  flex-wrap:wrap;
}
.cta-band h3{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  max-width: 22ch;
}
.cta-band p{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top:8px;
}

/* ---------- Footer ---------- */
footer.site{
  background: var(--charcoal);
  color: rgba(244,242,238,0.68);
  padding: 56px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-grid h4{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 18px;
}
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid ul li a{
  font-size: 14px;
  color: rgba(244,242,238,0.72);
}
.footer-grid ul li a:hover{ color: var(--paper); }
.footer-brand .brand-text{ color: var(--paper); }
.footer-brand p{
  font-size: 13.5px;
  color: rgba(244,242,238,0.6);
  margin-top: 16px;
  max-width: 32ch;
  line-height:1.6;
}
.footer-bottom{
  border-top: 1px solid rgba(244,242,238,0.14);
  padding-top: 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244,242,238,0.45);
}
.footer-bottom a{ color: rgba(244,242,238,0.6); }
.footer-bottom a:hover{ color: var(--amber-light); }

/* ---------- Page hero variant (interior pages, shorter) ---------- */
.hero.interior{ padding: 62px 0 56px; }
.hero.interior h1{ font-size: clamp(30px, 4.6vw, 48px); max-width: 20ch; }
.breadcrumb{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(244,242,238,0.55);
  margin-bottom: 18px;
  display:flex;
  align-items:center;
  gap:8px;
}
.breadcrumb a:hover{ color: var(--amber-light); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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