/* --- GLOBAL STYLES --- */

:root {
  /* BRAND COLORS FROM NEW LOGO */
  --brand-orange: #ef7d00;
  --brand-grey: #454545;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-main: #333333;
  --text-light: #666666;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

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

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

/* --- UTILITIES --- */
.section-padding {
  padding: 90px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--brand-grey);
  margin-bottom: 15px;
  font-weight: 800;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background: var(--brand-orange);
  margin: 0 auto;
  border-radius: 2px;
}

.link-arrow {
  color: var(--brand-orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- HEADER --- */
header {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--brand-grey);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-header a {
  color: var(--white);
  margin-left: 15px;
}

.contact-header i {
  margin-right: 5px;
  color: var(--brand-orange);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-grey);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--brand-orange);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-grey);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--brand-orange);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--brand-orange);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  visibility: hidden;
  position: absolute;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  top: 100%;
  left: 0;
  border-radius: 4px;
  padding: 10px 0;
  border-top: 3px solid var(--brand-orange);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.dropdown-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-content a {
  color: var(--brand-grey);
  padding: 12px 25px 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: var(--light-bg);
  color: var(--brand-orange);
  padding-left: 25px;
  padding-right: 20px;
}

.dropdown-content a::after {
  display: none;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(10px);
  pointer-events: auto;
}

.nav-links li.dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li.dropdown>a i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.dropdown:hover>a i {
  transform: rotate(180deg);
}

.btn-quote {
  background: var(--brand-orange);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 2px solid var(--brand-orange);
}

.btn-quote:hover {
  background: transparent;
  color: var(--brand-orange);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--brand-grey);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(rgba(40, 40, 40, 0.7),
      rgba(40, 40, 40, 0.7)),
    url("../images/factory.jpg");
  background-size: cover;
  background-position: center;
  height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--brand-orange);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  opacity: 0.9;
  font-weight: 300;
}

.btn-hero {
  background: transparent;
  color: var(--white);
  padding: 12px 30px;
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 600;
  margin-right: 15px;
}

.btn-hero:hover {
  background: var(--white);
  color: var(--brand-grey);
}

.btn-hero.primary {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.btn-hero.primary:hover {
  background: #d16b00;
  border-color: #d16b00;
  color: var(--white);
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- ABOUT GRID --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  color: var(--brand-orange);
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* --- PRODUCT GRIDS --- */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: stretch;
}

.big-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.big-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-orange);
}

.big-card-img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid var(--brand-orange);
}

.big-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.big-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--brand-grey);
}

.big-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1rem;
}

.category-features {
  margin: 20px 0 35px 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.category-features h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--brand-grey);
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--brand-orange);
}

.btn-card {
  margin-top: auto;
  text-align: center;
  background: var(--brand-grey);
  color: var(--white);
  padding: 15px;
  border-radius: 4px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--brand-orange);
}

/* --- SERVICES --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-item {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: var(--transition);
}

.service-item:hover {
  border-bottom-color: var(--brand-orange);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  color: var(--brand-orange);
  margin-bottom: 25px;
}

.service-item h3 {
  margin-bottom: 15px;
  color: var(--brand-grey);
}

/* --- FOOTER --- */
footer {
  background: var(--brand-grey);
  color: #d1d1d1;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

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

.footer-col ul li a:hover {
  color: var(--brand-orange);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-info i {
  color: var(--brand-orange);
  margin-top: 4px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .about-grid,
  .service-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .btn-hero {
    margin-right: 0;
    width: 100%;
    text-align: center;
  }

  .top-bar {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active .dropdown-content {
    position: static;
    visibility: visible;
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border-top: none;
    padding: 10px 0 10px 20px;
    margin-top: 0;
  }

  .nav-links.active .dropdown>a i {
    display: none;
  }
}

/* --- SERVICE STEPS (IMAGE STYLE) --- */
.service-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.service-step {
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}

.step-number {
  font-size: 4rem;
  font-weight: 300;
  color: #e0e0e0;
  line-height: 0.8;
}

.step-title-box {
  display: flex;
  flex-direction: column;
}

.step-title-cn {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-grey);
}

.step-title-en {
  font-size: 0.9rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 4px;
}

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

.service-step:hover .step-image img {
  transform: scale(1.05);
}

.step-content {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  border-top: 1px dashed #eee;
  padding-top: 20px;
}

@media (max-width: 992px) {
  .service-step-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .step-image {
    height: 300px;
  }
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--brand-grey);
}

.contact-method {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--brand-orange);
  width: 30px;
  text-align: center;
  margin-top: 5px;
}

.contact-method h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--brand-grey);
}

.contact-method p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Form Styles */
.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--brand-grey);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(239, 125, 0, 0.1);
}

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

.btn-submit {
  background: var(--brand-orange);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-submit:hover {
  background: #d16b00;
}

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

/* --- PRODUCT CARDS (Category Pages) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--brand-orange);
}

.product-card-image {
  height: 240px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.product-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #eee, transparent);
}

.product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-model {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--brand-grey);
  line-height: 1.4;
  font-weight: 600;
}

.product-card-btn {
  margin-top: auto;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  color: var(--brand-grey);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 1px solid #eee;
}

.product-card:hover .product-card-btn {
  background: var(--brand-orange);
  color: var(--white);
  border-color: var(--brand-orange);
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

.whatsapp-float i {
  font-size: 1.5rem;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  background-color: #128c7e;
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 15px;
    bottom: 20px;
    right: 20px;
  }
}

/* --- FORM FEEDBACK --- */
.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#formResponse {
  transition: var(--transition);
  font-weight: 600;
}