/* ==========================================================================
   Hellobuilt Nigeria Ltd — Brand Stylesheet
   Design language: verified-legitimacy blueprint. Corner brackets, dimension
   ticks and mono tag-chips are lifted directly from the company's own
   portfolio deck, not decoration invented for the web.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Color tokens — derived from the logo (sky blue circle, navy tower, yellow house) */
  --navy: #0F2440;
  --navy-deep: #081627;
  --blueprint: #2F8FC4;
  --blueprint-light: #6FBBE0;
  --signal: #F5B700;
  --signal-deep: #C99200;
  --steel: #5B6774;
  --steel-light: #A9B3BC;
  --paper: #F6F7F9;
  --paper-dim: #ECEEF1;
  --ink: #10161D;
  --white: #FFFFFF;
  --line: rgba(15,36,64,0.14);
  --shadow: 0 20px 50px -25px rgba(8,22,39,0.45);

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 2px;
  --container: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
  text-transform: uppercase;
}
h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2{ font-size: clamp(2rem, 4vw, 2.9rem); }
h3{ font-size: clamp(1.3rem, 2.4vw, 1.6rem); text-transform: none; }
p{ margin: 0 0 1em; color: var(--steel); max-width: 62ch; }
.lede{ font-size: 1.15rem; color: var(--steel); }

:focus-visible{ outline: 3px solid var(--signal); outline-offset: 3px; }

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

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
.section--navy{ background: var(--navy-deep); color: var(--white); }
.section--navy p{ color: var(--steel-light); }
.section--navy h2, .section--navy h3{ color: var(--white); }
.section--paper-dim{ background: var(--paper-dim); }

/* ---------- Blueprint signature elements ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 18px;
}
.eyebrow::before{
  content: '';
  width: 22px; height: 2px;
  background: var(--signal);
  display: inline-block;
}

.tag-chip{
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
}
.section--navy .tag-chip{ border-color: rgba(255,255,255,0.22); color: var(--blueprint-light); background: transparent; }

.corner-frame{
  position: relative;
  border: 1px solid var(--line);
}
.corner-frame::before, .corner-frame::after,
.corner-frame .c2::before, .corner-frame .c2::after{
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--signal);
  border-style: solid;
  z-index: 2;
}
.corner-frame::before{ top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.corner-frame::after{ bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

.dim-divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 48px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.dim-divider::before, .dim-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--signal); color: var(--navy-deep); }
.btn--primary:hover{ background: var(--signal-deep); }
.btn--ghost{ border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn--ghost:hover{ background: rgba(255,255,255,0.1); }
.btn--dark{ border-color: var(--navy); color: var(--navy); }
.btn--dark:hover{ background: var(--navy); color: var(--white); }
.btn--block{ width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header::before{
  content: '';
  position: absolute; inset: 0;
  background: rgba(246,247,249,0.92);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ width: 44px; height: 44px; border-radius: 50%; }
.brand-word{ font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--navy-deep); line-height: 1.1; }
.brand-word span{ display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; color: var(--blueprint); text-transform: uppercase; }

.nav-links{ display: flex; gap: 30px; align-items: center; }
.nav-links a{
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active{ border-color: var(--signal); }
.nav-cta{ display:flex; align-items:center; gap: 18px; }
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span{ display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 68px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 30px 24px;
    gap: 22px; transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .nav-cta .btn span.hide-mobile{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,22,39,0.55) 0%, rgba(8,22,39,0.65) 45%, rgba(8,22,39,0.94) 100%);
}
.hero-grid{
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner{ position: relative; z-index: 2; padding: 60px 24px 72px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero h1{ color: var(--white); max-width: 16ch; }
.hero .lede{ color: var(--steel-light); max-width: 52ch; margin-bottom: 34px; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; max-width: 780px; }
.hero-stat{ padding-right: 24px; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 20px; }
.hero-stat:first-child{ border-left: none; padding-left: 0; }
.hero-stat b{ display:block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--signal); }
.hero-stat span{ font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-light); }

/* ---------- Grids & Cards ---------- */
.grid{ display: grid; gap: 28px; }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
  position: relative;
}
.card .num{ font-family: var(--mono); font-size: 0.72rem; color: var(--blueprint); margin-bottom: 14px; display:block; }

.service-card{
  background: var(--white); border: 1px solid var(--line); padding: 34px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover{ border-color: var(--blueprint); transform: translateY(-4px); }
.service-card h3{ margin-bottom: 10px; }
.service-card .icon{ width: 42px; height: 42px; margin-bottom: 20px; color: var(--signal-deep); }

.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 32px; } }

.photo-frame{ position: relative; }
.photo-frame img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo-frame .cap{
  position: absolute; left: 12px; bottom: 12px;
  background: var(--navy-deep); color: var(--white);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 6px 10px; text-transform: uppercase;
}

