/* ── Reset / Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  color: #333;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary: #12a5d7;
  --primary-dark: #2a9f00;
  --secondary: #000000;
  --dark: #e1f4fb;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 15px rgb(60 207 231 / 30%);
  --font-size-h3: 2.25rem;
  --font-size-p: 1.5rem;
}
/* .default-padding {
    padding: 18px 141px;
  } */

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.double-padding {
  padding: 80px 0px !important;
}

/* Reset global overrides */
.page-wrapper b {
  color: inherit !important;
}
.page-wrapper .fa {
  padding: 0 !important;
}
.upload-box a {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

.header-nav a {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav a .fa {
  color: #2b9f00;
  font-size: 18px;
}

.page-wrapper h3::before,
.page-wrapper h3::after {
  display: none !important;
  content: none !important;
}

/* ── Page Wrapper ── */
.page-wrapper {
  max-width: 2120px;
  /* margin: 0 auto; */
  background: #fff;
  position: relative;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f6fd;
  padding: 2% 0;
  /* padding: 18px 48px; */
}
.header-logo {
  display: flex;
  justify-content: flex-start;
  float: left;
}
.header-logo img {
  height: 70px;
  display: block;
}
.header-nav {
  display: flex;
  justify-content: flex-end;
  float: right;
  gap: 20px;
}

/* Hide mobile elements on desktop */
.menu-toggle,
.mobile-sidebar,
.sidebar-overlay {
  display: none;
}

/* ── Subtitle Banner ── */
.subtitle-banner {
  text-align: center;
  /* padding: 80px 24px; */
  background: #e8f6fd;
}
.subtitle-inner {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.subtitle-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}

/* ── Upload Section Container ── */
.upload-section {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-hover);
  margin: 2rem auto;
  max-width: 1466px; /* slightly less than page wrapper */
}

/* ── Divider ── */
.or-divider {
  display: flex;
  align-items: center;
  margin: 20px auto;
  padding: 0 141px;
  gap: 16px;
}
.or-divider .line {
  flex: 1;
  height: 2px;
  background: #00aeef;
}
.or-divider span {
  font-size: 32px;
  font-weight: 800;
}

/* ── Sections ── */
.virtual-banner {
  background: #e8f6fd;
  text-align: center;
  padding: 100px 24px;
}
.virtual-banner h2 {
  font-size: 43px;
  font-style: italic;
  color: #00aeef;
  line-height: 1.5;
}

.manufacturing-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 100px;  */
}
.manufacturing-section .container::before,
.manufacturing-section .container::after {
  display: none !important;
  content: none !important;
}
.manufacturing-img {
  /* width: 32%; 
    height: 300px;
    background: #e8e8e8; 
    border-radius: 8px; 
    overflow: hidden; */
  width: 100%;
  max-width: 500px;
  height: 319px;
  border-radius: 6px;
  position: relative;
  transform: perspective(1000px) rotateY(7deg) rotateX(-3deg) translateY(0);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  overflow: hidden;
}
.manufacturing-section .container:hover .manufacturing-img {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  /* box-shadow: 0 25px 50px rgba(0, 174, 239, 0.3); */
}
.manufacturing-content {
  width: 50%;
}
.manufacturing-content h2 {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}
.manufacturing-content p,
ul {
  font-size: 18px;
  line-height: 1.5;
  color: #000;
}

.proven-section {
  background: #e9f7fd;
}
.proven-inner .preview-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
} /* Simplified */
.preview-content {
  width: 50%;
}
.preview-content h2 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
}

.preview-content p {
  font-size: 2rem;
}

/* ── Features Section ── */
.features-section {
  /* padding: 4rem 141px; */
  background: #f9f9f9; /* Optional contrast */
}

/* ── Footer ── */
.site-footer {
  background: #2d3e50;
  color: #fff;
  /* padding: 40px 141px; */
}
.site-footer-text {
  color: #95a5a6;
  font-size: 14px;
  /* padding: 40px 141px; */
}
.ddLeadTime:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.ddLeadTime .dropdown-menu {
  display: none;
}

.ddNumOfLayers:hover .dropdown-menu {
  display: block;
}

