/*
Theme Name: Himpipe Industries
Theme URI: https://himpipe.com
Author: Himpipe Engineering & IT Team
Author URI: https://himpipe.com
Description: High-performance, fully responsive, modern WordPress theme for Himpipe Industries Nepal. Featuring HDPE Pipes & Fittings catalog, Pipe SDR Calculator, interactive quote modal, project showcase, and dynamic customizer options.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: himpipe
Tags: responsive-layout, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==============================================================
   CSS Variables & Design Tokens (Outfit + Inter Font Pairing)
   ============================================================== */
:root {
  --primary: #008C45;
  --primary-hover: #007438;
  --primary-light: #f2f9f6;
  --primary-glow: rgba(0, 140, 69, 0.18);
  
  --accent: #A8CF38;
  --accent-hover: #96be2e;
  --accent-light: #f7fbe8;
  --accent-glow: rgba(168, 207, 56, 0.25);
  
  --navy-dark: #14241b;
  --navy-base: #1d3326;
  --navy-surface: #274534;
  --navy-border: #375e47;
  
  --text-main: #202b23;
  --text-muted: #58695d;
  --text-light: #87998c;
  --text-white: #ffffff;
  
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f4faf6;
  --bg-subtle: #ebf6f0;
  
  --border-light: #e1ede5;
  --border-subtle: #cde0d3;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 140, 69, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(20, 36, 27, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 140, 69, 0.06);
  --shadow-primary: 0 10px 25px -3px rgba(0, 140, 69, 0.35);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

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

.container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section-padding {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #007438 100%);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #007438 0%, #005f2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(0, 140, 69, 0.45);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #96be2e 100%);
  color: var(--navy-dark);
  font-weight: 700;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #96be2e 0%, #83a826 100%);
  transform: translateY(-2px);
  color: var(--navy-dark);
}

.btn-outline {
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  color: var(--navy-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ==============================================================
   Top Notification / Header Bar
   ============================================================== */
.top-bar {
  background: var(--navy-dark);
  color: #d1ded6;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-surface);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item a:hover {
  color: var(--accent);
}

.top-bar-badge {
  background: rgba(168, 207, 56, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==============================================================
   Main Navbar
   ============================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy-dark);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-base) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px var(--primary-glow);
}

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

.nav-links li {
  position: relative;
  list-style: none;
}

.nav-link,
.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after,
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current_page_item > a::after,
.nav-link.active::after {
  width: 100%;
}

.nav-dropdown-icon {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.25s ease;
  color: var(--text-light);
}

.nav-links li:hover > a .nav-dropdown-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Multi-level Dropdown Sub-menus */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(20, 36, 27, 0.12);
  border: 1px solid var(--border-light);
  min-width: 230px;
  padding: 8px 0;
  margin-top: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

/* Bridge hover gap */
.nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .sub-menu li {
  padding: 0;
  width: 100%;
}

.nav-links .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-dark);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0;
}

.nav-links .sub-menu li a::after {
  display: none;
}

.nav-links .sub-menu li a:hover,
.nav-links .sub-menu li.current-menu-item > a {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 24px;
}

/* 3rd Level Nested Dropdowns */
.nav-links .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 4px;
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  padding: 30px 24px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.mobile-nav-links li {
  position: relative;
  list-style: none;
}

