/* =========================================================
   NIKKOPOWER — Monochromatic Stylesheet
   A single warm-anthracite hue, varied only in lightness.
   Signature: chamfered "panel-corner" cards + a faint
   solar-cell dot grid behind the hero, echoing PV hardware.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* ---- Monochrome scale (single warm-graphite hue, hsl(30°)) ---- */
  --ink-950: hsl(30, 14%, 7%);
  --ink-900: hsl(29, 12%, 11%);
  --ink-800: hsl(28, 10%, 17%);
  --ink-700: hsl(28, 9%, 27%);
  --ink-600: hsl(28, 8%, 38%);
  --ink-500: hsl(28, 7%, 48%);
  --ink-400: hsl(28, 8%, 60%);
  --ink-300: hsl(29, 11%, 74%);
  --ink-200: hsl(30, 15%, 86%);
  --ink-150: hsl(32, 18%, 91%);
  --ink-100: hsl(33, 22%, 95%);
  --ink-50:  hsl(36, 28%, 98%);
  --white:   #ffffff;

  /* ---- Semantic tokens ---- */
  --bg:            var(--ink-50);
  --bg-alt:        var(--ink-100);
  --surface:       var(--white);
  --text:          var(--ink-950);
  --text-muted:    var(--ink-600);
  --text-faint:    var(--ink-500);
  --border:        var(--ink-200);
  --border-strong: var(--ink-800);

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* ---- Shape / rhythm ---- */
  --chamfer: 18px;
  --radius-sm: 4px;
  --gap: 1.5rem;
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
  --shadow-card: 0 1px 2px hsla(30, 14%, 7%, 0.04), 0 12px 28px -18px hsla(30, 14%, 7%, 0.25);
}

/* =========================== Reset =========================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================== Buttons =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  background: var(--ink-950);
  color: var(--white);
  border: 1px solid var(--ink-950);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.btn:hover {
  background: var(--ink-800);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--ink-950);
  border: 1px solid var(--ink-800);
}
.btn-outline:hover {
  background: var(--ink-950);
  color: var(--white);
}

/* =========================== Navbar =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(36, 28%, 98%, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo img { width: 30px; height: 30px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink-950);
  transition: right 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after { right: 0; }

.nav-cta { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: fixed;
  top: 14px;
  right: 1.25rem;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink-950);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================== Hero =========================== */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  /* faint solar-cell dot grid — the page's one textural signature */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink-300) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 78% 30%, #000 0%, transparent 72%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  max-width: 14ch;
}
.hero-text p {
  max-width: 46ch;
  font-size: 1.02rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  max-width: 22ch;
}

.hero-highlight {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  padding: 2.2rem 2rem;
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.hero-highlight h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.hero-highlight ul { display: flex; flex-direction: column; gap: 0.9rem; }
.hero-highlight li {
  font-size: 0.92rem;
  color: var(--ink-200);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}
.hero-highlight li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

/* =========================== Sections =========================== */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 20ch;
}
.section-subtitle {
  max-width: 52ch;
  font-size: 1rem;
  margin-bottom: 2.8rem;
}

/* =========================== Services =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.92rem; margin: 0; }

.process {
  border-top: 1px solid var(--border);
  padding-top: 2.6rem;
}
.process h3 {
  font-size: 1.2rem;
  margin-bottom: 1.6rem;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.process-steps li {
  counter-increment: step;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 2.4rem;
  position: relative;
  border-top: 1px solid var(--border-strong);
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.78em;
  left: 0;
  background: var(--bg);
  padding-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.process-steps strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* =========================== Calculator =========================== */
.calc-card {
  background: var(--ink-950);
  color: var(--white);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.calc-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; }
.calc-group label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  text-transform: uppercase;
}
.calc-group input {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  color: var(--white);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}
.calc-group input::placeholder { color: var(--ink-600); }
.calc-group input:focus {
  outline: none;
  border-color: var(--white);
}

#calc-btn {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--white);
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}
#calc-btn:hover { background: var(--ink-150); }
#calc-btn::after { background: var(--ink-950); }

.calc-result {
  margin-top: 1.5rem;
  min-height: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-100);
}
.calc-result:not(:empty) {
  padding-top: 1.3rem;
  border-top: 1px dashed var(--ink-700);
}

/* =========================== About =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid h3 {
  font-size: 1rem;
  margin-top: 1.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-strong);
}
.about-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.about-list li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.about-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.team h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink-950);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
}
.team-card h4 {
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.team-card p { font-size: 0.86rem; margin: 0; }

/* =========================== Contact =========================== */
.contact-form {
  max-width: 700px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-950);
  background: var(--surface);
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* =========================== Footer =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  background: var(--bg-alt);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-content p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* =========================== WhatsApp Float =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-950);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px -8px hsla(30, 14%, 7%, 0.4);
  z-index: 55;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  background: var(--ink-800);
  transform: translateY(-3px) scale(1.04);
}

/* =========================== Responsive =========================== */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }

  .calc-row,
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}