/* =========================================================
   KEDIL TECHNO CRAFTS — Design System
   Brand palette derived from company ID card (green / navy)
   ========================================================= */

:root {
  /* Brand colors */
  --green-900: #0f3d2e;
  --green-800: #145c3c;
  --green-700: #1c7a4c;
  --green-600: #229358;
  --green-500: #2ea862;
  --green-400: #4fc47f;
  --green-300: #8adba7;
  --green-100: #e6f6ec;

  --navy-900: #0d1b2e;
  --navy-800: #132a45;
  --navy-700: #1b3a5c;
  --navy-600: #234a72;
  --navy-500: #2f5c8a;

  --ink: #12202f;
  --ink-soft: #45566b;
  --paper: #ffffff;
  --paper-soft: #f6f9f8;
  --paper-tint: #eef5f1;
  --line: #e2e9e6;

  --gradient-brand: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 35%, var(--green-800) 75%, var(--green-600) 100%);
  --gradient-brand-soft: linear-gradient(135deg, var(--green-100) 0%, #ffffff 60%);

  --shadow-sm: 0 2px 8px rgba(13, 27, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 46, 0.10);
  --shadow-lg: 0 20px 48px rgba(13, 27, 46, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { color: var(--ink-soft); }

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

section { padding: 96px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-500);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-head p { font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--line);
}
.btn-outline-dark:hover { background: var(--paper-tint); border-color: var(--green-500); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
#site-header { position: sticky; top: 0; z-index: 500; }
.nav-wrap {
  background: rgba(13, 27, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: 0.01em; }
.brand-text span { color: var(--green-400); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--green-400); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-900);
  padding: 10px 28px 24px;
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .nav-cta-btn { display: none; }
  .nav-toggle { display: flex; }
}

.nav-dropdown { display: flex; align-items: center; }
.dropdown-panel {
  position: absolute;
  top: 34px; left: 50%; transform: translateX(-50%);
  width: 340px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-panel { display: flex; }
.dropdown-panel a {
  color: var(--ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 11px 14px !important;
  border-radius: 8px;
}
.dropdown-panel a:hover { background: var(--paper-tint); color: var(--green-700) !important; }

/* =========================================================
   HOME HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--gradient-brand);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(79, 196, 127, 0.28), transparent 45%),
                     radial-gradient(circle at 10% 85%, rgba(47, 92, 138, 0.35), transparent 50%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  opacity: 0.10;
  background-image: linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 22px;
}
.hero-eyebrow::before { content:""; width: 22px; height: 2px; background: var(--green-400); }

.hero-rotator {
  min-height: 3.4em;
  display: flex;
  align-items: flex-start;
}
.hero-rotator h1 {
  font-size: clamp(30px, 4vw, 46px);
  color: #fff;
  font-weight: 700;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-rotator h1 .accent { color: var(--green-400); }
.hero-rotator.fade-out h1 { opacity: 0; transform: translateY(8px); }
.hero-rotator.fade-in h1 { opacity: 1; transform: translateY(0); }

.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  margin: 22px 0 14px;
  max-width: 560px;
}
.hero-copy {
  font-size: 16px;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: background .2s ease, width .2s ease;
}
.hero-dots button.active { background: var(--green-400); width: 40px; }

.hero-art { position: relative; }

/* =========================================================
   PROBLEM CARDS (home)
   ========================================================= */
.problems-section { background: var(--paper-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.problem-card .num {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700; color: var(--green-600);
  letter-spacing: 0.05em;
}
.problem-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--paper-tint);
  display: flex; align-items: center; justify-content: center;
}
.problem-card .icon-wrap svg { width: 28px; height: 28px; }
.problem-card h3 { font-size: 19px; margin-top: 2px; }
.problem-card p { font-size: 14.5px; }
.problem-card .card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy-800);
}
.problem-card .card-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.problem-card:hover .card-link svg { transform: translateX(4px); }
.problem-card:hover .card-link { color: var(--green-600); }

/* =========================================================
   DOMAINS STRIP
   ========================================================= */
.domains-strip { background: var(--navy-900); color: #fff; padding: 56px 0; }
.domains-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.domains-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-300); flex-shrink: 0; }
.domains-list { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.domains-list span { font-size: 15px; color: rgba(255,255,255,0.8); font-weight: 500; }

/* =========================================================
   GENERIC SPLIT SECTION (image/illustration + text)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-art { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-art { order: 0; }
}
.split-art { background: var(--paper-tint); border-radius: var(--radius-lg); padding: 30px; }

.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; color: var(--ink);
}
.feature-list li .tick {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
}
.feature-list li .tick svg { width: 12px; height: 12px; color: var(--green-700); }

.tagline-box {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--green-500);
  background: var(--paper-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 16px;
}

/* =========================================================
   SOLUTION PAGE — HERO
   ========================================================= */
.solution-hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.solution-hero::before {
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(79,196,127,0.25), transparent 45%);
}
.breadcrumb {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,0.6);
  margin-bottom: 26px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.solution-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 940px) { .solution-hero-grid { grid-template-columns: 1fr; } }

