/* ============================================
    LiftNMove - Industrial Lifting Solutions
    Complete CSS Stylesheet
    ============================================ */

/* CSS Variables */
:root {
  --color-primary: #0a1628;
  --color-primary-light: #1a2d4a;
  --color-secondary: #2c3e50;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-steel: #64748b;
  --color-steel-light: #94a3b8;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-800: #1e293b;
  --color-success: #10b981;
  --color-error: #ef4444;

  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
    HEADER & NAVIGATION
    ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  width: 100%;
  margin: 0;
  padding: 0 60px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-item {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

.nav-link-cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  white-space: nowrap;
}

.nav-link-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(10px);
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease 0.2s;
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.mega-menu-scroll {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-height: 900px) {
  .mega-menu {
    padding: 16px;
  }
  .mega-container {
    gap: 16px;
  }
  .mega-card-img {
    height: 100px;
  }
  .mega-grid-5 .mega-card-img {
    height: 70px;
  }
}

@media (max-height: 700px) {
  .mega-menu {
    padding: 12px;
  }
  .mega-container {
    gap: 12px;
  }
  .mega-card {
    padding: 8px;
  }
  .mega-card-img {
    height: 80px;
  }
  .mega-grid-5 .mega-card-img {
    height: 60px;
  }
  .mega-card-title {
    font-size: 12px;
  }
}

.mega-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.mega-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-gray-200);
}

.mega-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mega-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-steel);
  margin-bottom: 5px;
}

.mega-grid {
  display: grid;
  gap: 12px;
}

.mega-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mega-grid-5 {
  grid-template-columns: repeat(9, 1fr);
}

.mega-grid-5 .mega-card-img {
  height: 80px;
}

.mega-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mega-split-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
}

.mega-split-row .mega-section {
  border-bottom: none;
  padding-bottom: 0;
}

.mega-split-row .mega-section:first-child {
  border-right: 1px solid var(--color-gray-200);
  padding-right: 16px;
  margin-right: 4px;
}

.mega-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  transition: all var(--transition-fast);
}

.mega-card:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
}

.mega-card-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mega-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.mega-card-desc {
  font-size: 11px;
  color: var(--color-steel);
  margin-top: 4px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
    HERO SECTION
    ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  background-image: url("/images/hero.webp");
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    var(--color-white) 50%,
    var(--color-accent) 50%
  );
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(44, 62, 80, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-gray-300);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
    BUTTONS
    ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
}

/* ============================================
    SECTIONS
    ============================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-gray-50);
}

.section-dark {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header-light .section-title,
.section-header-light .section-desc {
  color: var(--color-white);
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 18px;
  color: var(--color-steel);
  line-height: 1.7;
}

/* ============================================
    PRODUCT SECTIONS
    ============================================ */
.product-detail {
  margin-bottom: 80px;
}

.product-detail:last-child {
  margin-bottom: 0;
}

.product-banner {
  position: relative;
  height: 400px;
  border-radius: 0; /* No boundary */
  overflow: hidden;
  margin-bottom: 40px;
}

.product-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.9) 0%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.product-banner-overlay h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}

.product-banner-overlay p {
  font-size: 18px;
  color: var(--color-gray-300);
}

.product-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.product-intro-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.product-intro-content p {
  color: var(--color-steel);
  margin-bottom: 16px;
  line-height: 1.8;
}

.product-features h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-gray-800);
}

.feature-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--color-white);
  border-radius: 0; /* No boundary */
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 0; /* No boundary */
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.rental-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 0; /* No boundary */
}

.product-card-content {
  padding: 24px;
}

.product-card-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-card-content p {
  font-size: 14px;
  color: var(--color-steel);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.product-link:hover {
  color: var(--color-accent-hover);
}

/* Spec Table */
.spec-table-wrapper {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 50px;
}

.spec-table-wrapper h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.spec-table th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-steel);
  background: var(--color-white);
}

.spec-table td {
  font-size: 15px;
  color: var(--color-gray-800);
}

.spec-table tr:hover td {
  background: var(--color-white);
}

