/* =================================================================
   SPARSH ENGINEERS AND CONSULTANTS — Stylesheet
   Design language: engineering drawing / blueprint conventions
   ================================================================= */

:root{
  /* -- Palette -- */
  --ink:        #1C2127;
  --paper:      #EDEAE3;
  --paper-light:#F8F6F1;
  --blueprint:  #13314E;
  --blueprint-2:#0E263D;
  --orange:     #E2581E;
  --steel:      #6E7682;
  --line:       #D2CBBC;
  --white:      #FFFFFF;

  /* -- Type -- */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --wrap: 1180px;
}

/* ---------------- Reset ---------------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin:0; }
img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }
button{ font: inherit; background:none; border:0; cursor:pointer; }

@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; }
}

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

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

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--orange); color:var(--white);
  padding:10px 16px; z-index:999; font-family:var(--font-mono);
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------------- Shared type helpers ---------------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow-light{ color: #F1A582; }

.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--blueprint);
  margin-bottom: 18px;
}
.section-title.light{ color: var(--white); }

.section-intro{
  max-width: 620px;
  color: var(--steel);
  font-size: 1.02rem;
  margin-bottom: 44px;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-small{ padding: 9px 16px; font-size: 0.85rem; }

.btn-primary{
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover{ background:#c9491a; }

.btn-ghost{
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.header-call{
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 16px;
}
.header-call:hover{ border-color: var(--orange); color: var(--orange); }

.btn-outline{
  border-color: var(--blueprint);
  color: var(--blueprint);
}
.btn-outline:hover{ background: var(--blueprint); color: var(--white); }

.btn-whatsapp{
  background: #25D366;
  color: #063a1d;
}
.btn-whatsapp:hover{ background:#1ebd59; }

/* ---------------- Blueprint grid texture ---------------- */
.blueprint-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events:none;
}

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(19,49,78,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-sub{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B9C6D4;
}
.brand-name.light, .brand-sub.light{ color: var(--white); }
.footer-brand .brand-sub.light{ color: #B9C6D4; }

.main-nav ul{ display:flex; gap: 32px; }
.main-nav a{
  font-size: 0.92rem; font-weight: 500;
  color: #DCE3EA;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover{ color: var(--white); }
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:2px; background: var(--orange);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width:100%; }
.main-nav a.active{ color: var(--white); }
.main-nav a.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:16px; }

.nav-toggle{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:34px; height:30px;
}
.nav-toggle span{
  display:block; height:2px; width:100%;
  background: var(--white); border-radius:1px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  background: linear-gradient(180deg, var(--blueprint) 0%, var(--blueprint-2) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  overflow:hidden;
}
.hero-inner{ position:relative; max-width: 760px; }
.hero-title{
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin-bottom: 26px;
}
.hero-sub{
  font-size: 1.12rem;
  color: #D7E0E8;
  max-width: 560px;
  margin-bottom: 38px;
}
.cta-row{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom: 56px; }

.dim-block{ max-width: 420px; }
.dim-line{ width:100%; height:auto; margin-bottom: 8px; }
.dim-label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #9FB3C4;
}

/* ---------------- About ---------------- */
.about{ padding: 100px 0; background: var(--paper); }
.about-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items:start;
}
.about-text p{ color: #41454C; margin-bottom: 18px; max-width: 520px; }
.about-text p:last-child{ margin-bottom:0; }

.feature-chips{ display:flex; flex-direction:column; gap: 26px; }
.feature-chips li{ display:flex; gap:14px; align-items:flex-start; }
.feature-chips strong{ display:block; font-size:1.02rem; margin-bottom:4px; color: var(--blueprint); }
.feature-chips span{ color: var(--steel); font-size: 0.92rem; }

/* ---------------- Services ---------------- */
.services{ padding: 100px 0; background: var(--paper-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card{
  position:relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px 28px;
  border-radius: 2px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover{ border-color: var(--orange); transform: translateY(-4px); }
.sheet-no{
  position:absolute; top:14px; right:16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.service-icon{ margin-bottom: 18px; }
.service-card h3{
  font-size: 1.08rem;
  color: var(--blueprint);
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p{ color: var(--steel); font-size: 0.92rem; }

/* corner brackets, drawing crop-mark style */
.service-card::before{
  content:"";
  position:absolute; top:-1px; left:-1px; width:12px; height:12px;
  border-top: 2px solid var(--blueprint); border-left: 2px solid var(--blueprint);
}
.service-card::after{
  content:"";
  position:absolute; bottom:-1px; right:-1px; width:12px; height:12px;
  border-bottom: 2px solid var(--blueprint); border-right: 2px solid var(--blueprint);
}

/* ---------------- Why us ---------------- */
.why-us{
  position:relative;
  background: linear-gradient(180deg, var(--blueprint-2) 0%, var(--blueprint) 100%);
  color: var(--white);
  padding: 100px 0;
}
.why-inner{ position:relative; }
.why-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 50px;
  margin-top: 20px;
}
.why-list li{ display:flex; gap:16px; }
.why-mark{
  flex-shrink:0; width:40px; height:40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
}
.why-list h3{ font-size: 1.08rem; margin-bottom:6px; }
.why-list p{ color: #C3D0DB; font-size: 0.92rem; max-width: 380px; }

/* ---------------- Contact ---------------- */
.contact{ padding: 100px 0; background: var(--paper); }
.contact-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 44px;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px;
  text-align: left;
}
.contact-card h3{ color: var(--blueprint); font-size: 1.05rem; margin: 14px 0 6px; }
.contact-card p{ color: var(--steel); margin-bottom: 18px; }
.contact-card p a{ color: var(--ink); font-weight:600; }
.contact-card p a:hover{ color: var(--orange); }
.contact-card-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.map-frame{
  width:100%; height: 360px;
  border: 1px solid var(--line);
  filter: saturate(0.9);
}

/* ---------------- WhatsApp FAB ---------------- */
.whatsapp-fab{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.whatsapp-fab:hover{ background:#1ebd59; }
.fab-pulse{
  position:absolute; inset:0;
  border-radius:50%;
  background:#25D366;
  opacity:0.65;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse{
  0%{ transform: scale(1); opacity:0.55; }
  100%{ transform: scale(1.9); opacity:0; }
}

/* ---------------- Footer ---------------- */
.site-footer{
  position: relative;
  background: var(--ink);
  color: #C9CDD3;
  padding-top: 70px;
  overflow:hidden;
}
.footer-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand{ display:flex; gap:12px; align-items:flex-start; }
.footer-links{ display:flex; flex-direction:column; gap:12px; }
.footer-links a:hover{ color: var(--orange); }
.footer-contact p{ margin-bottom: 10px; }
.footer-contact a:hover{ color: var(--orange); }

.title-block{
  position:relative;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(255,255,255,0.18);
  margin: 0 auto;
}
.title-block > div{
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.title-block > div:last-child{ border-right: none; }
.title-block span{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #8B939E;
  margin-bottom: 4px;
}
.title-block strong{ font-size: 0.85rem; color: var(--white); font-weight:600; }

.footer-bottom{
  padding: 26px 28px 30px;
  text-align:center;
  font-size: 0.82rem;
  color: #8B939E;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px){
  .about-inner{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .why-list{ grid-template-columns: 1fr; }
}

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

  .main-nav{
    position:absolute; top:76px; left:0; right:0;
    background: var(--blueprint-2);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow:hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open{ max-height: 360px; }
  .main-nav ul{ flex-direction:column; gap:0; padding: 8px 28px 18px; }
  .main-nav a{ display:block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-call span{ display:none; }
  .nav-toggle{ display:flex; }

  .hero{ padding: 80px 0 64px; }
  .cta-row{ flex-direction:column; align-items:stretch; }
  .cta-row .btn{ justify-content:center; }

  .about, .services, .why-us, .contact{ padding: 70px 0; }

  .service-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }

  .footer-inner{ grid-template-columns: 1fr; gap: 30px; }
  .title-block{ grid-template-columns: 1fr 1fr; }
  .title-block > div{ border-bottom: 1px solid rgba(255,255,255,0.18); }
  .title-block > div:nth-last-child(-n+2){ border-bottom:none; }

  .whatsapp-fab{ width:52px; height:52px; right:16px; bottom:16px; }
}
