/* ==========================================================================
   Tabora Concrete Works Ltd — Corporate Website
   Design tokens
   ========================================================================== */

:root{
  --navy-950: #08131f;
  --navy-900: #0a1c2e;
  --navy-800: #0f2740;
  --navy-700: #163654;
  --charcoal: #21262b;
  --ink: #10151a;
  --white: #ffffff;
  --grey-050: #f4f5f7;
  --grey-100: #e8eaed;
  --grey-300: #c3c9d1;
  --grey-500: #8a94a0;
  --grey-700: #545e6a;
  --stone: #b4874f;
  --stone-light: #d9b483;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* type scale */
.h-display{ font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.h-1{ font-size: clamp(2.2rem, 4vw, 3.3rem); }
.h-2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h-3{ font-size: 1.3rem; }
.eyebrow{
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--stone);
  display:flex; align-items:center; gap:10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 1px; background: var(--stone);
  display:block;
}
.lede{ font-size: 1.15rem; color: var(--grey-700); max-width: 62ch; }
.body-text{ color: var(--grey-700); max-width: 68ch; }
.body-text + .body-text{ margin-top: 1em; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(10,28,46,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width: 40px; height: 40px; border: 1px solid var(--stone);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); color: var(--stone);
  font-size: 0.85rem; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-text{ color: var(--white); }
.brand-text .name{ font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.01em; display:block; }
.brand-text .tag{ font-size: 0.7rem; color: var(--grey-300); display:block; margin-top: 1px; }

.nav-links{ display:flex; align-items:center; gap: 2px; }
.nav-links a{
  color: var(--grey-100); font-size: 0.94rem; padding: 10px 18px;
  position: relative;
}
.nav-links a::after{
  content:""; position:absolute; left:18px; right:18px; bottom:6px; height:1px;
  background: var(--stone); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--white); }

.nav-cta{
  border: 1px solid var(--stone); color: var(--stone) !important;
  margin-left: 10px;
}
.nav-cta:hover{ background: var(--stone); color: var(--navy-950) !important; }
.nav-cta::after{ display:none; }

.nav-toggle{
  display:none; background: none; border:none; width: 32px; height: 22px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; right:0; height:1px; background: var(--white);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span{ top: 50%; }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after{ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:fixed; inset: 84px 0 0 0; background: var(--navy-950);
    flex-direction: column; align-items: stretch; padding: 12px var(--pad) 40px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.1rem; }
  .nav-cta{ margin-left:0; margin-top: 18px; text-align:center; border-width:1px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 15px 30px; font-size: 0.95rem; font-family: var(--font-body); font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary{ background: var(--stone); color: var(--navy-950); }
.btn-primary:hover{ background: var(--stone-light); }
.btn-outline{ border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); }
.btn-outline-dark{ border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover{ background: var(--charcoal); color: var(--white); }
.btn-row{ display:flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Hero (strata graphic backdrop)
   ========================================================================== */

.hero{
  position: relative; overflow:hidden;
  background: var(--navy-950);
  color: var(--white);
  padding: 96px 0 0;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; align-items:center; gap: 40px;
  position: relative; z-index: 2;
  padding-bottom: 90px;
}
.hero-copy .eyebrow{ color: var(--stone-light); }
.hero h1{ color: var(--white); margin-bottom: 26px; }
.hero .lede{ color: var(--grey-300); margin-bottom: 40px; }
.hero-art{ position: relative; }
.hero-art svg{ width: 100%; height: auto; display:block; }

.hero-figures{ position: relative; z-index: 2; }
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-art{ order: -1; max-width: 420px; margin: 0 auto 20px; }
}

/* strata backdrop, absolutely positioned full-bleed */
.strata-bg{
  position:absolute; inset:0; z-index:1; opacity: 0.5;
}

/* ==========================================================================
   Page header (non-home hero, shorter)
   ========================================================================== */

.page-header{
  background: var(--navy-950); color: var(--white);
  padding: 74px 0 68px; position: relative; overflow:hidden;
}
.page-header .eyebrow{ color: var(--stone-light); }
.page-header h1{ color: var(--white); max-width: 18ch; }
.page-header .lede{ color: var(--grey-300); margin-top: 20px; }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stat-strip{
  background: var(--navy-900); color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item{
  padding: 44px var(--pad);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat-item:first-child{ border-left: none; padding-left: var(--pad); }
.stat-num{
  font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.7rem);
  color: var(--stone-light); display:block;
}
.stat-label{ font-size: 0.88rem; color: var(--grey-300); margin-top: 8px; display:block; max-width: 22ch; }

@media (max-width: 860px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-item{ border-left: none !important; border-top: 1px solid rgba(255,255,255,0.1); padding: 32px 24px; }
  .stat-item:nth-child(odd){ border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(-n+2){ border-top:none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

section{ padding: 96px 0; }
.section-tight{ padding: 70px 0; }
.section-grey{ background: var(--grey-050); }
.section-navy{ background: var(--navy-950); color:var(--white); }
.section-navy .body-text{ color: var(--grey-300); }
.section-navy h2, .section-navy h3{ color: var(--white); }

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

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

/* card grid */
.card-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grey-100); }
.card{
  background: var(--white); padding: 40px 32px;
}
.card-icon{ width: 42px; height:42px; margin-bottom: 24px; color: var(--stone); }
.card h3{ font-size: 1.15rem; margin-bottom: 12px; }
.card p{ color: var(--grey-700); font-size: 0.96rem; }

@media (max-width: 860px){ .card-grid{ grid-template-columns: 1fr; } }

/* list with rule dividers - used for genuine sequences */
.rule-list{ border-top: 1px solid var(--grey-100); }
.rule-item{
  display:grid; grid-template-columns: 100px 1fr; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--grey-100);
}
.rule-item .idx{ font-family: var(--font-display); color: var(--stone); font-size: 1.1rem; }
.rule-item h4{ font-size: 1.1rem; margin-bottom: 8px; }
.rule-item p{ color: var(--grey-700); font-size: 0.96rem; max-width: 60ch; }
@media (max-width: 640px){ .rule-item{ grid-template-columns: 1fr; gap: 6px; } }

/* image frame */
.frame{ position:relative; overflow:hidden; background: var(--navy-800); }
.frame::after{ content:""; display:block; padding-top: 72%; }
.frame svg, .frame .frame-inner{ position:absolute; inset:0; width:100%; height:100%; }
.frame-caption{
  position:absolute; left:0; right:0; bottom:0; padding: 20px 24px;
  background: linear-gradient(0deg, rgba(8,19,31,0.85), transparent);
  color: var(--white); font-size: 0.85rem; letter-spacing: 0.02em;
}

/* map / location block */
.locate{ display:grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--grey-100); }
.locate > div{ padding: 48px; }
.locate .map-side{ background: var(--navy-950); }
@media (max-width: 860px){ .locate{ grid-template-columns: 1fr; } }

/* table */
.fin-table{ width:100%; border-collapse: collapse; }
.fin-table th, .fin-table td{
  text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--grey-100); font-size: 0.95rem;
}
.fin-table th{ font-family: var(--font-display); font-weight: 600; color: var(--grey-700); font-size: 0.82rem; }
.fin-table td.num, .fin-table th.num{ text-align:right; }
.fin-table tr:last-child td{ font-weight: 600; border-bottom: none; border-top: 1px solid var(--charcoal); }

/* pill / tag */
.pill{
  display:inline-flex; padding: 6px 14px; font-size: 0.8rem; border: 1px solid var(--grey-300);
  color: var(--grey-700);
}

/* progress / allocation bar */
.alloc-bar{ display:flex; height: 14px; width:100%; overflow:hidden; margin: 28px 0 18px; }
.alloc-bar span{ height:100%; }
.alloc-key{ display:flex; flex-wrap:wrap; gap: 22px; }
.alloc-key div{ display:flex; align-items:center; gap:9px; font-size:0.9rem; color: var(--grey-700); }
.alloc-key i{ width:11px; height:11px; display:inline-block; }

/* cash flow chart */
.cf-chart{ display:flex; align-items:flex-end; gap: 14px; height: 260px; padding: 0 0 0 0; }
.cf-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.cf-bar{
  width: 100%; max-width: 46px; background: var(--navy-800); position:relative;
  transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease);
}
.cf-bar.is-visible{ transform: scaleY(1); }
.cf-bar.positive{ background: var(--stone); }
.cf-value{ font-size: 0.78rem; color: var(--grey-700); margin-bottom: 8px; font-family: var(--font-display); }
.cf-label{ font-size: 0.78rem; color: var(--grey-500); margin-top: 10px; }

/* quote / highlight bar */
.highlight-bar{
  border-left: 3px solid var(--stone); padding: 4px 0 4px 28px; margin: 8px 0;
}
.highlight-bar p{ font-size: 1.2rem; font-family: var(--font-display); font-weight: 500; color: var(--ink); max-width: 46ch; }

/* team / partner card */
.partner-card{ padding: 40px; border: 1px solid var(--grey-100); }
.partner-card .role{ color: var(--stone); font-size: 0.85rem; margin-bottom: 6px; display:block; }
.partner-card h3{ font-size: 1.3rem; margin-bottom: 14px; }

/* contact */
.contact-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 48px; } }
.info-item{ padding: 26px 0; border-bottom: 1px solid var(--grey-100); }
.info-item:first-child{ padding-top:0; }
.info-item .label{ font-size: 0.82rem; color: var(--grey-500); display:block; margin-bottom: 6px; }
.info-item .val{ font-size: 1.05rem; }

