/* style.css */
:root {
  /* Brand Colors from Palette */
  --navy: #0A2540;
  --orange: #FF6B35;
  --slate: #5A6B74;
  --offwhite: #F4F6F8;
  --teal: #1C9A8B; /* Placeholder Teal chosen to match aesthetic */
  --white: #FFFFFF;
  --dark-navy: #051525;

  /* Fonts */
  --font-logo: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 16px 32px rgba(10, 37, 64, 0.16);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background-color: var(--offwhite);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-logo);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-row {
  display: flex;
  gap: 40px;
  align-items: center;
}

.section-padding {
  padding: 80px 0;
}

.bg-light { background-color: var(--white); }
.bg-navy { background-color: var(--navy); }
.text-white { color: var(--white); }
.text-slate { color: var(--slate); }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--slate);
  font-size: 1.125rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: #E55721;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--white);
  padding: 12px 28px;
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy);
}

.btn-sm {
  background-color: var(--teal);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-sm:hover {
  background-color: #158376;
}

/* Header */
.top-bar {
  background-color: var(--offwhite);
  padding: 8px 0;
  border-bottom: 1px solid rgba(10,37,64,0.1);
  font-size: 0.875rem;
}

.top-links a {
  margin-right: 20px;
  color: var(--slate);
  font-weight: 500;
}
.top-links a:hover {
  color: var(--teal);
}

.main-header {
  background-color: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000; /* Higher than backdrop */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-text h1 {
  font-size: 1.75rem;
  color: var(--navy);
  letter-spacing: 1px;
}

.logo-text h2 {
  font-size: 1.25rem;
  color: var(--teal);
  letter-spacing: 2px;
}

.logo-text p {
  font-size: 0.65rem;
  color: var(--slate);
  letter-spacing: 1.5px;
  margin-top: 2px;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-color: var(--navy); /* Fallback background */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
  animation: fadeUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
  color: var(--offwhite);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Features Banner */
.features-banner {
  background-color: var(--offwhite);
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-item h4 {
  color: var(--slate);
  font-size: 1rem;
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--white);
  cursor: pointer;
}

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

.product-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.product-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.product-count {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  display: flex;
  gap: 24px;
  background: var(--offwhite);
  padding: 32px;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 4px solid var(--teal);
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.service-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-info p {
  color: var(--slate);
}

/* Why Us Section */
.why-us-content {
  flex: 1;
}

.why-us-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.why-us-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
}

.why-us-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Footer */
.main-footer {
  background-color: var(--dark-navy);
  color: var(--offwhite);
  padding: 80px 0 24px;
}

.grid-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--orange);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--slate);
}

.footer-col ul a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--slate);
  font-size: 0.875rem;
}

/* Live Chat Widget */
.chat-widget-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.chat-widget-btn:hover {
  transform: scale(1.1);
  background-color: #158376;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 480px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(10,37,64,0.1);
}

.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-family: var(--font-logo);
  color: var(--white);
  font-size: 1.1rem;
}

.chat-close {
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
}
.chat-close:hover { opacity: 1; }

.chat-body {
  flex-grow: 1;
  padding: 16px;
  background: var(--offwhite);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.agent {
  background: var(--white);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user {
  background: var(--teal);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-footer {
  padding: 16px;
  background: var(--white);
  border-top: 1px solid rgba(10,37,64,0.1);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex-grow: 1;
  border: 1px solid rgba(10,37,64,0.2);
  border-radius: 20px;
  padding: 8px 16px;
  outline: none;
  font-family: var(--font-body);
}

.chat-input:focus {
  border-color: var(--teal);
}

.chat-send {
  background: var(--teal);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .flex-row { flex-direction: column; }
  .grid-footer { grid-template-columns: 1fr 1fr; }
  .why-us-image { justify-content: flex-start; margin-top: 32px; }
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: block;
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  /* Backdrop for mobile menu */
  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
  }

  .menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 32px;
  }

  .main-nav a {
    font-size: 1.5rem;
    color: var(--navy);
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
    line-height: 0;
    transform: translateZ(0);
  }

  .top-bar { display: none; }
  .grid-footer { grid-template-columns: 1fr; }
}

/* Featured Product Slider */
.slider-section {
  padding: 80px 0;
  background-color: var(--white);
}

.slider-section .section-heading {
  margin-bottom: 56px;
}

.slider-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  /* Allow navigation buttons to overlap outside of the slider */
  overflow: visible;
}

.slider-track-wrapper {
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.product-slide {
  min-width: 100%;
  display: flex;
  gap: 48px;
  padding: 48px;
  align-items: center;
  box-sizing: border-box;
}

.slide-image-side {
  flex: 1;
  background: var(--offwhite);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 37, 64, 0.04);
  height: 380px;
}

.slide-image-side img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(10, 37, 64, 0.08));
  transition: transform 0.3s ease;
}

.product-slide:hover .slide-image-side img {
  transform: scale(1.04);
}

.slide-details-side {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 16px;
}

.slide-badge {
  align-self: flex-start;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-family: var(--font-logo);
}

.slide-desc {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 24px;
}

.slide-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  border-top: 1px dashed rgba(10, 37, 64, 0.15);
  border-bottom: 1px dashed rgba(10, 37, 64, 0.15);
  padding: 16px 0;
  margin-bottom: 28px;
}

.slide-spec-item {
  display: flex;
  flex-direction: column;
}

.slide-spec-label {
  font-size: 0.7rem;
  color: var(--slate);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.slide-spec-value {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.slide-actions {
  display: flex;
  gap: 16px;
}

.slide-actions .btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.slide-actions .btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* Slider Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.12);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.slider-nav-btn:focus {
  outline: none;
}

.slider-nav-btn.prev {
  left: -24px;
}

.slider-nav-btn.next {
  right: -24px;
}

.slider-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.slider-indicators {
  position: absolute;
  bottom: 24px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(10, 37, 64, 0.4);
}

.slider-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* Responsiveness for Slider */
@media (max-width: 900px) {
  .product-slide {
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
  }
  
  .slide-image-side {
    width: 100%;
    height: 280px;
    padding: 16px;
  }
  
  .slide-details-side {
    width: 100%;
    padding-right: 0;
  }
  
  .slide-title {
    font-size: 1.75rem;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-nav-btn.prev {
    left: -12px;
  }
  
  .slider-nav-btn.next {
    right: -12px;
  }

  .slider-indicators {
    position: relative;
    bottom: 0;
    right: 0;
    justify-content: center;
    margin-top: 16px;
  }
}

