/* ==========================================================================
   SKS TECHNOLOGY — design system
   A solar/wind EPC firm in Bhubaneswar. The identity is built around the
   thing that actually defines the business: the sun's path across the sky,
   rendered like a siting engineer's working drawing rather than a generic
   marketing site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* colour */
  --ink: #0E1B2A;
  --ink-raised: #172B40;
  --ink-line: rgba(255,255,255,0.14);
  --ink-text: #EDEFEF;
  --ink-text-soft: #A9B7C4;

  --paper: #F5EFE1;
  --paper-raised: #ECE2C9;
  --paper-line: #DACD9F;
  --slate: #202B36;
  --slate-soft: #5B6976;

  --gold: #E39A2F;
  --gold-deep: #A6650F;
  --ember: #C9552E;

  --radius-sm: 3px;
  --radius-md: 6px;

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  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; }
button{ font: inherit; cursor: pointer; }
input, textarea, select{ font: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }

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

:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px){ .wrap{ padding: 0 18px; } }

/* ---------- type scale ---------- */
.h1{ font-size: clamp(2.1rem, 4.6vw, 3.85rem); }
.h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.h3{ font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lede{ font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--slate-soft); max-width: 46ch; line-height: 1.65; }
.mono-tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mono-tag .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.on-dark .mono-tag{ color: var(--gold); }
.on-dark .mono-tag .dot{ background: var(--gold); box-shadow: 0 0 0 3px rgba(227,154,47,0.18); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-gold{ background: var(--gold); color: #201200; }
.btn-gold:hover{ background: #eea94a; }
.btn-outline-dark{ border-color: rgba(255,255,255,0.35); color: var(--ink-text); }
.btn-outline-dark:hover{ border-color: var(--gold); color: var(--gold); }
.btn-outline-light{ border-color: var(--paper-line); color: var(--slate); }
.btn-outline-light:hover{ border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-ink{ background: var(--ink); color: var(--ink-text); }
.btn-ink:hover{ background: #1c3149; }
.btn-block{ width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(14,27,42,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .bar{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ width: 38px; height: 38px; flex-shrink: 0; }
.brand-word{ font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink-text); line-height: 1; }
.brand-word span{ color: var(--gold); }
.brand-tag{ font-size: 0.68rem; color: var(--ink-text-soft); margin-top: 3px; }

.nav{ display: flex; align-items: center; gap: 34px; }
.nav a{
  font-size: 0.9rem; font-weight: 500; color: var(--ink-text-soft);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover{ color: var(--ink-text); }
.nav a.active{ color: var(--ink-text); border-color: var(--gold); }

.head-actions{ display: flex; align-items: center; gap: 14px; }
.nav-toggle{
  display: none; background: none; border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink-text);
}
.nav-toggle svg{ width: 20px; height: 20px; }

.mobile-menu{
  display: none;
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  padding: 10px 0 18px;
}
.mobile-menu.open{ display: block; }
.mobile-menu a{
  display: block; padding: 12px 24px; font-weight: 500; color: var(--ink-text-soft); border-left: 2px solid transparent;
}
.mobile-menu a.active{ color: var(--ink-text); border-color: var(--gold); background: rgba(255,255,255,0.03); }

@media (max-width: 880px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .head-actions .btn-gold{ display: none; }
}

body{ padding-top: 76px; }

/* ==========================================================================
   Sections shared
   ========================================================================== */
.section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-ink{ background: var(--ink); color: var(--ink-text); }
.section-ink .lede{ color: var(--ink-text-soft); }
.section-raised{ background: var(--paper-raised); }
.divider-line{ border: none; border-top: 1px solid var(--paper-line); }
.on-dark hr{ border-top-color: var(--ink-line); }

.section-head{
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 44px; flex-wrap: wrap;
}
@media (max-width: 640px){ .section{ padding: 60px 0; } .section-head{ margin-bottom: 30px; } }

/* ==========================================================================
   Hero (index) — the sun-path instrument
   ========================================================================== */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  padding: 64px 0 0;
}
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-inner{ position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 980px){ .hero-inner{ grid-template-columns: 1fr; } }

.hero-copy p.lede{ margin: 20px 0 32px; }
.hero-copy h1{ margin-top: 18px; }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }

.sunpath-card{
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
}
.sunpath-head{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sunpath-head h3{ font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--ink-text); }
.sunpath-head .mono-tag{ font-size: 0.68rem; }
.sunpath-svg{ width: 100%; height: auto; margin: 10px 0 4px; }
.sunpath-readout{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sunpath-readout div{ border-top: 1px solid var(--ink-line); padding-top: 10px; }
.sunpath-readout .figure{ font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold); }
.sunpath-readout .label{ font-size: 0.68rem; color: var(--ink-text-soft); margin-top: 2px; }
.sunpath-note{ font-size: 0.76rem; color: var(--ink-text-soft); margin-top: 14px; line-height: 1.55; }

.stats-strip{
  position: relative; z-index: 2;
  border-top: 1px solid var(--ink-line);
  margin-top: 56px;
}
.stats-strip .wrap{ display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip .stat{ padding: 24px 20px; border-left: 1px solid var(--ink-line); }
.stats-strip .stat:first-child{ border-left: none; padding-left: 0; }
.stats-strip .figure{ font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); }
.stats-strip .label{ font-size: 0.74rem; color: var(--ink-text-soft); margin-top: 4px; }
@media (max-width: 720px){
  .stats-strip .wrap{ grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(3){ border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Cards: services / projects
   ========================================================================== */
.service-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.service-card{
  background: var(--paper); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: background-color 0.15s ease;
}
.service-card:hover{ background: var(--paper-raised); }
.service-icon{ width: 42px; height: 42px; color: var(--gold-deep); }
.service-card h3{ font-size: 1.1rem; }
.service-card p{ color: var(--slate-soft); font-size: 0.92rem; }
@media (max-width: 900px){ .service-row{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .service-row{ grid-template-columns: 1fr; } }

.project-feature{
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.project-feature .img-pane{ position: relative; min-height: 340px; overflow: hidden; }
.project-feature .img-pane img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project-feature .copy-pane{ background: var(--ink); color: var(--ink-text); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-width: 800px){ .project-feature{ grid-template-columns: 1fr; } .project-feature .img-pane{ min-height: 220px; } }

.project-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .project-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .project-grid{ grid-template-columns: 1fr; } }

.project-card{ border: 1px solid var(--paper-line); background: var(--paper); overflow: hidden; }
.project-card .thumb{ position: relative; height: 190px; overflow: hidden; }
.project-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .thumb img{ transform: scale(1.05); }
.project-card .thumb .tag{
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--gold);
  font-family: var(--font-mono); font-size: 0.68rem; padding: 5px 9px; border-radius: 2px;
}
.project-card .body{ padding: 20px; }
.project-card h3{ font-size: 1.05rem; margin-bottom: 6px; }
.project-card p{ font-size: 0.86rem; color: var(--slate-soft); margin-bottom: 14px; }
.project-card .metrics{ display: flex; gap: 18px; border-top: 1px solid var(--paper-line); padding-top: 12px; }
.project-card .metrics div{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-soft); }
.project-card .metrics b{ display: block; font-family: var(--font-body); font-size: 0.95rem; color: var(--slate); font-weight: 600; }

.filter-bar{ display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip{
  border: 1px solid var(--paper-line); background: transparent; color: var(--slate-soft);
  padding: 9px 16px; border-radius: 999px; font-size: 0.84rem; font-weight: 500;
  transition: all 0.15s ease;
}
.filter-chip.active, .filter-chip:hover{ background: var(--ink); border-color: var(--ink); color: var(--ink-text); }

/* ==========================================================================
   Process (blueprint flow)
   ========================================================================== */
.process-flow{ position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-flow::before{
  content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(to right, var(--gold) 0 8px, transparent 8px 16px);
  z-index: 0;
}
@media (max-width: 860px){ .process-flow{ grid-template-columns: repeat(2, 1fr); } .process-flow::before{ display: none; } }
@media (max-width: 520px){ .process-flow{ grid-template-columns: 1fr; } }
.process-step{ position: relative; z-index: 1; }
.process-step .num{
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink);
  background: var(--gold); width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.process-step h4{ font-size: 1.05rem; margin-bottom: 8px; color: var(--ink-text); }
.process-step p{ font-size: 0.88rem; color: var(--ink-text-soft); }

/* ==========================================================================
   Calculator (services page)
   ========================================================================== */
.calc-panel{
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--paper-line); background: var(--paper);
}
@media (max-width: 800px){ .calc-panel{ grid-template-columns: 1fr; } }
.calc-form{ padding: 40px; border-right: 1px solid var(--paper-line); }
.calc-result{ padding: 40px; background: var(--ink); color: var(--ink-text); }
@media (max-width: 800px){ .calc-form{ border-right: none; border-bottom: 1px solid var(--paper-line); } }

.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; color: var(--slate); }
.field .hint{ font-size: 0.76rem; color: var(--slate-soft); margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea, .field select{
  width: 100%; border: 1px solid var(--paper-line); background: #fff; padding: 12px 14px;
  border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--slate);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--gold-deep); }
.range-row{ display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"]{ flex: 1; accent-color: var(--gold-deep); }
.range-row .val{ font-family: var(--font-mono); font-size: 0.95rem; min-width: 88px; text-align: right; }

.calc-result .figure-big{ font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.calc-result .figure-label{ font-size: 0.78rem; color: var(--ink-text-soft); margin-top: 6px; margin-bottom: 24px; }
.calc-result .sub-metrics{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--ink-line); padding-top: 20px; }
.calc-result .sub-metrics .m-figure{ font-family: var(--font-mono); font-size: 1.25rem; color: var(--ink-text); }
.calc-result .sub-metrics .m-label{ font-size: 0.72rem; color: var(--ink-text-soft); margin-top: 3px; }
.calc-disclaimer{ font-size: 0.72rem; color: var(--ink-text-soft); margin-top: 24px; line-height: 1.5; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-item{ border-bottom: 1px solid var(--paper-line); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; color: var(--slate);
}
.faq-q .icon{ width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--gold-deep); }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner{ padding-bottom: 20px; color: var(--slate-soft); font-size: 0.92rem; max-width: 62ch; }
.faq-item.open .faq-a{ max-height: 240px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info-item{ display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
.contact-info-item .ico{ width: 40px; height: 40px; border: 1px solid var(--paper-line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gold-deep); flex-shrink: 0; }
.contact-info-item .label{ font-size: 0.72rem; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-info-item .value{ font-weight: 600; margin-top: 2px; }
.map-frame{ margin-top: 24px; border: 1px solid var(--paper-line); height: 260px; position: relative; overflow: hidden; }
.map-frame img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) sepia(0.15); }
.map-pin{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%); }
.map-pin .dot{ width: 16px; height: 16px; background: var(--ember); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.map-pin .ping{ position: absolute; inset: -8px; border-radius: 50%; background: var(--ember); opacity: 0.35; animation: ping 2s ease-out infinite; }
@keyframes ping{ 0%{ transform: scale(0.4); opacity: 0.5; } 100%{ transform: scale(1.8); opacity: 0; } }

.form-status{ margin-top: 16px; font-size: 0.88rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.show{ display: block; }
.form-status.ok{ background: #E9F3E8; color: #245A2A; border: 1px solid #BFDDBB; }
.form-status.err{ background: #FBEAE6; color: #8A2E17; border: 1px solid #F0C3B7; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner{ background: var(--ink); color: var(--ink-text); padding: 70px 0; text-align: center; }
.cta-banner h2{ margin-bottom: 16px; }
.cta-banner .lede{ margin: 0 auto 34px; color: var(--ink-text-soft); }
.cta-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--ink); color: var(--ink-text-soft); padding: 60px 0 26px; border-top: 1px solid var(--ink-line); }
.footer-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h5{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-text); margin-bottom: 16px; font-weight: 600; font-family: var(--font-body); }
.footer-grid li{ margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover{ color: var(--ink-text); }
.footer-brand p{ font-size: 0.88rem; margin: 14px 0 18px; max-width: 32ch; }
.footer-bottom{ border-top: 1px solid var(--ink-line); margin-top: 44px; padding-top: 22px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social-row{ display: flex; gap: 10px; margin-top: 6px; }
.social-row a{ width: 36px; height: 36px; border: 1px solid var(--ink-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, color 0.15s ease; }
.social-row a:hover{ border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover{ transform: translateY(-3px); }
.wa-float svg{ width: 26px; height: 26px; }

/* misc */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.center-head{ max-width: 640px; margin: 0 auto 44px; text-align: center; }
.center-head .lede{ max-width: 56ch; margin: 14px auto 0; }