.form-field{ margin-bottom: 22px; }
.form-field label{ display:block; font-size: 0.85rem; color: var(--grey-700); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select{
  width: 100%; border: 1px solid var(--grey-300); background: var(--white);
  padding: 14px 16px; font-family: inherit; font-size: 0.98rem; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none; border-color: var(--navy-800);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size: 0.85rem; color: var(--grey-500); margin-top: 14px; }
.form-success{
  display:none; padding: 18px 20px; background: var(--grey-050); border-left: 3px solid var(--stone);
  font-size: 0.95rem; margin-top: 20px;
}
.form-success.show{ display:block; }

/* footer */
.site-footer{ background: var(--navy-950); color: var(--grey-300); padding: 70px 0 30px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand-text .tag{ color: var(--grey-500); }
.footer-desc{ margin-top: 18px; font-size: 0.92rem; color: var(--grey-500); max-width: 38ch; }
.footer-col h4{ color: var(--white); font-size: 0.85rem; margin-bottom: 18px; font-family: var(--font-body); font-weight:600; }
.footer-col ul li{ margin-bottom: 12px; font-size: 0.92rem; }
.footer-col ul li a:hover{ color: var(--white); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 26px; font-size: 0.82rem; color: var(--grey-500); flex-wrap:wrap; gap: 12px; }
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* reveal on scroll (used sparingly) */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

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

/* misc */
.divider{ height:1px; background: var(--grey-100); margin: 90px 0; }
.container .divider{ margin-left:0; margin-right:0; }
.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }
