/* SENSORS INDIA - Main Design System Stylesheet */

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

:root {
  --navy: #0D2137;
  --amber: #C8580A;
  --text: #1A2535;
  --muted: #6B7280;
  --off: #F4F6F9;
  --border: #DDE2EA;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(13, 33, 55, 0.04);
  --shadow-md: 0 8px 32px rgba(13, 33, 55, 0.08);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Common Layout Containers */
.w {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.sec {
  padding: 80px 0;
}

.sec-off {
  background-color: var(--off);
}

.sec-navy {
  background-color: var(--navy);
  color: #fff;
}

/* Topbar & Header Navigation */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.topbar-link:hover {
  color: #fff;
}

.topbar-link i {
  color: var(--amber);
}

.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-i {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo img {
  height: 62px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nl {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}

.nl:hover, .nl.on {
  color: var(--amber);
}

.nl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.nl:hover::after, .nl.on::after {
  width: 100%;
}

/* Page Header (phdr) */
.phdr {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.phdr-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.phdr-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
  max-width: 800px;
}

.phdr-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  line-height: 1.65;
  font-weight: 300;
}

/* Buttons */
.si-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #C8580A 0%, #EF8A3C 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 88, 10, 0.15);
}

.si-btn-primary:hover {
  background: #a84705;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 88, 10, 0.25);
}

/* CTA Section */
.cta-sec {
  padding: 0;
  background: #ffffff;
}

.cta-sec .w {
  max-width: 100%;
  padding: 0;
}

.cta-card {
  background: linear-gradient(135deg, #C8580A 0%, #EF8A3C 100%);
  border-radius: 0;
  padding: 80px 32px;
  color: #ffffff;
  text-align: center;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 33, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(13, 33, 55, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn-primary:hover {
  background: #173656;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.4);
}

.cta-btn-secondary {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn-secondary:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.si-btn-navy {
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(13, 33, 55, 0.15);
}

.si-btn-navy:hover {
  background: #173656;
  box-shadow: 0 6px 20px rgba(13, 33, 55, 0.25);
}

.nl-cta {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
}

.nl-cta:hover {
  background: var(--amber);
  box-shadow: 0 4px 12px rgba(200, 88, 10, 0.15);
}

/* About Page Specific Layouts */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

.about-photos-wrapper {
  display: flex;
  flex-direction: column;
}

.about-photo-collage {
  position: relative;
  height: 480px;
  width: 100%;
}

.collage-main-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-overlap-frame {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 60%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13, 33, 55, 0.16);
  border: 4px solid #ffffff;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo-collage:hover .collage-main-frame {
  transform: translateY(-8px) scale(1.01);
}

.about-photo-collage:hover .collage-overlap-frame {
  transform: translate(-4px, -4px) scale(1.03);
  box-shadow: 0 24px 64px rgba(13, 33, 55, 0.22);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Cards & Components */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(13, 33, 55, 0.02), 0 1px 3px rgba(13, 33, 55, 0.01);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(13, 33, 55, 0.12), 0 1px 3px rgba(13, 33, 55, 0.04);
  border-color: rgba(200, 88, 10, 0.25);
}

.feature-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.2) translateY(-2px);
}

.si-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Industries Served Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid rgba(200, 88, 10, 0.35);
  border-radius: 12px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(200, 88, 10, 0.02) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 88, 10, 0.15);
  border-top-color: var(--amber);
}

.industry-card:hover::before {
  opacity: 1;
}

/* Position card elements above the background hover gradient */
.industry-card-num,
.industry-icon-wrapper,
.industry-card-title,
.industry-tags {
  position: relative;
  z-index: 1;
}

.industry-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 22px;
  font-weight: 700;
  color: rgba(13, 33, 55, 0.06);
  font-family: var(--font-primary);
  line-height: 1;
  transition: all 0.4s ease;
}

.industry-card:hover .industry-card-num {
  color: rgba(200, 88, 10, 0.15);
  transform: scale(1.05);
}

