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

:root {
  --primary: #0A192F;
  --secondary: #112240;
  --accent: #00D2FF;
  --accent-soft: rgba(0, 210, 255, 0.1);
  --text-main: #0A192F;
  --text-muted: #4B5563;
  --text-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --bg-dark: #0A192F;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(10, 25, 47, 0.8);
  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(255, 255, 255, 0.1);

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
}

.section-padding {
  padding: 8rem 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-white);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-grow {
  flex-grow: 1;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.z-50 {
  z-index: 50;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.text-center {
  text-align: center;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-white {
  background-color: white;
}

.text-white {
  color: white;
}

.text-primary {
  color: var(--primary);
}

.hidden {
  display: none;
}

.header-logo {
  width: 180px;
}

/* Custom Hamburger Toggle */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

.hamburger-btn.open .line-1 {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.open .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open .line-3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hide floating contact buttons when mobile menu is active */
.mobile-menu-active .floating-contact-container {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(30px) scale(0.9) !important;
  visibility: hidden !important;
}

.cta-box {
  padding: 4rem 1.5rem;
}

.about-hero {
  padding: 8rem 0 5rem;
}

.products-hero {
  padding: 9rem 0 5rem;
}

.services-hero {
  padding: 9rem 0 5rem;
}

.contact-hero {
  padding: 9rem 0 5rem;
}

.service-card {
  padding: 2rem;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 6rem 4rem;
  }
  
  .about-hero {
    padding: 12rem 0 8rem;
  }

  .products-hero {
    padding: 12rem 0 8rem;
  }

  .services-hero {
    padding: 12rem 0 8rem;
  }

  .contact-hero {
    padding: 12rem 0 8rem;
  }

  .service-card {
    padding: 3.5rem;
  }
}

.hero-subtitle {
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    letter-spacing: 4px;
  }
  
  .header-logo {
    width: 220px;
  }
  
  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }
}

/* Header States */
.header-transparent {
  background-color: transparent;
  padding: 1.5rem 0;
  color: white;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* CTA Button */
.btn-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #00B4D8 100%);
  color: white !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.25);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-cta:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 210, 255, 0.45);
  filter: brightness(1.05);
}

.btn-cta svg {
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: rotate(15deg) scale(1.1);
}


/* ============================================
   RESPONSIVE GRID HELPERS
   ============================================ */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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


/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .section-padding {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .responsive-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 1024px) {
  .solutions-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .solutions-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   HERO SLIDESHOW - MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
  .hero-thumbs {
    bottom: 1.5rem !important;
    left: 1.25rem !important;
    gap: 0.5rem !important;
  }

  .hero-thumbs button {
    width: 50px !important;
    height: 50px !important;
  }

  .hero-thumbs button[aria-current="true"],
  .hero-thumbs button:has(motion-div) {
    width: 90px !important;
  }

  .hero-scroll-indicator {
    display: none !important;
  }

  .hero-slideshow .container {
    padding-bottom: 7rem;
  }
}

@media (max-width: 480px) {
  .hero-thumbs button {
    width: 42px !important;
    height: 42px !important;
  }

  .hero-thumbs {
    gap: 0.4rem !important;
  }
}

/* ============================================
   PRODUCTS PAGE - MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
  .products-catalog-section {
    padding: 2rem 0 4rem !important;
  }

  .products-page-hero {
    padding-top: 7rem !important;
    padding-bottom: 1.5rem !important;
  }

  .products-page-hero h1 {
    font-size: 1.7rem !important;
  }

  .products-page-hero p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .products-grid-wrapper {
    gap: 1rem !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .product-card {
    border-radius: 14px !important;
  }

  .product-card-image {
    padding: 0.85rem !important;
    height: 130px !important;
  }

  .product-card-info {
    padding: 0.85rem !important;
    gap: 0.45rem !important;
  }

  .product-card-category {
    font-size: 0.6rem !important;
    letter-spacing: 0.3px !important;
  }

  .product-card-title {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 40px !important;
    -webkit-line-clamp: 3 !important;
  }

  /* Filters toolbar */
  .products-catalog-section .glass {
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 0.75rem !important;
  }

  .product-card-image {
    height: 115px !important;
    padding: 0.65rem !important;
  }

  .product-card-info {
    padding: 0.75rem !important;
  }

  .product-card-title {
    font-size: 0.72rem !important;
  }

  .product-card-category {
    font-size: 0.55rem !important;
  }
}

