/* ============================================
   Cattman Flooring — Global Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

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

:root {
  /* Brand colors */
  --primary: #E8491D;
  --primary-dark: #c73a12;
  --primary-light: #ff6b3d;
  --secondary: #2C3E50;
  --dark: #1a1a2e;
  --dark-surface: #222236;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-dark: #0f0f1a;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(232,73,29,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,73,29,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,73,29,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  color: #fff;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ---------- Section Styling ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header .accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}
.section--dark .section-header p { color: rgba(255,255,255,0.7); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 45px;
  transition: opacity var(--transition);
}
.nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 20px;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(30,30,50,0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  color: #fff;
  background: rgba(232,73,29,0.15);
}

/* Nav CTA */
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 20px rgba(232,73,29,0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,15,26,0.85) 0%,
    rgba(15,15,26,0.6) 50%,
    rgba(232,73,29,0.2) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232,73,29,0.15);
  border: 1px solid rgba(232,73,29,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
}
.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,0.9), rgba(15,15,26,0.7));
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-header .breadcrumb {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb a { color: var(--primary-light); }

/* ---------- Services Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,73,29,0.15);
}
.service-card-img {
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}
.service-card-body {
  padding: 28px;
}
.service-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.service-card:hover .service-card-body h3 { color: var(--primary); }
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Why Choose Us Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(232,73,29,0.2);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,73,29,0.15), rgba(232,73,29,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---------- Project Preview Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition);
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(232,73,29,0.85) 0%, rgba(15,15,26,0.4) 60%);
}
.project-card-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.project-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.project-card-overlay .view-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.project-card:hover .view-link {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Equipment Grid ---------- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.equipment-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.equipment-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.equipment-card-img img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.equipment-card:hover .equipment-card-img img { transform: scale(1.05); }
.equipment-card-body {
  padding: 24px;
}
.equipment-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.equipment-card-body p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.equipment-card-body .btn { font-size: 0.82rem; padding: 8px 20px; }

/* ---------- Clients / Logos ---------- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.client-logo {
  height: 50px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition);
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Gallery / Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,73,29,0.1), rgba(232,73,29,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  background: var(--bg-alt);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,73,29,0.1);
  background: var(--bg);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.about-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.about-stat h3 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}
.about-stat p {
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Equipment Detail Page ---------- */
.equip-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.equip-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 400px;
}
.equip-detail-img img {
  max-height: 360px;
  object-fit: contain;
}
.equip-detail-info h2 { font-size: 2rem; margin-bottom: 20px; }
.equip-detail-info p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.equip-specs {
  margin-top: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}
.equip-specs h4 { font-size: 1rem; margin-bottom: 12px; }
.equip-specs table { width: 100%; }
.equip-specs td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.equip-specs td:first-child { font-weight: 600; width: 40%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.footer-contact-item span:first-child { font-size: 1.1rem; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure content visible after 3s even if JS fails */
@keyframes fadeInFallback {
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeInFallback 0.8s ease 2.5s forwards;
}
.fade-up.visible {
  animation: none;
}

/* Stagger delay for grids */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .equip-detail { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {

  /* ===== MOBILE NAV BAR =====
     Strategy: nav bar stays in its normal z-index:1000 stacking context.
     The menu slides below the nav bar (top:60px) so there is NO overlap.
     This avoids all Safari z-index stacking context bugs. */

  .nav {
    background: #0f0f1a;
  }
  .nav.scrolled {
    background: #0f0f1a;
    box-shadow: 0 1px 20px rgba(0,0,0,0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-inner {
    height: 60px;
  }
  .nav-logo img { height: 34px; }

  .nav-toggle {
    display: flex;
  }

  /* ===== MOBILE MENU PANEL =====
     Positioned right below the nav bar (top:60px), not full inset:0.
     No z-index war needed — it's a child of .nav (z-index:1000). */

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    background: #0f0f1a;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 24px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-links.active {
    display: flex;
  }

  /* ===== MOBILE NAV LINKS ===== */
  .nav-links > li {
    width: 100%;
    text-align: center;
  }

  .nav-links > li > a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 24px;
    color: rgba(255,255,255,0.9);
    border-radius: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links > li:last-child > a {
    border-bottom: none;
  }
  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background: rgba(232,73,29,0.1);
    color: #fff;
  }
  /* Kill desktop underline pseudo-element */
  .nav-links a::after {
    display: none !important;
    content: none;
  }

  /* ===== MOBILE DROPDOWNS ===== */
  .nav-dropdown {
    position: static;
  }
  /* Kill the desktop hover-bridge pseudo-element */
  .nav-dropdown > a::before {
    display: none;
    content: none;
  }

  /* On mobile: ONLY the .open class controls visibility, never :hover */
  .nav-dropdown .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:hover > .dropdown-menu {
    position: static;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.04);
    min-width: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Only the .open class shows it */
  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown.open:hover .dropdown-menu {
    display: block;
  }

  /* Dropdown links: force centering with high specificity */
  .nav .nav-links .dropdown-menu a,
  .nav .dropdown-menu a {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    text-align: center;
    padding: 11px 24px;
    color: rgba(255,255,255,0.5);
    white-space: normal;
    border-radius: 0;
    background: transparent;
  }
  .nav .nav-links .dropdown-menu a:hover,
  .nav .dropdown-menu a:hover {
    color: var(--primary-light);
    background: rgba(232,73,29,0.08);
  }

  /* ===== MOBILE CTA BUTTON ===== */
  .nav-links .nav-cta {
    margin: 16px auto 0;
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    border-radius: 50px;
    text-align: center;
  }
  .nav-links > li:has(.nav-cta) {
    text-align: center;
    border-bottom: none;
  }

  /* ===== LAYOUT ADJUSTMENTS ===== */
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 20px; }

  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 40px; }

  .services-grid,
  .projects-grid,
  .equipment-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .page-header h1 { font-size: 2rem; }
  .page-header { padding: 100px 0 40px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 50px 0 0; }

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

  .cta-banner h2 { font-size: 1.8rem; }
  .cta-banner { padding: 50px 0; }

  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .page-header { padding: 80px 0 30px; }
  .page-header h1 { font-size: 1.6rem; }
}
