/* ============================================================
   Pingchuang Steel Structure - Main Stylesheet
   Pingchuang Steel Structure - Professional B2B Layout
   ============================================================ */

:root {
  --pc-blue: #003366;
  --pc-blue-dark: #002244;
  --pc-blue-light: #004d99;
  --pc-accent: #e67e22;
  --pc-white: #ffffff;
  --pc-gray: #f5f5f5;
  --pc-gray-dark: #666666;
  --pc-border: #e5e5e5;
  --pc-text: #333333;
  --pc-text-light: #777777;
  --pc-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--pc-text);
  line-height: 1.6;
  background: var(--pc-white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #f8f8f8;
  border-bottom: 1px solid var(--pc-border);
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .contact-info { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-bar .contact-info a { color: var(--pc-gray-dark); display: flex; align-items: center; gap: 4px; }
.top-bar .contact-info a:hover { color: var(--pc-blue); }

.top-bar .lang-social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: white;
  font-size: 13px;
}

.language-switcher:hover { border-color: var(--pc-blue); }

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  min-width: 140px;
  z-index: 1000;
  box-shadow: var(--pc-shadow);
}

.language-dropdown.show { display: block; }

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--pc-text);
  transition: background 0.2s;
}

.language-dropdown a:hover { background: var(--pc-gray); }

.social-icons { display: flex; gap: 4px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.3s;
}
.social-icons a:hover { background: var(--pc-blue); }
.social-icons a svg { width: 14px; height: 14px; fill: white; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.main-header {
  background: var(--pc-white);
  border-bottom: 2px solid var(--pc-blue);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo img { height: 50px; }

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pc-text);
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li.active > a { color: var(--pc-accent); }

.main-nav > li > a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--pc-accent);
  transition: width 0.3s;
  margin-top: 2px;
}

.main-nav > li > a:hover::after,
.main-nav > li.active > a::after { width: 100%; }

/* Dropdown */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  border: 1px solid var(--pc-border);
  border-top: 3px solid var(--pc-blue);
  box-shadow: var(--pc-shadow);
  z-index: 950;
  border-radius: 0 0 4px 4px;
}

.main-nav li:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--pc-text);
  border-bottom: 1px solid var(--pc-gray);
  transition: all 0.2s;
}

.dropdown li a:hover {
  background: var(--pc-blue);
  color: white;
  padding-left: 22px;
}

.dropdown li:last-child a { border-bottom: none; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--pc-blue);
  transition: 0.3s;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero { position: relative; overflow: hidden; max-height: 550px; }

.hero-slider { display: flex; transition: transform 0.6s ease; }

.hero-slide {
  min-width: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-slide .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  align-items: center;
}

.hero-slide .hero-content {
  padding: 60px;
  color: white;
  max-width: 600px;
}

.hero-slide .hero-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-slide .hero-content p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  background: var(--pc-accent);
  color: white;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.hero-btn:hover { background: #d35400; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots button.active { background: white; }

/* Hero buttons */
.hero-btns {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.hero-btns a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 90px;
  padding: 14px 8px;
  background: rgba(0,51,102,0.9);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  transition: background 0.3s;
  font-weight: 500;
}

.hero-btns a:hover { background: var(--pc-accent); }

.hero-btns .icon { font-size: 24px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.section-header .tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pc-accent);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--pc-blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--pc-accent);
  margin: 12px auto;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
}

