/*
Theme Name: Galaxyfiber
Theme URI: https://www.galaxyfiberglass.com
Author: Shanghai Galaxyfiber Industry Co., Ltd.
Author URI: https://www.galaxyfiberglass.com
Description: Professional manufacturer of fiberglass mesh, metal corner tape, vinyl corner bead, access panel, fire blanket and related building reinforcement products.
Version: 1.0.0
License: GPL v2 or later
Text Domain: galaxyfiberglass
*/

@charset "utf-8";

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

:root {
  --color: #1964a8;
  --hovercolor: #111111;
  --fontcolor: #111111;
  --headercolor: #FFFFFF;
  --footercolor: #EEEEEE;
  --introcolor: #555555;
  --fontbold3: 300;
  --fontbold4: 400;
  --fontbold5: 500;
  --fontbold6: 600;
  --fontbold7: 700;
  --fontfamily: 'Roboto', 'Lato', 'Open Sans', sans-serif;
}

*, html, body, h1, h2, h3, h4, h5, h6, table, th, td, ul, li, dl, dt, dd, div, p, pre, form, input, button, textarea {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  max-width: 2560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fontcolor);
  font-family: var(--fontfamily);
  padding-top: 80px;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
a:hover { text-decoration: none; }
button, input, textarea { outline: 0; border: none; font: inherit; }
ol, ul, li { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
iframe, video { max-width: 100%; border: none; }
main, section { display: block; }

/* Utility */
.container { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 20px; }

.flex { display: flex; flex-wrap: wrap; }
.flex-ai-c { display: flex; flex-wrap: wrap; align-items: center; }
.flex-jc-sb { display: flex; flex-wrap: wrap; justify-content: space-between; }
.flex-jc-c { display: flex; flex-wrap: wrap; justify-content: center; }
.flex-jc-ai-c { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }

.line2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.line4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

.home-tit {
  font-size: 32px;
  color: var(--color);
  margin-bottom: 10px;
  text-transform: capitalize;
  text-align: center;
  line-height: 1.2;
}

.home-text {
  color: var(--introcolor);
  font-size: 18px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

/* ============ HEADER ============ */
header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999;
  height: 80px; background: #FFFFFF; box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
header > .container { height: 100%; display: flex; justify-content: space-between; align-items: center; }

.mobheadnav { display: flex; align-items: center; gap: 10px; }

.logo { display: flex; align-items: center; height: 100%; }
.logo img { max-height: 60px; width: auto; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--fontcolor); white-space: nowrap; }
.logo-text span { color: var(--color); }

nav { height: 100%; display: flex; align-items: center; }
.nav { height: 100%; display: flex; align-items: center; }
.nav > li { position: relative; display: flex; align-items: center; margin: 0 10px; }
.nav > li > a { display: flex; align-items: center; color: var(--fontcolor); text-transform: uppercase; font-size: 14px; padding: 8px 0; white-space: nowrap; line-height: 1; }
.nav > li > a i { font-size: 12px; margin-left: 4px; }
.nav .inmenu_1, .nav > li:hover > a, .nav > li.current-menu-item > a { color: var(--color); }

/* Submenu */
.nav .submenu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--color);
  transform: rotateX(90deg); transform-origin: top;
  transition: transform .3s; z-index: 10;
  visibility: hidden; padding: 5px 0;
}
.nav > li:hover .submenu { transform: rotateX(0); visibility: visible; }
.nav .submenu a { display: block; color: var(--headercolor); padding: 6px 15px; font-size: 14px; white-space: nowrap; }
.nav .submenu a:hover { background: rgba(0,0,0,.2); }

/* Products mega menu */
.nav .submenu.nav1 { min-width: 220px; }

