/*
Theme Name: TOPLIN Sanitary
Theme URI: https://toplin.com
Author: TOPLIN Design Team
Author URI: https://toplin.com
Description: Premium WordPress theme for TOPLIN Sanitary - faucet and sanitaryware wholesaler. Features multilingual support (English, Arabic, Spanish), RTL support, WooCommerce integration, and a clean modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toplin
Domain Path: /languages
Requires at least: 5.8
Requires PHP: 7.4
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --toplin-blue: #0077B6;
  --toplin-blue-light: #48CAE4;
  --toplin-blue-dark: #023E8A;
  --toplin-blue-pale: #E0F4FF;
  --toplin-black: #0a0a0a;
  --toplin-gray-dark: #1a1a1a;
  --toplin-gray-body: #4a4a4a;
  --toplin-gray-light: #f8fafc;
  --toplin-gray-border: #e2e8f0;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --max-width: 1280px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--toplin-gray-body);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] {
  font-family: var(--font-sans);
}

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

/* Logo image — exact match to reference h-10 w-auto */
.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img,
.custom-logo-link img,
img.custom-logo {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

a {
  text-decoration: none;
  color: var(--toplin-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--toplin-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--toplin-gray-dark);
  line-height: 1.2;
  font-weight: 400;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

.preheadline {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--toplin-blue);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--toplin-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--toplin-blue-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--toplin-black);
  border: 1px solid var(--toplin-black);
}

.btn-outline:hover {
  background: var(--toplin-black);
  color: #ffffff;
}

.btn-text {
  background: transparent;
  color: var(--toplin-blue);
  padding: 0;
  font-size: 14px;
}

.btn-text:hover {
  color: var(--toplin-blue-dark);
}

/* ===== HEADER ===== */
/* Match reference: py-5 (20px) default, py-3 (12px) when scrolled */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
}

.site-header.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo link wrapper */
.site-logo,
a.site-logo,
.custom-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  align-items: center;
  text-decoration: none;
}

/* Navigation — match reference: gap-6 (24px) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

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

.main-nav ul.menu li,
.main-nav ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Match reference: text-sm (14px) font-medium tracking-wide uppercase */
.main-nav ul.menu li a,
.main-nav ul li a,
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--toplin-gray-body);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--toplin-blue);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--toplin-gray-border);
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: var(--toplin-gray-body);
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  border-radius: 0;
}

.lang-switcher-toggle:hover {
  border-color: var(--toplin-blue);
}

.lang-switcher-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--toplin-gray-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 140px;
  display: none;
  z-index: 100;
}

.lang-switcher.open .lang-switcher-dropdown {
  display: block;
}

.lang-switcher-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--toplin-gray-body);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--toplin-gray-border);
}

.lang-switcher-dropdown a:hover,
.lang-switcher-dropdown a.active {
  background: var(--toplin-blue-pale);
  color: var(--toplin-blue);
}

.lang-switcher-dropdown a:last-child {
  border-bottom: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--toplin-gray-dark);
  flex-shrink: 0;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Panel — top matches header height: 80px default, 64px scrolled */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 32px 24px;
  overflow-y: auto;
}

.site-header.scrolled ~ .mobile-menu {
  top: 64px;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--toplin-gray-body);
  border-bottom: 1px solid var(--toplin-gray-border);
}

.mobile-menu a:hover {
  color: var(--toplin-blue);
}

.mobile-menu a.active {
  color: var(--toplin-blue);
}

/* Mobile menu language switcher - match Get Quote button */
.mobile-menu .lang-switcher {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.mobile-menu .lang-switcher-toggle {
  width: 100%;
  height: 48px;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--toplin-gray-border);
  background: #fff;
  border-radius: 0;
}

.mobile-menu .lang-switcher-dropdown {
  position: static;
  width: 100%;
  margin-top: 4px;
  box-shadow: none;
  border: 1px solid var(--toplin-gray-border);
}

.mobile-menu .lang-switcher-dropdown a {
  padding: 14px 16px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--toplin-gray-border);
}

.mobile-menu .lang-switcher-dropdown a:last-child {
  border-bottom: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0.4) 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: left;
}

.hero-inner {
  max-width: 640px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 20px;
  text-align: left;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  color: var(--toplin-gray-body);
  margin-bottom: 32px;
  max-width: 520px;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--toplin-blue-pale);
  padding: 64px 0;
  border-top: 1px solid var(--toplin-gray-border);
  border-bottom: 1px solid var(--toplin-gray-border);
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--toplin-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--toplin-gray-body);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
}

/* ===== PRODUCT CATEGORIES ===== */
.product-categories {
  padding: 100px 0;
}

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