/* ---------- Project cards ---------- */
.project-card{ background: var(--white); border: 1px solid var(--line); overflow: hidden; display:flex; flex-direction: column; }
.project-card .thumb{ position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .thumb img{ transform: scale(1.06); }
.project-card .status{
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 9px; background: var(--signal); color: var(--navy-deep);
}
.project-card .status.ongoing{ background: var(--blueprint); color: var(--white); }
.project-card .body{ padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.project-card .cat{ font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blueprint); margin-bottom: 8px; }
.project-card h3{ margin-bottom: 6px; }
.project-card .loc{ font-family: var(--mono); font-size: 0.76rem; color: var(--steel); margin-bottom: 12px; }
.project-card p{ font-size: 0.94rem; flex: 1; }

.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn{
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  color: var(--navy);
}
.filter-btn.active{ background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }

/* ---------- Process ---------- */
.process{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step{ padding: 30px 22px; border-left: 1px solid var(--line); position: relative; }
.process-step:first-child{ border-left: none; }
.process-step .idx{ font-family: var(--mono); font-size: 0.72rem; color: var(--signal-deep); display:block; margin-bottom: 10px; }
@media (max-width: 900px){ .process{ grid-template-columns: 1fr; } .process-step{ border-left: none; border-top: 1px solid var(--line); } .process-step:first-child{ border-top: none; } }

/* ---------- Testimonials ---------- */
.testimonial{ background: var(--white); border: 1px solid var(--line); padding: 32px; }
.testimonial p{ font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--navy-deep); text-transform: none; max-width: none; }
.testimonial .who{ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-top: 16px; }

/* ---------- Forms ---------- */
.form-field{ margin-bottom: 20px; }
.form-field label{ display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea{
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--body); font-size: 0.95rem; color: var(--ink);
}
.form-field textarea{ resize: vertical; min-height: 120px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size: 0.82rem; color: var(--steel-light); }

.form-success{
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  padding: 32px;
}
.form-success .icon-row{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.form-success .icon-row svg{ width:28px; height:28px; flex-shrink:0; color: var(--signal-deep); }
.form-success h3{ margin: 0; }
.form-success p{ margin-bottom: 0.6em; }

.form-error{
  display: none;
  background: #FCEEEE;
  border: 1px solid #E7B3B3;
  border-left: 4px solid #C0392B;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: #7A2323;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: var(--steel-light); padding: 70px 0 30px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h4{ color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 18px; font-family: var(--mono); text-transform: uppercase; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a:hover{ color: var(--signal); }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.8rem; }
.footer-brand{ display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img{ width: 40px; height: 40px; border-radius: 50%; }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.wa-float svg{ width: 28px; height: 28px; fill: white; }

/* ---------- FAQ chatbot widget ---------- */
.faq-toggle{
  position: fixed; bottom: 94px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: none; cursor: pointer;
}
.faq-toggle svg{ width: 26px; height: 26px; stroke: var(--signal); fill: none; stroke-width: 1.8; }
.faq-toggle .close-icon{ display: none; }
.faq-toggle.open .chat-icon{ display: none; }
.faq-toggle.open .close-icon{ display: block; }

.faq-panel{
  position: fixed; bottom: 162px; right: 24px; z-index: 91;
  width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 200px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.faq-panel.open{ display: flex; }

.faq-header{
  background: var(--navy-deep); color: var(--white);
  padding: 16px 18px; display: flex; align-items: center; gap: 10px;
}
.faq-header img{ width: 30px; height: 30px; border-radius: 50%; }
.faq-header .t{ font-family: var(--display); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.faq-header .s{ font-family: var(--mono); font-size: 0.64rem; color: var(--blueprint-light); text-transform: uppercase; letter-spacing: 0.06em; }

.faq-messages{
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper);
}
.faq-msg{ max-width: 85%; padding: 10px 13px; font-size: 0.88rem; line-height: 1.5; }
.faq-msg.bot{ background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.faq-msg.user{ background: var(--navy-deep); color: var(--white); align-self: flex-end; }

.faq-typing{ display: flex; gap: 4px; align-items: center; padding: 13px; }
.faq-typing span{
  width: 6px; height: 6px; border-radius: 50%; background: var(--steel-light);
  animation: faq-bounce 1.2s infinite ease-in-out;
}
.faq-typing span:nth-child(2){ animation-delay: .15s; }
.faq-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes faq-bounce{
  0%, 60%, 100%{ transform: translateY(0); opacity: 0.5; }
  30%{ transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .faq-typing span{ animation: none; opacity: 0.8; }
}

.faq-chips{ display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--paper); }
.faq-chip{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em;
  padding: 7px 11px; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; color: var(--navy);
}
.faq-chip:hover{ border-color: var(--blueprint); }

.faq-input-row{
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white);
}
.faq-input-row input{
  flex: 1; padding: 10px 12px; border: 1px solid var(--line);
  font-family: var(--body); font-size: 0.86rem;
}
.faq-input-row button{
  background: var(--signal); border: none; padding: 0 16px; cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--navy-deep);
}

@media (max-width: 480px){
  .faq-panel{ right: 16px; bottom: 152px; width: calc(100vw - 32px); }
  .faq-toggle{ right: 16px; }
  .wa-float{ right: 16px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero{ background: var(--navy-deep); color: var(--white); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero .hero-grid{ opacity: 0.6; }
.page-hero h1{ color: var(--white); max-width: 20ch; }
.page-hero .lede{ max-width: 60ch; }
.breadcrumb{ font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blueprint-light); margin-bottom: 20px; }

/* ---------- Utility ---------- */
.mt-0{ margin-top: 0; } .center{ text-align: center; margin-left: auto; margin-right: auto; }
.max-w{ max-width: 640px; }
.tick-list li{ display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.tick-list li::before{ content: '—'; color: var(--signal-deep); font-family: var(--mono); flex-shrink: 0; }

.badge-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Admin note banner used on projects page fallback */
.empty-state{ padding: 60px 20px; text-align: center; border: 1px dashed var(--line); color: var(--steel); font-family: var(--mono); font-size: 0.85rem; }
