/* =====================================
   Uday Cable and Wires - Main Stylesheet
   ===================================== */

:root {
  --uday-navy: #11296b;
  --uday-navy-dark: #0a1a47;
  --uday-amber: #f59e0b;
  --uday-amber-light: #fbbf24;
  --uday-green: #15915f;
  --uday-red: #c6281f;
  --text-dark: #0a0a0a;
  --text-muted: #6b7280;
  --bg-light: #f8f9fa;
}

* { box-sizing: border-box; }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a { text-decoration: none; transition: color .2s ease; }

/* --- Top Bar --- */
.topbar {
  background: var(--uday-navy);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--uday-amber-light); }
.topbar .cta-quote {
  background: var(--uday-amber);
  color: #000 !important;
  padding: 4px 12px;
  font-weight: 700;
  border-radius: 3px;
}
.topbar .cta-quote:hover { background: var(--uday-amber-light); }

/* --- Navbar --- */
.navbar {
  border-bottom: 1px solid #e5e7eb;
  z-index: 1030;
}
.navbar-brand .brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-brand .brand-text strong { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; color: var(--uday-navy); letter-spacing: 1px; }
.navbar-brand .brand-text small { font-size: 11px; color: #6b7280; letter-spacing: 2px; }
.navbar .nav-link {
  color: #1f2937 !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 8px 4px !important;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--uday-navy);
  transition: width .3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 100%; }
.navbar .nav-link.active { color: var(--uday-navy) !important; }
.dropdown-menu {
  border: 0;
  border-top: 2px solid var(--uday-navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border-radius: 0;
  margin-top: 0 !important;
}
.dropdown-item {
  padding: 10px 18px;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: all .25s ease;
}
.dropdown-item:hover {
  background: #f8f9fa;
  border-left-color: var(--uday-navy);
  color: var(--uday-navy);
  padding-left: 24px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 560px;
  height: 78vh;
  color: #fff;
  overflow: hidden;
  background: #000;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 12s ease-in-out infinite alternate;
}
.hero-slide .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,26,71,.85), rgba(17,41,107,.55) 60%, transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 60px 0;
}
.hero-badge {
  display: inline-block;
  background: var(--uday-amber);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--uday-amber); display: block; }
