/* ============================
   ALPER — style.css
   Persian RTL Landing Page
   ============================ */

/* ---- Variables ---- */
:root {
  --primary:       #26A06E;
  --primary-dark:  #1c8059;
  --primary-light: #52c490;
  --primary-glow:  rgba(38,160,110,0.15);
  --secondary:     #737373;
  --light:         #F2F2F2;
  --dark:          #212529;
  --dark-2:        #1a1e22;
  --dark-3:        #2c3136;
  --white:         #ffffff;
  --black:         #000000;
  --gray:          #d8d8d8;
  --red:           #D32121;
  --blue:          #2A9ACE;
  --cream:         #f7f9f8;
  --text:          #212529;
  --text-mid:      #737373;
  --text-muted:    #9e9e9e;
  --border:        #d8d8d8;
  --surface:       #F2F2F2;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s ease;
  --font:          'Vazirmatn', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
address { font-style: normal; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; }
blockquote { margin: 0; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(38,160,110,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(38,160,110,0.5);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Keep legacy .btn-gold mapped to primary */
.btn-gold {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(38,160,110,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(38,160,110,0.5);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ---- Section Utility ---- */
.section { padding: 100px 0; }
.dark-section { background: var(--dark-2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }

.section-badge {
  display: inline-block;
  background: var(--primary-glow);
  border: 1px solid rgba(38,160,110,0.3);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Reveal Animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   HEADER
   =================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

/* Top Bar */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-right a,
.topbar-left a {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.topbar-right a:hover,
.topbar-left a:hover { color: var(--primary-light); }
.topbar-hours { display: flex; align-items: center; gap: 6px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left a { font-size: 1rem; }
.topbar-left .social-custom-icon { display: block; width: 18px; height: 18px; object-fit: contain; }

/* Navbar */
#navbar {
  background: rgba(33,37,41,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38,160,110,0.15);
  padding: 0;
  transition: all var(--transition);
}
#site-header.scrolled #navbar {
  background: rgba(26,30,34,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.logo img:hover {
  filter: brightness(0) saturate(100%) invert(52%) sepia(87%) saturate(400%) hue-rotate(113deg) brightness(95%);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  background: var(--primary-glow);
}

.nav-cta { font-size: 0.9rem; padding: 10px 22px; flex-shrink: 0; }

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--primary-light); background: var(--primary-glow); }

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,160,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(38,160,110,0.12) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(38,160,110,0.07) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38,160,110,0.12);
  border: 1px solid rgba(38,160,110,0.3);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.primary-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* legacy alias */
.gold-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-tags > * {
  background: rgba(38,160,110,0.1);
  border: 1px solid rgba(38,160,110,0.25);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.hero-tags a:hover,
.hero-tags a:focus-visible {
  background: rgba(38,160,110,0.2);
  border-color: var(--primary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.trust-mini i { color: var(--primary); }

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hstat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(38,160,110,0.18);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.hstat-card:hover {
  background: rgba(38,160,110,0.08);
  border-color: rgba(38,160,110,0.4);
  transform: translateY(-3px);
}
.hstat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hstat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--primary); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   TRUST BAR
   =================================== */
.trust-bar {
  background: var(--dark-3);
  border-top: 1px solid rgba(38,160,110,0.15);
  border-bottom: 1px solid rgba(38,160,110,0.15);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1 1 140px;
  justify-content: center;
}
.trust-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===================================
   CATEGORIES
   =================================== */
.categories-section {
  background: var(--cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(38,160,110,0.15);
  transform: translateY(-6px);
}
.cat-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(38,160,110,0.2);
}

.cat-popular {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

.cat-icon-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.cat-icon-wrap.cafe       { background: linear-gradient(135deg, #0e2a1a 0%, #1a5235 100%); color: var(--primary-light); }
.cat-icon-wrap.restaurant { background: linear-gradient(135deg, #0e2a3d 0%, #1a4a6b 100%); color: #5bc0de; }
.cat-icon-wrap.salon      { background: linear-gradient(135deg, #2d0e3d 0%, #5a1a6b 100%); color: #c97bde; }
.cat-icon-wrap.hotel      { background: linear-gradient(135deg, #1a2d0e 0%, #2f5a1a 100%); color: #7ac97b; }
.cat-icon-wrap.custom     { background: linear-gradient(135deg, #0e2a1a 0%, #26a06e 100%); color: #a8f0d0; }
.cat-icon-wrap.office     { background: linear-gradient(135deg, #0e1a2d 0%, #1a2f4a 100%); color: #5b9de4; }

.cat-body { padding: 24px; }
.cat-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.cat-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.cat-features {
  margin-bottom: 18px;
}
.cat-features li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-features li i {
  color: var(--primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.cat-link {
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.cat-link:hover { gap: 10px; }

/* ===================================
   PRODUCT CATALOG
   =================================== */
.catalog-section {
  background: var(--white);
  padding: 100px 0;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(38,160,110,0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.portfolio-products-grid > .product-card {
  flex: 0 1 calc((100% - 72px) / 4);
  min-width: 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(38,160,110,0.13);
  transform: translateY(-6px);
}

.product-img {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img i {
  font-size: 4rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.product-card:hover .product-img i {
  transform: scale(1.1);
  color: rgba(255,255,255,0.85);
}

/* Per-category image background */
.product-img.bg-cafe     { background: linear-gradient(145deg, #0e2a1a, #1c6644); }
.product-img.bg-restaurant { background: linear-gradient(145deg, #0e1f3d, #1a3a6b); }
.product-img.bg-salon    { background: linear-gradient(145deg, #2d0e3d, #5a1a6b); }
.product-img.bg-hotel    { background: linear-gradient(145deg, #1a2d0e, #2f5a1a); }
.product-img.bg-office   { background: linear-gradient(145deg, #0e1a2d, #1a3056); }
.product-img.bg-custom   { background: linear-gradient(145deg, #26A06E, #1c8059); }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}
.product-badge.new { background: var(--blue); }
.product-badge.sale { background: var(--red); }

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.product-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.product-colors {
  display: flex;
  gap: 5px;
}
.pcolor {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform var(--transition);
}
.pcolor:hover { transform: scale(1.25); }

.product-actions {
  display: flex;
  gap: 8px;
}
.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.82rem;
}
.btn-inquiry {
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(38,160,110,0.3);
}
.btn-inquiry:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(38,160,110,0.4);
}
.btn-detail {
  background: var(--surface);
  color: var(--text-mid);
  border-radius: 50px;
  border: 1px solid var(--border);
}
.btn-detail:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.catalog-footer {
  text-align: center;
  margin-top: 48px;
}
.catalog-footer p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ===================================
   CATALOG: FILTER RAIL + PAGINATION
   =================================== */
.catalog-main {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}
.catalog-content {
  flex: 1 1 auto;
  min-width: 0;
}
.catalog-content .products-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Toolbar ---- */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.ct-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.catalog-count { color: var(--text-mid); font-size: 0.92rem; }
.catalog-count strong { color: var(--primary); font-weight: 800; }

.filter-open-btn,
.rail-collapse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  transition: all var(--transition);
}
.filter-open-btn:hover,
.rail-collapse:hover { border-color: var(--primary); color: var(--primary); }
.filter-open-btn { display: none; }   /* shown only on mobile */
.catalog-main.filters-collapsed .rail-collapse {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.86rem;
}
.sort-wrap select {
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* ---- Rail shell ---- */
.filter-rail {
  flex: 0 0 290px;
  width: 290px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: flex-basis 0.45s cubic-bezier(0.4,0,0.2,1),
              width 0.45s cubic-bezier(0.4,0,0.2,1),
              opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.4,0,0.2,1),
              margin 0.45s ease,
              padding 0.45s ease;
}
/* Desktop collapse — slides out to the right and frees the grid */
.catalog-main.filters-collapsed .filter-rail {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  transform: translateX(40px);
  border-width: 0;
  pointer-events: none;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.rail-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.rail-head h3 i { color: var(--primary); }
.rail-close {
  display: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-mid);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.rail-close:hover { background: var(--red); color: var(--white); }

.rail-scroll {
  padding: 18px;
  overflow-y: auto;
  max-height: calc(100vh - 230px);
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}
.rail-scroll::-webkit-scrollbar { width: 6px; }
.rail-scroll::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 50px; }

/* ---- Search ---- */
.rail-search {
  position: relative;
  margin-bottom: 22px;
}
.rail-search i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.rail-search input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--cream);
  transition: all var(--transition);
}
.rail-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ---- Filter groups ---- */
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.fg-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.fg-title i { color: var(--primary); font-size: 0.82rem; }

/* ---- Category tree ---- */
.cat-tree { display: flex; flex-direction: column; gap: 4px; }
.cat-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--cream);
  transition: all var(--transition);
}
.cat-parent span { display: flex; align-items: center; gap: 9px; }
.cat-parent span i { color: var(--primary); width: 16px; text-align: center; }
.cat-parent:hover { background: var(--primary-glow); }
.cat-arrow { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.35s ease; }
.cat-node.open .cat-arrow { transform: rotate(180deg); }
.cat-parent.active {
  background: var(--primary);
  color: var(--white);
}
.cat-parent.active span i,
.cat-parent.active .cat-arrow { color: var(--white); }

.cat-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  padding-right: 14px;
}
.cat-node.open .cat-children { max-height: 260px; }
.cat-child {
  width: 100%;
  text-align: right;
  padding: 8px 14px;
  margin-top: 4px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: all var(--transition);
}
.cat-child::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray);
  transform: translateY(-50%);
  transition: background var(--transition);
}
.cat-child:hover { color: var(--primary); background: var(--cream); }
.cat-child:hover::before { background: var(--primary); }
.cat-child.active { color: var(--primary); font-weight: 700; background: var(--primary-glow); }
.cat-child.active::before { background: var(--primary); }

/* ---- Checkbox rows ---- */
.f-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  font-size: 0.85rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: color var(--transition);
}
.f-row:hover { color: var(--text); }
.f-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.f-box {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 6px;
  position: relative;
  transition: all var(--transition);
}
.f-box::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.62rem;
  color: var(--white);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  transition: transform 0.2s ease;
}
.f-row input:checked + .f-box {
  background: var(--primary);
  border-color: var(--primary);
}
.f-row input:checked + .f-box::after { transform: translate(-50%,-50%) scale(1); }
.f-row input:checked ~ * { color: var(--text); font-weight: 600; }

/* ---- Color swatches ---- */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(0,0,0,0.12);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.color-dot:hover { transform: scale(1.12); }
.color-dot.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}
.color-dot.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--white);
  mix-blend-mode: difference;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

/* ---- Rail footer ---- */
.rail-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filters-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--surface);
  transition: all var(--transition);
}
.filters-reset:hover { color: var(--red); background: var(--cream); }
.rail-apply {
  display: none;   /* only on mobile drawer */
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(38,160,110,0.3);
}

/* ---- Card paging visibility + entrance ---- */
.product-card.hide { display: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card.show { animation: cardIn 0.45s ease both; }

/* ---- Empty state ---- */
.catalog-empty {
  text-align: center;
  padding: 70px 20px;
}
.catalog-empty i { font-size: 3rem; color: var(--gray); margin-bottom: 16px; }
.catalog-empty h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 8px; }
.catalog-empty p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }
.catalog-empty .filters-reset { width: auto; display: inline-flex; }

/* ---- Pagination ---- */
.catalog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}
.pg-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.pg-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.pg-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(38,160,110,0.3);
}
.pg-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- Mobile drawer overlay ---- */
.rail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1150;
}
.rail-overlay.show { opacity: 1; visibility: visible; }
body.rail-lock { overflow: hidden; }

/* ===================================
   WHY US
   =================================== */
.why-section { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(38,160,110,0.12);
  transform: translateY(-4px);
}
.why-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(38,160,110,0.3);
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================
   STATS
   =================================== */
.stats-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1e22 0%, #212529 50%, #1a1e22 100%);
}
.stats-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,160,110,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.stats-section .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid rgba(38,160,110,0.18);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  transition: all var(--transition);
}
.stat-box:hover {
  border-color: rgba(38,160,110,0.45);
  background: rgba(38,160,110,0.06);
  transform: translateY(-4px);
}
.stat-icon-wrap {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.85;
}
.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.counter {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-lbl {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===================================
   PROCESS
   =================================== */
.process-section { background: var(--cream); }

.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: space-between;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 20px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(38,160,110,0.15);
}
.process-step:hover .step-icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(38,160,110,0.35);
  transform: scale(1.08);
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-line {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  margin-top: 56px;
  opacity: 0.4;
}

/* ===================================
   SHOWCASE
   =================================== */
.showcase-section { padding: 100px 0; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 48px;
}

.showcase-item {
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}
.showcase-item:hover { transform: scale(1.02); }

.item-large {
  grid-column: 1 / 3;
  min-height: 260px;
}

.showcase-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,30,34,0.7) 0%, rgba(44,49,54,0.5) 100%);
}

.showcase-item:nth-child(1) { background: linear-gradient(135deg, #0e2a1a, #1c6644); }
.showcase-item:nth-child(2) { background: linear-gradient(135deg, #0a1520, #1a3040); }
.showcase-item:nth-child(3) { background: linear-gradient(135deg, #1a0a2d, #3d1a5a); }
.showcase-item:nth-child(4) { background: linear-gradient(135deg, #0a2010, #1a4025); }
.showcase-item:nth-child(5) { background: linear-gradient(135deg, #1a2505, #2f430a); }

.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  transition: background var(--transition);
}
.showcase-item:hover .showcase-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%);
}
.showcase-icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%,-50%);
  transition: all var(--transition);
}
.showcase-item:hover .showcase-icon {
  color: rgba(38,160,110,0.3);
  font-size: 3.5rem;
}
.sc-tag {
  background: var(--primary);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
  align-self: flex-start;
}
.showcase-overlay h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.showcase-overlay p {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
}

.showcase-cta {
  text-align: center;
}
.showcase-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* Category projects: matches the light four-card layout in category.html. */
.category-showcase-section { background: var(--cream); }
.category-showcase-grid.showcase-count-1 {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}
.category-showcase-grid.showcase-count-1 .showcase-item {
  grid-column: auto;
  min-height: 390px;
}
.category-showcase-grid.showcase-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(310px, auto);
}
.category-showcase-grid.showcase-count-2 .showcase-item {
  grid-column: auto;
  min-height: 310px;
}
.category-showcase-grid.showcase-count-3 {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
}
.category-showcase-grid.showcase-count-3 .showcase-item {
  grid-column: auto;
  min-height: 220px;
}
.category-showcase-grid.showcase-count-3 .showcase-item:first-child {
  grid-row: 1 / 3;
  min-height: 456px;
}
.category-showcase-grid.showcase-count-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
}
.category-showcase-grid.showcase-count-4 .showcase-item {
  grid-column: auto;
  min-height: 200px;
}
.category-showcase-grid.showcase-count-4 .showcase-item:first-child {
  grid-column: 1 / 3;
  min-height: 260px;
}

@media (min-width: 769px) and (max-width: 992px) {
  .category-showcase-grid.showcase-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-showcase-grid.showcase-count-4 .showcase-item:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .category-showcase-grid.showcase-count-1,
  .category-showcase-grid.showcase-count-2,
  .category-showcase-grid.showcase-count-3,
  .category-showcase-grid.showcase-count-4 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .category-showcase-grid.showcase-count-1 .showcase-item,
  .category-showcase-grid.showcase-count-2 .showcase-item,
  .category-showcase-grid.showcase-count-3 .showcase-item,
  .category-showcase-grid.showcase-count-4 .showcase-item,
  .category-showcase-grid.showcase-count-3 .showcase-item:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-section { background: var(--surface); }

.rating-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.rating-stars { color: #f5b622; font-size: 1.1rem; display: flex; gap: 4px; }
.rating-bar span { font-size: 0.9rem; color: var(--text-muted); }

.tslider-wrap { max-width: 760px; margin: 0 auto; }

.tslider { position: relative; overflow: hidden; }

.tslide {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 48px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: fadeSlide 0.4s ease;
}
.tslide.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tquote-icon {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 20px;
}
.tslide blockquote p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.tauthor {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tav {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.tauthor-info { flex: 1; }
.tauthor-info strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }
.tauthor-info span { font-size: 0.83rem; color: var(--text-muted); }
.trating { color: #f5b622; font-size: 0.9rem; display: flex; gap: 3px; margin-right: auto; }

.tcontrols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.tctrl-btn {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tctrl-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.tdots { display: flex; gap: 8px; }
.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  border: none;
}
.tdot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ===================================
   ABOUT
   =================================== */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-card-main {
  background: var(--dark);
  border: 1px solid rgba(38,160,110,0.2);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  background-image:
    linear-gradient(rgba(38,160,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 20px;
  box-shadow: 0 8px 28px rgba(38,160,110,0.35);
}
.about-card-main strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.about-card-main span {
  display: block;
  color: var(--primary-light);
  font-size: 1rem;
  margin-bottom: 6px;
}
.about-card-main small {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.about-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ab-badge {
  background: rgba(38,160,110,0.08);
  border: 1px solid rgba(38,160,110,0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(33,145,100,1);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.ab-badge:hover {
  background: rgba(38,160,110,0.15);
  border-color: rgba(38,160,110,0.35);
}
.ab-badge i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }

.about-content .section-badge { margin-bottom: 12px; display: inline-block; }
.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-lead {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-highlights { margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.ah-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.ah-item:hover {
  border-color: var(--primary);
  background: var(--white);
}
.ah-item > i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ah-item strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ah-item span { font-size: 0.82rem; color: var(--text-muted); }

/* ===================================
   CERTIFICATIONS
   =================================== */
.certs-section {
  background: var(--cream);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.certs-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.certs-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 140px;
  text-align: center;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}
.cert-item i {
  font-size: 2rem;
  color: var(--primary);
}
.cert-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(38,160,110,0.15);
  transform: translateY(-3px);
}

/* ===================================
   FAQ
   =================================== */
.faq-section { background: var(--white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 20px rgba(38,160,110,0.1); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  text-align: right;
  transition: background var(--transition);
}
.faq-item.open .faq-q { background: var(--surface); }
.faq-q:hover { background: var(--surface); }
.faq-q h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}
.faq-q i {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
  padding: 0 24px 20px;
  background: var(--surface);
}
.faq-a p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1e22 0%, #212529 50%, #1a1e22 100%);
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,160,110,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.07) 1px, transparent 1px);
  background-size: 55px 55px;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(38,160,110,0.1) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.cta-badge {
  display: inline-block;
  background: rgba(38,160,110,0.15);
  border: 1px solid rgba(38,160,110,0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.cta-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
}
.cta-chk {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.cta-chk i {
  width: 24px;
  height: 24px;
  background: rgba(38,160,110,0.2);
  border: 1px solid rgba(38,160,110,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: var(--dark);
}
.footer-top {
  padding: 72px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-socials .social-custom-icon { display: block; width: 20px; height: 20px; object-fit: contain; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(38,160,110,0.2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.87rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a::before {
  content: '›';
  color: var(--primary);
  font-size: 1rem;
}
.footer-col a:hover { color: var(--primary-light); }

.fc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 0.87rem;
  line-height: 1.5;
}
.fc-item i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.fc-item a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.fc-item a::before { display: none; }
.fc-item a:hover { color: var(--primary-light); }

.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.3);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: var(--primary);
  transition: opacity var(--transition);
}
.footer-bottom a:hover { opacity: 0.8; }
.footer-trust-marks {
  display: flex;
  gap: 20px;
}
.footer-trust-marks span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}
.footer-trust-marks i { color: var(--primary); opacity: 0.7; }

/* ===================================
   FLOATING ACTIONS
   =================================== */
.floating-actions {
  position: fixed;
  bottom: 32px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.fab-wa {
  background: #25d366;
  color: var(--white);
  font-size: 1.1rem;
}
.fab-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}
.fab-wa span { font-size: 0.9rem; }

.fab-phone {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
}
.fab-phone:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 28px rgba(38,160,110,0.45);
}

.fab-top {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark-3);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.fab-top:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 240px; gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-col { grid-column: 1 / -1; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-products-grid > .product-card { flex-basis: calc((100% - 48px) / 3); }
}

@media (max-width: 992px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 440px; margin: 0 auto; }
  .cta-box { grid-template-columns: 1fr; gap: 32px; }
  .cta-checks { flex-direction: row; flex-wrap: wrap; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .item-large { grid-column: 1 / -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-products-grid > .product-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 768px) {
  .topbar-hours { display: none; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hstat-card { flex: 1 1 130px; }

  .process-grid { flex-direction: column; align-items: center; }
  .process-line { width: 2px; height: 32px; margin: 0; }

  .categories-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .tslide { padding: 32px 24px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: 1; }
  .footer-contact-col { grid-column: 1; }

  .floating-actions { bottom: 24px; left: 16px; }

  .section { padding: 72px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .hero-title { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-items { justify-content: center; }
  .trust-item { flex: 1 1 150px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { justify-content: center; }
  .showcase-grid { grid-template-columns: 1fr; }
  .item-large { grid-column: 1; }
  .about-badges { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .portfolio-products-grid > .product-card { flex-basis: 100%; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hstat-card { flex: 1 1 110px; }
  .fab-wa span { display: none; }
  .fab-wa { padding: 12px 14px; border-radius: 50%; width: 48px; height: 48px; justify-content: center; }
}

/* ---- Catalog rail responsive ---- */
@media (max-width: 1100px) {
  .catalog-content .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  /* Rail becomes an off-canvas drawer that slides in from the right */
  .filter-rail {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    flex: 0 0 330px;
    width: 330px;
    max-width: 88vw;
    border-radius: 0;
    border-width: 0;
    box-shadow: -14px 0 44px rgba(0,0,0,0.22);
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
    z-index: 1200;
  }
  .catalog-main.filters-collapsed .filter-rail { /* ignore desktop collapse on mobile */
    flex-basis: 330px; width: 330px; opacity: 1; transform: translateX(105%);
  }
  .catalog-main.filters-open .filter-rail { transform: translateX(0); }
  .rail-close { display: inline-flex; }
  .rail-apply { display: block; }
  .rail-scroll { max-height: none; flex: 1; }
  .rail-collapse { display: none; }
  .filter-open-btn { display: inline-flex; }
  .catalog-content .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .catalog-content .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .catalog-content .products-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { gap: 12px; }
  .sort-wrap { flex: 1; justify-content: space-between; }
}

/* ===================================
   SUBPAGE HERO + BREADCRUMB
   =================================== */
.subpage-hero {
  position: relative;
  background: var(--dark);
  padding: 150px 0 70px;
  overflow: hidden;
  text-align: center;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,160,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.05) 1px, transparent 1px);
  background-size: 55px 55px;
}
.subpage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(38,160,110,0.12) 0%, transparent 60%);
}
.subpage-hero .container { position: relative; z-index: 1; }
.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.subpage-hero h1 .primary-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subpage-hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.breadcrumb a { color: var(--primary-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ===================================
   STORY (About)
   =================================== */
.story-section { background: var(--white); }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.story-text .section-badge { margin-bottom: 14px; }
.story-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.35;
}
.story-text p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 18px;
}
.story-text .signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.story-text .signature strong { display: block; color: var(--text); font-size: 0.95rem; }
.story-text .signature span { font-size: 0.82rem; color: var(--text-muted); }
.sig-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.story-tile {
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  color: var(--white);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 30px rgba(38,160,110,0.25);
}
.story-tile:nth-child(2) { background: linear-gradient(145deg, #2c3136, #1a1e22); }
.story-tile:nth-child(3) { background: linear-gradient(145deg, #1a1e22, #2c3136); }
.story-tile:nth-child(4) { background: linear-gradient(145deg, var(--primary-dark), #145c40); }
.story-tile i { font-size: 1.8rem; margin-bottom: 14px; opacity: 0.9; }
.story-tile strong { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1; }
.story-tile span { display: block; font-size: 0.82rem; opacity: 0.8; margin-top: 6px; }

/* ===================================
   TIMELINE
   =================================== */
.timeline-section { background: var(--cream); }
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-right: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--gray));
}
.tl-item {
  position: relative;
  padding: 0 0 32px 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  right: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 14px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.tl-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tl-item p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; }

/* ===================================
   MISSION / VISION / VALUES
   =================================== */
.mvv-section { background: var(--white); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition);
}
.mvv-card:hover {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 10px 36px rgba(38,160,110,0.12);
  transform: translateY(-4px);
}
.mvv-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(38,160,110,0.3);
}
.mvv-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.mvv-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; }
.mvv-card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mvv-card li { font-size: 0.86rem; color: var(--text-mid); display: flex; gap: 8px; align-items: flex-start; }
.mvv-card li i { color: var(--primary); font-size: 0.8rem; margin-top: 5px; flex-shrink: 0; }

/* ===================================
   TEAM
   =================================== */
.team-section { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 36px rgba(38,160,110,0.12);
  transform: translateY(-4px);
}
.team-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(38,160,110,0.3);
}
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.team-socials { display: flex; justify-content: center; gap: 10px; }
.team-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.team-socials a:hover { background: var(--primary); color: var(--white); }

/* ===================================
   TRUST / EEAT BAND
   =================================== */
.eeat-section { background: var(--white); }
.eeat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.eeat-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.eeat-item:hover { border-color: var(--primary); background: var(--white); box-shadow: var(--shadow-sm); }
.eeat-item .ei-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(38,160,110,0.25);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.eeat-item h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.eeat-item p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.75; }

@media (min-width: 993px) {
  .portfolio-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-section { background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-col { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary); background: var(--white); box-shadow: var(--shadow-sm); transform: translateX(-4px); }
.cc-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 16px rgba(38,160,110,0.3);
}
.cc-icon.wa { background: linear-gradient(135deg, #25d366, #128c45); box-shadow: 0 5px 16px rgba(37,211,102,0.3); }
.contact-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-card a, .contact-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; transition: color var(--transition); }
.contact-card a:hover { color: var(--primary); }

/* Contact form */
.contact-form-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form-col h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.contact-form-col > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--red); }
.form-control {
  width: 100%;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: all var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.form-note i { color: var(--primary); }

/* Map */
.map-section { padding-bottom: 100px; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2); }

/* ===================================
   SUBPAGE RESPONSIVE
   =================================== */
@media (max-width: 992px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .eeat-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .subpage-hero { padding: 130px 0 56px; }
  .story-visual { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-col { padding: 26px 20px; }
}

/* ===================================
   PRODUCER / WHOLESALER BANNER
   =================================== */
.producer-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-glow);
  border: 1px solid rgba(38,160,110,0.3);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.producer-tag i { font-size: 0.85rem; }

.wholesale-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  color: var(--white);
  box-shadow: 0 16px 44px rgba(38,160,110,0.3);
  position: relative;
  overflow: hidden;
}
.wholesale-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.wholesale-banner > * { position: relative; z-index: 1; }
.wb-icon { font-size: 2.6rem; opacity: 0.9; }
.wb-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.wb-text p { font-size: 0.92rem; opacity: 0.9; line-height: 1.7; }
.wholesale-banner .btn-white { flex-shrink: 0; }

/* ===================================
   CATEGORY NAV STRIP
   =================================== */
.catnav-section { background: var(--white); }
.catnav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.catnav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  background: var(--white);
}
.catnav-card:hover {
  border-color: var(--primary);
  background: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(38,160,110,0.12);
}
.catnav-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 18px rgba(38,160,110,0.3);
}
.shop-catnav-section .catnav-ico { font-size: 1.75rem; }
.catnav-card span { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.catnav-card small { font-size: 0.75rem; color: var(--text-muted); }

/* ===================================
   SUBCATEGORY CHIPS / TOOLBAR
   =================================== */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.cat-toolbar .result-count { font-size: 0.88rem; color: var(--text-mid); font-weight: 600; }
.cat-toolbar .result-count b { color: var(--primary); }
.cat-sort {
  font-family: var(--font);
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
}

/* ===================================
   PRODUCT DETAIL
   =================================== */
.pd-section { background: var(--white); padding-top: 60px; }
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  border-radius: var(--radius-lg);
  height: 460px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background var(--transition);
}
.pd-main i { font-size: 7rem; color: rgba(255,255,255,0.7); transition: transform var(--transition); }
.pd-main:hover i { transform: scale(1.05); }
.pd-zoom-hint {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 5px;
  pointer-events: none;
}
.pd-zoom-hint i { font-size: 0.85rem; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 84px; height: 84px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: all var(--transition);
}
.pd-thumb i { font-size: 1.6rem; color: rgba(255,255,255,0.8); }
.pd-thumb.active { border-color: var(--primary); }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-main[data-lightbox-gallery] { cursor: zoom-in; }
.pd-main[data-lightbox-gallery]:focus-visible,
.pd-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Lightweight gallery lightbox — shared by product and portfolio pages */
body.alper-lightbox-open { overflow: hidden; }
.alper-lightbox[hidden] { display: none; }
.alper-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 58px 76px 64px;
  background: rgba(8, 12, 10, 0.94);
  box-sizing: border-box;
}
.alper-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.alper-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 122px);
  max-height: calc(100dvh - 122px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,.38);
  user-select: none;
  -webkit-user-drag: none;
}
.alper-lightbox-close,
.alper-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.alper-lightbox-nav { direction: ltr; unicode-bidi: isolate; font-size: 0; line-height: 0; }
.alper-lightbox-nav::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.alper-lightbox-prev::before { transform: rotate(45deg); }
.alper-lightbox-next::before { transform: rotate(-135deg); }
.alper-lightbox-close:hover,
.alper-lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.alper-lightbox-close:focus-visible,
.alper-lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.alper-lightbox-close { top: 16px; right: 18px; font-size: 2rem; }
.alper-lightbox-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.alper-lightbox-next { left: 18px; top: 50%; transform: translateY(-50%); }
.alper-lightbox-count {
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.84);
  font-size: .82rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .alper-lightbox { padding: 58px 14px 66px; }
  .alper-lightbox-close,
  .alper-lightbox-nav { width: 42px; height: 42px; }
  .alper-lightbox-close { top: 10px; right: 12px; }
  .alper-lightbox-prev { right: 8px; }
  .alper-lightbox-next { left: 8px; }
}

/* Gallery gradient backgrounds */
.pg-1 { background: linear-gradient(145deg, #0e2a1a, #1c6644); }
.pg-2 { background: linear-gradient(145deg, #14302a, #246b56); }
.pg-3 { background: linear-gradient(145deg, #1a1e22, #2c3136); }
.pg-4 { background: linear-gradient(145deg, #1c8059, #145c40); }

/* Info panel */
.pd-info { display: flex; flex-direction: column; }
.pd-info-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-cat-pill { font-size: 0.78rem; font-weight: 700; color: var(--primary); background: var(--primary-glow); padding: 4px 14px; border-radius: 50px; }
.pd-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--text); line-height: 1.3; margin-bottom: 12px; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pd-rating .stars { color: #f5b622; font-size: 0.95rem; display: flex; gap: 2px; }
.pd-rating span { font-size: 0.85rem; color: var(--text-muted); }
.pd-rating a { color: var(--primary); font-size: 0.85rem; }
.pd-lead { font-size: 0.95rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 22px; }

.pd-wholesale {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(38,160,110,0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.pd-wholesale i { color: var(--primary); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.pd-wholesale strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 2px; }
.pd-wholesale p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

.pd-meta-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pd-meta-row { display: flex; gap: 10px; font-size: 0.88rem; }
.pd-meta-row .k { color: var(--text-muted); min-width: 110px; }
.pd-meta-row .v { color: var(--text); font-weight: 600; }

/* Options */
.opt-group { margin-bottom: 20px; }
.opt-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.opt-label span { color: var(--text-muted); font-weight: 500; }
.opt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-chip {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.opt-chip:hover, .opt-chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.opt-colors { display: flex; gap: 10px; }
.opt-color {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.opt-color:hover { transform: scale(1.1); }
.opt-color.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }

.pd-moq {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.86rem; color: var(--text-mid);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 22px;
}
.pd-moq i { color: var(--primary); }
.pd-moq b { color: var(--text); }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-actions .btn { flex: 1 1 auto; justify-content: center; }

.pd-trust { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--border); padding-top: 22px; }
.pd-trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--text-mid); }
.pd-trust-item i { color: var(--primary); font-size: 1.05rem; }

/* ===================================
   SPEC TABLE / PRODUCT CONTENT
   =================================== */
.product-info-section { background: var(--cream); }
.pinfo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  text-align: right; font-weight: 700; color: var(--text);
  padding: 14px 18px; width: 42%;
  background: var(--surface);
  font-size: 0.88rem;
  vertical-align: top;
}
.spec-table td { padding: 14px 18px; color: var(--text-mid); font-size: 0.88rem; }

.pinfo-aside .why-card,
.pinfo-aside .eeat-item { margin-bottom: 16px; }

/* ===================================
   EXPANDABLE SEO PROSE
   =================================== */
.seo-section { background: var(--white); }
.seo-section.alt { background: var(--cream); }
.seo-block { max-width: 1000px; margin: 0 auto; }

.seo-prose { position: relative; color: var(--text-mid); font-size: 0.97rem; line-height: 2.05; }
.seo-prose h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 32px 0 14px; }
.seo-prose h2:first-child { margin-top: 0; }
.seo-prose h3 { font-size: 1.12rem; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.seo-prose p { margin-bottom: 16px; }
.seo-prose ul, .seo-prose ol { margin: 0 0 18px; padding-right: 24px; }
.seo-prose ul { list-style: disc; }
.seo-prose ol { list-style: decimal; }
.seo-prose li { margin-bottom: 8px; }
.seo-prose strong { color: var(--text); }
.seo-prose a { color: var(--primary); font-weight: 600; }
.seo-prose blockquote {
  border-right: 4px solid var(--primary);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 18px;
  color: var(--text-mid);
}

.seo-prose.collapsed { max-height: 360px; overflow: hidden; }
.seo-prose.collapsed::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}
.seo-section.alt .seo-prose.collapsed::after { background: linear-gradient(transparent, var(--cream)); }

.seo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 11px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  transition: all var(--transition);
}
.seo-toggle:hover { background: var(--primary); color: var(--white); }
.seo-toggle-wrap { text-align: center; }

/* ===================================
   PRODUCT-PAGE RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
  .catnav-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .pinfo-grid { grid-template-columns: 1fr; gap: 28px; }
  .wholesale-banner { grid-template-columns: 1fr; text-align: center; gap: 18px; justify-items: center; }
}
@media (max-width: 768px) {
  .catnav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pd-main { height: 320px; }
  .pd-main i { font-size: 4.5rem; }
  .cat-toolbar { flex-direction: column; align-items: stretch; }
  .pd-actions .btn { flex: 1 1 100%; }
  .wholesale-banner { padding: 26px 22px; }
}

/* Light breadcrumb bar (for pages without a dark hero) */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 122px 0 16px;
}
.breadcrumb-bar .breadcrumb { justify-content: flex-start; margin: 0; }
.breadcrumb-bar .breadcrumb a { color: var(--text-mid); }
.breadcrumb-bar .breadcrumb a:hover { color: var(--primary); }
.breadcrumb-bar .breadcrumb span[aria-current] { color: var(--text); font-weight: 600; }
.breadcrumb-bar .breadcrumb .sep { color: var(--text-muted); }

/* Standalone review cards */
.reviews-section { background: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: all var(--transition);
}
.review-card:hover { border-color: var(--primary); background: var(--white); box-shadow: var(--shadow-sm); }
.review-stars { color: #f5b622; font-size: 0.9rem; display: flex; gap: 2px; margin-bottom: 12px; }
.review-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.review-author span { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 992px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ===================================
   PORTFOLIO GRID / CARDS
   =================================== */
.portfolio-section { background: var(--cream); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.related-portfolio-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.related-portfolio-grid > .portfolio-card { flex: 0 1 calc((100% - 52px) / 3); min-width: 0; }

/* ---- Filter row ---- */
.pf-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pf-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-filter-row .filter-btn { display: inline-flex; align-items: center; gap: 7px; }
.pf-filter-row .filter-btn i { font-size: 0.82rem; }
.pf-count { color: var(--text-mid); font-size: 0.9rem; white-space: nowrap; }
.pf-count strong { color: var(--primary); font-weight: 800; }

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.portfolio-card:hover {
  border-color: var(--primary);
  box-shadow: 0 22px 50px rgba(38,160,110,0.18);
  transform: translateY(-8px);
}

.portfolio-img {
  height: 230px;
  position: relative;
  display: block;
  overflow: hidden;
}
/* dotted texture layer */
.portfolio-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.55;
  transition: transform 0.7s ease;
}
.portfolio-card:hover .portfolio-img::before { transform: scale(1.18) rotate(2deg); }
/* bottom darken */
.portfolio-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 55%);
}
/* big watermark icon */
.pf-ghost {
  position: absolute;
  left: -14px; bottom: -22px;
  font-size: 7rem;
  color: rgba(255,255,255,0.12);
  z-index: 1;
  transform: rotate(-8deg);
  transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1), color 0.4s ease;
}
.portfolio-card:hover .pf-ghost { transform: rotate(-8deg) scale(1.12); color: rgba(255,255,255,0.2); }

.pf-cat {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 5px 13px; border-radius: 50px;
  font-size: 0.73rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.pf-year {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--primary); color: var(--white);
  padding: 5px 11px; border-radius: 9px;
  font-size: 0.74rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

/* hover reveal CTA over the image */
.pf-view {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pf-view > span {
  background: var(--white); color: var(--text);
  padding: 11px 22px; border-radius: 50px;
  font-size: 0.84rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transform: translateY(14px);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-md);
}
.portfolio-card:hover .pf-view { opacity: 1; }
.portfolio-card:hover .pf-view > span { transform: translateY(0); }

/* portfolio image gradients */
.pf-1 { background: linear-gradient(145deg, #2d1505, #5a2d0a); }
.pf-2 { background: linear-gradient(145deg, #0a1520, #1a3040); }
.pf-3 { background: linear-gradient(145deg, #1a0a2d, #3d1a5a); }
.pf-4 { background: linear-gradient(145deg, #0a2010, #1a4025); }
.pf-5 { background: linear-gradient(145deg, #0e2a1a, #1c6644); }
.pf-6 { background: linear-gradient(145deg, #2d2005, #5a400a); }
.pf-7 { background: linear-gradient(145deg, #0e2620, #15564a); }
.pf-8 { background: linear-gradient(145deg, #201005, #4a2d0a); }
.pf-9 { background: linear-gradient(145deg, #0a1a26, #14405a); }

.portfolio-body { padding: 24px 22px; flex: 1; display: flex; flex-direction: column; }
.portfolio-body h3 { font-size: 1.12rem; font-weight: 800; color: var(--text); margin-bottom: 9px; line-height: 1.45; }
.portfolio-body h3 a { transition: color var(--transition); }
.portfolio-body h3 a:hover { color: var(--primary); }
.portfolio-loc { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.portfolio-loc i { color: var(--primary); }
.pf-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; flex: 1; }

.portfolio-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pf-stat {
  font-size: 0.76rem; color: var(--text-mid);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 50px;
  transition: border-color var(--transition), background var(--transition);
}
.pf-stat i { color: var(--primary); }
.portfolio-card:hover .pf-stat { border-color: rgba(38,160,110,0.3); background: var(--white); }

.pf-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  padding-top: 16px; border-top: 1px solid var(--border);
  transition: gap var(--transition);
}
.pf-link i { transition: transform 0.3s ease; }
.pf-link:hover { gap: 13px; }
.pf-link:hover i { transform: translateX(-5px); }

/* paging / filter visibility + entrance */
.portfolio-card.hide { display: none; }
.portfolio-card.show { animation: cardIn 0.5s ease both; }

/* empty state */
.portfolio-empty { text-align: center; padding: 70px 20px; }
.portfolio-empty i { font-size: 3rem; color: var(--gray); margin-bottom: 16px; }
.portfolio-empty h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 8px; }
.portfolio-empty p { color: var(--text-muted); font-size: 0.9rem; }

/* ===================================
   PROJECT FACTS BAR
   =================================== */
.proj-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.proj-fact { text-align: center; }
.proj-fact i { color: var(--primary); font-size: 1.4rem; margin-bottom: 10px; }
.proj-fact strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--text); }
.proj-fact span { font-size: 0.8rem; color: var(--text-muted); }

/* ===================================
   FEATURE QUOTE
   =================================== */
.feature-quote {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  overflow: hidden;
}
.feature-quote::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(38,160,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,160,110,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.feature-quote > * { position: relative; z-index: 1; }
.fq-icon { color: var(--primary); font-size: 2.4rem; margin-bottom: 20px; }
.feature-quote p { color: rgba(255,255,255,0.92); font-size: 1.2rem; line-height: 1.95; font-style: italic; max-width: 760px; margin: 0 auto 24px; }
.fq-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fq-av {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.fq-author .fq-meta { text-align: right; }
.fq-author strong { display: block; color: var(--white); font-size: 0.95rem; }
.fq-author span { color: var(--primary-light); font-size: 0.82rem; }

/* ===================================
   PORTFOLIO RESPONSIVE
   =================================== */
@media (max-width: 992px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .related-portfolio-grid > .portfolio-card { flex-basis: calc((100% - 26px) / 2); }
  .proj-facts { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .related-portfolio-grid > .portfolio-card { flex-basis: 100%; }
  .proj-facts { grid-template-columns: repeat(2, 1fr); }
  .feature-quote { padding: 40px 24px; }
  .feature-quote p { font-size: 1.05rem; }
  .pf-filters { flex-direction: column; align-items: stretch; gap: 14px; }
  .pf-filter-row { justify-content: center; }
  .pf-count { text-align: center; }
}

/* ===================================
   ICONS (Iconify Solar/MDI baseline)
   =================================== */
.icon--solar, .icon--mdi { vertical-align: -0.125em; }

/* ===================================
   CATEGORY LANDING — SEO / E-E-A-T EXTRAS
   =================================== */
/* hero trust + rating row */
.hero-trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: center; align-items: center; margin-top: 24px;
}
.hero-rating { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 0.9rem; }
.hero-rating .hr-stars { color: #f5b622; display: inline-flex; gap: 2px; font-size: 0.95rem; }
.hero-rating small { color: rgba(255,255,255,0.7); font-weight: 500; }
.htrust { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.85); font-size: 0.83rem; }
.htrust .icon--solar { color: var(--primary-light); font-size: 0.95rem; }
.hero-trust-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.22); }

/* section lead paragraph */
.sec-lead { max-width: 760px; margin: 0 auto; }

/* comparison table */
.cmp-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.cmp-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 580px; }
.cmp-table th, .cmp-table td { padding: 15px 18px; text-align: right; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--dark); color: #fff; font-weight: 700; font-size: 0.9rem; position: sticky; top: 0; }
.cmp-table thead th:first-child { background: var(--dark-2); border-top-right-radius: var(--radius-lg); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(even) { background: var(--cream); }
.cmp-table td:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }
.cmp-table .cmp-best { color: var(--primary); font-weight: 700; }
.cmp-table .icon--solar { font-size: 1.05rem; vertical-align: -0.15em; }
.cmp-yes { color: var(--primary); }
.cmp-no { color: var(--text-muted); }

/* E-E-A-T author / expertise box */
.author-box {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.author-ava {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; box-shadow: 0 10px 26px rgba(38,160,110,0.32);
}
.author-info { flex: 1; min-width: 250px; }
.author-info .a-name { font-size: 1.18rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.author-info .a-name .icon--solar { color: var(--primary); font-size: 1rem; }
.author-info .a-role { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin: 2px 0 12px; display: block; }
.author-info > p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.85; margin-bottom: 16px; }
.author-cred { display: flex; flex-wrap: wrap; gap: 10px; }
.author-cred span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.79rem; font-weight: 600; color: var(--text-mid);
  background: var(--cream); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 50px;
}
.author-cred span .icon--solar { color: var(--primary); }

@media (max-width: 540px) {
  .author-box { padding: 24px; gap: 18px; }
  .author-ava { width: 72px; height: 72px; font-size: 1.9rem; }
  .hero-trust-sep { display: none; }
}

/* ============================================================
   REAL IMAGES  (تصاویر واقعی)
   Hotlinked Unsplash photos layered OVER the original gradient
   placeholders. Each rule is "url(photo) , original-gradient":
   if a photo fails to load, the gradient underneath shows
   through, so there is never a broken-image icon.
   To change any image, just edit its URL in :root below.
   Source: Unsplash (free license, no attribution required).
   Remove this whole block to restore the gradient-only look.
   ============================================================ */
:root {
  /* — product category cards (.product-img.bg-*) — */
  --img-cafe:       url('../img/bg/img-cafe.webp');
  --img-restaurant: url('../img/bg/img-restaurant.webp');
  --img-salon:      url('../img/bg/img-salon.webp');
  --img-hotel:      url('../img/bg/img-hotel.webp');
  --img-office:     url('../img/bg/img-office.webp');
  --img-custom:     url('../img/bg/img-custom.webp');

  /* — home showcase gallery (.showcase-item) — */
  --img-sc1: url('../img/bg/img-sc1.webp');
  --img-sc2: url('../img/bg/img-sc2.webp');
  --img-sc3: url('../img/bg/img-sc3.webp');
  --img-sc4: url('../img/bg/img-sc4.webp');
  --img-sc5: url('../img/bg/img-sc5.webp');

  /* — single-product gallery (.pg-1..4 on product.html) — */
  --img-pg1: url('../img/bg/img-pg1.webp');
  --img-pg2: url('../img/bg/img-pg2.webp');
  --img-pg3: url('../img/bg/img-pg3.webp');
  --img-pg4: url('../img/bg/img-pg4.webp');

  /* — portfolio / project thumbnails (.pf-1..9) — */
  --img-pf1: url('../img/bg/img-pf1.webp');
  --img-pf2: url('../img/bg/img-pf2.webp');
  --img-pf3: url('../img/bg/img-pf3.webp');
  --img-pf4: url('../img/bg/img-pf4.webp');
  --img-pf5: url('../img/bg/img-pf5.webp');
  --img-pf6: url('../img/bg/img-pf6.webp');
  --img-pf7: url('../img/bg/img-pf7.webp');
  --img-pf8: url('../img/bg/img-pf8.webp');
  --img-pf9: url('../img/bg/img-pf9.webp');

  /* — hero banners (darkened behind text) — */
  --img-hero:    url('../img/bg/img-hero.webp');
  --img-subhero: url('../img/bg/img-subhero.webp');
}

/* Hide the placeholder icons that sat in the center of photo slots */
.product-img > i,
.pd-main > i,
.pd-thumb > i { display: none; }

/* Product category cards */
.product-img.bg-cafe       { background: var(--img-cafe)       center/cover no-repeat, linear-gradient(145deg, #0e2a1a, #1c6644); }
.product-img.bg-restaurant { background: var(--img-restaurant) center/cover no-repeat, linear-gradient(145deg, #0e1f3d, #1a3a6b); }
.product-img.bg-salon      { background: var(--img-salon)      center/cover no-repeat, linear-gradient(145deg, #2d0e3d, #5a1a6b); }
.product-img.bg-hotel      { background: var(--img-hotel)      center/cover no-repeat, linear-gradient(145deg, #1a2d0e, #2f5a1a); }
.product-img.bg-office     { background: var(--img-office)     center/cover no-repeat, linear-gradient(145deg, #0e1a2d, #1a3056); }
.product-img.bg-custom     { background: var(--img-custom)     center/cover no-repeat, linear-gradient(145deg, #26A06E, #1c8059); }

/* Home showcase gallery (text overlay sits above via ::before/.showcase-overlay) */
.showcase-item:nth-child(1) { background: var(--img-sc1) center/cover no-repeat, linear-gradient(135deg, #0e2a1a, #1c6644); }
.showcase-item:nth-child(2) { background: var(--img-sc2) center/cover no-repeat, linear-gradient(135deg, #0a1520, #1a3040); }
.showcase-item:nth-child(3) { background: var(--img-sc3) center/cover no-repeat, linear-gradient(135deg, #1a0a2d, #3d1a5a); }
.showcase-item:nth-child(4) { background: var(--img-sc4) center/cover no-repeat, linear-gradient(135deg, #0a2010, #1a4025); }
.showcase-item:nth-child(5) { background: var(--img-sc5) center/cover no-repeat, linear-gradient(135deg, #1a2505, #2f430a); }

/* Single-product gallery (main image + thumbnails share these classes) */
.pg-1 { background: var(--img-pg1) center/cover no-repeat, linear-gradient(145deg, #0e2a1a, #1c6644); }
.pg-2 { background: var(--img-pg2) center/cover no-repeat, linear-gradient(145deg, #14302a, #246b56); }
.pg-3 { background: var(--img-pg3) center/cover no-repeat, linear-gradient(145deg, #1a1e22, #2c3136); }
.pg-4 { background: var(--img-pg4) center/cover no-repeat, linear-gradient(145deg, #1c8059, #145c40); }

/* Portfolio / project thumbnails (caption overlays sit above via ::after) */
.pf-1 { background: var(--img-pf1) center/cover no-repeat, linear-gradient(145deg, #2d1505, #5a2d0a); }
.pf-2 { background: var(--img-pf2) center/cover no-repeat, linear-gradient(145deg, #0a1520, #1a3040); }
.pf-3 { background: var(--img-pf3) center/cover no-repeat, linear-gradient(145deg, #1a0a2d, #3d1a5a); }
.pf-4 { background: var(--img-pf4) center/cover no-repeat, linear-gradient(145deg, #0a2010, #1a4025); }
.pf-5 { background: var(--img-pf5) center/cover no-repeat, linear-gradient(145deg, #0e2a1a, #1c6644); }
.pf-6 { background: var(--img-pf6) center/cover no-repeat, linear-gradient(145deg, #2d2005, #5a400a); }
.pf-7 { background: var(--img-pf7) center/cover no-repeat, linear-gradient(145deg, #0e2620, #15564a); }
.pf-8 { background: var(--img-pf8) center/cover no-repeat, linear-gradient(145deg, #201005, #4a2d0a); }
.pf-9 { background: var(--img-pf9) center/cover no-repeat, linear-gradient(145deg, #0a1a26, #14405a); }

/* Hero banners — strong dark overlay keeps white text readable over the photo */
.hero {
  background: linear-gradient(rgba(24,28,32,0.82), rgba(24,28,32,0.9)),
              var(--img-hero) center/cover no-repeat,
              var(--dark);
}
.subpage-hero {
  background: linear-gradient(rgba(24,28,32,0.84), rgba(24,28,32,0.92)),
              var(--img-subhero) center/cover no-repeat,
              var(--dark);
}

/* ---- Hero background video (index) ----
   Sits at the very back; the poster image / element background show
   while it loads or if it is blocked, so the hero never looks empty. */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {           /* dark wash keeps white text readable over the footage */
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(rgba(20,24,28,0.80), rgba(20,24,28,0.88));
}
.hero-pattern, .hero-glow { z-index: 1; }   /* grid + glow stay above the video */
.hero-inner { position: relative; z-index: 2; }  /* text/content above everything */

/* ---- Portrait avatars (testimonials .tav, team .team-avatar,
   product/category reviews .review-av, project quote .fq-av) ----
   Photo is layered as a cover background over the gradient circle. */
.tav, .team-avatar, .review-av, .fq-av {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===================================
   BLOG ARCHIVE
   =================================== */
.blog-hero { padding-bottom: 76px; text-align: center; }
.blog-hero .breadcrumb { justify-content: center; }
.blog-hero .section-badge { margin-bottom: 14px; }
.blog-hero h1 { margin-bottom: 12px; }
.blog-search {
  display: flex;
  width: min(100%, 560px);
  margin: 28px auto 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.blog-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}
.blog-search input::placeholder { color: rgba(255,255,255,.62); }
.blog-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.blog-categories {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 5px 20px rgba(20,35,29,.05);
}
.blog-categories .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-categories .container::-webkit-scrollbar { display: none; }
.blog-categories a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-mid);
  background: var(--surface);
  font-size: .84rem;
  font-weight: 700;
  transition: all var(--transition);
}
.blog-categories a:hover,
.blog-categories a.is-active { border-color: var(--primary); background: var(--primary-glow); color: var(--primary-dark); }

.blog-featured-section { background: #fff; }
.blog-latest-section { background: var(--cream); }
.blog-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-section-heading .section-badge { margin-bottom: 10px; }
.blog-section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); color: var(--text); line-height: 1.35; }
.blog-heading-note { max-width: 390px; color: var(--text-muted); font-size: .88rem; line-height: 1.8; }

.blog-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
  direction: rtl;
}
.blog-feature-smalls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.blog-feature-card,
.blog-feature-card > a { position: relative; display: block; min-width: 0; height: 100%; overflow: hidden; border-radius: var(--radius-lg); }
.blog-feature-card { min-height: 240px; background: var(--dark); box-shadow: var(--shadow-sm); }
.blog-feature-card.is-large { min-height: 500px; }
.blog-feature-media { position: absolute; inset: 0; }
.blog-feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,16,13,.94) 0%, rgba(9,16,13,.46) 52%, rgba(9,16,13,.08) 100%);
}
.blog-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-feature-card:hover .blog-feature-media img { transform: scale(1.035); }
.blog-feature-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
  color: #fff;
}
.blog-feature-card.is-large .blog-feature-content { padding: 32px; }
.blog-card-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 50px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 800;
}
.blog-feature-card .blog-card-category { background: var(--primary); color: #fff; }
.blog-feature-card h2,
.blog-feature-card h3 { color: #fff; line-height: 1.55; }
.blog-feature-card h2 { max-width: 760px; margin-bottom: 14px; font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.blog-feature-card h3 { margin-bottom: 10px; font-size: .98rem; }
.blog-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--text-muted); font-size: .76rem; }
.blog-feature-card .blog-card-meta { color: rgba(255,255,255,.72); }
.blog-card-meta span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-inline-end: 12px; border-radius: 50%; background: currentColor; vertical-align: middle; }

.blog-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 4px 18px rgba(20,35,29,.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-post-card:hover { transform: translateY(-4px); border-color: rgba(38,160,110,.4); box-shadow: var(--shadow-md); }
.blog-post-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.blog-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-post-card:hover .blog-post-image img { transform: scale(1.04); }
.blog-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--primary); font-size: 3rem; }
.blog-post-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.blog-post-body h2,
.blog-post-body h3 { margin-bottom: 10px; color: var(--text); font-size: 1.05rem; line-height: 1.65; }
.blog-post-body h2 a,
.blog-post-body h3 a { color: inherit; }
.blog-post-body p { margin-bottom: 20px; color: var(--text-mid); font-size: .84rem; line-height: 1.85; }
.blog-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-light); }
.blog-read-more { flex: 0 0 auto; color: var(--primary); font-size: .8rem; font-weight: 800; }
.blog-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 38px; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-mid);
  font-size: .82rem;
  font-weight: 700;
}
.blog-pagination .page-numbers.current,
.blog-pagination a.page-numbers:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.blog-empty { padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: #fff; color: var(--text-muted); text-align: center; }
.blog-archive-hero { padding-bottom: 62px; }
.blog-archive-description { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.68); line-height: 1.8; }

@media (max-width: 992px) {
  .blog-featured-layout { grid-template-columns: 1fr; }
  .blog-feature-card.is-large { min-height: 410px; }
  .blog-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .blog-hero { padding-bottom: 54px; }
  .blog-categories .container { justify-content: flex-start; }
  .blog-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .blog-heading-note { display: none; }
  .blog-feature-smalls { grid-template-columns: 1fr; }
  .blog-feature-card.is-large { min-height: 340px; }
  .blog-feature-card.is-small { min-height: 220px; }
  .blog-feature-card.is-large .blog-feature-content,
  .blog-feature-content { padding: 20px; }
  .blog-post-grid { grid-template-columns: 1fr; }
  .blog-card-footer { align-items: flex-start; }
}

/* ===================================
   BLOG SINGLE
   =================================== */
.blog-single-hero { padding-bottom: 92px; text-align: center; }
.blog-single-hero .breadcrumb { justify-content: center; }
.blog-single-category {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(82,196,144,.4);
  border-radius: 50px;
  background: rgba(38,160,110,.18);
  color: var(--primary-light);
  font-size: .78rem;
  font-weight: 800;
}
.blog-single-hero h1 { max-width: 940px; margin: 0 auto 18px; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.45; }
.blog-single-lead { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.95; }
.blog-single-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.blog-single-meta span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72); font-size: .82rem; }
.blog-single-meta i { color: var(--primary-light); font-size: 1rem; }

.blog-single-main { padding-bottom: 88px; background: var(--cream); }
.blog-single-container { max-width: 1050px; }
.blog-single-cover {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 8.3;
  margin: -58px auto 32px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.blog-single-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 46px 54px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 30px rgba(20,35,29,.05);
}
.blog-content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  direction: ltr;
}
.blog-content-layout > * { direction: rtl; }
.blog-content-layout .blog-article-card { max-width: none; margin: 0; }
.blog-sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.blog-sidebar-extras { display: flex; flex-direction: column; gap: 18px; }
.blog-toc-card,
.blog-sidebar-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(20,35,29,.04); }
.blog-toc-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.blog-toc-card summary::-webkit-details-marker { display: none; }
.blog-toc-card summary span { display: inline-flex; align-items: center; gap: 8px; }
.blog-toc-card summary span i { color: var(--primary); }
.blog-toc-card summary > i { color: var(--text-muted); transition: transform var(--transition); }
.blog-toc-card[open] summary > i { transform: rotate(180deg); }
.blog-toc-card ol { margin: 0; padding: 2px 18px 16px; border-top: 1px solid var(--border-light); list-style: none; counter-reset: article-toc; }
.blog-toc-card li { counter-increment: article-toc; border-bottom: 1px solid var(--border-light); }
.blog-toc-card li:last-child { border-bottom: 0; }
.blog-toc-card a { display: flex; gap: 8px; padding: 10px 0; color: var(--text-mid); font-size: .8rem; line-height: 1.65; }
.blog-toc-card a::before { content: counter(article-toc); flex: 0 0 20px; color: var(--primary); font-weight: 800; }
.blog-toc-card .toc-level-3 a { padding-right: 14px; font-size: .76rem; }
.blog-toc-card a:hover { color: var(--primary-dark); }
.blog-sidebar-card { padding: 18px; }
.blog-sidebar-card h2 { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text); font-size: .92rem; }
.blog-sidebar-categories li + li { border-top: 1px solid var(--border-light); }
.blog-sidebar-categories a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--text-mid); font-size: .79rem; }
.blog-sidebar-categories a:hover { color: var(--primary); }
.blog-sidebar-categories b { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: .7rem; }
.blog-sidebar-posts { display: flex; flex-direction: column; gap: 12px; }
.blog-sidebar-posts > a { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; align-items: center; }
.blog-sidebar-thumb { display: block; width: 62px; height: 62px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.blog-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-sidebar-posts strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: .76rem; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blog-sidebar-posts small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .68rem; }
.blog-article-content { color: #4f5854; font-size: 1rem; line-height: 2.15; }
.blog-article-content > :first-child { margin-top: 0; }
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 { scroll-margin-top: 110px; color: var(--text); font-weight: 850; line-height: 1.55; }
.blog-article-content h2 { margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); font-size: 1.48rem; }
.blog-article-content h3 { margin: 30px 0 12px; font-size: 1.2rem; }
.blog-article-content h4 { margin: 26px 0 10px; font-size: 1.05rem; }
.blog-article-content p { margin-bottom: 20px; }
.blog-article-content a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(38,160,110,.35); text-underline-offset: 4px; }
.blog-article-content ul,
.blog-article-content ol { margin: 0 24px 22px 0; }
.blog-article-content ul { list-style: disc; }
.blog-article-content ol { list-style: decimal; }
.blog-article-content li { margin-bottom: 9px; padding-right: 4px; }
.blog-article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--text);
}
.blog-article-content img { margin: 28px auto; border-radius: 16px; }
.blog-article-content figure { max-width: 100%; margin: 28px 0; }
.blog-article-content figcaption { margin-top: 8px; color: var(--text-muted); font-size: .78rem; text-align: center; }
.blog-article-content table { width: 100%; margin: 26px 0; border-collapse: collapse; font-size: .88rem; }
.blog-article-content th,
.blog-article-content td { padding: 12px 14px; border: 1px solid var(--border); text-align: right; }
.blog-article-content th { background: var(--surface); color: var(--text); }
.blog-page-links { margin-top: 28px; color: var(--text-mid); font-size: .85rem; }
.blog-article-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.blog-tags,
.blog-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: .8rem; }
.blog-tags a { padding: 5px 11px; border-radius: 50px; background: var(--surface); color: var(--text-mid); }
.blog-share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--primary); font-size: 1rem; }
.blog-share a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

.blog-author-box { max-width: 1050px; margin: 28px auto 0; }
.blog-author-box .author-ava { overflow: hidden; }
.blog-author-box .author-ava img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1050px; margin: 28px auto 0; }
.blog-nav-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: all var(--transition); }
.blog-nav-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.blog-nav-card span { color: var(--primary); font-size: .76rem; font-weight: 700; }
.blog-nav-card strong { color: var(--text); font-size: .9rem; line-height: 1.65; }
.blog-related-section { background: #fff; }
.blog-related-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.blog-related-grid > .blog-post-card { flex: 0 1 calc((100% - 48px) / 3); }

@media (max-width: 992px) {
  .blog-content-layout { grid-template-columns: 1fr; }
  .blog-sidebar-sticky { position: static; }
  .blog-sidebar-extras { display: none; }
  .blog-sidebar:not(.has-toc) { display: none; }
  .blog-related-grid > .blog-post-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .blog-single-hero { padding-bottom: 72px; }
  .blog-single-hero h1 { font-size: 1.85rem; }
  .blog-single-lead { font-size: .9rem; }
  .blog-single-meta { gap: 9px 15px; }
  .blog-single-cover { aspect-ratio: 4 / 3; margin-top: -40px; border-width: 4px; border-radius: 18px; }
  .blog-article-card { padding: 28px 20px 22px; }
  .blog-article-content { font-size: .94rem; line-height: 2; }
  .blog-article-content h2 { margin-top: 34px; font-size: 1.28rem; }
  .blog-article-footer { align-items: flex-start; flex-direction: column; }
  .blog-author-box { align-items: flex-start; }
  .blog-author-box .author-info { min-width: 0; width: 100%; }
  .blog-post-navigation { grid-template-columns: 1fr; }
  .blog-related-grid > .blog-post-card { flex-basis: 100%; }
}
