/* ==========================================================================
   UDHAYA SPUN PIPES — DESIGN SYSTEM & STYLESHEET
   Enterprise-Quality RCC Pipe Manufacturing & Wholesale Supply Corporate Portal
   ========================================================================== */

/* --- 1. CSS VARIABLES & THEME TOKENS --- */
:root {
  /* Brand Color Palette */
  --color-primary-navy: #102B50;
  --color-deep-navy: #091A30;
  --color-white: #FFFFFF;
  --color-light-bg: #F4F6F9;
  --color-gold-accent: #C5A15A;
  --color-gold-hover: #b48f48;
  --color-gold-light: #f7f1e4;
  --color-text-grey: #596579;
  --color-dark-text: #17263B;
  --color-border-light: #E2E7EE;
  --color-border-dark: #1E375B;
  --color-success: #1E7E34;
  --color-success-bg: #E8F5E9;
  --color-error: #D32F2F;
  --color-error-bg: #FFEBEE;
  --color-info: #0288D1;
  --color-info-bg: #E1F5FE;

  /* Typography */
  --font-heading: 'Manrope', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2.5rem;   /* 40px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Layout Containers */
  --container-max-width: 1240px;
  --header-height: 80px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(9, 26, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(9, 26, 48, 0.08);
  --shadow-lg: 0 10px 25px rgba(9, 26, 48, 0.12);
  --shadow-xl: 0 20px 40px rgba(9, 26, 48, 0.16);
  --shadow-gold: 0 4px 20px rgba(197, 161, 90, 0.35);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-lock,
body.modal-lock {
  overflow: hidden;
}

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

picture {
  display: contents;
}

.brand-logo-picture {
  display: inline-flex;
  align-items: center;
}

.hero-background picture,
.product-card-img-wrapper picture,
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility: Skip Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-gold-accent);
  color: var(--color-deep-navy);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 20px;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-gold-accent);
  outline-offset: 3px;
}

/* --- 3. TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  line-height: 1.25;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
  color: var(--color-text-grey);
  font-size: 1rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-accent);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--color-gold-accent);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-lead {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--color-text-grey);
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- 4. LAYOUT COMPONENTS --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.section-light {
  background-color: var(--color-light-bg);
}

.section-navy {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
}

.section-navy h2, 
.section-navy h3 {
  color: var(--color-white);
}

.section-navy p {
  color: #9cb1cb;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

/* --- 5. BUTTONS & UI CONTROLS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background-color: var(--color-gold-accent);
  color: var(--color-deep-navy);
  box-shadow: 0 4px 14px rgba(197, 161, 90, 0.3);
}

.btn-gold:hover, .btn-gold:focus {
  background-color: var(--color-gold-hover);
  color: var(--color-deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 161, 90, 0.45);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary-navy);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-primary-navy);
  border: 2px solid var(--color-primary-navy);
}

.btn-outline-navy:hover {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}

.btn-whatsapp-sync {
  background-color: #25D366;
  color: #FFFFFF;
  margin-top: var(--space-md);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp-sync:hover {
  background-color: #1EBE5D;
}

/* --- 6. HEADER & STICKY NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(9, 26, 48, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
  height: var(--header-height);
}

.site-header.header-scrolled {
  background-color: var(--color-deep-navy);
  box-shadow: var(--shadow-lg);
  height: 70px;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.site-header.header-scrolled .brand-logo-img {
  height: 44px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--color-gold-accent);
}

.brand-subtitle {
  font-size: 0.65rem;
  color: #8fa4c2;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-brand {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #D3DFEE;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

.nav-cta-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Hamburger active animation */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- 7. HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(9, 26, 48, 0.94) 0%,
    rgba(16, 43, 80, 0.88) 55%,
    rgba(9, 26, 48, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 161, 90, 0.15);
  border: 1px solid rgba(197, 161, 90, 0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-accent);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--color-gold-accent);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #E2EAF4;
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.hero-description {
  font-size: 1.05rem;
  color: #A6B8CE;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-spec-item {
  display: flex;
  flex-direction: column;
}

.hero-spec-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold-accent);
}

.hero-spec-desc {
  font-size: 0.85rem;
  color: #9cb1cb;
}

