/* ==========================================================================
   KAYRAA POWER TRANSMISSION - Premium Industrial Design System
   Location: Ahmedabad, Gujarat, India
   Identity: Navy Blue (#0A3977) & Industrial Orange (#F26522)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0A3977;
  --primary-dark: #002D62;
  --primary-light: #1E5CB3;
  --secondary: #F26522;
  --secondary-hover: #D9530F;
  --secondary-light: #FFF4EE;
  --dark: #0F172A;
  --dark-surface: #1E293B;
  --text-main: #334155;
  --text-muted: #64748B;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --card-shadow: 0 10px 30px -5px rgba(10, 57, 119, 0.08);
  --card-shadow-hover: 0 20px 40px -10px rgba(10, 57, 119, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Base Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography Helpers --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.15);
  color: #FFB380;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* --- Top Header Bar --- */
.top-header {
  background: var(--dark-surface);
  color: #94A3B8;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header a {
  color: #CBD5E1;
}

.top-header a:hover {
  color: var(--secondary);
}

.top-info-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-info-list i {
  color: var(--secondary);
  margin-right: 0.4rem;
}

/* --- Navigation Header --- */
.navbar-custom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
 /* padding: 0.85rem 0;*/
  transition: var(--transition);
  z-index: 1050;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
}

.brand-logo {
  height: 90px;
  width: auto;
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  position: relative;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
  color: var(--primary);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* Mega Menu Styling */
.mega-menu {
  width: 900px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(10, 57, 119, 0.15);
  padding: 1.5rem;
  background: #FFFFFF;
}

.mega-category-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--secondary);
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 8px;
  transition: var(--transition);
}

.mega-item:hover {
  background: var(--light-bg);
}

.mega-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mega-item-text b {
  display: block;
  font-size: 0.92rem;
  color: var(--dark);
}

.mega-item-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Buttons System --- */
.btn-kayraa {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary-kayraa {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.35);
}

.btn-primary-kayraa:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, #B84000 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 101, 34, 0.45);
}

.btn-navy-kayraa {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 57, 119, 0.25);
}

.btn-navy-kayraa:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 57, 119, 0.35);
}

.btn-outline-kayraa {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-kayraa:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white-kayraa {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white-kayraa:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #072652 0%, #0A3977 50%, #001A3B 100%);
  color: var(--white);
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(242, 101, 34, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--secondary);
}

.hero-lead {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-card-visual {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero-visual-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--secondary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(242, 101, 34, 0.4);
}

.hero-grid-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-img-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.hero-img-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-img-box img {
  height: 110px;
  object-fit: contain;
  margin: 0 auto 0.5rem auto;
}

.hero-img-box span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

/* --- Trust Strip Counter --- */
.trust-strip {
  background: #FFFFFF;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(10, 57, 119, 0.12);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.trust-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border-color);
}

.trust-item:last-child {
  border-right: none;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.trust-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Product Cards --- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--secondary);
}

.product-thumb {
  position: relative;
  background: var(--light-bg);
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.product-thumb img {
  height: 180px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 57, 119, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.product-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-title a:hover {
  color: var(--secondary);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.product-specs-chip span {
  font-size: 0.78rem;
  background: var(--light-bg);
  color: var(--dark);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.product-footer-actions {
  display: flex;
  gap: 0.5rem;
}

.product-footer-actions .btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  flex: 1;
  justify-content: center;
}

/* --- Features & Value Cards --- */
.feature-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* --- Specification Tables --- */
.spec-table-wrapper {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--card-shadow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.spec-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:nth-child(even) {
  background: var(--light-bg);
}

.spec-table tr:hover {
  background: rgba(242, 101, 34, 0.05);
}

/* --- FAQ Accordion --- */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  background: var(--white);
  padding: 1.2rem 1.5rem;
  box-shadow: none !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--secondary-light);
  color: var(--secondary-hover);
}

.accordion-custom .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--text-main);
  font-size: 0.98rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(10, 57, 119, 0.2);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Sidebar Product Layout --- */
.sidebar-box {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: var(--primary);
  color: var(--white);
}

.sidebar-help-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

/* --- Floating WhatsApp & Quick Buttons --- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #FFFFFF;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* --- Footer --- */
.footer-main {
  background: var(--dark);
  color: #94A3B8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--secondary);
}

.footer-main h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-main h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3.5rem;
  font-size: 0.88rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991.98px) {
  .mega-menu {
    width: 100%;
    left: 0 !important;
    transform: none !important;
  }
  
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }
  
  .trust-item:last-child {
    border-bottom: none;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
}

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