/*
Theme Name: Mo-Sys Corporate
Description: Professional corporate theme for Mo-Sys camera tracking systems
Version: 1.0
Author: Your Name
Text Domain: mo-sys
*/

/* Top Alert (Marquee) */
.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #111;
  color: #fff;
  overflow: hidden;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-alert__track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.top-alert__text {
  font-size: 0.8rem;
  opacity: 0.9;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

:root {
  /* Mo-Sys Corporate Colors */
  --background: 0 0% 100%;
  --foreground: 0 0% 15%;

  /* Corporate Dark Theme */
  --corporate-dark: 220 20% 8%;
  --corporate-darker: 220 20% 4%;
  --corporate-light: 220 15% 15%;
  
  /* Mo-Sys Brand Red */
  --brand-red: 357 65% 49%;
  --brand-red-hover: 357 65% 44%;
  --brand-red-foreground: 0 0% 100%;

  /* Neutral Grays */
  --neutral-100: 0 0% 98%;
  --neutral-200: 220 13% 91%;
  --neutral-300: 220 9% 75%;
  --neutral-400: 220 9% 60%;
  --neutral-500: 220 9% 46%;
  --neutral-600: 220 13% 26%;
  --neutral-700: 220 20% 15%;
  --neutral-800: 220 20% 8%;
  --neutral-900: 220 20% 4%;

  /* Component Colors */
  --card: 0 0% 100%;
  --card-foreground: 0 0% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 15%;

  --primary: 357 65% 49%;
  --primary-foreground: 0 0% 100%;

  --secondary: 220 13% 91%;
  --secondary-foreground: 0 0% 15%;

  --muted: 220 13% 91%;
  --muted-foreground: 220 9% 46%;

  --accent: 220 15% 15%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 357 65% 49%;

  --radius: 0.375rem;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(var(--corporate-darker)), hsl(var(--corporate-dark)));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  
  /* Shadows */
  --shadow-corporate: 0 20px 40px -10px hsl(var(--corporate-darker) / 0.3);
  --shadow-red: 0 8px 20px -4px hsl(var(--brand-red) / 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Header Styles */
.header {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.header-container {
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 5.5rem;
}

.logo-link {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--corporate-dark));
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}


.mobile-menu-toggle.active .hamburger-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--brand-red));
}


/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed; /* Изменено с absolute на fixed */
    top: calc(36px + 5.5rem); /* account for alert + header */
    left: 0;
    right: 0;
    bottom: 0; /* Занимает всю высоту от top до bottom */
    background-color: white;
    border-top: 1px solid hsl(var(--neutral-200));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    height: 100%; /* Занимает всю доступную высоту */
}
.mobile-nav .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: hsl(var(--neutral-700));
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid hsl(var(--neutral-200));
    transition: all 0.2s;
}

.mobile-nav .nav-link:hover {
    color: hsl(var(--brand-red));
    background-color: hsl(var(--neutral-100));
    padding-left: 2rem;
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}


/* Header Hover Effect */
.header {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.header:hover {
  background-color: white;
}

/* Логотип – показываем только один вариант */
.logo-link {
  display: inline-block;
  position: relative;
}

.logo-img {
  height: 32px; /* подгони под свой размер */
  display: block;
  transition: opacity 0.3s ease;
}

.logo-img.hover-logo {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.header:hover .logo-img {
  opacity: 0;
}

.header:hover .logo-img.hover-logo {
  opacity: 1;
}



/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-content {
  text-align: center;
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Navigation Tabs */
.nav-tabs-container {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-tabs {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.nav-tab {
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--neutral-600));
  background-color: hsl(var(--neutral-100));
  border-right: 1px solid hsl(var(--neutral-200));
  transition: all 0.2s;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-tab:last-child {
  border-right: none;
}

.nav-tab:hover {
  color: hsl(var(--neutral-900));
  background-color: hsl(var(--neutral-200));
}

.nav-tab.active {
  color: hsl(var(--neutral-900));
  background-color: white;
  border-bottom: 2px solid #C23659;
}

/* Main Content */
.main-content {
  background-color: hsl(var(--neutral-100));
  padding: 4rem 0;
}

.back-link-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--brand-red));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: hsl(var(--brand-red-hover));
}

.back-arrow {
  width: 1rem;
  height: 1rem;
}

.content-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  background-color: black;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16/9;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  cursor: pointer;
}