.category-card {
  cursor: pointer;
}

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

.category-card:hover h3 {
  color: var(--toplin-blue);
}

.category-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 16px;
}

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

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.category-card p {
  font-size: 14px;
  color: var(--toplin-gray-body);
  line-height: 1.6;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  padding: 100px 0;
  background: var(--toplin-blue-pale);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.feature-item > div:last-child {
  flex: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--toplin-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--toplin-blue);
}

.feature-item h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--toplin-gray-dark);
}

.feature-item p {
  font-size: 14px;
  color: var(--toplin-gray-body);
  line-height: 1.6;
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.stat-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-badge .number {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--toplin-blue);
}

.stat-badge p {
  font-size: 14px;
  color: var(--toplin-gray-body);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card {
  cursor: pointer;
}

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 16px;
}

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

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

.project-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
}

.project-card:hover .project-img .overlay {
  background: rgba(10,10,10,0.3);
}

.project-img .overlay span {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #fff;
  padding: 12px 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-img .overlay span {
  opacity: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-meta .category {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.project-meta h3 {
  font-size: 24px;
  font-weight: 300;
}

.project-meta .year {
  font-size: 14px;
  color: #94a3b8;
}

/* ===== PROCESS ===== */
.process {
  padding: 100px 0;
  background: var(--toplin-black);
  color: #fff;
}

.process h2 {
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}



.step-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 300;
  color: #334155;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--toplin-blue-pale);
}

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

.testimonial-card {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--toplin-gray-border);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.star {
  color: var(--toplin-blue);
  font-size: 16px;
}

.quote-icon {
  font-size: 48px;
  line-height: 1;
  color: var(--toplin-blue-pale);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.testimonial-card p {
  font-size: 15px;
  color: var(--toplin-gray-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--toplin-gray-dark);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: #94a3b8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--toplin-gray-body);
  line-height: 1.7;
}

.cta-section .container-narrow p {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--toplin-gray-body);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 140px 0 80px;
  background: var(--toplin-blue-pale);
}

.page-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: var(--toplin-gray-body);
  max-width: 600px;
}

/* ===== ABOUT PAGE ===== */
.about-mission {
  padding: 100px 0;
}

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

.about-mission img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-mission h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.about-mission h2 em {
  font-style: italic;
  font-weight: 600;
}

.about-mission p {
  margin-bottom: 16px;
  color: var(--toplin-gray-body);
  line-height: 1.7;
}

/* Values */
.values {
  padding: 100px 0;
  background: var(--toplin-blue-pale);
}

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

.value-card {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--toplin-gray-border);
}

.value-card svg {
  width: 32px;
  height: 32px;
  color: var(--toplin-blue);
  margin-bottom: 16px;
}

.value-card h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--toplin-gray-dark);
}

.value-card p {
  font-size: 14px;
  color: var(--toplin-gray-body);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  padding: 100px 0;
}

.timeline-list {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 32px;
  position: relative;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--toplin-blue);
  font-weight: 300;
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.timeline-line {
  width: 1px;
  background: var(--toplin-gray-border);
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--toplin-blue);
  border-radius: 50%;
}

.timeline-content {
  padding-bottom: 40px;
}

.timeline-content h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--toplin-gray-dark);
}

.timeline-content p {
  font-size: 15px;
  color: var(--toplin-gray-body);
  line-height: 1.6;
}

/* Certifications */
.certifications {
  padding: 100px 0;
  background: var(--toplin-black);
  color: #fff;
}

.certifications h2 {
  color: #fff;
}

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

.cert-card {
  border: 1px solid #334155;
  padding: 32px;
}

.cert-card h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.cert-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ===== PRODUCTS PAGE ===== */
.filter-bar {
  padding: 24px 0;
  background: #fff;
  border-bottom: 1px solid var(--toplin-gray-border);
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--toplin-gray-border);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}

.search-box input:focus {
  border-color: var(--toplin-blue);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--toplin-gray-border);
  background: #fff;
  color: var(--toplin-gray-body);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--toplin-blue);
  color: #fff;
  border-color: var(--toplin-blue);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}

a.product-card {
  display: block;
  border: 1px solid var(--toplin-gray-border);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.product-card:hover {
  border-color: var(--toplin-blue);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-view-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--toplin-blue);
}

.product-img {
  height: 240px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 12px;
  color: var(--toplin-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--toplin-gray-dark);
}

/* ===== SUBCATEGORY NAV ===== */
.subcategory-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
}

a.subcategory-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--toplin-gray-border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--toplin-gray-body);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

