/* =========================================================
   KRISH BUILDERS — Stylesheet
   Theme: "Blueprint" — architectural drawing motifs
   (corner crop-marks, dimension lines, mono labels)
   ========================================================= */

:root{
  /* Colors */
  --navy-900:#0A2540;
  --navy-800:#0E2F52;
  --navy-700:#123A63;
  --navy-600:#1B4C7E;
  --orange-500:#F2661D;
  --orange-600:#D9530F;
  --orange-100:#FDE7DA;
  --white:#FFFFFF;
  --gray-50:#F7F8FA;
  --gray-100:#F0F3F6;
  --gray-200:#E3E7EC;
  --gray-400:#9AA5B1;
  --gray-500:#5B6472;
  --gray-700:#333B45;
  --gray-900:#161A1F;

  /* Type */
  --font-display:'Archivo', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --container-w:1200px;
  --radius:10px;
  --shadow-sm:0 2px 10px rgba(10,37,64,0.06);
  --shadow-md:0 12px 30px rgba(10,37,64,0.12);
  --transition:0.25s ease;
}

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

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--gray-700);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--navy-900); margin:0 0 0.5em; line-height:1.15; }
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }

.container{ width:100%; max-width:var(--container-w); margin:0 auto; padding:0 24px; }

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

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.14em;
  color:var(--orange-600);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  font-weight:600;
}
.eyebrow.center{ justify-content:center; }
.eyebrow-line{ width:28px; height:2px; background:var(--orange-500); display:inline-block; }

.section-desc{ color:var(--gray-500); max-width:640px; }
.text-orange{ color:var(--orange-500); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:6px;
  font-weight:600;
  font-size:0.95rem;
  border:2px solid transparent;
  transition:transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space:nowrap;
}
.btn .icon{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.btn-primary{ background:var(--orange-500); color:var(--white); }
.btn-primary:hover{ background:var(--orange-600); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline-light{ border-color:rgba(255,255,255,0.6); color:var(--white); }
.btn-outline-light:hover{ background:rgba(255,255,255,0.12); border-color:var(--white); transform:translateY(-2px); }
.btn-call{ background:var(--navy-900); color:var(--white); padding:10px 18px; font-size:0.88rem; }
.btn-call:hover{ background:var(--orange-500); }
.btn-whatsapp{ background:#25D366; color:var(--white); }
.btn-whatsapp:hover{ background:#1EBE5A; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-block{ width:100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(10,37,64,0.0);
  transition:background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding:18px 0;
}
.site-header.scrolled{
  background:var(--white);
  box-shadow:var(--shadow-sm);
  padding:10px 0;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; }

.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:40px; height:40px; border-radius:8px;
  background:var(--navy-900);
  color:var(--orange-500);
  font-family:var(--font-display); font-weight:900; font-size:1.25rem;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.logo-text{
  font-family:var(--font-display); font-weight:800; font-size:1.05rem;
  letter-spacing:0.02em; color:var(--navy-900);
  line-height:1.1;
}
.site-header:not(.scrolled) .logo-text{ color:var(--white); }
.site-header:not(.scrolled) .logo-mark{ background:var(--white); color:var(--orange-500); }
.logo-text em{ display:block; font-style:normal; font-weight:500; font-size:0.62rem; letter-spacing:0.24em; color:var(--orange-500); }

.main-nav ul{ display:flex; gap:34px; }
.nav-link{
  font-size:0.92rem; font-weight:600; color:var(--white);
  position:relative; padding:6px 0;
}
.site-header.scrolled .nav-link{ color:var(--gray-700); }
.nav-link::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--orange-500); transition:width var(--transition);
}
.nav-link:hover::after, .nav-link.active-link::after{ width:100%; }
.nav-link:hover{ color:var(--orange-500); }
.site-header.scrolled .nav-link:hover{ color:var(--orange-600); }

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:none; padding:0;
}
.menu-toggle span{ width:100%; height:2px; background:var(--white); transition:transform var(--transition), opacity var(--transition), background var(--transition); }
.site-header.scrolled .menu-toggle span{ background:var(--navy-900); }
.menu-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  overflow:hidden;
  color:var(--white);
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,37,64,0.88) 0%, rgba(10,37,64,0.78) 45%, rgba(10,37,64,0.92) 100%);
}
.blueprint-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(ellipse at center, black 0%, transparent 80%);
}
.hero-content{ position:relative; z-index:1; padding-top:80px; }
.hero-content h1{
  color:var(--white);
  font-size:clamp(2.3rem, 5.2vw, 4rem);
  font-weight:800;
  max-width:820px;
  letter-spacing:-0.01em;
}
.hero-sub{
  font-size:clamp(1.05rem, 2vw, 1.3rem);
  color:var(--gray-200);
  max-width:560px;
  margin-bottom:2em;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; }