.product-card:hover {
  box-shadow: var(--pc-shadow);
  transform: translateY(-4px);
  border-color: var(--pc-blue);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .card-body { padding: 16px 14px; }

.product-card h4 {
  font-size: 14px;
  color: var(--pc-blue);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card p {
  font-size: 12px;
  color: var(--pc-gray-dark);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-card .card-btn {
  display: inline-block;
  background: var(--pc-blue);
  color: white;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.product-card .card-btn:hover { background: var(--pc-blue-light); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 60px 20px;
  background: var(--pc-gray);
}

.about-section .container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-stat {
  flex: 0 0 160px;
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-stat .number {
  font-size: 56px;
  font-weight: 700;
  color: var(--pc-blue);
  line-height: 1;
}

.about-stat .label {
  font-size: 14px;
  color: var(--pc-gray-dark);
  margin-top: 8px;
}

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

.about-content h3 {
  font-size: 26px;
  color: var(--pc-blue);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 14px;
  color: var(--pc-gray-dark);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about-content .btn-group { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.about-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
}

.about-btn.primary {
  background: var(--pc-blue);
  color: white;
}

.about-btn.primary:hover { background: var(--pc-blue-light); }

.about-btn.outline {
  border: 2px solid var(--pc-blue);
  color: var(--pc-blue);
}

.about-btn.outline:hover {
  background: var(--pc-blue);
  color: white;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: 60px 20px;
  text-align: center;
}

.video-section .container {
  max-width: 900px;
}

.video-section h3 {
  font-size: 26px;
  color: var(--pc-blue);
  margin-bottom: 30px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--pc-shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   EXHIBITIONS / CAROUSEL
   ============================================================ */
.exhibitions {
  padding: 60px 20px;
  background: var(--pc-gray);
}

.exhibitions .section-header { padding-top: 0; }

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.exhibition-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.exhibition-card:hover { transform: translateY(-4px); }

.exhibition-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.exhibition-card .card-text {
  padding: 14px;
  font-size: 13px;
  color: var(--pc-text);
  text-align: center;
}

/* ============================================================
   PROJECTS SHOWCASE
   ============================================================ */
.projects-section { padding: 60px 20px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover { box-shadow: var(--pc-shadow); }

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-card .card-info {
  padding: 14px;
}

.project-card .card-info h4 {
  font-size: 14px;
  color: var(--pc-blue);
  margin-bottom: 6px;
}

.project-card .card-info .location {
  font-size: 12px;
  color: var(--pc-accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.project-card .card-info .size {
  font-size: 12px;
  color: var(--pc-gray-dark);
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.view-all a {
  display: inline-block;
  padding: 12px 40px;
  background: var(--pc-blue);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.view-all a:hover { background: var(--pc-blue-light); }

/* ============================================================
   CONTACT / MESSAGE FORM
   ============================================================ */
.contact-section {
  padding: 60px 20px;
  background: var(--pc-gray);
}

.contact-section .container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info-box {
  flex: 1;
  min-width: 280px;
}

.contact-info-box h3 {
  font-size: 24px;
  color: var(--pc-blue);
  margin-bottom: 20px;
}

.contact-info-box .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--pc-gray-dark);
}

.contact-form-box {
  flex: 1.5;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--pc-shadow);
}

.contact-form-box h3 {
  font-size: 20px;
  color: var(--pc-blue);
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pc-blue);
}

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

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--pc-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover { background: var(--pc-blue-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background: #0a1628;
  color: #bbb;
  padding: 50px 20px 20px;
  font-size: 14px;
}

.main-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pc-accent);
  display: inline-block;
}

.footer-col p { margin-bottom: 8px; line-height: 1.7; }

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

.footer-col ul li a { color: #bbb; transition: color 0.3s; }
.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  background: var(--pc-blue);
  color: white;
  font-size: 11px;
  text-align: center;
  width: 70px;
  transition: background 0.3s;
  border-radius: 4px 0 0 4px;
}

.floating-contact a:hover { background: var(--pc-accent); }
.floating-contact a svg { width: 20px; height: 20px; fill: white; }

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--pc-blue);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,51,102,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--pc-accent); }

/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */
.blog-layout {
  display: flex;
  gap: 30px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.blog-main {
  flex: 1;
  min-width: 300px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background: white;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.blog-card:hover {
  box-shadow: var(--pc-shadow);
  transform: translateY(-5px);
}

.blog-card .accent-bar {
  height: 5px;
  width: 100%;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--pc-gray-dark);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}

.blog-card h3 {
  font-size: 18px;
  color: var(--pc-blue);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h3 a:hover {
  color: var(--pc-accent);
}

.blog-card p {
  font-size: 14px;
  color: var(--pc-text-light);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.read-more-btn:hover {
  gap: 8px;
}

/* Sidebar */
.blog-sidebar {
  flex: 0 0 320px;
}

.sidebar-widget {
  background: #fdfdfd;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 18px;
  color: var(--pc-blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pc-accent);
  display: inline-block;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list a {
  font-size: 14px;
  color: var(--pc-text-light);
  display: flex;
  justify-content: space-between;
  transition: color 0.2s;
}

.category-list a:hover {
  color: var(--pc-blue);
}

.recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.recent-post-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.recent-post-info h4 {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.recent-post-info h4 a:hover {
  color: var(--pc-accent);
}

.recent-post-info .date {
  font-size: 11px;
  color: var(--pc-gray-dark);
}

.cta-widget {
  background: var(--pc-blue);
  color: white;
  text-align: center;
}

.cta-widget h3 {
  color: white;
  border-bottom-color: white;
}

.cta-widget p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.sidebar-btn {
  display: block;
  background: var(--pc-accent);
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s;
}

.sidebar-btn:hover {
  background: #d35400;
}

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

@media (max-width: 768px) {
  .blog-sidebar {
    flex: 0 0 100%;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .exhibition-grid { grid-template-columns: repeat(2, 1fr); }
  .main-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .exhibition-grid { grid-template-columns: 1fr 1fr; }
  .main-footer .container { grid-template-columns: 1fr; }

  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 1px solid var(--pc-border); box-shadow: var(--pc-shadow); }

  .mobile-menu-btn { display: flex; }

  .hero-slide .hero-content { padding: 30px; }
  .hero-slide .hero-content h2 { font-size: 28px; }

  .hero-btns { display: none; }

  .about-section .container { flex-direction: column; }
  .about-stat { flex: auto; }

  .contact-section .container { flex-direction: column; }

  .hero-slide img { height: 350px; }

  .floating-contact { display: none; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .exhibition-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 24px; }
  .hero-slide .hero-content h2 { font-size: 22px; }
  .top-bar .container { justify-content: center; }
}
