/* ======================================================
   KIPL Technologies — Global Theme (Krishna Communications Style)
   Version: 1.0 | Author: KIPL Web Team
   ====================================================== */

:root {
  --grad-start: #0B63B3;
  --grad-2: #1AA05A;
  --grad-3: #F3C022;
  --grad-4: #F48B1F;
  --grad-end: #E94B3C;
  --brand-dark: #0b3f6f;
  --text: #222;
  --muted: #66676a;
  --max-width: 1200px;
  --hero-height: 520px;
  --font-main: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* === Global reset and typography === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  font-family: var(--font-main);
  color: var(--text);
  background: #fff;
  scroll-behavior: smooth;
  line-height: 1.5;
}
a {
  color: var(--grad-start);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Layout Containers === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
}

/* === Header and Navigation === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 56px;
}
.nav a {
  margin-left: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: var(--grad-start);
}

/* === Hero Section === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 48px 20px;
  min-height: var(--hero-height);
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(11, 99, 179, 0.95) 0%,
    rgba(26, 160, 90, 0.85) 35%,
    rgba(243, 192, 34, 0.75) 65%,
    rgba(244, 139, 31, 0.6) 85%,
    rgba(233, 75, 60, 0.55) 100%
  );
  color: #fff;
}

/* Subtle fiber overlay texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/bg-fiber.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Semi-transparent overlay to ensure text readability */
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 25, 0.28),
    rgba(3, 10, 25, 0.28)
  );
  pointer-events: none;
}
.hero .left,
.hero .right {
  position: relative;
  z-index: 2;
}

/* Hero Text */
.hero h1 {
  font-size: 48px;
  line-height: 1.02;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  margin-bottom: 18px;
}

/* CTA Button */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-2));
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(11, 63, 111, 0.12);
}
.cta:hover {
  opacity: 0.9;
}

/* === Feature Cards === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.card {
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #f0f0f0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 63, 111, 0.03);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(11, 63, 111, 0.08);
}
.card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* === Grid and Form Styles === */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-2));
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.9;
}

/* === Footer === */
.footer {
  border-top: 1px solid #eee;
  padding: 26px 0;
  margin-top: 36px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.small {
  font-size: 14px;
}
.tagline {
  color: var(--muted);
  font-weight: 600;
}

/* === Gradient Text Effect === */
.kipl-gradient {
  background: linear-gradient(
    90deg,
    var(--grad-start),
    var(--grad-2),
    var(--grad-3),
    var(--grad-4),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Meta Text === */
.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

/* === Responsive Tweaks === */
@media (max-width: 900px) {
  :root {
    --hero-height: 420px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 480px) {
  :root {
    --hero-height: 360px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--muted);
}
.mt-2 {
  margin-top: 12px;
}
.mt-3 {
  margin-top: 18px;
}
.mt-4 {
  margin-top: 24px;
}