.video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.play-button {
  width: 4rem;
  height: 4rem;
  background-color: hsl(var(--brand-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.play-button:hover {
  background-color: hsl(var(--brand-red-hover));
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}

/* Image Gallery */
.image-gallery {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Content Column */
.content-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.description {
  font-size: 1.125rem;
  color: hsl(var(--neutral-600));
  line-height: 1.7;
  margin-bottom: 2rem;
}

.download-link {
  margin-bottom: 2rem;
}

.download-text {
  color: #C23659;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.download-text:hover {
  color: hsl(var(--brand-red-hover));
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #C23659;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  transform: scale(1);
}

.social-icon:hover {
  background-color: hsl(var(--brand-red-hover));
  transform: scale(1.05);
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Corporate Button */
.btn-corporate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background-color: #C23659;
  border: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateY(0);
}

.btn-corporate:hover {
  background-color: hsl(var(--brand-red-hover));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Product Details */
.product-details {
  background-color: white;
  padding: 4rem 0;
}

.details-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.features-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.feature-item:nth-child(even) .feature-image {
  order: 2;
}

.feature-item:nth-child(even) .feature-content {
  order: 1;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--neutral-900));
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 1.125rem;
  color: hsl(var(--neutral-600));
  line-height: 1.7;
}

.feature-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-img {
  width: 100%;
  height: auto;
  scale: 1.1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-image:hover .feature-img {
  transform: scale(1.05);
}

.products-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.product-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-image {
    flex: 1 1 50%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    flex: 1 1 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category {
    font-size: 12px;
    color: #b71c1c;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.product-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #b71c1c;
    color: #b71c1c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.product-btn:hover {
    background: #b71c1c;
    color: #fff;
}


/* Card Styles */
.card {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
}

@media (min-width: 769px) {
  .nav {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Header Hover Effect - Navigation Text Colors */
.header:hover .nav-link {
    color: hsl(var(--neutral-900)); /* Черный цвет при наведении на шапку */
}

.header:hover .nav-link:hover {
    color: hsl(var(--brand-red)); /* Красный цвет при наведении на сам текст */
}

/* Improve hamburger animation */
.hamburger-line {
  width: 2rem;
  height: 0.25rem;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Добавьте это правило для предотвращения мерцания */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    visibility: hidden;
  }
  
  .mobile-menu.active {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: bold;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.transition-colors {
  transition: color 0.2s;
}

.transition-all {
  transition: all 0.2s;
}

.duration-200 {
  transition-duration: 0.2s;
}

.cursor-pointer {
  cursor: pointer;
}

/* Focus styles */
button:focus,
a:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Additional Components */

/* Key Features List */
.key-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.key-features-list li::before {
  content: "•";
  color: hsl(var(--brand-red));
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  font-weight: bold;
}

/* Compatible Grid */
.compatible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.compatible-item {
  text-align: center;
  padding: 0.75rem;
  background-color: hsl(var(--neutral-100));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--neutral-700));
  font-weight: 500;
}

/* Tech Specs Table */
.tech-specs-table {
  overflow-x: auto;
}

.spec-row {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--neutral-200));
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--neutral-900));
  white-space: nowrap;
  padding-right: 1.5rem;
  min-width: 200px;
}

.spec-value {
  font-size: 0.875rem;
  color: hsl(var(--neutral-700));
  flex: 1;
}

/* Key Features Section */
.key-features-section {
  margin-top: 4rem;
}

/* Tech Specs Section */
.tech-specs-section {
  margin-top: 4rem;
}

/* Compatible Section */
.compatible-section {
  margin-top: 4rem;
}

/* Accessories Cards (for PTZ) */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.accessory-card {
  background-color: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.accessory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12);
}

.accessory-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--neutral-900));
}