.problem-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-900);
  background: var(--green-400);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.solution-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 18px;
}
.solution-hero .lede {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 30px;
}
.solution-art-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}

/* =========================================================
   CAPABILITY CARDS GRID
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cap-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cap-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cap-card .icon-wrap svg { width: 24px; height: 24px; color: var(--green-700); }
.cap-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.cap-card p { font-size: 14px; }

/* Compact list-style capability (for long bullet lists) */
.cap-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 28px;
}
.cap-list-grid .item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--paper-soft);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.cap-list-grid .item .tick {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: var(--green-500);
  display: flex; align-items: center; justify-content: center;
}
.cap-list-grid .item .tick svg { width: 11px; height: 11px; color: #fff; }

/* =========================================================
   EXPERTISE ACCORDION (hardware page)
   ========================================================= */
.expertise-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.expertise-tab-btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .18s ease;
}
.expertise-tab-btn.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.expertise-panel { display: none; }
.expertise-panel.active { display: block; animation: fadein .3s ease; }
@keyframes fadein { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform: translateY(0);} }

/* =========================================================
   APPROACH / PROCESS STEPS
   ========================================================= */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) { .approach-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach-steps { grid-template-columns: 1fr; } }
.approach-step {
  position: relative;
  padding: 28px 22px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.approach-step .step-num {
  font-family: var(--font-head);
  font-size: 34px; font-weight: 700;
  color: var(--green-100);
  -webkit-text-stroke: 1.5px var(--green-400);
  margin-bottom: 10px;
  display: block;
}
.approach-step h4 { font-size: 16px; margin-bottom: 8px; }
.approach-step p { font-size: 13.5px; }

/* =========================================================
   DOMAIN PILLS
   ========================================================= */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--navy-800);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* =========================================================
   CLOSING / CTA BANNER
   ========================================================= */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content:"";
  position: absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(79,196,127,0.25), transparent 40%);
}
.cta-band-text { position: relative; max-width: 560px; }
.cta-band h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 15px; }
.cta-band-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

.tagline-final {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  font-size: clamp(20px, 2.4vw, 27px);
  max-width: 780px;
  margin: 0 auto 44px;
  line-height: 1.4;
}
.tagline-final .accent { color: var(--green-600); }

/* =========================================================
   OTHER SOLUTIONS (cross-links at bottom of solution pages)
   ========================================================= */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: all .18s ease;
}
.related-card:hover { background: #fff; box-shadow: var(--shadow-sm); border-color: var(--green-500); color: var(--green-700); }
.related-card svg { width: 15px; height: 15px; flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
footer#site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); }
.footer-top {
  padding: 70px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h5 {
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--green-400); }
.footer-col .addr { line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--green-500); }

/* =========================================================
   MISC / ABOUT-STYLE PAGE BLOCKS (contact)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--green-100); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-row .icon-wrap svg { width: 20px; height: 20px; color: var(--green-700); }
.info-row h5 { font-size: 14.5px; color: var(--navy-900); margin-bottom: 4px; }
.info-row p { font-size: 14.5px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