/* ============================================
   PRODUCT DETAIL MODAL - MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
  .product-detail-modal {
    height: 92vh !important;
    max-height: 92vh !important;
    border-radius: 18px !important;
  }

  .modal-scrollable {
    padding: 1.25rem !important;
    padding-top: 3.5rem !important;
  }

  .modal-top-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* CRITICAL: Disable sticky on mobile to prevent title overlap */
  .modal-visuals {
    position: static !important;
    gap: 0.75rem !important;
  }

  .modal-info {
    gap: 0.85rem !important;
  }

  .modal-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  .modal-benefits {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .modal-tabs {
    margin-top: 2rem !important;
    gap: 1rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-tabs button {
    font-size: 0.85rem !important;
    padding: 0.75rem 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Image visual container smaller aspect */
  .modal-visuals > div:first-child {
    aspect-ratio: 16/10 !important;
    padding: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .product-modal-overlay {
    padding: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .product-modal-overlay {
    padding: 0.5rem !important;
  }

  .modal-scrollable {
    padding: 1rem !important;
    padding-top: 3.25rem !important;
  }

  .modal-title {
    font-size: 1rem !important;
  }

  .product-detail-modal {
    border-radius: 14px !important;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* --- Hero Section --- */
  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }

  /* --- Grids: force single column --- */
  .responsive-grid-2,
  .responsive-grid-4 {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns"],
  [style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }

  /* Reset inline paddings that are too big for mobile */
  [style*="padding: 12rem"],
  [style*="padding: 10rem"],
  [style*="padding: 8rem"] {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
  }

  [style*="gap: 5rem"] {
    gap: 2.5rem !important;
  }

  /* --- Float badges hide on mobile --- */
  .floating-badge {
    display: none !important;
  }

  /* --- Footer bottom bar --- */
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .footer-legal-links {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  /* --- CTA button --- */
  .btn-cta {
    padding: 10px 18px;
    font-size: 0.78rem;
  }

  /* --- Mobile card padding reduction --- */
  .mobile-card-pad {
    padding: 2rem 1.5rem !important;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .btn-cta {
    padding: 9px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
}

/* ============================================
   MIDEA PRODUCTS DETAILS & MODAL SPECS STYLING
   ============================================ */
.modal-scrollable::-webkit-scrollbar {
  width: 6px;
}
.modal-scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.modal-scrollable::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
.modal-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Scraped Specs Table Styling */
.midea-tech-wrapper {
  width: 100%;
  margin: 1.5rem 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.midea-tech-title {
  background: var(--primary);
  color: #FFFFFF;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.midea-tech-table {
  width: 100%;
  border-collapse: collapse;
}
.midea-tech-table th, .midea-tech-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #EEF2F6;
  text-align: left;
}
.midea-tech-table th {
  background-color: #F8FAFC;
  color: var(--primary);
  font-weight: 700;
  width: 45%;
}
.midea-tech-table td {
  color: var(--text-muted);
  font-weight: 600;
}
.midea-tech-table .section-header th {
  background-color: #F1F5F9;
  color: var(--primary);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.75px;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.energy-tag {
  background-color: #E8F5E9;
  color: #2E7D32;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Product Description - Minimalist Styling */
.rich-html-description {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 100%;
}
.rich-html-description h1,
.rich-html-description h2 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.25;
}
.rich-html-description h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.rich-html-description h4,
.rich-html-description h5 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}
.rich-html-description p {
  margin: 0 0 1rem;
  color: #4B5563;
}
.rich-html-description strong,
.rich-html-description b {
  color: var(--primary);
  font-weight: 700;
}
.rich-html-description ul,
.rich-html-description ol {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.25rem;
}
.rich-html-description li {
  margin-bottom: 0.5rem;
  color: #4B5563;
}
.rich-html-description li::marker {
  color: var(--accent);
}
.rich-html-description a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.rich-html-description a:hover {
  text-decoration: underline;
}
/* Failsafe: cap any leftover SVG/img inside description */
.rich-html-description svg,
.rich-html-description img {
  max-width: 100%;
  max-height: 240px;
  height: auto;
  width: auto;
  display: block;
  margin: 0.75rem 0;
}
/* Strip any leftover deep wrapper visual weight */
.rich-html-description > div > div {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Specs HTML table styling */
.rich-html-specs table,
.rich-html-specs .midea-tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.rich-html-specs th,
.rich-html-specs td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #EEF2F6;
}
.rich-html-specs th {
  background-color: #F8FAFC;
  color: var(--primary);
  font-weight: 700;
  width: 45%;
}
.rich-html-specs tr.section-header th {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rich-html-specs .midea-tech-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.rich-html-specs .energy-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.4rem;
}

/* Form input glassmorphism animations */
.form-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}