.hero-corner{ position:absolute; width:44px; height:44px; border-color:rgba(255,255,255,0.55); z-index:1; }
.hero-corner.tl{ top:28px; left:24px; border-top:2px solid; border-left:2px solid; }
.hero-corner.tr{ top:28px; right:24px; border-top:2px solid; border-right:2px solid; }
.hero-corner.bl{ bottom:28px; left:24px; border-bottom:2px solid; border-left:2px solid; }
.hero-corner.br{ bottom:28px; right:24px; border-bottom:2px solid; border-right:2px solid; }

.scroll-cue{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,0.6); border-radius:20px;
  z-index:1;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; width:4px; height:8px; background:var(--orange-500);
  border-radius:2px; transform:translateX(-50%);
  animation:scrollCue 1.8s infinite;
}
@keyframes scrollCue{ 0%{ opacity:1; top:8px;} 70%{opacity:0; top:22px;} 100%{opacity:0; top:8px;} }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section{ padding:100px 0; }
.section-alt{ background:var(--gray-50); }
.section-head{ max-width:720px; margin:0 auto 56px; }
.section-head.reveal{ margin-left:auto; margin-right:auto; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.5rem); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
.about-media{ position:relative; }
.frame-corners{
  position:relative; padding:14px;
}
.frame-corners::before, .frame-corners::after{
  content:""; position:absolute; width:34px; height:34px; border-color:var(--orange-500); z-index:2;
}
.frame-corners::before{ top:0; left:0; border-top:3px solid; border-left:3px solid; }
.frame-corners::after{ bottom:0; right:0; border-bottom:3px solid; border-right:3px solid; }
.frame-corners img{ border-radius:4px; width:100%; height:440px; object-fit:cover; }

.about-badge{
  position:absolute; bottom:-26px; right:-8px;
  background:var(--navy-900); color:var(--white);
  padding:18px 22px; border-radius:8px;
  font-family:var(--font-mono);
  box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; gap:4px;
}
.badge-value{ color:var(--orange-500); font-weight:700; font-size:1.1rem; }
.badge-label{ font-size:0.72rem; color:var(--gray-200); line-height:1.4; }

.pillar-list{ display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; margin:28px 0 32px; }
.pillar-list li{ display:flex; align-items:center; gap:10px; font-weight:600; color:var(--navy-800); font-size:0.95rem; }
.pillar-list .icon{ width:20px; height:20px; padding:3px; background:var(--orange-100); color:var(--orange-600); border-radius:50%; fill:none; stroke:currentColor; stroke-width:3; flex-shrink:0; }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:26px;
}
.service-card{
  position:relative;
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius);
  padding:32px 26px;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before, .service-card::after{
  content:""; position:absolute; width:16px; height:16px; border-color:var(--orange-500); opacity:0; transition:opacity var(--transition);
}
.service-card::before{ top:8px; left:8px; border-top:2px solid; border-left:2px solid; }
.service-card::after{ bottom:8px; right:8px; border-bottom:2px solid; border-right:2px solid; }
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.service-card:hover::before, .service-card:hover::after{ opacity:1; }

