/*
Theme Name: Januki Technologies
Theme URI: https://januki.com
Author: Januki Technologies
Description: A modern IT solutions theme — clean black and white design.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: bheles
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== VARIABLES ========== */
:root {
  --black:     #000000;
  --ink:       #111111;
  --dark:      #222222;
  --mid:       #555555;
  --soft:      #888888;
  --border:    #e2e2e2;
  --bg-soft:   #f5f5f5;
  --bg-white:  #ffffff;
  --radius:    6px;
  --shadow:    0 1px 8px rgba(0,0,0,0.07);
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
p { color: var(--mid); }

/* ========== HEADER / NAV ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border);
  padding-right: 28px;
  margin-right: 24px;
  flex-shrink: 0;
  overflow: visible;
}
.nav-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo img,
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img {
  height: 130px !important;
  width: auto !important;
  max-height: 130px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: -25px -20px !important;
}
.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap !important;
  display: inline-block;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--black); }
.nav-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-contact svg { width: 17px; height: 17px; flex-shrink: 0; stroke: var(--soft); }
.nav-contact a { color: var(--ink); transition: opacity 0.15s; }
.nav-contact a:hover { opacity: 0.6; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: all 0.25s; }

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}
/* Vignette — darkens edges so text stays readable */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-content h1 span { color: rgba(255,255,255,0.38); font-weight: 400; }
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff;
  color: #000;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: transparent; color: #fff; }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.55); color: #fff; }

/* ========== SECTION COMMONS ========== */
.section-wrap { padding: 96px 24px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 52px;
  letter-spacing: -0.025em;
}
.section-title span { color: var(--ink); }

/* ========== SERVICES ========== */
#services { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: #fff;
  padding: 36px 30px;
  transition: background 0.22s, color 0.22s;
  cursor: default;
}
.service-card:hover { background: var(--ink); }
.service-card:hover h3 { color: #fff; }
.service-card:hover p  { color: rgba(255,255,255,0.5); }
.service-card:hover .service-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.service-card:hover .service-icon svg { stroke: #fff; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all 0.22s;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: stroke 0.22s; }
.service-card h3 { font-size: 0.98rem; margin-bottom: 10px; color: var(--ink); font-weight: 600; transition: color 0.22s; }
.service-card p  { font-size: 0.87rem; line-height: 1.68; transition: color 0.22s; }

/* ========== ABOUT ========== */
#about { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .section-title { margin-bottom: 16px; }
.about-text > p { margin-bottom: 28px; font-size: 0.96rem; line-height: 1.78; }
.about-checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.about-checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: var(--dark); font-weight: 500;
}
.about-checklist li::before {
  content: '';
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
/* Stats box — pure black */
.stats-box {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.stat-item { padding: 34px 20px; text-align: center; background: #1a1a1a; }
.stat-item:first-child  { border-radius: 4px 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 4px 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 4px; }
.stat-item:last-child   { border-radius: 0 0 4px 0; }
.stat-number { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.04em; }
.stat-label  { font-size: 0.75rem; color: rgba(255,255,255,0.38); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ========== CONTACT ========== */
#contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info p { margin-bottom: 28px; font-size: 0.96rem; line-height: 1.78; }
.contact-email {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.contact-email-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-email-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-email span { font-size: 0.72rem; color: var(--soft); display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.contact-email a { color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.contact-email a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem; font-family: inherit;
  background: #fff; transition: border-color 0.2s; color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; letter-spacing: 0.01em;
}
.contact-form button:hover { background: transparent; color: var(--ink); }
.contact-form button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: stroke 0.2s; }

/* ========== FOOTER — PURE BLACK ========== */
#site-footer {
  background: #000;
  color: rgba(255,255,255,0.45);
  padding: 64px 24px 32px;
  border-top: 1px solid #1a1a1a;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}

/* Logo in footer — invert so black logo shows white on black bg */
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img,
.footer-brand .custom-logo,
.footer-brand .custom-logo-link img {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  max-width: none !important;
  margin: -18px -15px !important;
  object-fit: contain;
  display: block;
  filter: invert(1);
}
.footer-brand-name { color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,0.32); max-width: 280px; }

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 0.86rem; color: rgba(255,255,255,0.38); transition: color 0.18s; }
.footer-col ul a:hover { color: #fff; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.86rem; color: rgba(255,255,255,0.38);
  margin-bottom: 12px; line-height: 1.5;
}
.footer-contact-item svg {
  width: 15px; height: 15px;
  stroke: rgba(255,255,255,0.3);
  fill: none; stroke-width: 1.8;
  flex-shrink: 0; margin-top: 2px;
}
.footer-contact-item a { color: rgba(255,255,255,0.38); transition: color 0.18s; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links, .nav-contact { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; padding: 20px 24px;
    border-bottom: 1px solid var(--border); z-index: 999;
  }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .stats-box { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ========== CONTACT FORM ALWAYS VISIBLE ========== */
.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form button,
#sendMailBtn {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