.ddNumOfLayers .dropdown-menu {
  display: none;
}
.site-footer h5 {
  color: #fff !important;
  margin-bottom: 15px;
  font-size: 16px;
}
.site-footer ul {
  list-style: none;
}
.site-footer a {
  color: #aab !important;
  text-decoration: none !important;
  font-size: 14px;
}
.site-footer a:hover {
  color: #fff !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8%;
}
.footer-bottom {
  border-top: 1px solid #3d4e60;
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aab;
}

.social-icons {
  color: #aab;
}

.social-icons:hover {
  color: #fff;
}

/* ── RESPONSIVE ── */

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
}
@media (min-width: 1680px) {
  .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
}
@media (min-width: 1700px) {
  .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .default-padding,
  .calculator-section,
  .manufacturing-section,
  .proven-section,
  .features-section,
  .site-footer {
    padding: 20px !important;
  }
  .calc-size {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .calc-size input {
    width: 100px !important;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px !important;
  }

  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 28px;
    color: #333 !important;
    cursor: pointer;
    z-index: 1000;
  }
  .header-nav {
    display: none !important;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .mobile-sidebar.active {
    left: 0;
  }

  .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sidebar-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .sidebar-nav a {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #eee;
  }
  .btn-sidebar-quote {
    display: block;
    background: #2b9f00;
    color: #fff !important;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none !important;
  }

  .subtitle-banner {
    padding: 40px 20px !important;
  }
  .subtitle-inner {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .subtitle-text {
    font-size: 22px !important;
  }
  .ec-logo {
    height: 80px !important;
  }

  .upload-section {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    padding: 0 15px !important;
  }
  .upload-box {
    width: 100% !important;
    margin-bottom: 0px !important;
    padding: 20px !important;
  }
  .upload-box h3 {
    font-size: 22px !important;
  }

  .or-divider {
    padding: 0 15px !important;
    margin: 10px auto !important;
  }

  .manufacturing-section {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
  }
  .manufacturing-img {
    width: 100% !important;
    height: auto !important;
    background: none !important;
  }
  .manufacturing-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .manufacturing-content {
    width: 100% !important;
    text-align: center !important;
  }

  .calc-row {
    gap: 15px !important;
  }
  .calc-field {
    width: 100% !important;
  }
  .calc-field input,
  .calc-field .dropdownLabel {
    width: 100% !important;
  }
  .calc-size {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .calc-size input {
    width: 40% !important;
  }
  .calc-btn {
    width: 100% !important;
    justify-content: center;
  }

  .virtual-banner {
    padding: 20px !important;
  }
  .virtual-banner h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  .proven-inner,
  .features-section {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .proven-content,
  .proven-img,
  .feature-card {
    width: 100% !important;
  }
  .feature-card {
    border-right: none !important;
    border-bottom: 2px solid #00aeef !important;
    padding: 10px 2px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin-top: 20px !important;
  }
}

@media (max-width: 430px) {
  .header-logo img {
    height: 43px !important;
  }
  .subtitle-text {
    font-size: 18px !important;
  }
  .header .container {
    display: flex;
    gap: 5%;
  }
}

/* ── Unified Tool Section ── */
.unified-tool-section {
  position: relative;
  z-index: 50;
}

.unified-card {
  background: #fff;
  border-radius: 20px;
  position: relative;
  z-index: 10;
  /* max-width: 1528px;
    margin: 0 auto; */
}

/* ── Upload Area ── */
.upload-grid {
  display: flex;
  align-items: c enter;
  gap: 11rem;
  padding: 3rem;
  justify-content: center;
  position: relative;
}

.upload-zone {
  border: 3px dashed #b0b0b0;
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
  flex: 1;
  max-width: 41%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 318px;
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(60 207 231 / 10%),
    transparent
  );
  transition: left 0.5s;
  pointer-events: none;
}

.upload-zone:hover::before {
  left: 100%;
}

.upload-zone:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: rgba(18, 165, 215, 0.03);
}

.calc-btn .fa-calculator:before {
  content: "\f1ec";
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.upload-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.upload-zone:hover .upload-icon {
  transform: scale(1.1) rotate(5deg);
}

.upload-zone h3 {
  font-size: 2.1rem !important;
  margin-bottom: 0.5rem;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.upload-zone p {
  font-size: 1.5rem;
  color: #999;
}

/* ── OR Divider Line ── */
.or-divider-line {
  display: flex;
  align-items: center;
  /* gap: 1rem; */
  padding: 0.5rem 10rem;
}

.or-divider-line::before,
.or-divider-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--primary);
}

.or-divider-line span {
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Calculator Section (Gray Area) ── */
.calculator-section {
  background: #fff;
  padding: 2rem 0;
  text-align: left;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-direction: column;
}

.calculator-section h3 {
  /* font-size: 1.5rem; */
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.calc-field label {
  /* font-size: 0.9rem; */
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.calc-field input,
.dropdownLabel {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem;
  /* font-size: 1rem; */
  background: #fff;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.calc-field input:focus,
.dropdownLabel:hover {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.calc-size {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-size span {
  color: #999;
  font-size: 14px;
  font-weight: 600;
}

/* ── Black Button Matches eps_homepage ── */
.calc-btn {
  background: var(--secondary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  /* font-size: 1rem; */
  font-family: inherit;
  transition: all 0.3s;
  height: 48px;
  width: 100%;
  gap: 8px;
}

.calc-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff !important;
}

/* ── Remove Old Divider ── */
.or-divider {
  display: none;
}

/* ── New Features Section Styles ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
  gap: 2rem;
  width: 100%;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-right: none; /* Reset old style */
  text-align: left; /* Reset old style */
  width: auto; /* Reset old style */
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
}

.feature-card h4 {
  /* font-size: 1.25rem; */
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--secondary);
  line-height: 1.6;
  /* font-size: 1rem; */
}

/* ── Responsive Overrides for New Components ── */
@media (max-width: 1050px) {
  .upload-grid {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .upload-zone {
    width: 100%;
    min-width: auto;
    max-width: 100%;
  }
  .or-divider-line {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .calc-row .quantity-field {
    width: 11%;
  }
}
@media (max-width: 768px) {
  .unified-tool-section {
    padding: 0 1rem;
    margin-top: 1rem;
  }
  .unified-card {
    padding: 1rem;
    border-radius: 12px;
  }
  .upload-grid {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .upload-zone {
    padding: 1.5rem 1rem;
    min-height: 200px;
    height: auto;
  }
  .upload-zone h3 {
    font-size: 1.5rem !important;
  }
  .upload-zone p {
    font-size: 1rem;
  }

  .calculator-section {
    padding: 1.5rem;
  }
  .calculator-section h3 {
    font-size: 1.25rem;
  }
  .calc-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .calc-field,
  .calc-size {
    width: 100%;
  }
  .calc-btn {
    width: 100%;
  }

  /* New Sections Mobile Adjustments */
  .manufacturing-section .container {
    flex-direction: column;
    gap: 2rem;
  }
  .manufacturing-img {
    width: 100%;
    height: 200px;
  }
  .manufacturing-content {
    width: 100%;
    text-align: left;
  }
  .manufacturing-content ul {
    padding-left: 1.2rem;
    text-align: left;
  }

  .proven-section {
    padding: 2rem 1rem;
  }
  .proven-inner {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .proven-content {
    width: 100%;
    text-align: center;
  }
  .proven-content p {
    width: 100% !important;
    font-size: 16px !important;
  } /* Force width override */
  .proven-content h2 {
    font-size: 28px !important;
  }
  .proven-img {
    width: 100%;
    height: 200px;
  }

  .features-section {
    padding: 1.5rem 1rem;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 columns on mobile */
    gap: 1rem;
  }
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem auto; /* Center icon horizontally */
    border-radius: 10px;
  }
  .feature-card {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    align-items: center; /* Center icon + text */
    text-align: center;
  }
  .feature-card h4 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }
  .feature-card p {
    font-size: 1.5rem;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .features-grid {
    grid-template-columns: 1fr; /* Single column only on very small screens */
  }
}

/* Proven Visual (Box 2) */
.proven-visual {
  width: 100%;
  max-width: 500px;
  height: 341px;
  background: #ddd;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) translateY(0);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  overflow: hidden;
}

.preview-container:hover .proven-visual {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  /* box-shadow: 0 25px 50px rgba(0, 174, 239, 0.3); */
}

/* Responsive for Preview Section */
@media (max-width: 968px) {
  .preview-container {
    flex-direction: column;
  }
  .preview-content {
    width: 100%;
  }
  .preview-image {
    padding: 2rem;
    min-height: 250px;
  }
  .pcb-visual,
  .proven-visual {
    height: 200px;
    max-width: 100%; /* Ensure it fits */
  }
  .preview-content {
    padding: 2rem;
  }
  .tech-specs {
    grid-template-columns: 1fr;
  }
}