.service-icon{
  width:52px; height:52px; border-radius:10px;
  background:var(--navy-900);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  transition:background var(--transition);
}
.service-icon svg{ width:26px; height:26px; fill:none; stroke:var(--orange-500); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.service-card:hover .service-icon{ background:var(--orange-500); }
.service-card:hover .service-icon svg{ stroke:var(--white); }
.service-card h3{ font-size:1.05rem; margin-bottom:10px; }
.service-card p{ font-size:0.9rem; color:var(--gray-500); margin:0; }

/* =========================================================
   WHY US
   ========================================================= */
.why-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:28px; }
.why-card{
  padding:30px 10px 30px 0;
  border-top:2px solid var(--gray-200);
  position:relative;
}
.why-index{
  font-family:var(--font-mono);
  color:var(--orange-500);
  font-weight:700;
  font-size:1.5rem;
  display:block;
  margin-bottom:14px;
}
.why-card h3{ font-size:1.1rem; margin-bottom:8px; }
.why-card p{ color:var(--gray-500); font-size:0.92rem; margin:0; }

/* =========================================================
   PROJECTS GALLERY
   ========================================================= */
.gallery-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
}
.gallery-item{
  position:relative; margin:0; overflow:hidden; border-radius:8px;
  aspect-ratio:4/3;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.5s ease;
}
.gallery-item:hover img{ transform:scale(1.08); }
.gallery-item::before, .gallery-item::after{
  content:""; position:absolute; width:20px; height:20px; border-color:var(--white); z-index:2; opacity:0; transition:opacity var(--transition);
}
.gallery-item::before{ top:10px; left:10px; border-top:2px solid; border-left:2px solid; }
.gallery-item::after{ bottom:10px; right:10px; border-bottom:2px solid; border-right:2px solid; }
.gallery-item:hover::before, .gallery-item:hover::after{ opacity:1; }
.gallery-item figcaption{
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(10,37,64,0.85) 0%, transparent 55%);
  display:flex; align-items:flex-end; padding:18px;
}
.gallery-item figcaption span{
  color:var(--white); font-family:var(--font-mono); font-weight:600; font-size:0.85rem; letter-spacing:0.02em;
}

/* =========================================================
   SERVICE AREAS
   ========================================================= */
.areas-section{ padding-top:70px; padding-bottom:70px; }
.areas-tags{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.areas-tags span{
  font-family:var(--font-mono); font-size:0.85rem; font-weight:500;
  padding:10px 20px; border:1.5px dashed var(--navy-600); border-radius:30px;
  color:var(--navy-800);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:26px; }
.testimonial-card{
  background:var(--white); border-radius:var(--radius); padding:34px 30px;
  border:1px solid var(--gray-200); position:relative;
}
.quote-mark{
  font-family:var(--font-display); font-size:3.5rem; color:var(--orange-100);
  line-height:1; position:absolute; top:14px; right:24px; font-weight:800;
}
.testimonial-card p{ position:relative; z-index:1; color:var(--gray-700); font-size:0.98rem; }
.testimonial-author{ display:flex; flex-direction:column; margin-top:16px; }
.author-name{ font-weight:700; color:var(--navy-900); font-size:0.92rem; }
.author-role{ font-size:0.8rem; color:var(--gray-500); }
.testimonial-note{ text-align:center; color:var(--gray-400); font-size:0.82rem; margin-top:30px; font-style:italic; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:50px; align-items:start; }
.contact-info h3, .contact-form h3{ font-size:1.3rem; margin-bottom:20px; }
.contact-address, .contact-phone{ display:flex; gap:12px; align-items:flex-start; color:var(--gray-700); font-size:0.95rem; margin-bottom:16px; }
.contact-address .icon, .contact-phone .icon{ width:20px; height:20px; flex-shrink:0; margin-top:2px; fill:none; stroke:var(--orange-500); stroke-width:2; }
.contact-buttons{ display:flex; gap:14px; margin:24px 0 28px; }

.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--gray-200); }
.map-embed iframe{ width:100%; height:280px; border:0; display:block; }

