/* ============ The Road Construction Project — Premium UI ============ */
:root {
  /* Industrial Color Palette */
  --bg: #11141a;              /* Deep asphalt black */
  --bg-2: #1a1e26;            /* Charcoal core */
  --surface: #ffffff;         /* Clean concrete white */
  --surface-2: #f2f4f7;       /* Gravel gray base */
  --ink: #161920;             /* Heavy iron black */
  --ink-2: #2d3545;           /* Weathered slate */
  --muted: #647380;           /* Wet cement gray */
  --line: #dbe1e8;            /* Steel mesh border */
  
  /* Branding & Warning Accents */
  --brand: #e08b00;           /* Heavy machinery amber */
  --brand-2: #f59e0b;         /* High-visibility yellow-gold */
  --brand-glow: #fbbf24;      /* Hazard strip flash */
  --accent: #d946ef;          /* Survey laser magenta */
  
  /* Construction Geometry */
  --radius: 6px;              /* Rigid, structural corners */
  --radius-lg: 12px;          /* Reinforced structural blocks */
  --shadow-sm: 0 2px 6px rgba(17,20,26,.08);
  --shadow-md: 0 10px 24px rgba(17,20,26,.12);
  --shadow-lg: 0 24px 60px rgba(17,20,26,.20);
  
  /* Linear Project Gradients */
  --grad-hero: linear-gradient(135deg, #11141a 0%, #1e2530 50%, #e08b00 100%);
  --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 100%);
  --container: 1200px;
  --t: cubic-bezier(.3, 1, .3, 1); /* Sturdy, industrial transitions */
}
/* 
.nav-links{

} */

/* HOME PAGE PROJECT GALLERY */

.home-gallery{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    margin-top:30px;
}

.home-gallery .gitem{
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.home-gallery .gitem img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
    transition:0.4s ease;
}

.home-gallery .gitem:hover img{
    transform:scale(1.05);
}

/* Tablet */
@media(max-width:992px){
    .home-gallery{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Mobile */
@media(max-width:576px){
    .home-gallery{
        grid-template-columns:1fr;
    }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { 
  font-family: 'Inter', system-ui, -apple-system, sans-serif; 
  color: var(--ink); 
  background: var(--surface); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
}

/* Typography with a structural, authoritative feel */
h1, h2, h3, h4 { 
  font-family: 'Space Grotesk', 'Inter', sans-serif; 
  color: var(--ink); 
  letter-spacing: -0.01em; 
  line-height: 1.15; 
  text-transform: uppercase; /* Strong, clear blueprints lettering */
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: 0; }
p { color: var(--ink-2); text-transform: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  border-bottom: 2px solid var(--line); /* Thick industrial baseline */
  transition: all .3s var(--t); 
}
.site-header.scrolled { 
  border-bottom-color: var(--brand); 
  box-shadow: var(--shadow-sm); 
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: 800; 
  letter-spacing: .02em; 
}
.brand-mark { 
  display: inline-grid; 
  place-items: center; 
  width: 40px; 
  height: 40px; 
  border-radius: var(--radius); 
  background: var(--grad-brand); 
  color: #11141a; /* Dark text on bright badge for high readability */
  font-size: 16px; 
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(245,158,11,.3); 
}
.brand-text { font-size: 16px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--ink-2); position: relative; transition: color .2s var(--t); }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -27px; 
  height: 3px; 
  background: var(--brand); 
}
.nav-cta { padding: 10px 20px; border-radius: var(--radius); }
.nav-cta.active::after { display: none; }

/* Structural Grid Hamburger Menu */
.hamburger { display: none; background: transparent; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 0; transition: transform .3s var(--t), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============ Heavy Duty Buttons ============ */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  padding: 14px 26px; 
  border-radius: var(--radius); 
  font-weight: 700; 
  font-size: 14px; 
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent; 
  cursor: pointer; 
  transition: transform .2s var(--t), box-shadow .2s var(--t), background .2s var(--t); 
}
.btn-primary { 
  background: var(--grad-brand); 
  color: #11141a; 
  box-shadow: 0 6px 20px rgba(224,139,0,.3); 
}
.btn-primary:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 10px 26px rgba(224,139,0,.45); 
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--brand-glow); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { transform: translateY(-1px); background: #000; }

/* ============ Hero Zone ============ */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: 140px 0 120px; isolation: isolate; }
/* Simulated construction zone hazard ambient light */
.hero::before { 
  content: ""; 
  position: absolute; 
  inset: -30%; 
  background: radial-gradient(60% 50% at 15% 25%, rgba(224,139,0,.2), transparent 60%), radial-gradient(50% 40% at 85% 75%, rgba(25,32,43,.4), transparent 60%); 
  z-index: -1; 
  animation: floatBG 20s ease-in-out infinite; 
}
@keyframes floatBG { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2%, 1%); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 6px 14px; 
  border-radius: var(--radius); 
  background: rgba(224, 139, 0, 0.15); 
  border: 1px solid var(--brand); 
  font-size: 12px; 
  font-weight: 700;
  letter-spacing: .08em; 
  text-transform: uppercase; 
  color: var(--brand-glow); 
  margin-bottom: 24px; 
}
.hero p.lead { color: #b1bdcf; font-size: 1.15rem; max-width: 560px; margin: 20px 0 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Site stats looking like digital control monitoring gauges */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; max-width: 540px; }
.stat { padding: 20px; border-radius: var(--radius); background: rgba(26,30,38,.75); border-left: 4px solid var(--brand); backdrop-filter: blur(8px); }
.stat .n { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat .l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #8797a8; margin-top: 8px; }

.hero-visual { position: relative; }
/* Reinforced frame style for main imagery */
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,0.05); }
.hero-card img { width: 100%; height: 490px; object-fit: cover; filter: grayscale(15%) contrast(105%); }
.hero-badge { 
  position: absolute; 
  left: -16px; 
  bottom: 32px; 
  background: #11141a; 
  color: #fff; 
  padding: 14px 20px; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-md); 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  font-size: 13px; 
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand);
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 5px rgba(251,191,36,.3); }