.industry-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover .industry-icon-wrapper {
  background-color: rgba(200, 88, 10, 0.08);
  color: var(--amber);
  transform: translateY(-2px);
}

.industry-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.industry-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-tag {
  background: rgba(200, 88, 10, 0.06);
  border-color: rgba(200, 88, 10, 0.15);
  color: var(--amber);
}

/* Counter Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-panel {
  padding: 36px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-panel:hover {
  background: rgba(255, 255, 255, 0.06);
}

.metric-panel:hover .metric-num {
  transform: scale(1.05);
  color: #ffb973;
}

.metric-num {
  font-size: 40px;
  font-weight: 700;
  color: #E8A055;
  line-height: 1;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.metric-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  line-height: 1.5;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sector-panel {
  background: #0f2848;
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.sector-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.sector-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-weight: 300;
}

/* Logo Slider */
.logo-slider-sec {
  padding: 90px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.logo-slider-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.ls-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ls-fade-l, .ls-fade-r {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ls-fade-l {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.ls-fade-r {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.ls-row {
  display: flex;
  gap: 24px;
  align-items: center;
  animation: logoScroll 40s linear infinite;
  width: max-content;
}

.lt {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(13, 33, 55, 0.08);
  border-radius: 8px;
  padding: 12px 28px;
  min-width: 160px;
  height: 72px;
  box-shadow: 0 2px 8px rgba(13, 33, 55, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lt:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 33, 55, 0.1);
  border-color: rgba(200, 88, 10, 0.25);
}

.lt img {
  max-height: 34px;
  max-width: 104px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all 0.25s ease;
}

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

/* Footer Section */
.site-footer {
  background: #081422;
  color: rgba(255, 255, 255, 0.7);
  padding: 96px 0 80px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a:hover {
  color: var(--amber);
}

.footer-desc {
  line-height: 1.6;
  font-weight: 300;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .metrics-grid, .sectors-grid, .footer-grid, .industry-grid, .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo-collage {
    height: 420px;
    max-width: 540px;
    margin: 0 auto 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; /* Can implement mobile toggle later */
  }
  
  .metrics-grid, .sectors-grid, .footer-grid, .industry-grid, .capabilities-grid {
    grid-template-columns: 1fr;
  }
  
  .w {
    padding: 0 20px;
  }
  
  .cta-card {
    padding: 44px 24px;
  }
  
  .cta-title {
    font-size: 26px;
  }

  .about-photo-collage {
    height: 320px;
    margin-bottom: 24px;
  }
}

/* Contact Page Custom Grid & Cards Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .3s ease;
}
.ci-ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 6px rgba(13,33,55,0.02);
}
.ci-ic i {
  color: var(--navy);
  font-size: 14px;
  transition: all .3s ease;
}
.ci:hover .ci-ic {
  background: var(--navy);
  border-color: var(--navy);
}
.ci:hover .ci-ic i {
  color: #ffffff;
  transform: scale(1.1);
}
.ci-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.ci-val {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.6;
  font-weight: 500;
}
.ci-val a {
  color: var(--navy);
  transition: color .25s ease;
}
.ci-val a:hover {
  color: var(--amber);
}
.cform {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.cform-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.cform-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 300;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fg {
  margin-bottom: 12px;
}
.fg label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.fg input, .fg select, .fg textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .18s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--navy);
}
.fg textarea {
  resize: vertical;
  min-height: 90px;
}
.btn-submit {
  background: var(--navy);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .18s;
}
.btn-submit:hover {
  background: #1a3d6e;
}

/* WPForms Custom Theme Integration */
.wpforms-container {
  margin: 0 !important;
  width: 100% !important;
}
.wpforms-container .wpforms-form {
  margin: 0 !important;
  padding: 0 !important;
}
.wpforms-container .wpforms-form .wpforms-field {
  padding: 0 !important;
  margin-bottom: 20px !important;
  clear: both;
}
.wpforms-container .wpforms-form .wpforms-field-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
}
.wpforms-container .wpforms-form .wpforms-field-required {
  color: #ef4444 !important;
  margin-left: 3px !important;
}
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  color: var(--navy) !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}
.wpforms-container .wpforms-form input[type="text"]:focus,
.wpforms-container .wpforms-form input[type="email"]:focus,
.wpforms-container .wpforms-form input[type="tel"]:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--navy) !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-form textarea {
  min-height: 110px !important;
  resize: vertical !important;
}
.wpforms-container .wpforms-form .wpforms-submit-container {
  padding: 0 !important;
  margin: 0 !important;
  clear: both;
}
.wpforms-container .wpforms-form button[type="submit"].wpforms-submit {
  background: var(--navy) !important;
  color: #ffffff !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.15s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-form button[type="submit"].wpforms-submit:hover {
  background: #1a3d6e !important;
}

/* WPForms Grid Column Styling */
.wpforms-field-row {
  display: flex !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}
.wpforms-field-row .wpforms-field-row-block {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 600px) {
  .wpforms-field-row {
    flex-direction: column !important;
    gap: 20px !important;
  }
}

/* WordPress Navigation Menu Overrides */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links ul li {
  margin: 0;
  padding: 0;
}
.nav-links ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.nav-links ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links ul li a:hover::after,
.nav-links ul li.current-menu-item a::after,
.nav-links ul li.current_page_parent a::after {
  width: 100%;
}
.nav-links ul li a:hover,
.nav-links ul li.current-menu-item a,
.nav-links ul li.current_page_parent a {
  color: var(--amber) !important;
}

/* Style the last item in the dynamic menu (Get a Quote CTA) */
.nav-links ul li.menu-cta a,
.nav-links ul li:last-child a {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  transition: all .2s !important;
}
.nav-links ul li.menu-cta a:hover,
.nav-links ul li:last-child a:hover {
  background: var(--blue) !important;
  color: #fff !important;
}
.nav-links ul li.menu-cta a::after,
.nav-links ul li:last-child a::after {
  display: none !important;
}

/* Dynamic Navigation Menu Styles Override */
.nav-menu,
.nav-links ul {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-menu li,
.nav-links ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: none !important;
}
.nav-menu li a,
.nav-links ul li a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text, #334155) !important;
  position: relative !important;
  padding: 8px 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
}
.nav-menu li a::after,
.nav-links ul li a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--amber, #c8580a) !important;
  transition: width 0.25s ease !important;
}
.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_parent a::after,
.nav-links ul li a:hover::after,
.nav-links ul li.current-menu-item a::after,
.nav-links ul li.current_page_parent a::after {
  width: 100% !important;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_parent a,
.nav-links ul li a:hover,
.nav-links ul li.current-menu-item a,
.nav-links ul li.current_page_parent a {
  color: var(--amber, #c8580a) !important;
}

/* Style the last item in the dynamic menu (Get a Quote CTA) */
.nav-menu li:last-child a,
.nav-links ul li:last-child a {
  background: var(--navy, #0a192f) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  transition: all .2s !important;
}
.nav-menu li:last-child a:hover,
.nav-links ul li:last-child a:hover {
  background: var(--blue, #1d4ed8) !important;
  color: #fff !important;
}
.wpforms-container .wpforms-form input[type="email"]:focus,
.wpforms-container .wpforms-form input[type="tel"]:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--navy) !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-form textarea {
  min-height: 110px !important;
  resize: vertical !important;
}
.wpforms-container .wpforms-form .wpforms-submit-container {
  padding: 0 !important;
  margin: 0 !important;
  clear: both;
}
.wpforms-container .wpforms-form button[type="submit"].wpforms-submit {
  background: var(--navy) !important;
  color: #ffffff !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.15s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-form button[type="submit"].wpforms-submit:hover {
  background: #1a3d6e !important;
}

/* WPForms Grid Column Styling */
.wpforms-field-row {
  display: flex !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}
.wpforms-field-row .wpforms-field-row-block {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 600px) {
  .wpforms-field-row {
    flex-direction: column !important;
    gap: 20px !important;
  }
}

/* WordPress Navigation Menu Overrides */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links ul li {
  margin: 0;
  padding: 0;
}
.nav-links ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}
.nav-links ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links ul li a:hover::after,
.nav-links ul li.current-menu-item a::after,
.nav-links ul li.current_page_parent a::after {
  width: 100%;
}
.nav-links ul li a:hover,
.nav-links ul li.current-menu-item a,
.nav-links ul li.current_page_parent a {
  color: var(--amber) !important;
}

/* Style the last item in the dynamic menu (Get a Quote CTA) */
.nav-links ul li.menu-cta a,
.nav-links ul li:last-child a {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  transition: all .2s !important;
}
.nav-links ul li.menu-cta a:hover,
.nav-links ul li:last-child a:hover {
  background: var(--blue) !important;
  color: #fff !important;
}
.nav-links ul li.menu-cta a::after,
.nav-links ul li:last-child a::after {
  display: none !important;
}

/* Dynamic Navigation Menu Styles Override */
.nav-menu,
.nav-links ul {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-menu li,
.nav-links ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: none !important;
}
.nav-menu li a,
.nav-links ul li a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text, #334155) !important;
  position: relative !important;
  padding: 8px 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
}
.nav-menu li a::after,
.nav-links ul li a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--amber, #c8580a) !important;
  transition: width 0.25s ease !important;
}
.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_parent a::after,
.nav-links ul li a:hover::after,
.nav-links ul li.current-menu-item a::after,
.nav-links ul li.current_page_parent a::after {
  width: 100% !important;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_parent a,
.nav-links ul li a:hover,
.nav-links ul li.current-menu-item a,
.nav-links ul li.current_page_parent a {
  color: var(--amber, #c8580a) !important;
}

/* Style the last item in the dynamic menu (Get a Quote CTA) */
.nav-menu li:last-child a,
.nav-links ul li:last-child a {
  background: var(--navy, #0a192f) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  transition: all .2s !important;
}
.nav-menu li:last-child a:hover,
.nav-links ul li:last-child a:hover {
  background: var(--blue, #1d4ed8) !important;
  color: #fff !important;
}
.nav-menu li:last-child a::after,
.nav-links ul li:last-child a::after {
  display: none !important;
}

/* Responsive Blue Features Strip below Map */
.contact-blue-features {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 900px) {
  .contact-blue-features {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .contact-blue-features {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   PRODUCTS CATALOG PAGE (page-products.php) & PRODUCT CARDS
   ========================================================================== */

/* Tab bar full width wrapper */
.tab-bar-wrap {
  width: 100%;
  background: var(--amber); /* Inactive tabs are orange */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tab bar layout */
.tab-bar {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: hidden;
}

/* Tab button standard state (Orange) */
.tb {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: var(--amber); /* Orange */
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  text-align: center;
}

.tb:last-child {
  border-right: none;
}

/* Tab button count badge */
.tb-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all 0.25s ease;
}

/* Tab button hover state (not active) */
.tb:hover:not(.tb-on) {
  background: #af4d09; /* Darker orange */
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.tb:hover:not(.tb-on) .tb-cnt {
  background: #ffffff;
  color: #af4d09;
}

/* Tab button active state (Black) */
.tb.tb-on {
  background: #000000; /* Active is black */
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.tb.tb-on .tb-cnt {
  background: #ffffff;
  color: #000000;
}

/* Tab Panels Grid container (tp) */
.tp {
  display: none; /* panel display toggled by JS; fallback/active below */
  grid-template-columns: repeat(4, 1fr) !important;
  column-gap: 24px;
  row-gap: 36px;
  margin-top: 24px;
  margin-bottom: 48px;
}

/* Related products grid (3 columns) */
.related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}

.related-grid .pc-img {
  height: 230px; /* Taller images to balance the wider 3-column card ratio */
}

/* Product Card (pc) */
.pc {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  position: relative;
}

.pc:hover {
  transform: translateY(-6px);
  border-color: var(--col);
  box-shadow: 0 12px 30px rgba(13, 33, 55, 0.12);
}

/* Dynamic color bar at the top of the card */
.pc::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--col);
  width: 100%;
}

/* Product Card Image */
.pc-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .pc-img img {
  transform: scale(1.06);
}

/* Product Card Body */
.pc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Product Card Title */
.pc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.pc:hover .pc-title {
  color: var(--col);
}

/* Product Excerpt */
.pc-excerpt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Standards wrapper */
.pc-std-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.pc-std-icon {
  font-size: 11px;
  color: var(--col);
}

.pc-std {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Product Card Footer (Learn More row) */
.pc-footer {
  border-top: 1px solid var(--off);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
}

.pc-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pc-more-icon {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.pc:hover .pc-more {
  color: var(--col);
}

.pc:hover .pc-more-icon {
  transform: translateX(4px);
}

/* Responsiveness overrides for grids & scrollable tabs */
@media (max-width: 1024px) {
  .tp, .related-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .tab-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar {
    display: none;
  }
  .tb {
    flex: 0 0 auto;
    padding: 16px 24px;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .tp, .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .tp, .related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   PRODUCT DETAILS PAGE (single-product.php)
   ========================================================================== */

/* Layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Left Column */
.pd-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Main gallery box */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-main-img {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--off);
  height: 380px;
  position: relative;
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnails list */
.pd-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--off);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover, .pd-thumb.active {
  border-color: var(--amber);
  transform: translateY(-2px);
}

/* Quick Enquiry Contacts Box (Light & Aesthetic) */
.pd-contact-box {
  background: var(--off);
  color: var(--navy);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pd-contact-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  letter-spacing: -0.01em;
}

.pd-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.pd-contact-item:last-child {
  margin-bottom: 0;
}

.pd-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.pd-contact-val {
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-contact-val:hover {
  color: var(--amber);
}

/* Whatsapp Button Styling */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  width: max-content;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
  transition: all 0.2s ease;
}

.wa-btn:hover {
  background: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

/* Right Column */
.pd-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Product Info Sections */
.pd-section h2 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
  border-left: 4px solid var(--amber);
  padding-left: 12px;
  line-height: 1.2;
}

.pd-text {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
}

.pd-text p {
  margin-bottom: 16px;
}

.pd-text p:last-child {
  margin-bottom: 0;
}

/* Stylized lead paragraph (first paragraph) */
.pd-text p:first-of-type {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 24px;
}

/* Alternating grey backgrounds in lists */
.pd-text ul, .pd-text ol {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.pd-text ul li, .pd-text ol li {
  padding: 12px 18px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.2s ease;
}

.pd-text ul li:nth-child(odd), .pd-text ol li:nth-child(odd) {
  background: var(--off);
}

.pd-text ul li:nth-child(even), .pd-text ol li:nth-child(even) {
  background: #ffffff;
  border: 1px solid var(--border);
}

.pd-text ul li::before {
  content: '•';
  color: var(--amber);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  margin-top: -3px;
}

.pd-text ol {
  counter-reset: li-counter;
}

.pd-text ol li::before {
  counter-increment: li-counter;
  content: counter(li-counter) ".";
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}

/* Table specs styling inside WP specifications */
.specs-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: #ffffff;
}

.specs-table-wrapper table th,
.specs-table-wrapper table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 14px;
}

.specs-table-wrapper table th {
  background: var(--off);
  color: var(--navy);
  font-weight: 700;
}

.specs-table-wrapper table tr:nth-child(even) td {
  background: #fafbfc;
}

/* Action Buttons row */
.pd-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.pd-actions .download-btn {
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
}

.pd-actions .enquiry-btn {
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  background: transparent !important;
  border: 2px solid var(--navy) !important;
  color: var(--navy) !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

.pd-actions .enquiry-btn:hover {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

/* Modal form popup styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 33, 55, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

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

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(13, 33, 55, 0.3);
  position: relative;
  transform: translateY(-30px);
  transition: transform 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-overlay.modal-active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: none;
  background: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--navy);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* Bottom CTA Full-Width Orange Bar */
.bottom-orange-bar {
  background: linear-gradient(135deg, #C8580A 0%, #E86B1A 100%);
  color: #ffffff;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.bottom-orange-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.orange-bar-content {
  flex: 1;
  min-width: 300px;
}

.orange-bar-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.orange-bar-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 300;
}

.orange-bar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.orange-btn-dark {
  background: var(--navy);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 33, 55, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orange-btn-dark:hover {
  background: #173656;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 33, 55, 0.3);
}

.orange-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orange-btn-outline:hover {
  background: #ffffff;
  color: var(--amber);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .bottom-orange-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .orange-bar-actions {
    width: 100%;
  }
  .orange-bar-actions button,
  .orange-bar-actions a {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   PHOTO & VIDEO GALLERY (page-gallery.php)
   ========================================================================== */

/* Albums Grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .albums-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Album Card */
.album-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

.album-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--off);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.album-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(13, 33, 55, 0.85);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.album-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.album-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.album-card:hover .album-title {
  color: var(--amber);
}

.album-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Album Photos Container header */
.album-photos-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  align-items: flex-start;
}

.back-albums-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.back-albums-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  transform: translateX(-2px);
}

.album-photos-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
}

.album-photos-desc {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.6;
}

/* Photos Grid (nested photo grid) */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

@media (max-width: 480px) {
  .photos-grid {
    grid-template-columns: 1fr;
  }
}

/* Photo Card */
.photo-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--off);
  position: relative;
  height: 180px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.photo-card:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

.photo-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-img img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 33, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay i {
  color: #ffffff;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-card:hover .photo-overlay i {
  transform: scale(1);
}

/* Fullscreen Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 33, 55, 0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

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

.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10001;
  background: rgba(13, 33, 55, 0.4);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-primary);
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-btn.close {
  color: #ef4444;
}

.lightbox-btn.close:hover {
  color: #ff6b6b;
  background: rgba(239, 68, 68, 0.1);
}

.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  position: relative;
  z-index: 10000;
  overflow: hidden;
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10002;
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-img-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform-origin: center;
  transition: transform 0.15s ease-out;
}

@media (max-width: 600px) {
  .lightbox-content {
    padding: 10px 8px;
  }
  .lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(13, 33, 55, 0.8) !important;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
  .lightbox-img-container {
    padding: 0;
  }
}

/* ==========================================================================
   RESPONSIVE MENU HEADER & HAMBURGER NAVIGATION
   ========================================================================== */

/* Toggle button styling on desktop (Hidden) */
.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-i {
    position: relative; /* Context for absolute links dropdown */
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
  }

  .nav-toggle:hover {
    color: var(--amber);
  }

  .nav-toggle .close-icon {
    display: none;
  }

  .nav-toggle.nav-active .menu-icon {
    display: none;
  }

  .nav-toggle.nav-active .close-icon {
    display: block;
    color: #ef4444; /* red closing tag */
  }

  /* The absolute dropdown links wrapper */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 3px solid var(--navy);
    box-shadow: 0 10px 35px rgba(13, 33, 55, 0.18);
    display: block !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.nav-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu,
  .nav-links ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 16px 32px !important;
  }

  .nav-menu li,
  .nav-links ul li {
    width: 100% !important;
    margin: 0 !important;
  }

  .nav-menu li a,
  .nav-links ul li a {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: left !important;
    color: var(--navy) !important;
    transition: color 0.2s ease !important;
  }

  .nav-menu li a:hover,
  .nav-links ul li a:hover {
    color: var(--amber) !important;
  }

  .nav-menu li a::after,
  .nav-links ul li a::after {
    display: none !important;
  }

  /* Get a Quote Call to Action Button in Drawer */
  .nav-menu li:last-child a,
  .nav-links ul li:last-child a {
    background: var(--navy) !important;
    color: #ffffff !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
  }

  .nav-menu li:last-child a:hover,
  .nav-links ul li:last-child a:hover {
    background: var(--amber) !important;
    color: #ffffff !important;
  }
}

/* Certificate Cards Hover Effect */
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--amber) !important;
  box-shadow: var(--shadow-md) !important;
}

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

@media (max-width: 600px) {
  .compliance-section .grid-2 {
    gap: 36px !important;
  }
}

/* Industries Section Grid */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ind-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 24px;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ind-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ind-icon {
  color: var(--amber);
  font-size: 24px;
  margin-bottom: 8px;
  display: inline-block;
}

.ind-title {
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
}

.ind-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .ind-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

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

@media (max-width: 480px) {
  .ind-grid {
    grid-template-columns: 1fr;
  }
}

/* Products Carousel Section styles */
.carousel-viewport {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 6px 36px 6px; /* Spacing for card drop-shadows */
  scrollbar-width: none; /* Firefox hide scrollbar */
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Safari and Chrome hide scrollbar */
}

.carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: auto; /* Allows flex box to stretch card to equal height */
}

/* Carousel controls */
.carousel-control-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.carousel-control-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  transform: scale(1.05);
}

.carousel-control-btn:active {
  transform: scale(0.95);
}

@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(50% - 12px); /* 2 cards per row on tablets */
  }
}