/* Search */
.headsearch { position: relative; margin-left: 15px; }
.headsearch .searchicon { font-size: 20px; cursor: pointer; color: var(--fontcolor); }
.search-box { position: absolute; top: 100%; right: 0; display: none; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1); padding: 5px; }
.headsearch:hover .search-box { display: flex; }
.search-box input { padding: 6px 10px; border: 1px solid #ddd; width: 180px; font-size: 14px; }
.search-box button { background: var(--color); color: #fff; padding: 6px 12px; cursor: pointer; }

/* Language */
.lang { position: relative; margin-left: 15px; }
.lang-icon { display: flex; align-items: center; cursor: pointer; gap: 5px; font-size: 14px; white-space: nowrap; }
.lang-drop { display: none; position: absolute; top: 100%; right: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1); z-index: 20; max-height: 400px; overflow-y: auto; min-width: 160px; }
.lang:hover .lang-drop { display: block; }
.lang-drop a { display: block; padding: 6px 12px; font-size: 13px; color: var(--fontcolor); }
.lang-drop a:hover { background: #f0f0f0; color: var(--color); }

/* Mobile toggle */
.mob-menu { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.mob-menu span { width: 24px; height: 2px; background: var(--fontcolor); transition: .3s; }

/* ============ HOME PAGE ============ */
.home-page { background-color: #FAFAFA; }
.home-page > section { overflow: hidden; }

/* Banner Swiper */
#swiper-banner { position: relative; width: 100%; }
#swiper-banner .swiper-wrapper { display: flex; transition: transform .5s ease; }
#swiper-banner .swiper-slide { flex: 0 0 100%; min-width: 0; }
#swiper-banner .swiper-slide img { width: 100%; display: block; }

#swiper-banner .swiper-button-prev,
#swiper-banner .swiper-button-next {
  width: 48px; height: 48px; background: rgba(255,255,255,.9);
  line-height: 48px; border-radius: 50%;
  text-align: center; cursor: pointer; color: var(--color);
  position: absolute; top: 50%; margin-top: -24px; z-index: 10;
  font-size: 18px; user-select: none;
  transition: background .2s, color .2s;
}
#swiper-banner .swiper-button-prev { left: 20px; }
#swiper-banner .swiper-button-next { right: 20px; }
#swiper-banner .swiper-button-prev:hover,
#swiper-banner .swiper-button-next:hover { background: var(--color); color: #fff; }
#swiper-banner .swiper-pagination { position: absolute; bottom: 20px; text-align: center; width: 100%; z-index: 10; }
#swiper-banner .swiper-pagination span {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.5);
  transition: background .3s;
}
#swiper-banner .swiper-pagination span.active { background: var(--color); }

/* Product Categories */
.procate { padding: 40px 0 10px; }
.procate-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 0 15px; }
.procate-list li a {
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 4px;
  background: #fff; border: 1px solid var(--color);
  color: var(--color); font-size: 14px;
  transition: background .2s, color .2s;
}
.procate-list li a:hover { background: var(--color); color: #fff; }

/* Product Recommended */
.repro { padding: 3% 0; }
.repro-box { display: flex; align-items: center; }
.repro-box-prev, .repro-box-next {
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; background: #fff; color: var(--color);
  cursor: pointer; font-weight: 700; flex-shrink: 0; border-radius: 50%;
  transition: background .2s, color .2s; user-select: none;
}
.repro-box-prev:hover, .repro-box-next:hover { background: var(--color); color: #fff; }
.repro-swiper { flex: 1; min-width: 0; padding: 20px 0; overflow: hidden; }
.repro-boxlist { display: flex; gap: 20px; transition: transform .4s ease; }
.repro-boxlist li { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; background: #fff; transition: box-shadow .2s; }
.repro-boxlist li:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.repro-item-img { overflow: hidden; }
.repro-item-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; transition: transform .3s; }
.repro-boxlist li:hover .repro-item-img img { transform: scale(1.05); }
.repro-item-cont { padding: 10px 15px 15px; }
.repro-name { font-size: 16px; color: var(--fontcolor); max-height: 48px; }
.repro-more {
  display: block; border-top: 1px solid #DADADB;
  color: var(--introcolor); font-size: 14px;
  margin-top: 8px; padding-top: 12px; text-transform: lowercase;
}
.repro-boxlist li:hover .repro-more { color: var(--color); }

/* Latest Products */
.newpro { padding: 3% 0; background-color: #fff; }
.newpro-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 20px; }
.newpro-list li {
  display: flex; align-items: center;
  padding: 20px 0;
}
.newpro-list li:nth-child(odd) { padding-right: 20px; }
.newpro-list li:nth-child(even) { padding-left: 20px; }
.newpro-list li:nth-child(1), .newpro-list li:nth-child(2) { border-bottom: 1px solid #eee; }
.newpro-item-l { flex: 0 0 40%; min-width: 0; border: 1px solid #eee; overflow: hidden; }
.newpro-item-l img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.newpro-item-r { flex: 1; min-width: 0; padding: 0 4%; }
.newpro-name { font-size: 20px; color: var(--fontcolor); line-height: 1.3; max-height: 52px; display: block; }
.newpro-bref { font-size: 14px; color: var(--introcolor); line-height: 1.7; margin: 4% 0; max-height: 95px; }
.newpro-more {
  display: inline-block; background: #EDEDED; color: var(--color);
  padding: 2% 10%; position: relative; font-size: 14px; text-transform: lowercase;
}
.newpro-more::before {
  content: ''; display: block; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background-color: var(--color);
  transition: width .2s;
}
.newpro-more:hover { background: var(--color); color: #fff; }

/* About Section */
.about { padding: 5% 0; background: #fff; }
.about .flex { display: flex; flex-wrap: wrap; align-items: center; }
.about-l { flex: 0 0 50%; min-width: 0; }
.about-l img { width: 100%; height: 100%; object-fit: cover; }
.about-r { flex: 0 0 50%; min-width: 0; padding: 2% 2% 2% 4%; }
.about-r-tit { font-size: 32px; color: var(--color); line-height: 1.3; font-weight: 400; }
.about-r-text { color: var(--introcolor); line-height: 1.8; font-size: 15px; margin: 12px 0 20px; }

/* Our Advantages */
.our { padding: 4% 0; background-color: #fff; }
.our-list { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 2%; }
.our-list li { text-align: center; padding: 3.5% 1%; }
.our-list li:nth-child(odd) { background-color: #FAFAFA; }
.our-list .advantage-icon { font-size: 48px; color: var(--color); display: inline-block; transition: transform .3s; }
.our-list li:hover .advantage-icon { transform: rotateY(180deg); }
.our-item-name { color: var(--introcolor); margin: 10px 0 6px; line-height: 1.5; }
.our-item-bref { color: var(--fontcolor); font-size: 24px; font-weight: var(--fontbold5); line-height: 1; }

/* Latest News */
.news { padding: 3% 0; background-color: #FAFAFA; }
.news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2%; }
.news-list li { background: #fff; transition: box-shadow .2s; }
.news-list li:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.news-item-img { display: block; overflow: hidden; }
.news-item-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .3s; }
.news-list li:hover .news-item-img img { transform: scale(1.08); }
.news-cont { padding: 15px; }
.news-item-date { font-size: 13px; color: var(--color); margin-bottom: 5px; display: flex; align-items: baseline; gap: 4px; }
.news-item-date strong { font-size: 28px; line-height: 1; }
.news-name { display: block; font-size: 16px; font-weight: 600; color: var(--fontcolor); margin-bottom: 6px; max-height: 48px; }
.news-name:hover { color: var(--color); }
.news-bref { font-size: 13px; color: var(--introcolor); }

/* Company Honor */
.honor { padding: 4% 0; background: #fff; }
.honor-swiper { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 2%; }
.honor-swiper li { flex: 0 0 220px; text-align: center; }
.honor-swiper img { width: 100%; border: 1px solid #eee; }

/* ============ INNER PAGES ============ */
.inner-banner { padding: 40px 0; background: #f5f5f5; text-align: center; }
.inner-banner h1 { font-size: 32px; color: var(--fontcolor); }

/* Products listing */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.product-item { background: #fff; border: 1px solid #eee; transition: box-shadow .2s; }
.product-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.product-item-img { overflow: hidden; }
.product-item-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 20px; transition: transform .3s; }
.product-item:hover .product-item-img img { transform: scale(1.05); }
.product-item-info { padding: 10px 15px 15px; }
.product-item-name { font-size: 16px; color: var(--fontcolor); margin-bottom: 8px; line-height: 1.3; max-height: 44px; }
.product-item-link { color: var(--color); font-size: 14px; }
.product-item-link:hover { text-decoration: underline; }

/* Contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px 0; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { font-size: 28px; color: var(--color); margin-bottom: 15px; }
.contact-detail { margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.contact-detail strong { display: block; margin-bottom: 3px; }
.contact-form { flex: 1; min-width: 300px; }
.contact-form h2 { font-size: 28px; color: var(--color); margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd;
  font-size: 15px; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color); outline: none; }
.btn-primary {
  display: inline-block; background: var(--color); color: #fff;
  padding: 12px 30px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s; border: none;
}
.btn-primary:hover { background: #14518a; }

/* About page */
.about-page { padding: 60px 0; }
.about-page .about-content { max-width: 900px; margin: 0 auto; font-size: 16px; line-height: 1.9; }
.about-page .about-content p { margin-bottom: 24px; color: var(--introcolor); }

/* Single product / blog */
.article { padding: 60px 0; }
.article-content { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.article-content h1 { font-size: 32px; margin-bottom: 15px; color: var(--fontcolor); }
.article-content p { margin-bottom: 15px; }
.article-content img { max-width: 100%; margin: 20px 0; }

/* ============ FOOTER ============ */
footer { background: #1a1a2e; color: rgba(255,255,255,.7); margin-top: 0; }
.foot-t { padding: 40px 0 30px; }
.foot-t > .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footitem { min-width: 0; }
.foottit { font-size: 18px; color: #fff; margin-bottom: 20px; font-weight: 600; position: relative; padding-bottom: 10px; }
.foottit::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--color); }
.fcontact p { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.fcontact a { color: var(--color); }
.fnav li, .fpronav li { margin-bottom: 8px; }
.fnav a, .fpronav a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.fnav a:hover, .fpronav a:hover { color: var(--color); }
.footitem4 img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 10px; }
.foot-b { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0; text-align: center; }
.foot-b .copy { font-size: 13px; color: rgba(255,255,255,.4); }
.foot-b .copy a { color: var(--color); margin-left: 15px; }
.foot-b .copy a:hover { text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .home-tit { font-size: 24px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .repro-boxlist li { flex: 0 0 calc((100% - 20px) / 2); }
  .our-list { grid-template-columns: repeat(3, 1fr); }
  .foot-t > .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .about-l, .about-r { flex: 0 0 100%; }
  .about-r { padding: 30px 0; }
}

@media (max-width: 768px) {
  body { padding-top: 60px; }
  header { height: 60px; }
  .home-tit { font-size: 22px; }
  .home-text { font-size: 15px; }

  /* Mobile nav */
  nav { position: fixed; top: 60px; left: 0; width: 100%; height: auto; background: #fff; display: none; box-shadow: 0 4px 10px rgba(0,0,0,.1); max-height: calc(100vh - 60px); overflow-y: auto; }
  nav.active { display: block; }
  .nav { flex-direction: column; height: auto; padding: 10px 0; }
  .nav > li { margin: 0; width: 100%; }
  .nav > li > a { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
  .nav .submenu { position: static; transform: none; visibility: visible; background: transparent; display: none; }
  .nav .submenu a { color: var(--fontcolor); padding: 8px 30px; font-size: 14px; }
  .nav .submenu a:hover { background: #f5f5f5; }

  .mob-menu { display: flex; }
  .mobheadnav { display: flex; align-items: center; gap: 20px; }
  .headsearch { margin-left: 0; }

  .repro-boxlist li { flex: 0 0 calc((100% - 20px) / 2); }
  .repro-box { flex-direction: column; }
  .repro-swiper { width: 100%; }
  .repro-box-prev, .repro-box-next { display: none; }

  .newpro-list { grid-template-columns: 1fr; }
  .newpro-list li:nth-child(odd), .newpro-list li:nth-child(even) { padding: 15px 0; }
  .newpro-list li { flex-direction: column; }
  .newpro-item-l { flex: 0 0 auto; width: 100%; }
  .newpro-item-r { padding: 15px 0; }

  .our-list { grid-template-columns: repeat(2, 1fr); }
  .our-list li { padding: 25px 2%; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .honor-swiper { gap: 16px; }
  .honor-swiper li { flex: 0 0 160px; }

  .foot-t > .container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .repro-boxlist li { flex: 0 0 100%; }
  .our-list { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