.contact-form{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius);
  padding:38px; box-shadow:var(--shadow-sm);
}
.form-row{ margin-bottom:18px; display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:0.85rem; font-weight:600; color:var(--navy-800); }
.form-row input, .form-row textarea{
  padding:12px 14px; border:1.5px solid var(--gray-200); border-radius:6px;
  font-family:var(--font-body); font-size:0.95rem; color:var(--gray-900);
  transition:border-color var(--transition), box-shadow var(--transition);
  width:100%;
}
.form-row input:focus, .form-row textarea:focus{
  border-color:var(--orange-500); outline:none; box-shadow:0 0 0 3px var(--orange-100);
}
.form-row input.invalid, .form-row textarea.invalid{ border-color:#D64545; }
.form-error{ font-size:0.78rem; color:#D64545; min-height:1em; }
.form-status{ margin-top:14px; font-size:0.9rem; font-weight:600; text-align:center; min-height:1.2em; }
.form-status.success{ color:#1E8E4E; }
.form-status.error{ color:#D64545; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--navy-900); color:var(--gray-200); padding-top:70px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 0.8fr 0.8fr 1fr; gap:40px; padding-bottom:50px; }
.footer-logo{ margin-bottom:16px; }
.footer-col p{ color:var(--gray-400); font-size:0.9rem; }
.footer-col h4{ color:var(--white); font-size:0.95rem; letter-spacing:0.05em; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:10px; font-size:0.88rem; color:var(--gray-400); }
.footer-col ul li a{ color:var(--gray-400); transition:color var(--transition); }
.footer-col ul li a:hover{ color:var(--orange-500); }
.footer-contact li{ line-height:1.6; }

.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); padding:22px 0; }
.footer-bottom-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:0.82rem; color:var(--gray-400); }
.footer-tag{ font-family:var(--font-mono); color:var(--gray-400); }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.float-btn{
  position:fixed; right:24px; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); z-index:900; transition:transform var(--transition);
}
.float-btn svg{ width:26px; height:26px; fill:currentColor; }
.float-btn:hover{ transform:scale(1.08); }
.float-whatsapp{ bottom:24px; background:#25D366; color:var(--white); }
.float-call{ bottom:92px; background:var(--navy-900); color:var(--orange-500); }

.back-to-top{
  position:fixed; left:24px; bottom:24px; width:46px; height:46px; border-radius:50%;
  background:var(--white); border:1.5px solid var(--gray-200); box-shadow:var(--shadow-sm);
  display:flex; align-items:center; justify-content:center; z-index:900;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top svg{ width:20px; height:20px; fill:none; stroke:var(--navy-900); stroke-width:2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1024px){
  .service-grid{ grid-template-columns:repeat(2, 1fr); }
  .why-grid{ grid-template-columns:repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
  .about-grid{ gap:40px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .main-nav{
    position:fixed; top:0; right:0; height:100vh; width:min(320px, 80vw);
    background:var(--white); box-shadow:-8px 0 30px rgba(0,0,0,0.12);
    transform:translateX(100%); transition:transform 0.35s ease;
    padding:100px 30px 30px; z-index:999;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:22px; }
  .nav-link{ color:var(--navy-900) !important; font-size:1.05rem; }
  .menu-toggle{ display:flex; }
  .header-cta{ display:none; }

  .about-grid{ grid-template-columns:1fr; }
  .about-badge{ position:static; margin-top:-40px; margin-left:20px; width:fit-content; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .section{ padding:70px 0; }
  .service-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; }
  .testimonial-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .pillar-list{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-corner{ display:none; }
  .float-btn{ width:50px; height:50px; right:16px; }
  .float-whatsapp{ bottom:16px; }
  .float-call{ bottom:78px; }
  .back-to-top{ left:16px; bottom:16px; width:42px; height:42px; }
  .contact-buttons{ flex-direction:column; }
}