.hero p { font-size: 1.05rem; color: #e5e7eb; max-width: 640px; margin-bottom: 28px; }
.hero-dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button {
  border: 0;
  height: 6px;
  background: rgba(255,255,255,.5);
  width: 20px;
  border-radius: 99px;
  transition: all .3s ease;
  cursor: pointer;
}
.hero-dots button.active { background: var(--uday-amber); width: 40px; }

@keyframes kenburns {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

/* --- Buttons --- */
.btn-uday {
  background: var(--uday-navy);
  color: #fff;
  border: 0;
  padding: 12px 26px;
  font-weight: 600;
  border-radius: 3px;
  transition: background .25s ease;
}
.btn-uday:hover { background: var(--uday-navy-dark); color: #fff; }
.btn-uday-amber {
  background: var(--uday-amber);
  color: #000;
  border: 0;
  padding: 12px 26px;
  font-weight: 700;
  border-radius: 3px;
  transition: background .25s ease;
}
.btn-uday-amber:hover { background: var(--uday-amber-light); color: #000; }
.btn-uday-outline {
  background: transparent;
  color: var(--uday-navy);
  border: 2px solid var(--uday-navy);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 3px;
  transition: all .25s ease;
}
.btn-uday-outline:hover { background: var(--uday-navy); color: #fff; }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 3px;
  transition: all .25s ease;
}
.btn-white-outline:hover { background: #fff; color: var(--uday-navy); }

/* --- Section title --- */
.section { padding: 80px 0; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--uday-navy);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
  display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px; background: var(--uday-navy);
}
.section-title.text-center { display: block; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.text-uday-navy { color: var(--uday-navy); }
.bg-uday-navy { background: var(--uday-navy) !important; color: #fff; }
.bg-uday-light { background: var(--bg-light); }

/* --- About frame --- */
.about-frame { position: relative; }
.about-frame img { width: 100%; height: 420px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.15); position: relative; z-index: 2; }
.about-frame .corner {
  position: absolute; top: -20px; left: -20px;
  width: 128px; height: 128px;
  border: 4px solid var(--uday-amber);
  z-index: 1;
}
.about-frame .badge-iso {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--uday-navy); color: #fff;
  padding: 18px;
  z-index: 3; max-width: 200px;
}
.about-frame .badge-iso div:first-child { font-size: 30px; font-weight: 800; line-height: 1; }
.about-frame .badge-iso div:last-child { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* --- Purpose Cards --- */
.purpose-card {
  background: #fff; padding: 36px; border: 1px solid #e5e7eb;
  transition: all .3s ease; height: 100%;
}
.purpose-card:hover { border-color: var(--uday-navy); box-shadow: 0 20px 40px rgba(17,41,107,.1); }
.purpose-card .icon-box {
  width: 64px; height: 64px;
  background: rgba(17,41,107,.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background .3s ease;
}
.purpose-card:hover .icon-box { background: var(--uday-navy); }
.purpose-card .icon-box i { font-size: 28px; color: var(--uday-navy); }
.purpose-card:hover .icon-box i { color: var(--uday-amber); }

/* --- Product Highlight --- */
.product-highlight img { width: 100%; height: 400px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.15); }
.product-highlight h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 8px; }
.product-highlight h2 .pipe { color: var(--uday-navy); }
.product-highlight .bar { width: 80px; height: 4px; background: var(--uday-amber); margin-bottom: 24px; }
.product-highlight ul.features { list-style: none; padding: 0; margin: 0 0 26px; }
.product-highlight ul.features li { padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.product-highlight ul.features li i { color: var(--uday-navy); font-size: 18px; }

/* --- Industry Tile --- */
.industry-tile {
  background: var(--bg-light); border: 1px solid #e5e7eb;
  padding: 22px 16px; text-align: center;
  transition: all .3s ease; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #1f2937;
}
.industry-tile:hover { background: var(--uday-navy); color: #fff; transform: translateY(-4px); }
.industry-tile i { font-size: 32px; color: var(--uday-navy); transition: color .3s ease; }
.industry-tile:hover i { color: var(--uday-amber); }
.industry-tile .name { font-size: 13px; font-weight: 600; }

/* --- Stats --- */
.stat-number { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--uday-navy); line-height: 1; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #4b5563; margin-top: 6px; }

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-card {
  width: 192px; height: 96px;
  background: #fff; border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #374151;
  text-align: center; padding: 0 12px;
  transition: all .3s ease;
}
.client-card:hover { border-color: var(--uday-navy); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Enquiry section --- */
.enquiry-section {
  background: #fff;
  color: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.enquiry-section .container { z-index: 1; }
.enquiry-form-card {
  background: #fff; color: #0a0a0a;
  padding: 0;
  box-shadow: none;
  border-top: 0;
  position: relative;
}
.enquiry-form-wide {
  max-width: 920px;
  margin: 0 auto;
}
.enquiry-form-heading {
  color: var(--uday-green);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 34px;
}
.enquiry-form .form-label,
.enquiry-products legend {
  color: #000;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.enquiry-form-card .form-control {
  border: 1px solid #bfc8d1;
  color: #000;
  font-size: 14px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 0;
}
.enquiry-form-card .form-control:focus {
  border-color: var(--uday-green);
  box-shadow: 0 0 0 .2rem rgba(21,145,95,.14);
}
.enquiry-products {
  margin: 0;
  padding: 0;
}
.enquiry-products legend {
  float: none;
  width: auto;
}
.product-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.product-check input {
  width: 11px;
  height: 11px;
  margin: 0;
}
.captcha-check {
  width: 238px;
  min-height: 58px;
  border: 1px solid #cbd5df;
  background: #fafafa;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 10px;
}
.captcha-check input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.captcha-check span {
  color: #000;
  font-size: 12px;
}
.captcha-check small {
  grid-column: 2;
  color: #8a94a3;
  font-size: 10px;
}
.enquiry-submit-btn,
.enquiry-reset-btn {
  min-width: 72px;
  min-height: 28px;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(21,145,95,.82) 0 46%, rgba(255,255,255,0) 46%),
    linear-gradient(45deg, rgba(132,188,64,.9) 0 42%, rgba(255,255,255,0) 42%),
    #9acd42;
}
.enquiry-submit-btn:hover,
.enquiry-reset-btn:hover {
  color: #000;
  filter: brightness(.98);
}

/* --- Page Banner --- */
.page-banner {
  position: relative;
  min-height: 300px;
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,26,71,.92), rgba(17,41,107,.78) 60%, rgba(17,41,107,.4));
}
.page-banner .container { position: relative; z-index: 2; padding: 60px 12px; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 10px; }
.page-banner .crumbs { font-size: 14px; color: #d1d5db; }
.page-banner .crumbs .sep { margin: 0 8px; opacity: .6; }
.page-banner .crumbs .current { color: var(--uday-amber); }

/* --- Quality cards --- */
.quality-card {
  background: #fff; padding: 32px;
  border-top: 4px solid var(--uday-navy);
  transition: all .3s ease;
  height: 100%;
}
.quality-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.quality-card .icon-num { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.quality-card .icon-num .ic { width: 56px; height: 56px; background: rgba(17,41,107,.08); display: inline-flex; align-items: center; justify-content: center; }
.quality-card .icon-num .ic i { font-size: 26px; color: var(--uday-navy); }
.quality-card .icon-num .num { font-size: 28px; font-weight: 800; color: #e5e7eb; }

/* --- Strength tile --- */
.strength-tile {
  background: var(--bg-light);
  padding: 28px 18px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all .3s ease;
  height: 100%;
}
.strength-tile:hover { background: var(--uday-navy); color: #fff; }
.strength-tile i { font-size: 36px; color: var(--uday-navy); margin-bottom: 12px; transition: color .3s ease; }
.strength-tile:hover i { color: var(--uday-amber); }
.strength-tile .name { font-weight: 600; }

/* --- Contact info cards --- */
.contact-info {
  background: var(--bg-light);
  padding: 28px;
  border-bottom: 4px solid var(--uday-navy);
  transition: all .3s ease;
  height: 100%;
}
.contact-info:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.contact-info .ic {
  width: 48px; height: 48px;
  background: var(--uday-navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.contact-info .ic i { color: var(--uday-amber); font-size: 22px; }
.contact-info h3 { font-size: 18px; margin-bottom: 8px; }
.contact-info p, .contact-info a { color: var(--text-muted); font-size: 14px; }

/* --- Footer --- */
.site-footer { background: var(--uday-navy-dark); color: #cbd5e1; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--uday-amber); }
.footer-title { color: #fff; font-size: 18px; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { padding: 6px 0; font-size: 14px; }
.footer-contact { list-style: none; padding: 0; font-size: 14px; }
.footer-contact li { padding: 8px 0; display: flex; gap: 10px; }
.footer-contact i { color: var(--uday-amber); flex-shrink: 0; margin-top: 4px; }
.footer-divider { margin: 26px 0; border-color: #1f2937; opacity: .5; }
.social-icon {
  width: 36px; height: 36px; border: 1px solid #4b5563;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: all .25s ease;
}
.social-icon:hover { background: var(--uday-amber); border-color: var(--uday-amber); color: #000 !important; }
.text-muted-light { color: #9ca3af; font-size: 14px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 1040;
  animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.whatsapp-float:hover { background: #1ebe5d; color: #fff; }

/* --- Side action tabs --- */
.side-action-tabs {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}
.side-action-tab {
  width: 48px;
  min-height: 124px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 0 8px rgba(0,0,0,.35);
  pointer-events: auto;
  transition: transform .2s ease, filter .2s ease;
}
.side-action-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.side-action-tab:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateX(-4px);
}
.side-action-enquiry { background: var(--uday-red); }
.side-action-contact {
  background: var(--uday-green);
  min-height: 136px;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  100% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
}

/* --- Alert flash --- */
.flash {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .navbar .nav-link::after { display: none; }
  .about-frame img { height: 320px; }
  .product-highlight img { height: 280px; }
}

@media (max-width: 575px) {
  .enquiry-form-heading { margin-bottom: 24px; }
  .side-action-tabs {
    top: auto;
    bottom: 96px;
    gap: 12px;
  }
  .side-action-tab {
    width: 42px;
    min-height: 106px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .side-action-contact { min-height: 122px; }
}