/* --- 8. ABOUT US SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-gold-accent);
  margin-top: 2px;
}

.about-feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary-navy);
}

.about-feature-text span {
  font-size: 0.85rem;
  color: var(--color-text-grey);
}

.about-image-wrapper {
  position: relative;
}

.about-main-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-card-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-primary-navy);
  color: var(--color-white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold-accent);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.about-badge-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-accent);
  margin-bottom: 4px;
}

.about-badge-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

/* --- 9. PRODUCTS SECTION --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold-accent);
}

.product-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--color-deep-navy);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-grade-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-deep-navy);
  color: var(--color-white);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--color-gold-accent);
}

.product-sizes-count-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-navy);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.product-card-class {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.product-card-desc {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-specs-box {
  background: var(--color-light-bg);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.product-specs-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-specs-label span {
  color: var(--color-gold-accent);
}

.diameter-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.diameter-tag {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-dark-text);
}

.product-card .btn {
  width: 100%;
}

/* --- 10. MANUFACTURING PROCESS SECTION --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  position: relative;
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-accent);
}

.process-step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #DDE5F0;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.process-card:hover .process-step-number {
  color: var(--color-gold-accent);
}

.process-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.process-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

.process-card-img-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.process-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.5rem;
  background: rgba(16, 43, 80, 0.04);
  border-left: 3px solid var(--color-primary-navy);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-grey);
}

/* --- 11. QUALITY ASSURANCE SECTION --- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quality-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
}

.quality-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-gold-accent);
  transform: translateY(-4px);
}

.quality-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(197, 161, 90, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-accent);
  margin-bottom: 1.25rem;
}

.quality-card-title {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.quality-card-desc {
  font-size: 0.9rem;
  color: #9cb1cb;
  line-height: 1.6;
}

/* --- 12. WHY CHOOSE US SECTION --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  border-top: 4px solid var(--color-primary-navy);
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--color-gold-accent);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 44px;
  height: 44px;
  color: var(--color-gold-accent);
  margin-bottom: 1.25rem;
}

.why-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.why-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- 13. INFRASTRUCTURE & IMAGE GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-deep-navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 26, 48, 0.9) 0%, rgba(9, 26, 48, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-item-desc {
  color: var(--color-gold-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

/* Lightbox Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 26, 48, 0.95);
  backdrop-filter: blur(8px);
}

.modal-wrapper {
  position: relative;
  z-index: 10001;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  color: var(--color-white);
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.modal-caption span {
  color: var(--color-gold-accent);
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: pointer;
  z-index: 10002;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
  background: var(--color-gold-accent);
  color: var(--color-deep-navy);
}

.modal-close { top: 20px; right: 20px; }
.modal-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.modal-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- 14. SUPPLY NETWORK SECTION --- */
.network-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.network-details-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.network-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.network-badge {
  background: var(--color-light-bg);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.network-address-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.network-address-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-gold-accent);
  margin-bottom: 0.35rem;
}

.network-address-text {
  font-size: 0.95rem;
  color: var(--color-dark-text);
  font-weight: 600;
}

.network-map-wrapper {
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.network-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* --- 15. CONTACT & QUOTATION FORM --- */
.quotation-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.quotation-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}

.quotation-sidebar {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-primary-navy) 100%);
  color: var(--color-white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quotation-sidebar h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.quotation-sidebar p {
  color: #a8bdd4;
  margin-bottom: 2rem;
}

.sidebar-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sidebar-contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gold-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.sidebar-contact-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-accent);
}

.sidebar-contact-val {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
}

.quotation-form-pane {
  padding: 3rem 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.35rem;
}

.form-label .required {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-gold-accent);
  box-shadow: 0 0 0 3px rgba(197, 161, 90, 0.15);
  outline: none;
}

.form-control:disabled {
  background: #ECEFF3;
  cursor: not-allowed;
  opacity: 0.8;
}

.form-control.input-error {
  border-color: var(--color-error);
  background: #FFF8F8;
}

.form-control.highlight-field {
  border-color: var(--color-gold-accent);
  box-shadow: 0 0 0 4px rgba(197, 161, 90, 0.3);
  animation: pulseHighlight 1.5s ease;
}

@keyframes pulseHighlight {
  0%, 100% { border-color: var(--color-border-light); }
  50% { border-color: var(--color-gold-accent); }
}

.field-error-message {
  font-size: 0.75rem;
  color: var(--color-error);
  font-weight: 600;
  margin-top: 4px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-grey);
  margin-top: 4px;
}

.form-hint-active {
  color: var(--color-primary-navy);
  font-weight: 600;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ======================================================================
   MULTI-PRODUCT PIPE ORDER BUILDER
   ====================================================================== */
.pipe-builder-card {
  grid-column: span 2;
  background: #F8FAFD;
  border: 1.5px solid #E2EAF4;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  margin: 0.35rem 0;
  box-shadow: 0 2px 8px rgba(16, 43, 80, 0.04);
}

.pipe-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #E2EAF4;
}

.pipe-builder-title {
  color: var(--color-primary-navy);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipe-builder-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-grey);
  margin-bottom: 0;
  line-height: 1.45;
}