@media (max-width: 768px) {
  .carousel-viewport {
    gap: 16px;
  }
  .carousel-card {
    flex: 0 0 calc(50% - 8px); /* 2 cards per row with 16px gap */
  }
}

@media (max-width: 580px) {
  .carousel-card {
    flex: 0 0 100%; /* 1 card per row on mobile */
  }
}

/* Our Words - YouTube Video Showcase */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-thumb-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-thumb-container:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.video-thumb-container:hover .video-thumb {
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--amber);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(200, 88, 10, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to container */
}

.video-thumb-container:hover .video-play-btn {
  background: var(--navy);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 33, 55, 0.5);
}

.video-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 14px 0 0 0;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.video-thumb-container:hover + .video-card-title {
  color: var(--amber);
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Standards compliance pills */
.std-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.std-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.std-pill-icon {
  color: var(--amber);
  font-size: 13px;
  transition: color 0.25s ease;
}

.std-pill:hover .std-pill-icon {
  color: var(--navy);
}

/* Dark theme standards pills */
.std-pill.dark-std-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.std-pill.dark-std-pill:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(200, 88, 10, 0.35);
}

.std-pill.dark-std-pill:hover .std-pill-icon {
  color: #ffffff;
}

/* Homepage About section layout grid (portrait video on right) */
.about-grid-container {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 64px;
  align-items: center;
}

.about-video-portrait-wrapper {
  max-width: 350px;
  width: 100%;
  height: 490px; /* Forces vertical portrait aspect ratio box */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #000000;
  position: relative;
}

.about-video-portrait-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Automatically crops landscape video into portrait aspect ratio */
  display: block;
}

@media (max-width: 900px) {
  .about-grid-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .about-video-portrait-wrapper {
    max-width: 300px;
    height: 420px; /* Proportional resize for mobile */
  }
}

/* Homepage Hero Slideshow Carousel (CSS crossfade with slow zoom) */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  animation: heroSlideShow 24s infinite ease-in-out;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  animation-delay: 6s;
}
.hero-slide:nth-child(3) {
  animation-delay: 12s;
}
.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroSlideShow {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  4% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  29% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
  }
}










