/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d3748;
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', 'Georgia', serif; color: #1a2b4a; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: #e8a838; color: #fff; border-color: #e8a838; }
.btn-primary:hover { background: #d4952e; border-color: #d4952e; }
.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }

/* === Two-Column Product Detail Layout === */
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.product-detail-media { position: sticky; top: 80px; }
.product-detail-media img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.product-detail-info h2:first-child { margin-top: 0; }
.product-detail-info .specs-quick {
  background: #f0f7f7; padding: 20px 24px; border-left: 4px solid #0d7377;
  border-radius: 0 8px 8px 0; margin: 16px 0 24px;
}
.product-detail-info .specs-quick p { margin: 4px 0; font-size: 0.95rem; }
.product-detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* === Trust Badge Logos (CSS-based wordmarks) === */
.trust-badges-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; align-items: center; margin-top: 24px; }
.trust-logo {
  display: inline-flex; align-items: center; height: 56px; padding: 0 18px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  color: #64748b; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; font-size: 0.78rem; line-height: 1.15;
  transition: all 0.2s; max-width: 220px; text-align: center;
}
.trust-logo:hover { color: #1a2b4a; border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.trust-logo.sfpuc { font-family: 'Playfair Display', serif; font-weight: 700; color: #1a4d7a; }
.trust-logo.ebmud { font-family: 'Inter', sans-serif; color: #2d5a3d; }
.trust-logo.usds { font-family: 'Playfair Display', serif; color: #8b0000; }
.trust-logo.ge { font-family: 'Inter', sans-serif; color: #3b82f6; font-size: 1.4rem; letter-spacing: 1px; }
.trust-logo.ibm { font-family: 'Courier New', monospace; color: #054ada; font-size: 1.5rem; font-weight: 800; }
.trust-logo.qatar { font-family: 'Playfair Display', serif; color: #8a1538; }

/* === Featured Projects === */
.featured-projects { padding: 80px 24px; background: #f8f9fa; }
.featured-projects h2 { text-align: center; font-size: 2.2rem; margin-bottom: 12px; }
.featured-projects .section-subtitle { color: #64748b; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.project-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0; transition: all 0.3s; display: block;
}
.project-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.project-card-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, #1a2b4a, #0d7377); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-body { padding: 24px; }
.project-card-meta { display: flex; gap: 12px; font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }
.project-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #1a2b4a; font-family: 'Inter', sans-serif; }
.project-card p { color: #64748b; font-size: 0.95rem; line-height: 1.55; }
.project-card-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f4f8; font-size: 0.85rem; }
.project-card-stats strong { color: #0d7377; display: block; font-size: 1.1rem; }

@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-media { position: static; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* === Filter Tabs === */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.filter-tab {
  background: #fff; color: #475569; padding: 10px 18px; border-radius: 24px;
  border: 1.5px solid #cbd5e1; font: 600 0.875rem/1 'Inter', sans-serif;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.filter-tab:hover { border-color: #0d7377; color: #0d7377; }
.filter-tab.active { background: #0d7377; border-color: #0d7377; color: #fff; }
.filter-count {
  background: rgba(0,0,0,0.08); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem;
}
.filter-tab.active .filter-count { background: rgba(255,255,255,0.25); }
.card-category-tag {
  display: inline-block; background: #f0f7f7; color: #0d7377; padding: 4px 10px;
  border-radius: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase; margin-bottom: 8px;
}
.product-card[data-category] { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* === Breadcrumb === */
.breadcrumb { background: #f8f9fa; padding: 12px 24px; border-bottom: 1px solid #e2e8f0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; font-size: 0.875rem; }
.breadcrumb li { display: inline-flex; align-items: center; color: #64748b; }
.breadcrumb li + li::before { content: "›"; margin: 0 10px; color: #94a3b8; font-weight: 600; }
.breadcrumb a { color: #0d7377; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #14919b; text-decoration: underline; }
.breadcrumb [aria-current="page"] span { color: #1a2b4a; font-weight: 600; }

/* === Datasheet Download Button === */
.datasheet-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: #f0f7f7; color: #0d7377; padding: 14px 24px; border-radius: 8px;
  border: 2px solid #0d7377; text-decoration: none; font-weight: 600;
  transition: all 0.2s; margin: 16px 0;
}
.datasheet-download:hover { background: #0d7377; color: #fff; }
.datasheet-download::before { content: "📄"; font-size: 1.25rem; }

/* === Header === */
.site-header { position: relative; z-index: 100; }
.header-top {
  background: linear-gradient(135deg, rgba(26,43,74,0.35), rgba(13,115,119,0.25)),
              url('/images/hero-bg.jpg') center 80% / cover no-repeat;
  color: #fff; text-align: center; padding: 60px 24px 30px;
}
.logo { max-height: 80px; margin: 0 auto 8px; }
.tagline { color: #c8a84e; font-size: 1rem; margin-bottom: 4px; letter-spacing: 0.5px; }
.subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; font-style: italic; }

/* === Navigation === */
.main-nav { background: #2d3e50; position: sticky; top: 0; z-index: 99; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links > li > a {
  display: block; padding: 16px 20px; color: #e2e8f0; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.5px; transition: background 0.2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links > li > a svg { vertical-align: middle; margin-left: 4px; }
.nav-cta-group { display: flex; gap: 10px; align-items: center; }
.nav-cta {
  background: #e8a838; color: #fff; padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 0.85rem; transition: all 0.3s; white-space: nowrap;
  border: 2px solid #e8a838;
}
.nav-cta:hover { background: #d4952e; border-color: #d4952e; }
.nav-cta-secondary {
  background: #14919b; color: #fff; padding: 10px 20px; border-radius: 6px;
  font-weight: 700; font-size: 0.9rem; transition: all 0.3s; white-space: nowrap;
  border: 2px solid #14919b;
  box-shadow: 0 2px 8px rgba(20,145,155,0.35);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta-secondary::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>");
  background-repeat: no-repeat; background-size: contain;
}
.nav-cta-secondary:hover {
  background: #0d7377; border-color: #0d7377;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20,145,155,0.5);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-radius: 0 0 8px 8px; z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 20px; color: #2d3748; font-size: 0.9rem; transition: background 0.2s; }
.dropdown a:hover { background: #f0f4f8; color: #0d7377; }

/* Mobile menu */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* === Hero === */
.hero {
  background: linear-gradient(160deg, #0d3d56 0%, #0d7377 40%, #14919b 100%);
  color: #fff; text-align: center; padding: 80px 24px 60px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; color: #fff; }
.hero p { max-width: 680px; margin: 0 auto 32px; font-size: 1.1rem; opacity: 0.9; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 700; }
.stat span { font-size: 0.85rem; opacity: 0.8; }
.stat-icon { font-size: 1.5rem; display: block; }

/* === Trust Section === */
.trust-section { padding: 48px 24px; text-align: center; background: #f8f9fa; }
.trust-label { font-size: 0.8rem; letter-spacing: 2px; color: #64748b; margin-bottom: 20px; font-weight: 600; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge {
  padding: 8px 20px; border: 1px solid #cbd5e1; border-radius: 24px;
  font-size: 0.85rem; color: #475569; background: #fff;
}

/* === Solutions Section === */
.solutions-section { padding: 80px 24px; text-align: center; }
.solutions-section h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-subtitle { color: #64748b; max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.solutions-grid-2col { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.card-cta { display: inline-block; margin-top: 16px; color: #e8a838; font-weight: 700; font-size: 1rem; transition: color 0.2s; }
.solution-card:hover .card-cta { color: #d4952e; }
.solutions-grid-2col .card-photo { height: 260px; }
.solution-card {
  background: #fff; padding: 32px; border-radius: 12px;
  border: 1px solid #e2e8f0; transition: all 0.3s ease; display: block;
}
.solution-card:hover { border-color: #14919b; box-shadow: 0 8px 24px rgba(20,145,155,0.12); transform: translateY(-4px); }
.card-icon { margin-bottom: 16px; }
.solution-card { overflow: hidden; }
.card-photo { margin: -32px -32px 20px -32px; height: 200px; overflow: hidden; background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; display: block; }
.solution-card:hover .card-photo img { transform: scale(1.06); }
.solution-card h3 { font-size: 1.25rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.solution-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* === Why Section === */
.why-section { padding: 80px 24px; background: #f0f7f7; }
.why-section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item { text-align: center; padding: 24px; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 12px; color: #0d7377; font-family: 'Inter', sans-serif; font-weight: 600; }
.why-item p { color: #64748b; font-size: 0.95rem; }

/* === How We Work / Process Section === */
.process-section { padding: 80px 24px; background: #fff; text-align: center; }
.process-section h2 { font-size: 2.2rem; margin-bottom: 12px; }
.process-section .section-subtitle { color: #64748b; max-width: 680px; margin: 0 auto 48px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.process-step {
  position: relative; background: #f8f9fa; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 28px 24px 24px; transition: all 0.3s ease;
}
.process-step:hover { border-color: #14919b; box-shadow: 0 8px 24px rgba(20,145,155,0.1); transform: translateY(-3px); }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #0d7377, #14919b); color: #fff;
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; color: #1a2b4a; font-family: 'Inter', sans-serif; font-weight: 700; }
.process-step p { color: #64748b; font-size: 0.9rem; line-height: 1.6; }
.process-step::after {
  content: "→"; position: absolute; top: 38px; right: -16px;
  color: #cbd5e1; font-size: 1.4rem; z-index: 2;
}
.process-step:last-child::after { display: none; }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #1a2b4a, #0d7377); color: #fff;
  text-align: center; padding: 80px 24px;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; color: #fff; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-section .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* === Footer === */
.site-footer { background: #1a2b4a; color: #cbd5e1; padding: 60px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { max-height: 50px; margin-bottom: 12px; filter: brightness(1.2); }
.footer-tagline { font-style: italic; font-size: 0.85rem; opacity: 0.7; margin-top: 4px; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; transition: color 0.2s; font-size: 0.9rem; }
.footer-col a:hover { color: #e8a838; }
.footer-col p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-social { margin-top: 16px; }
.footer-social a { color: #e8a838; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }

/* === Page Header (for inner pages) === */
.page-header {
  background: linear-gradient(135deg, #1a2b4a, #0d7377);
  color: #fff; text-align: center; padding: 60px 24px;
}
.page-header h1 { font-size: 2.4rem; color: #fff; margin-bottom: 12px; }
.page-header p { opacity: 0.85; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === Content Sections (inner pages) === */
.content-section { padding: 60px 24px; }
.content-section:nth-child(even) { background: #f8f9fa; }
.content-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.content-section h3 { font-size: 1.3rem; margin-bottom: 12px; color: #0d7377; font-family: 'Inter', sans-serif; }
.content-section p { margin-bottom: 16px; color: #475569; line-height: 1.7; }
.content-section ul { margin-bottom: 16px; padding-left: 24px; }
.content-section ul li { margin-bottom: 8px; color: #475569; list-style: disc; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.product-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 28px; transition: all 0.3s ease;
  display: flex; flex-direction: column; min-height: 100%;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0d7377, #14919b); opacity: 0; transition: opacity 0.3s;
}
.product-card:hover { border-color: #14919b; box-shadow: 0 8px 24px rgba(20,145,155,0.12); transform: translateY(-2px); }
.product-card:hover::before { opacity: 1; }
.product-card h3 { margin-bottom: 12px; font-size: 1.2rem; line-height: 1.3; color: #1a2b4a; }
.product-card p { font-size: 0.92rem; line-height: 1.55; color: #475569; margin-bottom: 10px; }
.product-card .specs { margin-top: 12px; font-size: 0.82rem; color: #64748b; font-weight: 500; }

/* Card action buttons — pinned to bottom, side-by-side, equal width */
.product-card .card-actions, .product-card > p:last-of-type:has(.btn) {
  margin-top: auto !important; padding-top: 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
}
.product-card .card-actions .btn, .product-card > p:last-of-type .btn {
  flex: 1 1 110px; text-align: center; padding: 10px 14px;
  font-size: 0.82rem; font-weight: 600; border-radius: 6px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent;
}
.product-card .btn-primary { background: #0d7377; color: #fff; border-color: #0d7377; }
.product-card .btn-primary:hover { background: #14919b; border-color: #14919b; }
.product-card .btn-secondary {
  background: #fff; color: #0d7377; border-color: #0d7377;
}
.product-card .btn-secondary:hover { background: #f0f7f7; }
.product-card .btn-shop {
  background: #14919b; color: #fff; border-color: #14919b;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .btn-shop::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>");
  background-repeat: no-repeat; background-size: contain;
}
.product-card .btn-shop:hover { background: #0d7377; border-color: #0d7377; }

/* Contact form */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: #1a2b4a; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #14919b; box-shadow: 0 0 0 3px rgba(20,145,155,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Contact info sidebar */
.contact-info { background: #f0f7f7; padding: 32px; border-radius: 12px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; font-size: 0.95rem; }
.contact-info a { color: #0d7377; font-weight: 500; }

/* === Responsive === */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #2d3e50; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 24px; }
  .dropdown { position: static; box-shadow: none; background: #364a5e; }
  .dropdown a { color: #e2e8f0; padding-left: 40px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  /* Show CTAs inside the open mobile menu, stacked below nav-links */
  .nav-cta-group {
    display: none; flex-direction: column; gap: 8px;
    padding: 16px; background: #243341; border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); margin: 0;
  }
  .nav-cta-group.open { display: flex; }
  .nav-cta-group .nav-cta, .nav-cta-group .nav-cta-secondary {
    display: block; width: 100%; text-align: center; padding: 14px 20px; font-size: 1rem;
  }
  .nav-container { flex-wrap: wrap; }
  .nav-links.open { position: static; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .solutions-grid, .solutions-grid-2col { grid-template-columns: 1fr; gap: 24px; }
  .solutions-grid-2col .card-photo { height: 200px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.8rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
}

/* === Contact form status banners === */
.form-status { display: none; }
.form-status.success,
.form-status.error {
  display: block;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}
.form-status.success {
  background: #e6f7ee;
  border: 1px solid #34c77b;
  color: #15663f;
}
.form-status.error {
  background: #fdecec;
  border: 1px solid #e25555;
  color: #8a2020;
}
.form-status a { text-decoration: underline; font-weight: 600; }

/* === Line Card brand logos === */
.product-card .brand-logo {
  display: flex; align-items: center; justify-content: flex-start;
  height: 48px; margin-bottom: 14px;
}
.product-card .brand-logo img {
  max-height: 44px; max-width: 180px; width: auto; height: auto;
  object-fit: contain; object-position: left center;
}

/* === Clickable product/brand cards (div with data-href) === */
.product-card[data-href] { cursor: pointer; }
.product-card[data-href]:focus-visible { outline: 2px solid #14919b; outline-offset: 2px; }

/* === Product card thumbnails (e.g. Seawater Desalination range) === */
.product-card .card-thumb {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px; background: #eef2f6;
}

/* === Homepage hero: Ken Burns slow zoom/pan === */
.home .header-top { position: relative; overflow: hidden; background: #0d3d56; }
.home .header-top::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/images/hero-bg.jpg') center 80% / cover no-repeat;
  transform-origin: center bottom;
  transform: scale(1.04);
  animation: heroKenBurns 19s ease-in-out infinite alternate;
  will-change: transform;
}
.home .header-top::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, rgba(26,43,74,0.35), rgba(13,115,119,0.25));
}
.home .header-top .container { position: relative; z-index: 2; }
@keyframes heroKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.20); }
}
@media (prefers-reduced-motion: reduce) {
  .home .header-top::before { animation: none; transform: scale(1.04); }
}

/* === Language switcher (header) === */
.nav-cta-group { align-items: center; }
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1.5px solid #cbd5e1; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; color: #1a2b4a; background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: #14919b; color: #0d7377; }
.lang-switch[open] > summary { border-color: #14919b; color: #0d7377; }
.lang-switch svg { flex-shrink: 0; }
.lang-switch > ul {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26,43,74,0.14);
}
.lang-switch > ul li { margin: 0; }
.lang-switch > ul a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 0.88rem; color: #1a2b4a; text-decoration: none; white-space: nowrap;
}
.lang-switch > ul a:hover { background: #f0f7f7; color: #0d7377; }
.lang-switch > ul a[aria-current="true"] { background: #0d7377; color: #fff; font-weight: 600; }

/* === Language suggestion banner === */
.lang-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 20px; z-index: 1000; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 10px;
  background: #1a2b4a; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: langBannerIn 0.35s ease;
}
@keyframes langBannerIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.lang-banner-msg { font-size: 0.92rem; font-weight: 500; }
.lang-banner-go {
  padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  background: #14919b; color: #fff; text-decoration: none; white-space: nowrap;
}
.lang-banner-go:hover { background: #0d7377; }
.lang-banner-x {
  padding: 8px 12px; border: none; background: transparent; cursor: pointer;
  font-size: 0.82rem; color: #cbd5e1; white-space: nowrap;
}
.lang-banner-x:hover { color: #fff; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .lang-banner { animation: none; } }
@media (max-width: 600px) { .lang-banner { bottom: 0; border-radius: 10px 10px 0 0; } }

/* === RTL support (Arabic) === */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .solutions-grid,
[dir="rtl"] .process-grid { text-align: right; }
[dir="rtl"] .content-section ul { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .product-detail-info .specs-quick {
  border-left: none; border-right: 4px solid #0d7377; border-radius: 8px 0 0 8px;
}
[dir="rtl"] .breadcrumb li + li::before { content: "‹"; }
[dir="rtl"] .dropdown { left: auto; right: 0; }
[dir="rtl"] .lang-switch > ul { right: auto; left: 0; }
[dir="rtl"] .process-step::after { content: "←"; right: auto; left: -16px; }
@media (max-width: 768px) {
  [dir="rtl"] .dropdown a { padding-left: 20px; padding-right: 40px; }
}
/* Latin/number runs (specs, stats, phone, email, web) stay LTR within the RTL flow */
[dir="rtl"] .product-card .specs,
[dir="rtl"] .hero-stats .stat strong,
[dir="rtl"] .project-card-stats span strong,
[dir="rtl"] .contact-info a[href^="tel"],
[dir="rtl"] .contact-info a[href^="mailto"],
[dir="rtl"] .footer-col a[href^="tel"],
[dir="rtl"] .footer-col a[href^="mailto"] { unicode-bidi: isolate; }