/* ============ Section Structural Framework ============ */
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--bg); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #8797a8; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { display: inline-block; color: var(--brand); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* ============ Layout Modules ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Solid, rigid cards inspired by building safety panels */
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 32px; transition: transform .3s var(--t), box-shadow .3s var(--t), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.card .icon { 
  width: 52px; 
  height: 52px; 
  border-radius: var(--radius); 
  display: grid; 
  place-items: center; 
  background: rgba(224,139,0,.08); 
  color: var(--brand); 
  margin-bottom: 22px; 
  font-size: 1.25rem;
  border: 1px solid rgba(224,139,0,0.15);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* Linear timeline or workflow segments */
.feature { display: flex; gap: 20px; padding: 26px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); border-left: 5px solid var(--brand); }
.feature .icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius); background: var(--grad-brand); color: #11141a; font-weight: 700; display: grid; place-items: center; }

/* ============ Project Progress Gallery ============ */
/* .gallery-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    width:100%;
} */

.gallery-row .g-tile{
    width:100%;
}

.gallery-row .g-tile img{
    width:100%;
    height:260px;
    object-fit:cover;
}

@media (max-width:991px){
    .gallery-row{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:576px){
    .gallery-row{
        grid-template-columns:1fr;
    }
}



/* ============ Case Reviews / Testimonials ============ */
.testimonial { max-width: 860px; margin: 0 auto; text-align: center; padding: 56px 48px; background: #fff; border-radius: var(--radius-lg); border: 3px solid var(--ink); box-shadow: var(--shadow-md); position: relative; }
/* Top warning strip decoration */
.testimonial::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(-45deg, #e08b00, #e08b00 10px, #11141a 10px, #11141a 20px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.testimonial .stars { color: var(--brand); font-size: 18px; margin-bottom: 18px; letter-spacing: 4px; }
.testimonial blockquote { font-size: 1.3rem; color: var(--ink); font-weight: 600; line-height: 1.55; font-style: italic; }
.testimonial cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ============ Enterprise Project Inquiry Forms ============ */
.form { display: grid; gap: 18px; max-width: 560px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(224,139,0,.15); }
.field textarea { resize: vertical; min-height: 150px; }
.field .err { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 2px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; background-color: #fffaf9; }
.field.invalid .err { display: block; }
.alert { padding: 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.alert-success { background: #ecfdf5; color: #047857; border: 2px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 2px solid #fecaca; }
/* TRIAL  */
.gallery-bg { background: var(--asphalt); color: var(--paper); }
.gallery-bg .eyebrow { color: var(--amber); }
.gallery-bg .eyebrow::before { background: var(--amber); }
.gallery-bg .section-head h2 { color: var(--paper-2); }
.gallery-bg .section-head p { color: rgba(247, 244, 239, 0.6); }

.masonry { columns: 3; column-gap: 20px; }
.masonry .tile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.masonry .tile img { width: 100%; transition: transform 0.7s var(--ease); }
.masonry .tile:hover img { transform: scale(1.06); }
.masonry .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 18px;
  background: linear-gradient(transparent, rgba(20, 18, 14, 0.85));
  color: #fff;
  transform: translateY(8px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.masonry .tile:hover .cap { transform: none; opacity: 1; }
.masonry .tile .cap strong { font-family: var(--serif); font-size: 1.1rem; display: block; }
.masonry .tile .cap span { font-size: 0.82rem; opacity: 0.8; }


/* ============ Project CTA Alert Band ============ */
/* Styled intentionally to replicate high-visibility public notice banners */
.cta-band { 
  background: var(--ink); 
  color: #fff; 
  border-radius: var(--radius-lg); 
  padding: 56px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 32px; 
  box-shadow: var(--shadow-lg); 
  border: 2px solid var(--brand);
  position: relative;
  overflow: hidden;
}


.cta-band::after {
  content: ""; position: absolute; right: -20px; bottom: -20px; width: 140px; height: 140px;
  background: repeating-linear-gradient(-45deg, rgba(224,139,0,0.15), rgba(224,139,0,0.15) 15px, transparent 15px, transparent 30px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #a5b4fc; color: rgba(255,255,255,.75); margin-top: 8px; }

/* ============ Industrial Footer ============ */
.site-footer { background: var(--bg); color: #9aa6bd; padding: 80px 0 32px; margin-top: 0; border-top: 4px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-grid h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: #8797a8; font-size: 14px; transition: color .2s; font-weight: 500; }
.footer-grid a:hover { color: var(--brand-glow); }
.footer-tag { color: #647380; font-size: 14px; margin-top: 16px; max-width: 300px; line-height: 1.5; }
.brand-footer .brand-text { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; color: #525e6b; font-size: 13px; font-weight: 600; }

/* ============ Project Sub-Page Interior Hero ============ */
.page-hero { background: var(--grad-hero); color: #fff; padding: 140px 0 96px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(224,139,0,.15), transparent 70%); pointer-events: none; }
.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: #b1bdcf; max-width: 640px; margin: 20px auto 0; position: relative; font-size: 1.1rem; }

/* ============ Blueprint Reveal Transitions ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--t), transform .7s var(--t); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }

/* ============ Mobile Responsive Restructuring ============ */
@media (max-width: 900px) {
  .nav-links { 
    position: fixed; 
    inset: 10px 0 auto 0; 
    background: #11141a; 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 32px 24px; 
    gap: 24px; 
    border-bottom: 3px solid var(--brand); 
    transform: translateY(-110%); 
    transition: transform .35s var(--t); 
    box-shadow: var(--shadow-lg); 
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 15px; color: #fff; }
  .nav-links a:hover, .nav-links a.active { color: var(--brand-glow); }
  .nav-links a.active::after { display: none; }
  .hamburger { display: flex; }
  .hamburger span { background: var(--ink); }
  /* Make mobile toggler visible against white background */
  .site-header .hamburger span { background: var(--ink); }
  .nav-cta { align-self: stretch; text-align: center; justify-content: center; }
  
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero p.lead { margin: 20px auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { margin: 48px auto 0; }
  .hero-card { transform: none; }
  .hero-badge { left: 16px; bottom: -16px; }
  
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.gallery-row{
    display:grid !important;
    grid-template-columns:repeat(3, 1fr) !important;
    gap:24px !important;
    width:100%;
}

.gallery-row .g-tile{
    width:100% !important;
    flex:none !important;
}

.gallery-row .g-tile img{
    width:100% !important;
    height:260px !important;
    object-fit:cover !important;
}