/* ═══════════════════════════════════════════════════════
   HydroChemix Global Styles - Consistent across all pages
   Color palette: Dark navy #0d1b2a, Accent orange #e67e22
   ═══════════════════════════════════════════════════════ */

/* ── Header & Navigation ── */
.site-header {
  background: linear-gradient(160deg, #0a1628 0%, #112240 50%, #1a3a5c 100%);
  border-bottom: 2px solid rgba(230, 126, 34, 0.3);
}
.ast-primary-header-bar {
  background: transparent !important;
  border: none !important;
}
.site-title a {
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.site-title a:hover { color: #f0a04b !important; }
.site-description { color: #7a9bb5 !important; }

/* Nav menu */
.main-header-menu .menu-link {
  color: #c8d6e5 !important;
  font-weight: 500;
  font-size: 15px;
  padding: 0 18px;
  transition: color 0.2s;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item .menu-link {
  color: #f0a04b !important;
}
.main-header-menu .current-menu-item .menu-link {
  border-bottom: 2px solid #e67e22;
}

/* Mobile menu button */
.menu-toggle { color: #fff !important; }
.menu-toggle .mobile-menu-toggle-icon .ast-builder-menu-button-icon {
  background: #fff;
}

/* ── Page Title Banner (inner pages) ── */
.entry-header {
  background: linear-gradient(160deg, #0d1b2a 0%, #1a3a5c 60%, #1e5799 100%);
  padding: 60px 20px;
  margin: -20px -20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.entry-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.12) 0%, transparent 70%);
}
.entry-header .entry-title {
  color: #fff !important;
  font-size: 38px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Content Area ── */
.site-content { background: #fafbfc; }
.ast-container { max-width: 1200px; }
.entry-content {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
}
.entry-content h2 {
  font-size: 28px;
  color: #1a3a5c;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf1;
}
.entry-content h3 {
  font-size: 21px;
  color: #1e5799;
  margin: 30px 0 12px;
}
.entry-content h4 {
  font-size: 17px;
  color: #1a3a5c;
  margin: 24px 0 10px;
}
.entry-content a {
  color: #e67e22;
  text-decoration: none;
}
.entry-content a:hover { color: #d35400; text-decoration: underline; }

/* ── Product Category Pages ── */
.entry-content ul {
  list-style: none;
  padding: 0;
}
.entry-content ul li {
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef1f5;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}
.entry-content ul li:hover {
  border-color: #e67e22;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.1);
  transform: translateX(4px);
}
.entry-content ul li a {
  font-weight: 600;
  font-size: 16px;
}

/* ── Product Category Cards (for product listing pages) ── */
.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}
.product-categories h3 {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
  padding: 24px 22px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}
.product-categories h3:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border-color: #d0d8e0;
}
.product-categories h3 a {
  display: block;
  color: #1a3a5c;
  font-size: 17px;
}
.product-categories h3 a:hover { color: #e67e22; text-decoration: none; }
.product-categories p {
  padding: 0 22px 24px;
  margin: -8px 0 0;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Blog Posts ── */
.blog .ast-article-post,
.archive .ast-article-post,
.search .ast-article-post {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 30px;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.entry-title a {
  color: #1a3a5c !important;
  font-size: 24px;
  font-weight: 700;
}
.entry-title a:hover { color: #e67e22 !important; }
.entry-meta { color: #999; font-size: 13px; }

/* ── Blog Post Single ── */
.single-post .entry-header {
  background: linear-gradient(160deg, #0d1b2a 0%, #1a3a5c 100%);
  padding: 60px 20px;
  margin: -20px -20px 30px;
}
.single-post .entry-content {
  max-width: 800px;
  margin: 0 auto;
}
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.single-post .entry-content table th {
  background: #1a3a5c;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.single-post .entry-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f5;
}
.single-post .entry-content table tr:nth-child(even) td {
  background: #f7f9fc;
}

/* ── Sidebar ── */
.sidebar-main {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef1f5;
  padding: 24px;
}
.sidebar-main .widget-title {
  color: #1a3a5c;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e67e22;
  margin-bottom: 16px;
}
.sidebar-main a { color: #1e5799; font-size: 14px; }
.sidebar-main a:hover { color: #e67e22; }
.sidebar-main ul { list-style: none; padding: 0; }
.sidebar-main ul li { padding: 8px 0; border-bottom: 1px dotted #eef1f5; }

/* ── Contact Page ── */
.wpcf7-form label {
  font-weight: 600;
  color: #1a3a5c;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100% !important;
  padding: 12px 16px;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  background: #fff;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
.wpcf7-form .wpcf7-submit {
  background: linear-gradient(135deg, #e67e22, #d35400) !important;
  color: #fff !important;
  padding: 14px 40px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
  transition: all 0.3s;
}
.wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.4);
}

/* ── Buttons ── */
.entry-content .wp-block-button__link,
.entry-content .button {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
  transition: all 0.3s;
  border: none;
}
.entry-content .wp-block-button__link:hover,
.entry-content .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.4);
  text-decoration: none;
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  background: #0d1b2a;
  color: #b0c8da;
  padding: 40px 20px;
  border-top: 3px solid #e67e22;
}
.site-footer a { color: #f0a04b; }
.site-footer a:hover { color: #e67e22; }
.ast-footer-copyright { color: #7a9bb5; font-size: 13px; }
.ast-footer-copyright a { color: #f0a04b; }

/* ── Breadcrumbs (RankMath) ── */
.rank-math-breadcrumb {
  margin: -20px 0 20px;
  font-size: 13px;
  color: #999;
}
.rank-math-breadcrumb a { color: #e67e22; }

/* ── Responsive ── */
@media (max-width: 921px) {
  .entry-header { padding: 40px 16px; margin-bottom: 24px; }
  .entry-header .entry-title { font-size: 26px; }
  .entry-content h2 { font-size: 22px; }
  .product-categories h3 { flex: 1 1 100%; max-width: 100%; }
  .site-title a { font-size: 18px !important; }
}
@media (max-width: 544px) {
  .entry-header { padding: 30px 14px; }
  .entry-header .entry-title { font-size: 22px; }
  .entry-content { font-size: 15px; }
}