.mobile-nav-link,
.mobile-nav-links li a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li.current-menu-item > a,
.mobile-nav-links li.current_page_item > a {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile Sub-menus */
.mobile-nav-links .sub-menu {
  list-style: none;
  padding-left: 12px;
  margin: 4px 0 6px 12px;
  border-left: 2px solid var(--border-light);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links li.menu-item-has-children.expanded > .sub-menu {
  display: flex;
}


.mobile-nav-links .sub-menu li a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 12px;
  color: var(--text-muted);
}

.mobile-nav-links .sub-menu li a:hover,
.mobile-nav-links .sub-menu li.current-menu-item > a {
  color: var(--primary);
  background: var(--primary-light);
}


/* ==============================================================
   Hero Section
   ============================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f2f9f6 0%, #ebf6f0 50%, #ffffff 100%);
  padding: 70px 0 90px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--navy-dark);
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #00a854 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.hero-trust-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Hero Visual Graphic / Card */
.hero-visual {
  position: relative;
}

.hero-card-banner {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy-base) 100%);
  border-radius: var(--radius-xl);
  padding: 38px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(168, 207, 56, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-float {
  display: inline-block;
  background: rgba(168, 207, 56, 0.2);
  color: var(--accent);
  border: 1px solid rgba(168, 207, 56, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.hero-spec-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
}

.hero-spec-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-spec-lbl {
  font-size: 0.8rem;
  color: #b7c7be;
}

/* ==============================================================
   Features Ribbon
   ============================================================== */
.features-section {
  padding: 30px 0 70px 0;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================
   Product Catalog & Category Filter
   ============================================================== */
.products-section {
  background: var(--bg-muted);
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab-btn.active, .cat-tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.product-thumb-holder {
  height: 220px;
  background: linear-gradient(135deg, #f4fbf7 0%, #e8f4ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.product-cat-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--navy-dark);
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-specs {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
}

.product-spec-label {
  color: var(--text-muted);
}

.product-spec-val {
  font-weight: 700;
  color: var(--navy-dark);
}

/* ==============================================================
   About & Heritage Section
   ============================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-badge-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-base) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-badge-val {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat-box {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================
   Pipe Calculator Section
   ============================================================== */
.calc-section {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #1a2f22 100%);
  color: #ffffff;
}

.calc-section .section-title {
  color: #ffffff;
}

.calc-section .section-desc {
  color: #b7c7be;
}

.calc-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.calc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #d1ded6;
}

.calc-field select, .calc-field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.calc-field select option {
  background: var(--navy-dark);
  color: #ffffff;
}

.calc-field select:focus, .calc-field input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

.calc-results {
  background: rgba(168, 207, 56, 0.1);
  border: 1px solid rgba(168, 207, 56, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.calc-result-item .res-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.calc-result-item .res-lbl {
  font-size: 0.82rem;
  color: #d1ded6;
}

/* ==============================================================
   Brochure Download Banner
   ============================================================== */
.brochure-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #006832 100%);
  border-radius: var(--radius-xl);
  padding: 50px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.brochure-content h3 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.brochure-content p {
  color: #e2f4ea;
  font-size: 1.05rem;
  max-width: 600px;
}

/* ==============================================================
   Projects Showcase Section
   ============================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  height: 220px;
  background: #203529;
  position: relative;
  overflow: hidden;
}

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

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

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.project-info {
  padding: 24px;
}

.project-info h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-location {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================
   FAQ Accordions
   ============================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 22px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px 24px;
}

/* ==============================================================
   Contact Section & Dual Offices
   ============================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.office-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.office-title {
  font-size: 1.25rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--bg-muted);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

/* ==============================================================
   Footer
   ============================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #d1ded6;
  padding: 70px 0 30px 0;
  margin-top: auto;
  border-top: 1px solid var(--navy-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a4b8ab;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #a4b8ab;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--navy-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #87998c;
}

.footer-legal-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-legal-links li {
  list-style: none;
}

.footer-legal-links li a {
  color: #87998c;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal-links li a:hover,
.footer-legal-links li.current-menu-item > a {
  color: var(--accent);
}


/* ==============================================================
   Interactive Quote Modal
   ============================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-muted);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
}

.modal-close-btn:hover {
  background: var(--border-light);
}

/* ==============================================================
   Top Bar & Floating Actions
   ============================================================== */
.top-bar-factory {
  display: none;
}
@media (min-width: 992px) {
  .top-bar-factory {
    display: flex;
  }
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social-row a:hover {
  background: var(--accent);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* ==============================================================
   Breadcrumbs Navigation
   ============================================================== */
.himpipe-breadcrumbs {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li a:hover {
  color: var(--primary);
}

.breadcrumb-list li.separator {
  color: var(--border-subtle);
  font-size: 0.72rem;
}

.breadcrumb-list li.active {
  color: var(--navy-dark);
  font-weight: 600;
}

/* ==============================================================
   Page Banner Headers (Used across internal pages)
   ============================================================== */
.page-banner-section {
  padding: 55px 0 45px;
  background: linear-gradient(135deg, #f4faf6 0%, #ebf6f0 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy-dark);
  margin: 14px 0 12px;
  font-weight: 800;
}

.page-banner-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.category-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.cat-pill {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==============================================================
   Layout with Sidebar Grid
   ============================================================== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.main-content-column {
  min-width: 0;
}

/* Sidebar & Widgets */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-widget-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-surface) 100%);
  border: 1px solid var(--navy-border);
  color: #ffffff;
}

.widget-list, .widget-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.widget-list li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.widget-post-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.widget-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-post-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-dark);
  display: block;
  line-height: 1.4;
  margin-bottom: 4px;
}

.widget-post-title:hover {
  color: var(--primary);
}

.widget-post-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==============================================================
   Search Form & Search Results
   ============================================================== */
.search-form-inner {
  display: flex;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.search-field {
  width: 100%;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
}

.search-submit {
  padding: 0 18px;
  background: var(--primary);
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.search-submit:hover {
  background: var(--primary-hover);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-result-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.search-result-link {
  color: var(--navy-dark);
}

.search-result-link:hover {
  color: var(--primary);
}

.empty-state-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 30px;
  text-align: center;
  border: 1px solid var(--border-light);
}

/* ==============================================================
   Blog & Article Cards
   ============================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.article-thumb-link {
  display: block;
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-muted);
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-img {
  transform: scale(1.05);
}

.article-placeholder-thumb {
  height: 160px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--navy-dark);
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-readmore {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-readmore:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* Featured Top Post */
.featured-article-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 10px;
}

.featured-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.featured-article-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==============================================================
   Single Post Detail View
   ============================================================== */
.single-article-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.single-article-header {
  margin-bottom: 25px;
}

.single-article-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--navy-dark);
}

.single-article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.single-article-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.single-article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--navy-dark);
}

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

.entry-content ul, .entry-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.6em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--bg-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--navy-dark);
}

.single-article-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.single-article-tags a {
  padding: 4px 12px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.single-article-tags a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Social Share Bar */
.social-share-bar {
  margin-top: 25px;
  padding: 18px 24px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.share-fb { background: #1877F2; }
.share-li { background: #0A66C2; }
.share-tw { background: #000000; }
.share-wa { background: #25D366; }

/* Author Bio */
.author-bio-box {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar img {
  border-radius: 50%;
  display: block;
}

/* Post Navigation Links */
.post-navigation-row {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 25px;
}

.prev-post-link a, .next-post-link a {
  font-weight: 600;
  color: var(--navy-dark);
}

.prev-post-link a:hover, .next-post-link a:hover {
  color: var(--primary);
}

.nav-dir {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.article-quote-cta {
  margin-top: 35px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==============================================================
   Comments Section
   ============================================================== */
.comments-area {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 1px solid var(--border-light);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-body {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--navy-dark);
}

.comment-metadata a {
  color: var(--text-light);
}

.comment-content p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reply a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

/* Single Product Detail Layout */
.product-detail-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.product-detail-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ==============================================================
   Elementor Page Builder Compatibility
   ============================================================== */
.elementor-content-area,
.elementor-fullwidth-wrapper,
.elementor-canvas-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 50vh;
}

body.elementor-page .site-main,
body.elementor-page .elementor-content-area {
  width: 100%;
  max-width: 100%;
}

/* Ensure Elementor Full-width Sections stretch 100% */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

/* Fix Elementor in-editor controls */
.elementor-editor-active .main-header {
  position: relative !important;
  top: auto !important;
  z-index: 99 !important;
}

.elementor-editor-active .floating-whatsapp-btn {
  display: none !important;
}

/* ==============================================================
   Responsive Media Queries
   ============================================================== */
@media (max-width: 992px) {

  .hero-grid, .about-grid, .calc-grid, .contact-grid, .layout-with-sidebar, .product-detail-grid, .featured-article-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-results {
    grid-template-columns: 1fr;
  }
  .brochure-banner, .single-article-card, .product-detail-card {
    padding: 24px;
  }
  .post-navigation-row {
    grid-template-columns: 1fr;
  }
}