.pipe-builder-badge {
  background: var(--color-primary-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.pipe-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pipe-item-row {
  background: var(--color-white);
  border: 1.5px solid #E2E8F0;
  border-left: 4px solid var(--color-primary-navy);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.pipe-item-row:hover {
  border-color: #CBD5E1;
  border-left-color: var(--color-gold-accent);
}

.pipe-item-row.row-invalid {
  border-color: var(--color-error);
  border-left-color: var(--color-error);
  background: #FFFBFB;
}

.pipe-item-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #EDF2F7;
}

.pipe-item-row-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-navy);
}

.btn-remove-row {
  background: rgba(220, 38, 38, 0.07);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-remove-row:hover:not(:disabled) {
  background: #DC2626;
  color: var(--color-white);
  border-color: #DC2626;
}

.btn-remove-row:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #F1F5F9;
  color: #94A3B8;
  border-color: #E2E8F0;
}

.pipe-item-row-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.pipe-builder-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #E2EAF4;
}

.btn-add-pipe {
  background: var(--color-white);
  color: var(--color-primary-navy);
  border: 2px dashed var(--color-gold-accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-add-pipe:hover {
  background: rgba(197, 161, 90, 0.12);
  border-color: var(--color-primary-navy);
  transform: translateY(-1px);
}

.pipe-total-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-deep-navy);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.pipe-total-label {
  color: #CBD5E1;
  font-weight: 500;
}

.pipe-total-value {
  color: var(--color-gold-accent);
  font-weight: 800;
}

.row-error-hint {
  font-size: 0.75rem;
  color: var(--color-error);
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
}

/* Anti-spam honeypot (invisible to humans) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Form Alert Banners */
.form-alert {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.alert-success {
  background: var(--color-success-bg);
  border-left: 4px solid var(--color-success);
  color: #155724;
}

.alert-error {
  background: var(--color-error-bg);
  border-left: 4px solid var(--color-error);
  color: #721c24;
}

.alert-info {
  background: var(--color-info-bg);
  border-left: 4px solid var(--color-info);
  color: #0c5460;
}

/* Button Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- 16. FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.7;
  animation: pulseWave 2s infinite;
  z-index: -1;
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- 17. BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-gold-accent);
  color: var(--color-deep-navy);
  transform: translateY(-3px);
}

/* --- 18. FOOTER --- */
.site-footer {
  background-color: var(--color-deep-navy);
  color: #A2B6CC;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-gold-accent);
}

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

.footer-link {
  font-size: 0.9rem;
  color: #A2B6CC;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold-accent);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-gold-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7A90A8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* --- 19. SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- 20. RESPONSIVE BREAKPOINTS (Mobile-First & Cross-Device Media Queries) --- */

/* High-DPI / Large Laptops & Desktops (>= 1200px) */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 860px;
  }

  .products-grid {
    gap: 2rem;
  }
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--color-deep-navy);
    flex-direction: column;
    padding: 2rem 1.5rem 2.5rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--color-gold-accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    justify-content: center;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-cta-btn {
    width: 100%;
    max-width: 320px;
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-main-image {
    height: 380px;
  }

  .products-grid,
  .process-timeline,
  .quality-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quotation-grid {
    grid-template-columns: 1fr;
  }

  .network-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-specs-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  .about-main-image {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }

  .about-card-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .products-grid,
  .process-timeline,
  .quality-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-card-img-wrapper {
    height: 200px;
  }

  .gallery-item {
    height: 220px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .pipe-builder-card {
    grid-column: span 1;
    padding: 1.15rem 0.85rem;
  }

  .pipe-builder-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pipe-item-row-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pipe-builder-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-add-pipe,
  .pipe-total-summary {
    width: 100%;
    justify-content: center;
  }

  /* Prevent automatic iOS / mobile zoom on input focus by setting 16px font-size */
  .form-control {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }

  .quotation-form-pane {
    padding: 2rem 1.5rem;
  }

  .quotation-sidebar {
    padding: 2rem 1.5rem;
  }

  .network-map-iframe {
    min-height: 300px;
    height: 300px;
  }

  /* Modal responsive sizing on tablets */
  .modal-wrapper {
    max-width: 94vw;
    max-height: 88vh;
  }

  .modal-image {
    max-height: 65vh;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .about-features-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .quotation-form-pane {
    padding: 1.5rem 1rem;
  }

  .quotation-sidebar {
    padding: 1.5rem 1rem;
  }

  /* Mobile Lightbox Controls */
  .modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .modal-prev {
    left: 8px;
    width: 38px;
    height: 38px;
  }

  .modal-next {
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .modal-caption {
    font-size: 0.85rem;
    padding: 0 8px;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 76px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

/* Very Small Mobile Screens (<= 360px e.g. iPhone SE) */
@media (max-width: 360px) {
  .brand-wrapper {
    gap: 8px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .hero-spec-title {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