/* Side-by-Side Specs */
.spec-comparison-container {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.spec-column {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.spec-column h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

/* Comparison Table */
.comparison-table-wrapper {
  margin-bottom: 60px;
}

.comparison-table-wrapper h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  border: 1px solid var(--color-gray-200);
}

.comparison-table th {
  background: var(--color-gray-100);
  color: var(--color-primary);
  font-weight: 700;
}

.comparison-table tr:first-child th {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Responsive Specs */
@media (max-width: 768px) {
  .spec-comparison-container {
    flex-direction: column;
  }
}

/* Product CTA */
.product-cta {
  text-align: center;
  padding: 48px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  border-radius: var(--radius-xl);
}

.product-cta h4 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.product-cta p {
  font-size: 16px;
  color: var(--color-gray-300);
  margin-bottom: 24px;
}

/* ============================================
    RENTALS SECTION
    ============================================ */
.rental-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.rental-feature {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.rental-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.rental-feature h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.rental-feature p {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
}

/* ============================================
    SERVICES SECTION
    ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.service-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
}

/* ============================================
    DIAGNOSIS SECTION
    ============================================ */
.diagnosis-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.diagnosis-intro h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.diagnosis-intro p {
  font-size: 16px;
  color: var(--color-steel);
  line-height: 1.8;
}

/* ============================================
    UPGRADATION SECTION
    ============================================ */
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.upgrade-card {
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition-normal);
}

.upgrade-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-xl);
}

.upgrade-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.upgrade-card p {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
}

/* ============================================
    WHY US SECTION
    ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-gray-300);
  font-weight: 500;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 40px;
}

.feature-icon-large {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-item h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 15px;
  color: var(--color-gray-300);
  line-height: 1.7;
}

/* ============================================
    CTA BANNER
    ============================================ */
.cta-banner {
  background: var(--color-accent);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.cta-actions .btn-primary:hover {
  background: var(--color-gray-100);
}

/* ============================================
    CONTACT SECTION
    ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact-details p {
  font-size: 15px;
  color: var(--color-steel);
  line-height: 1.7;
}

.contact-form-wrapper {
  background: var(--color-gray-50);
  padding: 40px;
  border-radius: var(--radius-xl);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-800);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

/* ============================================
    FOOTER
    ============================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-gray-300);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--color-gray-300);
}

/* ============================================
    RESPONSIVE STYLES
    ============================================ */
@media (max-width: 1200px) {
  .mega-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .mega-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .upgrade-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: none;
    border-top: 1px solid var(--color-gray-200);

    /* Reset flex properties to fix alignment */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Ensure full width */
    justify-content: flex-start;
    /* Start from top */
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
  }

  .nav-item {
    border-bottom: 1px solid var(--color-gray-100);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 16px 12px;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
  }

  .nav-link:hover {
    background: var(--color-gray-50);
  }

  .nav-link-cta {
    margin-top: 12px;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
  }

  /* Mobile Mega Menu */
  .mega-menu {
    position: static;
    transform: none !important;
    /* Force override of global hover styles */
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    min-width: 100%;
    max-width: 100%;
    padding: 0;
    display: none;
    background: var(--color-gray-50);
    border-radius: 0;
    border-top: 1px solid var(--color-gray-200);
  }

  /* Ensure hover doesn't break layout on mobile */
  .nav-item:hover .mega-menu {
    transform: none;
  }

  .nav-item.mega-open .mega-menu {
    display: block;
  }

  .mega-container {
    padding: 20px;
    gap: 20px;
  }

  .mega-section {
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 20px;
  }

  .mega-section:last-child {
    border-bottom: none;
    padding-bottom: 0px;
  }

  .mega-title {
    color: var(--color-primary);
    font-size: 14px;
    margin-bottom: 12px;
  }

  .mega-grid-4,
  .mega-grid-5 {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mega-split-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-split-row .mega-section:first-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 20px;
  }

  .mega-card {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
  }

  .mega-card-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 12px;
  }

  /* Hide images if they feel too cluttered, or keep small avatars */
  /* .mega-card-img { display: none; } */

  .mega-card-title {
    font-size: 14px;
  }

  .mega-card-desc {
    display: none;
    /* Hide descriptions on mobile to save space */
  }

  .product-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rental-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upgrade-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .features-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .product-banner {
    height: 280px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .rental-features {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .upgrade-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 42px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .spec-table-wrapper {
    overflow-x: auto;
  }

  .spec-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 70px;
  }

  .main-nav {
    top: 70px;
  }

  .hero {
    margin-top: 70px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 15px;
  }

  .mega-grid-4,
  .mega-grid-5 {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .product-banner-overlay {
    padding: 24px;
  }

  .product-banner-overlay h3 {
    font-size: 28px;
  }
}

/* PAGE HERO (For all internal pages) */
.page-hero {
  margin-top: 80px;
  padding: 80px 0 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
  text-align: center;
}

.page-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--color-gray-300);
  max-width: 700px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.page-content p {
  margin-bottom: 16px;
  color: var(--color-steel);
}

