@import url("whatsapp-chat.css");
@import url("pdf-download.css");

:root {
  --primary: #0c2340;
  --primary-dark: #081828;
  --accent: #e8a317;
  --accent-hover: #c98a0f;
  --light: #f4f7fb;
  --text: #2c3e50;
  --muted: #6c7a89;
  --white: #fff;
  --danger: #c0392b;
  --success: #27ae60;
  --shadow: 0 8px 30px rgba(12, 35, 64, 0.12);
  --radius: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity: 1; }

/* Emergency banner */
.emergency-banner {
  background: var(--danger);
  color: var(--white);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.emergency-banner a { color: var(--white); text-decoration: underline; }

/* Navbar */
.navbar-kp {
  background: var(--primary) !important;
  padding: 0.65rem 0;
  box-shadow: var(--shadow);
}
.navbar-kp .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white) !important;
  letter-spacing: 0.03em;
}
.navbar-kp .navbar-brand span { color: var(--accent); }
.navbar-kp .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
}
.navbar-kp .nav-link:hover { color: var(--accent) !important; }
.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
}
.btn-accent:hover { background: var(--accent-hover); color: var(--primary-dark); }
.btn-outline-light-kp {
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  font-weight: 600;
}
.btn-outline-light-kp:hover { background: var(--white); color: var(--primary); }

/* Hero */
.hero-kp {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a4a6e 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero-kp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
}
.hero-kp .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hero-kp h1 { font-size: clamp(1.85rem, 4.5vw, 2.85rem); font-weight: 800; line-height: 1.2; }
.hero-kp .lead { font-size: 1.1rem; opacity: 0.92; max-width: 620px; }

/* Sections */
.section-kp { padding: 4.5rem 0; }
.section-kp.alt { background: var(--light); }
.section-title-kp {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-sub-kp { color: var(--muted); max-width: 640px; margin-bottom: 2rem; }

/* Cards */
.card-kp {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card-kp:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(12,35,64,0.16); }
.card-kp .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-kp h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* Stats */
.stat-box {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-box .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-box .label { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* Why us */
.why-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.why-item i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 0.75rem; }

/* Client logos */
.client-logo {
  background: var(--white);
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-kp .accordion-button { font-weight: 600; color: var(--primary); }
.faq-kp .accordion-button:not(.collapsed) {
  background: var(--light);
  color: var(--primary);
  box-shadow: none;
}

/* Blog */
.blog-card img { height: 200px; object-fit: cover; width: 100%; }
.blog-content h1 { color: var(--primary); font-weight: 800; }
.blog-toc {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-bottom: 2rem;
}
.blog-toc ol { margin: 0; padding-left: 1.25rem; }
.blog-featured-img {
  height: 320px;
  background: linear-gradient(135deg, var(--primary), #1a4a6e);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; }

/* Contact form */
.form-kp .form-control, .form-kp .form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #dde3ea;
}
.form-kp .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(232, 163, 23, 0.25);
}

/* Footer */
.footer-kp {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 0;
}
.footer-kp h5 { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.footer-kp a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-kp a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Floating widgets */
.float-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.float-whatsapp:hover { transform: scale(1.08); color: var(--white); }
.float-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.sticky-inquiry {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1040;
  display: none;
}
@media (max-width: 768px) {
  .sticky-inquiry { display: block; }
  .sticky-inquiry .btn { box-shadow: 0 4px 20px rgba(0,0,0,0.3); padding: 0.65rem 1.5rem; }
}
body { padding-bottom: 70px; }
@media (min-width: 769px) { body { padding-bottom: 0; } }

/* Breadcrumb */
.breadcrumb-kp {
  background: transparent;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}
.breadcrumb-kp a { color: var(--muted); }

/* Location page */
.area-tag {
  display: inline-block;
  background: var(--light);
  border: 1px solid #e0e6ed;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin: 0.25rem;
}
.project-list li { margin-bottom: 0.5rem; }

/* Popup */
.quote-popup .modal-header { background: var(--primary); color: var(--white); }
.quote-popup .btn-close { filter: invert(1); }

/* Swiper overrides */
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* Page header inner */
.page-hero {
  background: var(--light);
  padding: 2.5rem 0;
  border-bottom: 1px solid #e8ecf1;
}
.page-hero h1 { color: var(--primary); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Minified note: production use build step; single file for deploy simplicity */
/* Brochure / company profile */
.brand-block {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.brand-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.brand-block .tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.feature-pills span {
  background: var(--light);
  border: 1px solid #dde3ea;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.service-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.service-block h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.project-card-full {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.project-card-full h3 {
  font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.project-card-full ul {
  margin: 0;
  padding-left: 1.2rem;
}
.project-card-full li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

/* Featured milestone project — KRE Arihant underground cabling */
.project-featured {
  background: linear-gradient(135deg, var(--primary) 0%, #163d6b 100%);
  color: var(--white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--accent);
  height: 100%;
}
.project-featured-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.project-featured h2 {
  color: var(--white);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}
.project-featured-sub {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1rem;
}
.project-featured p,
.project-featured li {
  color: rgba(255, 255, 255, 0.92);
}
.project-captions {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.project-captions li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.project-captions li::before {
  content: "\f0e7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}
.project-featured ul:not(.project-captions) {
  margin: 1rem 0;
  padding-left: 1.2rem;
}
.project-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.project-hashtags .hashtag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(232, 163, 23, 0.35);
}
.project-card-highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.2), var(--shadow);
}
.project-highlight-strip {
  background: linear-gradient(90deg, var(--accent) 0%, #f5c842 100%);
  color: var(--primary-dark);
  padding: 0.85rem 0;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}
.project-highlight-strip a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 800;
}
.team-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.team-table th,
.team-table td {
  border: 1px solid #e0e6ed;
  padding: 0.75rem 1rem;
  text-align: left;
}
.team-table th {
  background: var(--primary);
  color: #fff;
}
.bio-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