.accessory-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--neutral-600));
}

.accessory-cta {
  margin-top: 0.75rem;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #C23659;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accessory-cta:hover {
  color: hsl(var(--brand-red-hover));
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
  .compatible-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .spec-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .spec-label {
    min-width: auto;
    padding-right: 0;
    font-weight: 600;
  }
}

/* Comparison Section */
.comparison-section {
  background-color: hsl(var(--neutral-100));
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: hsl(var(--neutral-900));
  margin-bottom: 2rem;
  text-align: center;
}

.comparison-table {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(var(--border));
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid hsl(var(--border));
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row.header {
  background-color: hsl(var(--brand-red));
  color: white;
  font-weight: 600;
}

.comparison-cell {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.comparison-row:not(.header) .comparison-cell {
  color: hsl(var(--neutral-700));
}

.comparison-row:not(.header) .comparison-cell:first-child {
  background-color: hsl(var(--neutral-50));
  font-weight: 500;
}

/* Tech Specs Section */
.tech-specs-section {
  background-color: white;
  padding: 4rem 0;
}

.tech-specs-table {
  background-color: hsl(var(--neutral-100));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(var(--border));
}

.spec-row {
  display: flex;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:nth-child(even) {
  background-color: white;
}

.spec-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--neutral-900));
  min-width: 200px;
  padding-right: 1.5rem;
}

.spec-value {
  font-size: 0.875rem;
  color: hsl(var(--neutral-700));
  flex: 1;
}

/* Contact Section */
.contact-section {
  background-color: hsl(220 17% 21% / 1);
  color: white;
  padding: 4rem 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background-color: hsl(var(--corporate-light));
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.contact-item p {
  color: hsl(var(--neutral-300));
  line-height: 1.6;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .feature-item:nth-child(even) .feature-image {
    order: 1;
  }
  
  .feature-item:nth-child(even) .feature-content {
    order: 2;
  }
  
  .comparison-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-row.header {
    display: none;
  }
  
  .comparison-row:not(.header) .comparison-cell:first-child {
    font-weight: 600;
    background-color: hsl(var(--brand-red));
    color: white;
    border-radius: 0.25rem 0.25rem 0 0;
  }
  
  .comparison-row:not(.header) .comparison-cell:last-child {
    border-radius: 0 0 0.25rem 0.25rem;
  }
  
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .spec-label {
    min-width: auto;
    padding-right: 0;
    font-weight: 600;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .header,
  .nav-tabs-container,
  .social-icons,
  .btn-corporate {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--neutral-900));
    margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--neutral-300));
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--brand-red));
    box-shadow: 0 0 0 3px hsl(var(--brand-red) / 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--neutral-300));
    border-radius: 0.375rem;
    transition: all 0.2s;
    background-color: hsl(var(--neutral-100));
}

.contact-method:hover {
    border-color: hsl(var(--brand-red));
    background-color: hsl(var(--brand-red) / 0.05);
}

.contact-method input[type="radio"] {
    margin: 0;
}

.contact-method input[type="radio"]:checked + .method-label {
    color: hsl(var(--brand-red));
    font-weight: 600;
}

.contact-method input[type="radio"]:checked ~ .method-label {
    color: hsl(var(--brand-red));
    font-weight: 600;
}

.method-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--neutral-700));
    transition: color 0.2s;
}

.btn-submit {
    background-color: #C23659;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: hsl(var(--brand-red) / 0.9);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Contact Info Styles */

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: hsl(var(--neutral-100));
    border-radius: 0.5rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.contact-title{
  font-size: 2rem;
  font-weight: bold;
  color: rgb(255, 255, 255);
  margin-bottom: 2rem;
  text-align: center;
}


.contact-item p {
    color: hsl(var(--neutral-700));
    line-height: 1.6;
}

/* Contact Section Styles */

.contact-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: white;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: hsl(var(--neutral-100));
    padding: 4rem 0;
    margin-top: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(var(--border));
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    color: hsl(var(--neutral-700));
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: hsl(var(--brand-red));
    font-weight: bold;
    line-height: 1;
}