/* ============================================
    INNER SERVICE / PRODUCT PAGE
    ============================================ */

.inner-content {
  padding: 80px 0;
}

.inner-content h2 {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.inner-content p {
  color: var(--color-steel);
  line-height: 1.8;
  margin-bottom: 20px;
}

.inner-section {
  margin-bottom: 60px;
}

.inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.inner-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .inner-grid {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT PAGE HERO */
.product-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 60px;
  color: white;
}

.product-hero-overlay h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

/* PRODUCT SECTIONS */
.product-section {
  padding: 80px 0;
}

.product-section.alt-bg {
  background: #f8fafc;
}

.product-flex {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.product-flex.reverse {
  flex-direction: row-reverse;
}

.product-text {
  flex: 1;
  min-width: 300px; /* Force wrap if container is small */
}

.product-image {
  flex: 1;
  min-width: 300px;
}

.product-image img {
  width: 100%;
  border-radius: 12px;
}

.center {
  text-align: center;
}

/* CTA */
.product-cta-banner {
  text-align: center;
  padding: 60px 20px;
  background: #0a1628;
  color: white;
}

.form-select {
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Custom arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.section .info-card {
  background: #fff;
  padding: 36px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  height: 90px;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* ============================================
    SERVICE PAGE EXTRAs
    ============================================ */
.service-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.service-process-card {
  background: var(--color-gray-50);
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.service-process-card:hover {
  transform: translateY(-5px);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.service-process-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.service-process-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-process-desc {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.service-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-secondary);
}

.service-benefit-icon {
  color: var(--color-success);
  font-size: 18px;
}

.mega-card-desc {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.4;
}

/* ============================================
    RESPONSIVE PRODUCT HERO FIX
    ============================================ */
@media (max-width: 992px) {
  .product-hero {
    height: 350px;
  }

  .product-hero-overlay {
    left: 30px;
    bottom: 30px;
  }

  .product-hero-overlay h1 {
    font-size: 36px;
  }

  /* FIX FOR SQUASHED PRODUCT PAGES */
  .product-flex {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .product-flex.reverse {
    flex-direction: column !important;
  }

  .product-text,
  .product-image {
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important; /* Reset min-width constraint */
  }

  .feature-list li {
    font-size: 14px; /* Ensure list items are readable */
  }
}

@media (max-width: 768px) {
  .product-hero {
    height: 300px;
  }

  .product-hero-overlay {
    left: 20px;
    bottom: 20px;
    right: 20px; /* Ensure it doesn't overflow */
    width: auto;
  }

  .product-hero-overlay h1 {
    font-size: 28px;
  }

  .product-hero-overlay > div {
    padding: 15px 20px !important;
    border-radius: 15px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-hero-overlay h1 {
    font-size: 24px !important;
    margin-bottom: 5px !important;
  }

  .product-hero-overlay h2 {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* ============================================
    PRODUCT GALLERY
    ============================================ */
.product-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
  position: relative;
  min-width: 0; /* Prevents grid blowout */
  width: 100%; /* Force width constraint */
}

.main-image-wrapper {
  width: 100%;
  height: 500px; /* Increased height */
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbnails-wrapper {
  position: relative;
  padding: 0 40px; /* Space for arrows */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* Ensure padding doesn't add to width */
}

.thumbnails-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  width: 100%; /* Trigger scroll */
}

.thumbnails-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.thumbnail {
  width: 120px; /* Increased size */
  height: 110px; /* Increased size */
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7; /* Slightly less opaque to show active state better */
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border-color: var(
    --color-error
  ); /* Using red as requested/implied by "red border" in typical examples, user screenshot had red border selection */
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px; /* Tall arrow area */
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 30px;
  color: var(--color-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2;
}

.gallery-nav:hover {
  color: var(--color-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

/* ============================================
   ALIGNMENT & CTA STYLES
   ============================================ */

/* Mobile CTA - Hide on Large Screens */
@media (min-width: 993px) {
  .mobile-only-nav {
    display: none !important;
  }
}

/* Desktop CTA - Hide on Small Screens */
.desktop-only-cta {
  display: none;
  margin-left: 20px;
  padding: 10px 24px;
  height: auto;
  font-size: 15px;
}

@media (min-width: 993px) {
  .desktop-only-cta {
    display: inline-flex;
  }
}

/* Center main nav */
.main-nav {
  margin: 0 auto; /* Centers the nav if parent is justifying */
}
