/* ==========================================================================
   LEMCO PIPES - GLOBAL STYLES (index.css)
   ========================================================================== */

:root {
  /* Color Palette */
  --lemco-blue: #1085d9;
  --lemco-blue-dark: #0a5f9e;
  --clean-white: #ffffff;
  --off-white: #f8f9fa;
  --industrial-slate: #2c3e50;
  --slate-light: #596b7d;
  --slate-dark: #1a252f;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --accent-gold: #f39c12;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Roboto', 'Inter', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-blue { color: var(--lemco-blue); }
.text-slate { color: var(--industrial-slate); }
.text-white { color: var(--clean-white); }
.font-bold { font-weight: 700; }
.font-heavy { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--slate-dark);
  color: var(--clean-white);
}

.relative {
  position: relative;
}

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

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--clean-white);
}

.section-blue {
  background-color: var(--lemco-blue);
  color: var(--clean-white);
}

.section-blue h1, .section-blue h2, .section-blue h3 {
  color: var(--clean-white);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
  display: flex;
}

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

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

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

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

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--lemco-blue);
  color: var(--clean-white);
}

.btn-primary:hover {
  background-color: var(--lemco-blue-dark);
  box-shadow: 0 4px 12px rgba(16, 133, 217, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--lemco-blue);
  border-color: var(--lemco-blue);
}

.btn-secondary:hover {
  background-color: var(--lemco-blue);
  color: var(--clean-white);
}

.btn-white {
  background-color: var(--clean-white);
  color: var(--lemco-blue);
}

.btn-white:hover {
  background-color: var(--off-white);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--clean-white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  border-bottom: 4px solid var(--lemco-blue);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--lemco-blue);
  margin-bottom: 1.5rem;
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background: var(--clean-white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  background-color: var(--slate-dark);
  color: var(--clean-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--off-white);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--clean-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: height var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  max-height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--industrial-slate);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lemco-blue);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lemco-blue);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--industrial-slate);
  margin: 5px 0;
  transition: all var(--transition-normal);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--clean-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--industrial-slate);
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--slate-dark);
  color: var(--clean-white);
  padding: 5rem 0 2rem;
}

.footer-brand .logo-img {
  margin-bottom: 1.5rem;
}

.footer-text {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-heading {
  color: var(--clean-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--lemco-blue);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #9ca3af;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--lemco-blue);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--lemco-blue);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 96px); /* 1 inch padding */
  background-color: var(--slate-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--clean-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 37, 47, 0.9) 0%, rgba(26, 37, 47, 0.4) 100%);
  z-index: 1;
}

.hero-animated {
  background-image: none !important;
  /* Darker Cyan gradient per user request */
  background: linear-gradient(135deg, #1aa4cc, #2488a8, #10668f);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  padding-bottom: 180px; /* More padding at bottom */
}

/* Watermark Background Text */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(16, 133, 217, 0.15); /* Increased Opacity */
  white-space: nowrap;
  pointer-events: none; /* so it doesn't block clicks */
  z-index: 0; /* behind orbs and content */
  animation: moveWatermark 60s linear infinite;
}

@keyframes moveWatermark {
  0% { transform: translate(0%, -50%); }
  50% { transform: translate(-20%, -50%); }
  100% { transform: translate(0%, -50%); }
}

.hero-animated .hero-title {
  color: #1f2937 !important; /* Matte Black */
  font-size: 4rem;
  line-height: 1.2;
}

.hero-animated .hero-desc {
  color: #4b5563 !important; /* Matte Dark Gray */
}

@media (max-width: 768px) {
  .hero-animated .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

.hero-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(16, 133, 217, 0.1) 0%, transparent 60%);
  z-index: 1;
  mix-blend-mode: screen;
}

/* Glowing Orbs Animation */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #1085d9;
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #00f2fe;
  bottom: -150px;
  right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

/* Curved Divider */
.hero-divider {
  position: absolute;
  bottom: 0px; /* Aligns to bottom edge of hero */
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 20;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 120px;
  /* Remove spacing issues */
  margin: 0;
  filter: drop-shadow(0px -4px 6px rgba(0, 0, 0, 0.08)); /* Ensures visibility over any gradient */
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(40px) scale(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-fade-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tagline {
  color: var(--lemco-blue);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--clean-white);
}

.hero-title span {
  color: var(--lemco-blue);
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #e5e7eb;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 1.1rem;
  }
}

/* Page Headers */
.page-header {
  padding: 8rem 0 4rem;
  background-color: var(--slate-dark);
  color: var(--clean-white);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--lemco-blue);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--lemco-blue);
  box-shadow: 0 0 0 3px rgba(16, 133, 217, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   MAP CONTAINER
   ========================================================================== */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 400px;
  background-color: #e5e7eb;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   UI/UX OVERHAUL & ANIMATIONS (Phase 3)
   ========================================================================== */

/* Intersection Observer Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }

/* Marquee Slider */
.marquee-wrapper {
  background-color: var(--lemco-blue);
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
}

.marquee-content {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  display: inline-block;
  margin: 0 1rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(16, 133, 217, 0.15);
}

.glass-card-dark {
  background: rgba(25, 35, 45, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card-dark:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 133, 217, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Parallax Section */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 37, 47, 0.7);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* Spec Image Cards */
.spec-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: white;
  transition: transform 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
}

.spec-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.spec-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spec-card:hover .spec-img-wrapper img {
  transform: scale(1.05);
}

.spec-details {
  padding: 1.5rem;
}

.spec-table {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.spec-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.spec-table td {
  text-align: right;
  font-weight: 700;
  color: var(--slate-dark);
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

/* Specific Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--lemco-blue), #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
