/*
Theme Name: DC Cold Chiller
Theme URI: https://dccold.com.vn
Author: DC Cold
Author URI: https://dccold.com.vn
Description: Custom theme for Chiller Services DC Cold
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chiller-service-wp-1
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
*/
:root {
  --primary-color: #0ea5e9; /* Sky Blue */
  --primary-dark: #0284c7;
  --secondary-color: #38bdf8;
  --accent-color: #f59e0b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
  padding-top: 85px;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Floating Socials */
.floating-socials {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.phone-pulse {
  background-color: #ef4444;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.phone-pulse:hover {
  width: 180px;
  background-color: #dc2626;
}

.phone-pulse i {
  position: absolute;
  left: 13px;
  font-size: 24px;
  z-index: 2;
  animation: ring 1.5s infinite;
}

.phone-text {
  position: absolute;
  left: 50px;
  opacity: 0;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.phone-pulse:hover .phone-text {
  opacity: 1;
}

.phone-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  border: 2px solid #ef4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.zalo-icon {
  background-color: #0068ff;
}
.zalo-icon img {
  transform: scale(0.6);
}

.messenger-icon {
  background: linear-gradient(45deg, #00B2FF, #006AFF);
}

.whatsapp-icon {
  background-color: #25D366;
}

/* Header & Nav */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: var(--white);
}

.header-top {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  line-height: 1.2;
}

.header-top .contact-info span {
  margin-right: 1.2rem;
}
.header-top .contact-info i {
  margin-right: 0.4rem;
  color: var(--secondary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 0px 2%;
    background: var(--white);
    position: relative;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: auto;
    max-height: 80px !important;
    object-fit: contain;
}

.brand-text span {
    font-size: 1.4rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    display: block;
    padding: 2px 5px;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slider-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 5%;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 1s ease-out forwards;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 1.5rem;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary-color);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Services */
.services {
  padding: 5rem 5%;
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Projects */
.projects {
  padding: 5rem 5%;
  background: var(--bg-light);
}

.projects-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.projects-carousel-track {
  display: flex;
  flex-direction: column;
  transition: transform 1s ease-in-out;
}

.projects-page {
  width: 100%;
  flex: 0 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-bottom: 20px;
}

.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.project-img {
  height: 220px;
  overflow: hidden;
}

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

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.tags {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-dark);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.project-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.read-more:hover {
  color: var(--primary-dark);
}

/* Products Section */
.products-section {
  padding: 5rem 5%;
  background: var(--white);
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.product-container::-webkit-scrollbar {
  height: 8px;
}
.product-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.product-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.product-item {
  width: 100%;
}

.product-search-container {
  margin-bottom: 2rem;
  text-align: center;
}

.product-search-input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.product-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 104, 255, 0.2);
}

.product-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 8px;
  flex-wrap: wrap;
}

.product-pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-pagination button:hover, .product-pagination button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Product Card - Inspired by codienhaiau.com */
.product-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--primary-color);
}

.product-img-wrapper {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
}

.product-img-wrapper img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: auto;
  opacity: 0.8;
}

.product-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-code {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: inline-block;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.product-price {
  font-size: 1.2rem;
  color: #e53e3e;
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-specs {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs td {
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e2e8f0;
}
.product-specs td:first-child {
  color: var(--text-light);
  width: 40%;
}
.product-specs td:last-child {
  font-weight: 500;
  color: var(--text-dark);
}

.product-action {
  display: flex;
  gap: 10px;
}

.product-action .btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.9rem;
}
.btn-doc {
  background: #64748b;
}
.btn-doc:hover {
  background: #475569;
}

/* About Section */
.about {
  padding: 5rem 5%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-img:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  text-align: left;
}
.about-text h2::after {
  margin: 15px 0 0;
}

.feature-list {
  margin-top: 2rem;
}
.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.feature-list i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
  background: var(--white);
}

.contact-container {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-block {
  flex: 1;
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.contact-info-block h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.contact-form {
  flex: 2;
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

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

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 5% 1rem;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .about, .contact-container {
    flex-direction: column;
  }
  
  .hero-slider {
    height: 50vh;
  }
}

/* Article Page CSS */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.article-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.article-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.article-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
}
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Product Detail CSS */
.product-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.product-detail-img {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eaeaea;
}
.product-detail-img img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}
.product-detail-info {
    flex: 1.5;
    min-width: 300px;
}
.product-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
}
.product-code {
    display: inline-block;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 20px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 20px;
}
.product-price {
    font-size: 1.8rem;
    color: #e53e3e;
    font-weight: bold;
    margin-bottom: 20px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.specs-table td:first-child {
    color: #64748b;
    width: 40%;
}
.specs-table td:last-child {
    font-weight: 600;
    color: #1e293b;
}
.action-btns {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-slider {
    height: 50vh;
  }
}


/* Gutenberg & Article Formatting */
.article-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.6rem;
}
.article-content img, .article-content figure {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-content table th, .article-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.article-content table th {
    background-color: #f8fafc;
    font-weight: bold;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    background: #f8fafc;
    padding: 15px;
    border-radius: 0 8px 8px 0;
}
.article-content ul, .article-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}
.article-content p {
    margin-bottom: 15px;
}
