/*
Theme Name: Wilco Industrial Pro v5
Theme URI: https://example.com/
Author: MA Jinnah Trading LLC
Author URI: https://example.com/
Description: Professional multi-page WordPress theme for stainless steel sanitary fittings, valves, pumps, tanks, mixers, automation and branded process solutions.
Version: 1.4
License: GNU General Public License v2 or later
Text Domain: wilco-industrial-pro-v5
*/

:root {
  --primary: #0b1c2c;
  --primary-soft: #16263b;
  --accent: #ff9b00;
  --accent-soft: #ffe2b2;
  --bg: #05070c;
  --light: #f5f6f8;
  --muted: #7c8490;
  --steel: #c3cad7;
  --border-subtle: #e0e3ea;
  --danger: #e84855;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #ffffff;
  color: #101319;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 12, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 18px;
}

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

.site-logo img {
  max-height: 46px;
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f7f9ff;
}

.site-tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.main-navigation-primary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-navigation-primary ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.main-navigation-primary a {
  color: #dde3f2;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.main-navigation-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.main-navigation-primary a:hover::after,
.main-navigation-primary .current-menu-item > a::after {
  width: 100%;
}

/* Quick links strip */

.nav-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-quick-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aab4c9;
  text-decoration: none;
  padding: 3px 0;
}

.nav-quick-link:hover {
  color: #ffffff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-cta-label {
  font-size: 0.75rem;
  color: #aab3c5;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffb733);
  border-color: transparent;
  color: #251500;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.46);
  color: #f3f5ff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: var(--primary);
}

.btn-light:hover {
  background: #f7f7fb;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #283f63 0, #0b1c2c 45%, #05070c 100%);
  color: #fff;
  padding: 80px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--steel);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  margin: 0 0 10px;
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 18px;
  color: #c3cce0;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 13px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e7ebf9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.78rem;
  color: #aab4c9;
}

/* Hero media */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-media-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.14), rgba(3, 8, 16, 0.96));
}

.hero-media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-media-caption {
  font-size: 0.76rem;
  color: #c2cbea;
}

/* Sections */

.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section-title {
  font-size: 1.8rem;
  margin: 6px 0 10px;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

/* Solutions grid */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.solution-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(10, 18, 40, 0.05);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(10, 18, 40, 0.12);
  border-color: rgba(11, 28, 44, 0.18);
}

.solution-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.solution-title {
  font-size: 1.02rem;
  margin: 0;
}

.solution-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.solution-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 4px;
}

.solution-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--primary);
}

/* Brand grid */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(15, 20, 40, 0.04);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.brand-logo img {
  max-height: 60px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-description {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Wilco product grids */

.wilco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wilco-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wilco-item img {
  max-height: 120px;
  object-fit: contain;
}

.wilco-item-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.wilco-item-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Content */

.section .entry-header {
  margin-bottom: 16px;
}

.entry-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.entry-content {
  font-size: 0.98rem;
}

.entry-content p {
  margin-bottom: 1em;
}

/* Footer */

.site-footer {
  background: #05070c;
  color: #b5bcc9;
  padding: 30px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.7fr);
  align-items: flex-start;
}

.footer-brand {
  font-size: 0.9rem;
}

.footer-brand strong {
  color: #f7f9ff;
}

.footer-meta {
  font-size: 0.8rem;
  color: #838da0;
}

.footer-contact {
  font-size: 0.84rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  font-size: 0.76rem;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 1100px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wilco-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-media {
    margin-top: 16px;
  }
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wilco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-navigation {
    align-items: flex-start;
  }
  .main-navigation-primary {
    flex-wrap: wrap;
  }
  .nav-quick-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brands-grid,
  .wilco-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- v5 update: foldable header menu & mobile improvements --- */

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(11, 20, 35, 0.9);
  color: #f9fafb;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 16px;
  height: 12px;
  position: relative;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #f9fafb;
  border-radius: 999px;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, top 0.18s ease-out, bottom 0.18s ease-out;
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5px; }
.nav-toggle-icon span:nth-child(3) { bottom: 0; }

.main-navigation.is-open .nav-toggle-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.main-navigation.is-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.main-navigation.is-open .nav-toggle-icon span:nth-child(3) {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* Responsive nav for mobile */
@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
  }
  .main-navigation {
    align-items: flex-end;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-navigation-primary,
  .nav-quick-links {
    display: none;
    width: 100vw;
    max-width: 320px;
    position: absolute;
    top: 120%;
    right: 0;
    padding: 14px 14px 10px;
    border-radius: 14px;
    background: rgba(5, 7, 12, 0.98);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.45);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-navigation-primary ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-navigation.is-open .main-navigation-primary,
  .main-navigation.is-open .nav-quick-links {
    display: flex;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