a.subcategory-btn:hover {
  border-color: var(--toplin-blue);
  color: var(--toplin-blue);
}

a.subcategory-btn.active {
  background: var(--toplin-blue);
  border-color: var(--toplin-blue);
  color: #fff;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-section {
  padding: 80px 0;
}

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

.product-detail-image {
  overflow: hidden;
  background: var(--toplin-gray-light);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.product-detail-desc {
  color: var(--toplin-gray-body);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 15px;
}

.product-detail-specs h3 {
  font-size: 18px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.specs-table th,
.specs-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--toplin-gray-border);
  font-size: 14px;
}

.specs-table th {
  width: 40%;
  color: var(--toplin-gray-body);
  font-weight: 500;
  background: var(--toplin-gray-light);
}

.specs-table td {
  color: var(--toplin-gray-dark);
}

.product-detail-cta {
  padding: 24px;
  background: var(--toplin-blue-pale);
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.product-detail-cta p {
  margin-bottom: 8px;
  color: var(--toplin-gray-body);
  font-size: 14px;
  width: 100%;
}

.product-detail-cta .btn {
  white-space: nowrap;
  padding: 14px 20px;
  font-size: 12px;
}

[dir="rtl"] .specs-table th,
[dir="rtl"] .specs-table td {
  text-align: right;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== BLOG PAGE ===== */
.blog-featured {
  padding: 48px 0;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.blog-featured-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--toplin-blue);
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-featured-content .category {
  font-size: 12px;
  color: var(--toplin-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.blog-featured-content .date {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.blog-featured-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-featured-content p {
  color: var(--toplin-gray-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
}

a.blog-card {
  display: block;
  border: 1px solid var(--toplin-gray-border);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.blog-card:hover {
  border-color: var(--toplin-blue);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.blog-card-body {
  padding: 20px;
}

.blog-card-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.blog-card-category .cat {
  font-size: 12px;
  color: var(--toplin-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-category .time {
  font-size: 12px;
  color: #94a3b8;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--toplin-gray-border);
}

.blog-card-footer .date {
  font-size: 12px;
  color: #94a3b8;
}

.blog-card-footer .read-link {
  font-size: 13px;
  color: var(--toplin-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SINGLE ARTICLE ===== */
.article-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  color: #fff;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-category {
  color: var(--toplin-blue-light);
  font-weight: 500;
}

.article-sep {
  color: rgba(255,255,255,0.5);
}

.article-date,
.article-readtime {
  color: rgba(255,255,255,0.8);
}

.article-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: #fff;
  max-width: 800px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-author {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

/* Article Body */
.article-body {
  padding: 64px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.article-main {
  max-width: 720px;
}

.article-lead {
  font-size: 18px;
  color: var(--toplin-gray-dark);
  line-height: 1.8;
  margin-bottom: 32px;
  border-left: 3px solid var(--toplin-blue);
  padding-left: 24px;
}

[dir="rtl"] .article-lead {
  border-left: none;
  border-right: 3px solid var(--toplin-blue);
  padding-left: 0;
  padding-right: 24px;
}

.article-main p {
  font-size: 16px;
  color: var(--toplin-gray-body);
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-main h2 {
  font-size: 28px;
  margin: 48px 0 20px;
  color: var(--toplin-gray-dark);
  font-family: var(--font-serif);
}

/* Article Footer */
.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--toplin-gray-border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-tags span {
  padding: 6px 14px;
  background: var(--toplin-gray-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--toplin-gray-body);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-box {
  border: 1px solid var(--toplin-gray-border);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--toplin-gray-dark);
  font-family: var(--font-sans);
  font-weight: 600;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--toplin-gray-border);
}

.sidebar-box ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-box ul li a {
  font-size: 14px;
  color: var(--toplin-gray-body);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: color 0.3s ease;
}

.sidebar-box ul li a:hover {
  color: var(--toplin-blue);
}

.sidebar-cta {
  padding: 24px;
  background: var(--toplin-blue-pale);
}

.sidebar-cta p {
  font-size: 14px;
  color: var(--toplin-gray-body);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
  }
  .article-hero {
    min-height: 50vh;
  }
}

/* ===== CONTACT / QUOTE FORMS ===== */
.form-section {
  padding: 80px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--toplin-gray-body);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.form-group label .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--toplin-gray-border);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--toplin-blue);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Sidebar */
.sidebar-box {
  background: var(--toplin-blue-pale);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.sidebar-box h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.benefit-item > div:last-child {
  flex: 1;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--toplin-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  color: var(--toplin-blue);
}

.benefit-item h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--toplin-gray-dark);
}

.benefit-item p {
  font-size: 13px;
  color: var(--toplin-gray-body);
}

/* Contact Info */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--toplin-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
  color: var(--toplin-blue);
}

.contact-info-item h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--toplin-gray-dark);
}

.contact-info-item p {
  font-size: 14px;
  color: var(--toplin-gray-body);
}

/* Showroom Banner */
.showroom-banner {
  position: relative;
  height: 400px;
}

.showroom-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom-banner .content {
  text-align: center;
  color: #fff;
}

.showroom-banner h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 12px;
}

.showroom-banner p {
  max-width: 500px;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 100px 0;
  background: var(--toplin-black);
  color: #fff;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 16px;
}

.newsletter > .container > p {
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid #334155;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  border-color: var(--toplin-blue);
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    padding: 0 16px;
  }
  
  .newsletter-form input {
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
}

/* Contact form submit button full width */
.contact-form-inner button[type="submit"] {
  width: 100%;
  padding: 16px 32px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  text-align: center;
  padding: 100px 0;
}

.success-message svg {
  width: 64px;
  height: 64px;
  color: var(--toplin-blue);
  margin-bottom: 24px;
}

.success-message h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.success-message p {
  color: var(--toplin-gray-body);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--toplin-black);
  color: #94a3b8;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo img,
.footer-logo .custom-logo {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--toplin-blue-light);
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--toplin-blue-light);
  flex-shrink: 0;
}

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

.footer-bottom p {
  font-size: 12px;
  color: #64748b;
}

/* ===== RTL SUPPORT ===== */

/* 1. HERO - Wider white coverage in RTL so text doesn't overlap image */
[dir="rtl"] .hero-overlay {
  background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0.5) 80%, transparent 100%);
}

/* Hero inner pushed to right in RTL */
[dir="rtl"] .hero-inner {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .hero p {
  text-align: right;
}

[dir="rtl"] .hero-buttons {
  justify-content: flex-start;
}

/* 2. FEATURE ITEMS - In RTL, 'row' naturally puts icon (first child) on the right */
[dir="rtl"] .feature-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-item h4,
[dir="rtl"] .feature-item p {
  text-align: right;
}

/* 3. BENEFIT ITEMS - In RTL, 'row' naturally puts icon (first child) on the right */
[dir="rtl"] .benefit-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .benefit-item h4,
[dir="rtl"] .benefit-item p {
  text-align: right;
}

/* 4. CONTACT INFO ITEMS */
[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-info-item h4,
[dir="rtl"] .contact-info-item p {
  text-align: right;
}

/* 5. STAT BADGE */
[dir="rtl"] .stat-badge {
  left: auto;
  right: -24px;
}

/* 6. TIMELINE */
[dir="rtl"] .timeline-year {
  text-align: left;
}

/* 7. CTA BUTTONS */
[dir="rtl"] .cta-buttons {
  direction: rtl;
}

/* 8. FORM */
[dir="rtl"] .form-grid {
  direction: rtl;
}

[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select {
  direction: rtl;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid,
  .products-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-us-grid,
  .about-mission-grid,
  .form-grid,
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  
  .mobile-toggle {
    display: block !important;
  }
  
  .header-inner {
    padding: 12px 16px;
    gap: 16px;
  }
  
  .site-logo img,
  .site-logo .custom-logo {
    height: 32px !important;
    max-height: 32px !important;
  }
  
  .categories-grid,
  .products-grid,
  .values-grid,
  .testimonials-grid,
  .certs-grid,
  .projects-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .filter-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .hero-content {
    padding-top: 120px;
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  /* Hide desktop lang switcher, show the one inside mobile menu */
  .main-nav .lang-switcher {
    display: none;
  }
  
  .mobile-menu .lang-switcher {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  /* CTA buttons same width on mobile */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Product detail CTA buttons same width */
  .product-detail-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .product-detail-cta .btn {
    width: 100%;
    margin: 0;
  }
}

/* WooCommerce overrides */
.woocommerce .product {
  border: 1px solid var(--toplin-gray-border);
  overflow: hidden;
}

.woocommerce .product:hover {
  border-color: var(--toplin-blue);
}

.woocommerce-loop-product__title {
  font-family: var(--font-serif) !important;
  font-size: 16px !important;
  padding: 12px 16px 4px !important;
}

.woocommerce-Price-amount {
  padding: 0 16px 16px !important;
  color: var(--toplin-blue) !important;
  font-weight: 600 !important;
}

.woocommerce ul.products li.product .woocommerce-placeholder,
.woocommerce ul.products li.product img {
  height: 240px !important;
  object-fit: cover !important;
}