.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: hsl(var(--brand-red));
    font-weight: bold;
    line-height: 1;
}

.testimonial-author {
    border-top: 1px solid hsl(var(--neutral-200));
    padding-top: 1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--neutral-900));
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: hsl(var(--neutral-600));
    font-weight: 500;
}

/* Image Gallery Section */
.image-gallery-section {
    background-color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.image-gallery-section .gallery-grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.image-gallery-section .gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-gallery-section .gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-gallery-section .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.image-gallery-section .gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Make Enquiry Section */
.make-enquiry-section {
    background-color: hsl(220 17% 21% / 1);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.make-enquiry-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.make-enquiry-section .contact-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: white;
    line-height: 1.6;
    font-size: 1.1rem;
}

.make-enquiry-section .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.make-enquiry-section .contact-item {
    text-align: center;
    padding: 2rem;
    background-color: hsl(var(--corporate-light));
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.make-enquiry-section .contact-item:hover {
    transform: translateY(-2px);
}

.make-enquiry-section .contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.make-enquiry-section .contact-item p {
    color: hsl(var(--neutral-300));
    line-height: 1.6;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 0 1rem 3rem 1rem;
        padding: 1.5rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-method {
        justify-content: center;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .image-gallery-section .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-gallery-section .gallery-item {
        aspect-ratio: 4/3;
    }
}

/* Form Validation Styles */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc2626;
}

.form-input:invalid:not(:focus):not(:placeholder-shown):focus,
.form-textarea:invalid:not(:focus):not(:placeholder-shown):focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success Message Styles */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    color: #065f46;
    margin-bottom: 2rem;
}

.form-success.active {
    display: block;
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
.footer {
    background-color: hsl(220 17% 21% / 1);
    padding: 3rem 0;
    color: white;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-img {
    height: 150px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-container {
        gap: 1rem;
    }
    
    .footer-logo-img {
        height: 32px;
    }
}

/* Desktop dropdown for Products */
.nav .has-dropdown {
  position: relative;
}

.nav .has-dropdown > .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border: 1px solid hsl(var(--neutral-200));
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  display: none;
  z-index: 1000;
}

.nav .has-dropdown:hover > .dropdown-menu,
.nav .has-dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  color: hsl(var(--neutral-700));
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: hsl(var(--neutral-100));
  color: hsl(var(--brand-red));
}

/* Align desktop nav colors on hover header */
.header:hover .dropdown-link {
  color: hsl(var(--neutral-700));
}

/* Mobile submenu group */
.mobile-group {
  margin-bottom: 0.5rem;
}

.mobile-submenu {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

/* Hide any legacy nav duplicates if present */
.nav .nav-link[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  /* Hide nav tabs entirely on mobile */
  .nav-tabs-container {
    display: none;
  }
  /* Ensure any previous hint is not rendered if container is forced visible elsewhere */
  .nav-tabs-container .nav-tabs:after {
    content: none !important;
    display: none !important;
  }
}

/* Hamburger color on header hover */
.header:hover .hamburger-line,
.header:hover .mobile-menu-toggle.active .hamburger-line {
  background-color: hsl(var(--neutral-900));
}

@media (max-width: 768px) {
  /* Homepage product cards - mobile improvements */
  .products-section {
    gap: 16px;
    margin: 24px auto;
    padding: 0 16px;
  }
  .product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  }
  .product-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .product-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: hsl(var(--neutral-600));
  }
  .product-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  /* Product card: image above, text below */
  .product-card {
    flex-direction: column;
  }
  .product-image,
  .product-info {
    flex: none;
    width: 100%;
  }
  .product-image { order: 1; }
  .product-info { order: 2; }
  .product-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
}