/* ==========================================================================
   PARAWEWA ECO BIO SEPTIC TANK SYSTEM
   Modern Minimal Design System — Mobile-First CSS
   ========================================================================== */

/* Fonts are self-hosted: see assets/fonts/fonts.css (generated by tools/build_assets.py) */

/* --- Design Tokens --- */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f0f7f1;
  --bg-topbar: #0a3019;

  --border-color: #e1ece3;
  --border-active: #187a40;

  --text-main: #0f1a14;
  --text-muted: #55655b;
  --text-light: #66766c;
  --text-white: #ffffff;

  --accent-blue: #187a40;
  --accent-blue-dark: #0f5c2e;
  --accent-blue-light: #e8f4ec;
  --accent-emerald: #187a40;
  --accent-emerald-dark: #0f5c2e;
  --accent-emerald-light: #e8f4ec;
  --accent-orange: #ea580c;
  --accent-orange-light: #fdf1e8;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.10);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg-soft: #f0f7f1;
  --text-dim: #5f6f65;
  --dark: #0c3b21;
  --dark-2: #135029;
  --dark-3: #1a6636;
  --dark-line: rgba(255, 255, 255, 0.10);
  --radius-btn: 10px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;

  --card-pad: 1.5rem;
  --card-radius: 20px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 66px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.013em;
  color: var(--text-main);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p { color: var(--text-muted); }

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-blue-dark); }

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

ul, ol { list-style: none; }

button, input, select, textarea { font-family: inherit; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

.section {
  padding: var(--space-6) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

@media (min-width: 768px) {
  .section { padding: var(--space-7) 0; }
}

.section-alt { background: var(--bg-secondary); }
.section-tint { background: var(--bg-subtle); }
.section-border-t { border-top: 1px solid var(--border-color); }
.section-border-b { border-bottom: 1px solid var(--border-color); }

.text-blue { color: var(--accent-blue); }
.text-emerald { color: var(--accent-emerald); }
.text-center { text-align: center; }

/* --- Grid Utilities (mobile-first: 1 column, expand via auto-fit) --- */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2-fixed {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .grid-2-fixed { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.flex-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- Top Contact Bar --- */
.top-bar {
  background: var(--bg-topbar);
  color: #b9d6c1;
  font-size: var(--text-xs);
  padding: 0.55rem 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-link {
  color: #d4e6d9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.top-bar-link i { color: #6eb444; font-size: 0.85em; }
.top-bar-link:hover { color: #ffffff; }

.top-bar-award {
  color: #e6f0e8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar-social a { color: #b9d6c1; font-size: var(--text-sm); }
.top-bar-social a:hover { color: #ffffff; }

@media (max-width: 767px) {
  .top-bar { display: none; }
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height var(--transition-normal);
}

@media (min-width: 992px) {
  .navbar-container { height: 88px; }
  .navbar.scrolled .navbar-container { height: 68px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .logo { max-width: 70%; }
}

.logo img { height: 32px; width: auto; object-fit: contain; }

@media (min-width: 576px) {
  .logo img { height: 38px; }
}

.logo-badge {
  background: var(--accent-blue-light);
  color: var(--accent-blue-dark);
  border: 1px solid #bfe0c9;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
}

.nav-item { position: relative; }

.nav-link {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 1.6rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--accent-blue); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-blue);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.98);
  transform-origin: top left;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item { display: block; }

.dropdown-link {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
  padding-left: 1.3rem;
}

.dropdown-icon { color: var(--accent-blue); width: 16px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-actions .btn-primary { display: none; white-space: nowrap; padding: 0.6rem 1.25rem; min-height: 44px; }

@media (min-width: 992px) {
  .nav-actions .btn-primary { display: inline-flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(26, 130, 69, 0.25);
}
.btn-primary:hover {
  background: var(--accent-blue-dark);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(26, 130, 69, 0.35);
  transform: translateY(-1px);
}

.btn-emerald { background: var(--accent-emerald); color: #fff; }
.btn-emerald:hover { background: var(--accent-emerald-dark); color: #fff; }

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1eb956; color: #fff; }

.btn-block { width: 100%; }
.btn-sm { font-size: var(--text-sm); min-height: 44px; padding: 0.6rem 1rem; }

.mobile-menu-btn {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  min-width: 46px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mobile-menu-btn { display: none; }
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active { transform: translateX(0); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mobile-sub-menu {
  padding-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.mobile-sub-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

/* --- Mobile Bottom Sticky Action Bar --- */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 -6px 16px rgba(16, 24, 40, 0.06);
}

.mobile-bottom-bar .btn { flex: 1; min-height: 46px; padding: 0.4rem; font-size: var(--text-xs); }

@media (min-width: 992px) {
  .mobile-bottom-bar { display: none; }
}

/* --- Hero Section --- */
.hero {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .hero { padding-top: var(--space-7); padding-bottom: var(--space-7); }
}

.hero-sinhala {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.85;
  color: var(--accent-blue-dark);
  margin-bottom: var(--space-2);
}

@media (max-width: 991px) {
  .hero-ctas .open-quote-modal { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); }
}

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-blue-light);
  border: 1px solid #bfe0c9;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-blue-dark);
}

.hero-badge-emerald { background: var(--accent-emerald-light); border-color: #bfe0c9; color: var(--accent-emerald-dark); }
.hero-badge-orange { background: var(--accent-orange-light); border-color: #fbd7b5; color: #b45309; }

.hero-title {
  font-size: clamp(1.8rem, 5.6vw, 3.4rem);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}

.hero-quote {
  background: var(--accent-blue-light);
  border-left: 3px solid var(--accent-blue);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.hero-quote-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--accent-blue-dark);
  font-size: var(--text-sm);
}

.hero-quote-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.hero-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: var(--text-lg); }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-4);
}

.hero-ctas .btn { width: 100%; }

@media (min-width: 576px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: auto; }
}

.hero-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.section-tag-red { color: #dc2626; }
.section-tag-emerald { color: var(--accent-emerald); }

.section-title {
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* --- Dark Feature Section (used for the comparison table) --- */
.section-feature-dark {
  background: linear-gradient(135deg, #0c3b21, #135029);
}

.section-tag-on-dark {
  color: #8fd16a;
}

.section-title-on-dark {
  color: #ffffff;
}

.text-sky { color: #6eb444; }

.section-subtitle-on-dark {
  color: #d4e6d9;
}

/* --- Card Primitives --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-pad { padding: var(--space-4); }
.card-pad-lg { padding: var(--space-5); }

/* --- System Option Cards (Model A / B) --- */
.option-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  position: relative;
}

.option-card-blue { border-color: #bfe0c9; }
.option-card-emerald { border-color: #bfe0c9; }

.option-ribbon {
  position: absolute;
  top: -13px;
  left: 20px;
  color: #fff;
  padding: 0.22rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
}

.option-ribbon-blue { background: var(--accent-blue); }
.option-ribbon-emerald { background: var(--accent-emerald); }

.option-title { font-size: 1.3rem; margin-top: 0.5rem; margin-bottom: 0.4rem; }
.option-tagline { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.option-tagline-blue { color: var(--accent-blue-dark); }
.option-tagline-emerald { color: var(--accent-emerald); }

.option-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; margin-bottom: var(--space-3); }

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-main);
  margin-bottom: var(--space-4);
}

.option-list li { display: flex; align-items: flex-start; gap: 0.5rem; }

.check-icon { color: var(--accent-emerald); margin-top: 0.2rem; flex-shrink: 0; }
.cross-icon { color: #dc2626; }

/* --- Feature Grid (Why Choose) --- */
.feature-card {
  background: #ffffff;
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.icon-blue { background: var(--accent-blue-light); color: var(--accent-blue); }
.icon-emerald { background: var(--accent-emerald-light); color: var(--accent-emerald); }
.icon-orange { background: var(--accent-orange-light); color: var(--accent-orange); }

.feature-title { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.feature-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

/* --- Who Suits Row Cards --- */
.suit-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.suit-icon { font-size: 1.4rem; color: var(--accent-blue); flex-shrink: 0; }
.suit-title { font-size: var(--text-lg); margin-bottom: 0.3rem; }
.suit-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }

/* --- Client Logos Strip --- */
.logo-strip-label {
  text-align: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.client-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: var(--space-4);
}

.client-logo-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.client-logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.client-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (min-width: 576px) {
  .client-logo-card { width: 150px; height: 150px; }
}

.logo-chip {
  background: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Scrolling Client/Project Marquee --- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: logo-marquee-scroll 28s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.75rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; }
}

/* --- Article Cards --- */
.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.article-card-img { height: 180px; overflow: hidden; position: relative; background: #fff; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img.contain img { object-fit: contain; padding: 0.5rem; }

.article-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge-blue { background: var(--accent-blue); }
.badge-emerald { background: var(--accent-emerald); }
.badge-orange { background: var(--accent-orange); }

.article-card-body { padding: var(--space-4); display: flex; flex-direction: column; flex-grow: 1; }
.article-meta { font-size: var(--text-xs); color: var(--text-light); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.35rem; }
.article-title { font-size: var(--text-lg); margin-bottom: 0.5rem; line-height: 1.35; }
.article-summary { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin-bottom: var(--space-4); flex-grow: 1; }

.article-hub-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.article-hub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.article-hub-badge {
  align-self: flex-start;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.article-hub-title { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.article-hub-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-3); flex-grow: 1; }

/* --- Video Cards --- */
.video-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body { padding: var(--space-4); }
.video-tag { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--text-xs); margin-bottom: 0.4rem; }
.video-title { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.video-desc { font-size: var(--text-sm); color: var(--text-muted); }

/* --- Calculator Card --- */
.calculator-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .calculator-card { padding: var(--space-6) var(--space-5); grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

.calc-heading { font-size: var(--text-lg); margin-bottom: var(--space-4); }

.form-group { margin-bottom: var(--space-3); }

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  font-size: var(--text-sm);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
}

.calc-results {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.result-item { margin-bottom: var(--space-3); }
.result-desc { font-size: var(--text-xs); color: var(--text-muted); }
.result-value { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--accent-blue); }
.result-value-orange { color: var(--accent-orange); }
.result-value-emerald { font-size: 1.35rem; color: var(--accent-emerald); }

.disclaimer-badge {
  margin-top: var(--space-3);
  background: #fffaeb;
  border: 1px solid #fcd9a0;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #92400e;
  font-size: var(--text-xs);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }

@media (min-width: 768px) {
  .comparison-table { min-width: 560px; }
}

@media (max-width: 767px) {
  .comparison-table-wrapper { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
  .comparison-table thead { display: none; }
  .comparison-table tr { background: #fff; border-radius: var(--radius-md); margin-bottom: var(--space-3); overflow: hidden; }
  .comparison-table td { border-bottom: 1px solid var(--border-color); padding: 0.75rem 1rem; font-size: var(--text-sm); }
  .comparison-table td:first-child { background: var(--bg-subtle); font-family: var(--font-heading); font-size: var(--text-lg); border-bottom: 1px solid var(--border-color); }
  .comparison-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.15rem; }
  .comparison-table td.highlight-col { background: var(--accent-blue-light); }
  .comparison-table tr td:last-child { border-bottom: 0; }
}

.comparison-table th, .comparison-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-sm);
}

.comparison-table th { font-family: var(--font-heading); font-size: var(--text-xs); background: var(--bg-subtle); }
.comparison-table th.highlight-col { background: var(--accent-blue-light); color: var(--accent-blue-dark); }
.comparison-table td.highlight-col { background: var(--bg-subtle); font-weight: 600; }

/* --- Testimonial Cards --- */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars { color: #f59e0b; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.review-stars span { color: var(--text-muted); font-size: var(--text-xs); margin-left: 0.4rem; }
.review-quote { font-size: var(--text-sm); color: var(--text-main); line-height: 1.6; font-style: italic; margin-bottom: var(--space-4); }

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-3);
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-name { display: block; color: var(--text-main); font-size: var(--text-sm); }
.review-role { font-size: var(--text-xs); color: var(--text-muted); }

/* --- Founder Section --- */
.founder-photo { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }

.founder-photo-placeholder {
  aspect-ratio: 6 / 7;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-light);
}

.founder-photo-placeholder i {
  font-size: 3.5rem;
  color: var(--accent-blue);
  opacity: 0.5;
}

.founder-photo-placeholder span {
  font-size: var(--text-sm);
  font-weight: 600;
}

.founder-eyebrow {
  display: inline-block;
  background: var(--accent-blue-light);
  color: var(--accent-blue-dark);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
  margin-bottom: var(--space-3);
}

.founder-name { font-size: 1.8rem; margin-bottom: 0.35rem; }
.founder-role { color: var(--accent-blue); font-weight: 600; font-size: var(--text-base); margin-bottom: var(--space-4); }
.founder-bio { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--space-3); line-height: 1.65; }

.founder-callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent-blue);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: var(--space-4);
}

.founder-badges { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }

.founder-badge-card {
  background: #ffffff;
  padding: var(--space-3);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.founder-badge-card img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.founder-badge-title { font-weight: 700; font-size: var(--text-sm); }
.founder-badge-sub { font-size: var(--text-xs); color: var(--text-muted); }

/* --- Certificate Gallery --- */
.cert-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cert-img { height: 210px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0.6rem; }
.cert-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.cert-body { padding: var(--space-4); }
.cert-tag { font-weight: 700; font-size: var(--text-xs); }
.cert-title { font-size: var(--text-lg); margin: 0.3rem 0; }
.cert-desc { font-size: var(--text-sm); color: var(--text-muted); }

/* --- FAQ Accordion --- */
.faq-search-wrapper { max-width: 600px; margin: 0 auto var(--space-4) auto; position: relative; }

.faq-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.faq-search-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-light); }

.accordion { display: flex; flex-direction: column; max-width: 900px; margin: 0 auto; border-top: 1px solid var(--border-color); }
.accordion-item { background: transparent; border-bottom: 1px solid var(--border-color); }

.accordion-header {
  padding: 1.15rem 0.25rem;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  gap: 1rem;
}

.accordion-icon {
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
}

.accordion-item.active .accordion-icon {
  transform: rotate(135deg);
  background: var(--accent-blue);
  color: #fff;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 0.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.accordion-item.active .accordion-body { padding: 0 0.25rem 1.1rem 0.25rem; }

/* --- Contact Section --- */
.contact-info-card { background: var(--bg-subtle); border: 1px solid var(--border-color); padding: var(--card-pad); border-radius: var(--card-radius); }
.contact-info-title { font-size: 1.3rem; margin-bottom: var(--space-4); }

.contact-row { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); align-items: flex-start; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row-icon { font-size: var(--text-lg); margin-top: 0.15rem; }
.contact-row-title { display: block; color: var(--text-main); font-weight: 700; }
.contact-row-detail { color: var(--text-muted); font-size: var(--text-sm); }
.contact-row-link { font-size: var(--text-base); font-weight: 700; }

.contact-form-card { background: #ffffff; border: 1px solid var(--border-color); padding: var(--card-pad); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.contact-form-title { font-size: 1.3rem; }
.lang-pill { font-size: var(--text-xs); background: var(--accent-blue-light); color: var(--accent-blue-dark); padding: var(--card-pad); border-radius: var(--radius-full); font-weight: 700; }

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--card-pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: var(--space-4);
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title { font-size: 1.3rem; margin: 0; }
.modal-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }
.modal-article-title { font-size: 1.4rem; margin: 0.75rem 0 var(--space-3) 0; line-height: 1.35; }
.modal-article-body { color: var(--text-main); font-size: var(--text-sm); line-height: 1.7; max-height: 58vh; overflow-y: auto; padding-right: 0.4rem; }
.modal-article-footer { margin-top: var(--space-4); border-top: 1px solid var(--border-color); padding-top: var(--space-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }

/* --- Footer --- */
.footer { background: var(--text-main); color: #d4e6d9; padding: var(--space-6) 0 var(--space-4) 0; }
.footer h4 { color: #ffffff; font-size: var(--text-base); margin-bottom: var(--space-3); }
.footer p { color: #b9d6c1; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }

@media (min-width: 576px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

.footer-desc { color: #b9d6c1; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.footer-address { color: #8fb09b; font-size: var(--text-xs); margin-bottom: var(--space-4); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #135029;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
}
.footer-social a.whatsapp { background: #25d366; }

.footer-links { display: flex; flex-direction: column; gap: 0; font-size: var(--text-sm); }
.footer-links a { color: #b9d6c1; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: #ffffff; }

.footer-keywords { display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--text-sm); color: #b9d6c1; }

.footer-bottom {
  border-top: 1px solid #1e5c36;
  padding-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  color: #b9d6c1;
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* --- Scroll Reveal Animation --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sinhala needs more vertical room than Latin text */
:lang(si), .form-label, .lang-pill { line-height: 1.8; }

/* --- Verified facts band --- */
.stat-band { background: var(--accent-blue-dark); color: #fff; padding: var(--space-5) 0; }
.stat-band-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); text-align: center; }
@media (min-width: 640px) { .stat-band-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-value { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; line-height: 1; color: #fff; }
.stat-label { margin-top: 0.4rem; font-size: var(--text-sm); color: #cfe9f7; }

/* --- Left-aligned section headers (list-style sections) --- */
.section-header-left { text-align: left; margin-left: 0; margin-right: 0; max-width: 720px; }

/* --- About: text + facts panel --- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-6); } }
.about-facts { display: grid; gap: var(--space-3); }

/* Keep the desktop nav on one row at laptop widths */
@media (min-width: 992px) and (max-width: 1279px) {
  .nav-links { gap: 1.25rem; }
  .logo-badge { display: none; }
}


/* ==========================================================================
   SURGE-STYLE LAYER
   Inter Tight headings + Instrument Sans body, two-tone headings, eyebrow dot,
   left-aligned section heads, soft "card in a frame" cards, bento grid,
   icon tab list, swipe rows on mobile, dark hero.
   ========================================================================== */

:root { --gutter: 1.1rem; }
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 992px) { :root { --gutter: 2.5rem; } }

body { background: #ffffff; font-size: var(--text-base); }
p { line-height: 1.6; }

.container { max-width: 1320px; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

/* --- Section rhythm: soft and white bands, no divider lines --- */
.section { padding: 64px 0 70px; }
@media (min-width: 992px) { .section { padding: 104px 0 112px; } }

.section-alt { background: var(--bg-soft); }
.section-logos { padding: 2.25rem 0; background: #ffffff; }
.section-border-t, .section-border-b { border: 0; }

/* --- Section headers: left aligned, eyebrow dot, two-tone title --- */
.section-header,
.section-header-left {
  text-align: left;
  max-width: 780px;
  margin: 0 0 var(--space-5) 0;
}

@media (min-width: 992px) {
  .section-header, .section-header-left { margin-bottom: var(--space-6); }
}

.section-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.9rem;
  gap: 0.55rem;
}

.section-tag i { display: none; }

.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.section-tag-emerald { color: var(--text-main); }
.section-tag-on-dark { color: #d4e6d9; }
.section-tag-on-dark::before { background: #6eb444; }

.section-title {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title .text-blue,
.section-title .text-emerald,
.section-title .text-sky {
  display: block;
  color: var(--text-dim);
}

.section-title-on-dark { color: #ffffff; }
.section-title-on-dark .text-sky { color: #9fbfa8; }

.section-subtitle {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: #667085;
  max-width: 640px;
}

/* --- Buttons --- */
.btn-primary { box-shadow: 0 1px 2px rgba(26, 130, 69, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(26, 130, 69, 0.3); }
.btn-secondary { background: #ffffff; border-color: rgba(16, 24, 40, 0.14); }

.btn-ghost {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.btn-ghost:hover { border-color: #8fd16a; color: #ffffff; }

/* --- Nav tweaks: lighter weight like Surge --- */
.nav-link { font-weight: 500; }
.logo-badge { font-family: var(--font-body); }

/* ==========================================================================
   DARK HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
  border: 0;
  padding: var(--space-6) 0 var(--space-5);
}

@media (min-width: 992px) {
  .hero { padding: 96px 0 72px; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(26, 130, 69, 0.30), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(26, 130, 69, 0.16), transparent 70%);
}

.hero-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: end;
}

@media (min-width: 992px) {
  .hero-copy { grid-template-columns: 1.45fr 1fr; gap: var(--space-5) 4rem; }
}

.hero-badge {
  background: rgba(26, 130, 69, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #cfe9d4;
  font-family: var(--font-body);
}

.hero-badge-emerald {
  background: rgba(26, 130, 69, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a3dc7c;
}

.hero-title {
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

.hero-title-dim { display: block; color: #9fbfa8; }

.hero-sinhala { color: #cfe9d4; margin-bottom: var(--space-2); }
.hero-subtitle { color: #a3adc0; font-size: var(--text-base); max-width: 520px; margin-bottom: var(--space-4); }
.hero-subtitle strong { color: #ffffff; font-weight: 600; }
@media (min-width: 768px) { .hero-subtitle { font-size: var(--text-lg); } }

.hero-ctas { margin-bottom: 0; }

/* Photo card + stat tiles */
.hero-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: var(--space-5);
}

@media (min-width: 992px) {
  .hero-flow { grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: var(--space-6); }
}

.hero-photo-card {
  display: flex;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 992px) {
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
}

@media (min-width: 992px) { .hero-stat { padding: 1.25rem 1.5rem; } }

.hero-stat .stat-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1;
  color: #ffffff;
}

.hero-stat .stat-label { margin: 0; font-size: var(--text-xs); color: #a3adc0; line-height: 1.35; }
@media (min-width: 992px) { .hero-stat .stat-label { font-size: var(--text-sm); } }

.hero :focus-visible { outline-color: #8fd16a; }

/* ==========================================================================
   CARDS: soft fill on white sections, white frame + inner panel on soft ones
   ========================================================================== */

/* --- Option cards (framed) --- */
.option-grid { gap: 16px; }

.option-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 24px;
  padding: 8px;
}

.option-panel {
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(26, 130, 69, 0.06);
}

@media (min-width: 768px) { .option-panel { padding: 2rem; } }

.option-ribbon {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.option-title { font-size: 1.6rem; margin-top: 0; letter-spacing: -0.013em; }

.option-card-dark { background: var(--dark); border-color: var(--dark); }
.option-card-dark .option-panel { background: var(--dark-2); box-shadow: none; }
.option-card-dark .option-title { color: #ffffff; }
.option-card-dark .option-tagline-emerald { color: #a3dc7c; }
.option-card-dark .option-desc { color: #a3adc0; }
.option-card-dark .option-list { color: #e5e9f0; }

/* --- Bento grid (Why choose) --- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .feature-card:nth-child(3),
  .bento .feature-card:nth-child(4) { grid-column: span 2; }
}

@media (min-width: 992px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 0;
  border-radius: 24px;
}

.feature-icon {
  background: #ffffff;
  color: var(--accent-blue);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  margin-bottom: auto;
}

.feature-title { margin-top: 2.25rem; font-size: 1.25rem; letter-spacing: -0.01em; }

.feature-card-dark {
  background: radial-gradient(70% 90% at 100% 0%, rgba(110, 180, 68, 0.34), transparent 70%), var(--dark);
}
.feature-card-dark .feature-icon { background: rgba(255, 255, 255, 0.10); color: #8fd16a; box-shadow: none; }
.feature-card-dark .feature-title { color: #ffffff; }
.feature-card-dark .feature-desc { color: #a3adc0; }

/* --- Industries tab list (Who does Parawewa suit?) --- */
.ind-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .ind-body { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
}

.ind-list { display: flex; flex-direction: column; border-top: 1px solid rgba(16, 24, 40, 0.10); }

.ind-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.10);
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.ind-item i { font-size: 1.15rem; color: var(--text-dim); transition: color var(--transition-fast); }
.ind-item:hover { color: var(--text-main); }
.ind-item.active { color: var(--text-main); }
.ind-item.active i { color: var(--accent-blue); }

.ind-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 24px;
}

.ind-panel[hidden] { display: none; }

@media (min-width: 640px) {
  .ind-panel { grid-template-columns: 1.1fr 1fr; }
}

.ind-panel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1rem;
}

@media (min-width: 640px) { .ind-panel-text { padding: 1.75rem 1.5rem; } }

.ind-num { font-size: var(--text-sm); font-weight: 500; color: var(--text-dim); }
.ind-panel-title { font-size: 1.6rem; letter-spacing: -0.013em; }
.ind-panel-desc { font-size: var(--text-base); line-height: 1.6; flex-grow: 1; }

.ind-panel-visual {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 4.25rem;
  background:
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(135deg, #187a40, #0f5c2e);
}

/* --- Framed cards on soft sections --- */
.article-card,
.video-card,
.cert-card,
.review-card,
.article-hub-card {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 24px;
  padding: 8px;
  box-shadow: none;
}

.article-card-img { border-radius: 16px; height: 200px; background: var(--bg-soft); }
.article-card-body { padding: 1.25rem 1rem 1rem; }
.article-title { letter-spacing: -0.01em; }

.video-embed { border-radius: 16px; }
.video-card-body { padding: 1.25rem 1rem 1rem; }

.cert-img { border-radius: 16px; background: var(--bg-soft); }
.cert-body { padding: 1.25rem 1rem 1rem; }

.review-card { padding: 1.5rem; }

.article-hub-card { padding: 1.5rem; }

.article-card:hover,
.article-hub-card:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08); }

/* --- Soft fills on white sections --- */
.founder-badge-card { background: var(--bg-soft); border: 0; border-radius: 16px; }
.contact-info-card { background: var(--bg-soft); border: 0; border-radius: 24px; padding: 1.75rem; }
.contact-form-card { border-radius: 24px; border-color: rgba(16, 24, 40, 0.08); box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06); padding: 1.5rem; }
@media (min-width: 768px) { .contact-form-card { padding: 2rem; } }

.calculator-card { border-radius: 24px; }
.calc-results { background: var(--bg-soft); border: 0; border-radius: 16px; }

.form-control { border-radius: 12px; }
.faq-search-input { border-radius: 12px; }

.client-logo-card { border-radius: 16px; }
.logo-chip { border-radius: 10px; }

/* --- Dark comparison + footer share the hero palette --- */
.section-feature-dark {
  background: radial-gradient(45% 50% at 0% 0%, rgba(110, 180, 68, 0.20), transparent 70%), var(--dark);
}

.comparison-table-wrapper { border-radius: 24px; border: 0; }
.footer { background: var(--dark); }

/* --- Swipe rows: horizontal scroll with peek on mobile --- */
@media (max-width: 767px) {
  .swipe-row {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { scroll-snap-align: start; }
}

@media (min-width: 768px) {
  .grid { gap: 16px; }
}

/* Footer logo sits on a white chip so the dark-green artwork stays readable */
.footer-logo { display: inline-flex; background: #ffffff; padding: 0.55rem 0.9rem; border-radius: 12px; margin-bottom: 1rem; }
.footer-logo img { height: 36px; width: auto; }

/* Case studies: 2 x 2 on tablet, 4 across on desktop (no orphan card) */
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .case-grid { grid-template-columns: repeat(4, 1fr); } }

/* About block aligns with the left-aligned heading */
.about-grid { max-width: none; margin: 0; }

/* Mobile: tighter bento cards and tab visual */
.feature-card { min-height: 0; }
.feature-title { margin-top: 1.5rem; }
.ind-panel-visual { min-height: 140px; }
@media (min-width: 640px) {
  .feature-card { min-height: 230px; }
  .feature-title { margin-top: 2.25rem; }
  .ind-panel-visual { min-height: 190px; }
}

/* ==========================================================================
   GREEN HERO (matches the logo green) — overrides the blue dark-surface tints
   ========================================================================== */
:root { --dark-text: #b9d6c1; --brand-green: #6eb444; }

.hero-glow {
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(110, 180, 68, 0.30), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(26, 130, 69, 0.16), transparent 70%);
}

.hero-title-dim { color: #9fbfa8; }
.hero-sinhala { color: #cfeab9; }
.hero-subtitle, .hero-stat .stat-label { color: var(--dark-text); }

.hero-badge { background: rgba(110, 180, 68, 0.16); border-color: rgba(110, 231, 183, 0.35); color: #cfeab9; }

.hero .btn-primary,
.option-card-dark .btn-emerald { background: var(--brand-green); color: #0b3d20; box-shadow: none; }
.hero .btn-primary:hover { background: #8fd16a; color: #0b3d20; box-shadow: 0 6px 18px rgba(110, 180, 68, 0.3); }
.hero .btn-ghost { background: var(--dark-2); }
.hero .btn-ghost:hover { border-color: #a3dc7c; }
.hero :focus-visible { outline-color: #a3dc7c; }

.option-card-dark .option-desc,
.feature-card-dark .feature-desc { color: var(--dark-text); }
.feature-card-dark .feature-icon { color: #a3dc7c; }
.section-tag-on-dark::before { background: #8fd16a; }
.section-title-on-dark .text-sky { color: #9fbfa8; }
.section-subtitle-on-dark { color: var(--dark-text); }
.footer p, .footer-desc, .footer-links a, .footer-keywords, .footer-bottom { color: var(--dark-text); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.10); }
.footer-social a { background: var(--dark-2); }

/* ==========================================================================
   PHASE 3: keyboard access, reduced motion, layout-shift guards
   ========================================================================== */

/* Dropdown menus also open from the keyboard */
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Pressed state for buttons */
.btn:active { transform: translateY(0) scale(0.99); }

/* Reserve image space so nothing jumps while photos load */
.hero-photo-card img { aspect-ratio: 5 / 3; }
@media (min-width: 992px) { .hero-photo-card img { aspect-ratio: auto; } }
.client-logo-card img { aspect-ratio: 1 / 1; object-fit: contain; }
.article-card-img img { aspect-ratio: 2 / 1; }

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover, .btn:active, .article-card:hover, .client-logo-card:hover { transform: none; }
}

/* --- Managing Director photo card (About) --- */
.person-card {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 24px;
  padding: 8px;
  max-width: 420px;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
}

.person-card figcaption { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 0.75rem 0.75rem; }
.person-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-main); }
.person-role { font-size: var(--text-sm); color: var(--text-dim); }

/* --- Team row (About) --- */
.team-block { margin-top: var(--space-6); }
.team-heading { font-size: 1.5rem; letter-spacing: -0.013em; margin-bottom: var(--space-4); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 1000px; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.person-card { max-width: none; }
.person-cred { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; margin-top: 0.15rem; }
@media (max-width: 699px) {
  .person-card { padding: 6px; border-radius: 20px; }
  .person-card img { border-radius: 14px; }
  .person-card figcaption { padding: 0.75rem 0.5rem 0.5rem; }
  .person-name { font-size: 1rem; }
  .person-role, .person-cred { font-size: 0.75rem; }
}
@media (min-width: 700px) { .person-name { font-size: 1.05rem; } }

/* ==========================================================================
   ARTICLE PAGES (/articles/<slug>/) + stretched card links
   ========================================================================== */
.article-card, .article-hub-card { position: relative; }
.card-link { color: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { color: var(--accent-blue); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

.article-hero { background: var(--bg-soft); padding: var(--space-5) 0 var(--space-5); }
@media (min-width: 992px) { .article-hero { padding: 64px 0 56px; } }

.article-wrap { max-width: 820px; }

.breadcrumbs { margin-bottom: var(--space-4); font-size: var(--text-sm); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumbs li { color: var(--text-dim); }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.35rem; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-blue); }
.breadcrumbs [aria-current] { color: var(--text-main); }

.article-h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 1rem; }
.article-lede { font-size: var(--text-lg); line-height: 1.55; color: #667085; margin-bottom: 1rem; }
.article-byline { font-size: var(--text-sm); color: var(--text-dim); }

.article-main { padding-top: var(--space-5); padding-bottom: var(--space-6); }

.article-figure { margin: 0 0 var(--space-5); padding: 8px; background: #fff; border: 1px solid rgba(16, 24, 40, 0.06); border-radius: 24px; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; }

.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--text-main); }
.article-body p { color: var(--text-main); margin-bottom: 1.1rem; }
.article-body h2 { font-size: 1.5rem; letter-spacing: -0.013em; margin: 2rem 0 0.75rem; }
.article-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-body ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 600; }
.article-body .table-scroll { overflow-x: auto; margin-bottom: 1.25rem; border-radius: 12px; border: 1px solid var(--border-color); }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 520px; }
.article-body th, .article-body td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft); font-weight: 600; }

.article-cta {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-5);
  padding: var(--space-4);
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(70% 90% at 100% 0%, rgba(110, 180, 68, 0.34), transparent 70%), var(--dark);
}
@media (min-width: 768px) { .article-cta { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-5); } }
.article-cta h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.article-cta p { color: var(--dark-text); }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.article-cta .btn-primary { background: var(--brand-green); color: #0b3d20; box-shadow: none; }
.article-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.article-pn-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .article-pn-row { grid-template-columns: 1fr 1fr; } }
.article-pn { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.15rem; background: var(--bg-soft); border-radius: 16px; color: var(--text-main); }
.article-pn span { font-size: var(--text-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.article-pn strong { font-weight: 600; line-height: 1.3; }
.article-pn:hover { background: #e9edf2; color: var(--accent-blue-dark); }
.article-pn-next { text-align: right; }

.article-related .grid { gap: 16px; }

/* --- System pages (/systems/<slug>/) and Option card links --- */
.option-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem; font-size: var(--text-sm); font-weight: 600; color: var(--accent-blue); }
.option-more:hover { color: var(--accent-blue-dark); }
.option-card-dark .option-more { color: #a3dc7c; }
.option-card-dark .option-more:hover { color: #cfeab9; }

.system-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-4); }

.fact-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 var(--space-5); }
@media (min-width: 560px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
.fact-grid > div { background: var(--bg-soft); border-radius: 16px; padding: 0.9rem 1.1rem; }
.fact-grid dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 0.15rem; }
.fact-grid dd { font-weight: 600; color: var(--text-main); line-height: 1.35; }

.system-faq { margin-top: var(--space-6); }
.system-faq-title { font-size: 1.5rem; letter-spacing: -0.013em; margin-bottom: var(--space-3); }
.system-faq .accordion { max-width: none; margin: 0; }

.article-cta a:not(.btn) { color: #cfeab9; text-decoration: underline; text-underline-offset: 2px; }

/* Link under the dark comparison table */
.comparison-more { margin-top: var(--space-4); color: var(--dark-text); font-size: var(--text-base); }
.comparison-more a { color: #a3dc7c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.comparison-more a:hover { color: #cfeab9; }

/* --- Skip link (keyboard users) and 404 page --- */
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 3000; padding: 0.7rem 1.1rem; background: var(--dark); color: #fff; border-radius: 10px; font-weight: 600; transition: top 0.15s ease; }
.skip-link:focus { top: 0.75rem; color: #fff; }
.notfound-links { margin-top: var(--space-5); display: grid; gap: 0.5rem; }
.notfound-links a { color: var(--accent-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.article-byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article-byline a:hover { color: var(--accent-blue); }


/* ==========================================================================
   REDESIGN v3: green, rounded "card" layout with a notch navigation pill.
   Palette sampled from the reference design:
   brand #187a40, lime #6eb444, mint #f0f8f0.
   ========================================================================== */

:root {
  --brand: #187a40;
  --brand-dark: #0f5c2e;
  --brand-deep: #0c3b21;
  --lime: #6eb444;
  --lime-dark: #589b35;
  --mint: #f0f7f1;
  --mint-2: #e1ece3;
  --panel-radius: 32px;
  --panel-gap: 10px;
}

@media (min-width: 992px) { :root { --panel-gap: 18px; } }

body { background: #ffffff; }

/* --- Top contact strip: light, sits above the hero card --- */
.top-bar { background: #ffffff; color: var(--text-muted); border-bottom: 1px solid var(--mint-2); }
.top-bar-link { color: var(--text-muted); }
.top-bar-link i { color: var(--brand); }
.top-bar-link:hover { color: var(--brand); }
.top-bar-award { color: var(--text-main); }
.top-bar-social a { color: var(--brand); }
.top-bar-social a:hover { color: var(--brand-dark); }

/* --- Navigation: a white tab cut into the top of the hero card --- */
.navbar {
  position: sticky;
  top: 0;
  height: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 1000;
}

.navbar.scrolled { box-shadow: none; }

.navbar-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 1140px;
  height: auto;
  min-height: 62px;
  margin: 0;
  padding: 8px 10px 8px 16px;
  gap: 1rem;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  transition: top var(--transition-normal), border-radius var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled .navbar-container { height: auto; top: 10px; border-radius: 22px; box-shadow: 0 10px 34px rgba(12, 59, 33, 0.18); }

/* concave corners that blend the tab into the hero card */
.navbar-container::before,
.navbar-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.navbar-container::before { left: -28px; background: radial-gradient(circle at 0 100%, transparent 27px, #ffffff 28px); }
.navbar-container::after { right: -28px; background: radial-gradient(circle at 100% 100%, transparent 27px, #ffffff 28px); }
.navbar.scrolled .navbar-container::before,
.navbar.scrolled .navbar-container::after { display: none; }

@media (max-width: 991px) {
  .navbar-container { top: 10px; border-radius: 22px; box-shadow: 0 10px 30px rgba(12, 59, 33, 0.16); }
  .navbar-container::before, .navbar-container::after { display: none; }
}

@media (min-width: 992px) {
  .navbar-container { min-height: 74px; padding: 10px 12px 10px 24px; gap: 1.25rem; }
  .navbar.scrolled .navbar-container { height: auto; }
}

.logo img { height: 36px; }
@media (min-width: 992px) { .logo img { height: 42px; } }
.logo-badge { display: none; }

.nav-links { gap: 1.5rem; }
@media (min-width: 992px) and (max-width: 1139px) { .nav-links { gap: 1.1rem; } }
.nav-item { padding: 0.9rem 0; }

.nav-link { padding: 0; font-weight: 500; color: var(--text-main); }
.nav-link::after { bottom: -6px; height: 2px; background: var(--lime); }
.nav-link:hover, .nav-link.active { color: var(--brand); }
.dropdown-menu { top: calc(100% - 4px); border-top: 0; border-radius: 18px; padding: 0.5rem; box-shadow: 0 18px 44px rgba(12, 59, 33, 0.16); }
.dropdown-link { border-radius: 12px; border-left: 0; }
.dropdown-link:hover { padding-left: 1.1rem; background: var(--mint); color: var(--brand); }

.nav-actions { gap: 0.5rem; }

.mobile-menu-btn { background: var(--mint); border: 0; border-radius: 50%; color: var(--brand); width: 46px; height: 46px; }

/* phone pill (nav): number on wide screens, icon only below */
.nav-phone { min-height: 46px; padding: 0.55rem 1.3rem; white-space: nowrap; }
.nav-phone span { display: none; }
.nav-phone { width: 46px; padding: 0; border-radius: 50%; }
@media (min-width: 1200px) {
  .nav-phone { width: auto; padding: 0.55rem 1.4rem; border-radius: 999px; }
  .nav-phone span { display: inline; }
}

/* mobile menu sheet sits under the floating pill */
.mobile-drawer { top: 0; height: 100vh; height: 100dvh; padding: 92px 1.25rem 1.25rem; background: #ffffff; }
.mobile-nav-link { font-family: var(--font-heading); font-weight: 600; }

/* --- Buttons: pills, leading icon in a white circle (as in the reference) --- */
.btn { border-radius: 999px; font-weight: 600; }

.btn-primary { background: var(--brand); color: #ffffff; box-shadow: none; padding-left: 0.65rem; }
.btn-primary:hover { background: var(--brand-dark); color: #ffffff; box-shadow: 0 8px 20px rgba(26, 130, 69, 0.28); }
.btn-primary > i:first-child,
.btn-emerald > i:first-child {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.btn-sm.btn-primary > i:first-child, .btn-sm.btn-emerald > i:first-child { width: 26px; height: 26px; font-size: 0.72rem; }

.btn-lime { background: var(--lime); color: #ffffff; box-shadow: none; }
.btn-lime:hover { background: var(--lime-dark); color: #ffffff; box-shadow: 0 8px 20px rgba(88, 155, 53, 0.3); }

.btn-emerald { background: var(--lime); color: var(--brand-deep); padding-left: 0.65rem; }
.btn-emerald:hover { background: #7cc552; color: var(--brand-deep); }

.btn-secondary { background: #ffffff; border: 1.5px solid var(--mint-2); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; color: #ffffff; }

/* --- Hero: rounded photo card with the notch tab on top --- */
.hx { max-width: 1680px; margin: 0 auto; }

.hx-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: var(--panel-gap) var(--panel-gap) 0;
  border-radius: var(--panel-radius);
  background: var(--brand-deep);
  color: #ffffff;
}

.hx-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: -3;
}

.hx-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(8, 45, 24, 0.94) 0%, rgba(12, 59, 33, 0.80) 48%, rgba(12, 59, 33, 0.42) 100%),
    linear-gradient(0deg, rgba(8, 45, 24, 0.55) 0%, transparent 45%);
}

.hx-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-content: end;
  padding: 104px 20px 28px;
}

@media (min-width: 992px) {
  .hx-card { min-height: min(86vh, 800px); }
  .hx-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 3rem;
    min-height: min(86vh, 800px);
    padding: 140px 56px 56px;
  }
}

.hx-title {
  font-size: clamp(2.3rem, 7.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}
.hx-dim { display: block; color: #cfe9d4; }

.hx-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.5rem 0 1.6rem; }
@media (max-width: 575px) { .hx-cta .btn { width: 100%; } }

.hx-desc { max-width: 540px; padding-left: 1rem; border-left: 2px solid rgba(255, 255, 255, 0.4); }
.hx .hero-sinhala { color: #cfeab9; }
.hx .hero-subtitle { color: #e3efe6; margin-bottom: 0; font-size: var(--text-base); }
.hx .hero-subtitle strong { color: #ffffff; }
.hx .hero-badge { background: rgba(110, 180, 68, 0.2); border: 1px solid rgba(163, 220, 124, 0.45); color: #cfeab9; }
.hx :focus-visible { outline-color: #a3dc7c; }

.hx-side { display: grid; justify-items: end; align-content: end; }

.hx-photo {
  width: min(100%, 470px);
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hx-photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 20px; }

.hx-fact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 410px);
  margin: -34px 18px 0 0;
  padding: 14px 18px;
  background: #ffffff;
  color: var(--text-main);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.hx-fact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--mint); color: var(--brand); font-size: 1.35rem; }
.hx-fact strong { display: block; font-size: var(--text-base); font-family: var(--font-heading); letter-spacing: -0.005em; }
.hx-fact span:not(.hx-fact-icon) { display: block; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }

@media (max-width: 991px) {
  .hx-side { justify-items: stretch; }
  .hx-photo { width: 100%; }
  .hx-fact { margin: -28px 12px 0; width: auto; }
}

/* key facts under the hero card */
.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px var(--panel-gap) 0;
}
.hx-stat { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; background: var(--mint); border-radius: 22px; }
.hx-stat .stat-value { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 4.4vw, 2.5rem); letter-spacing: -0.015em; line-height: 1; color: var(--brand); }
.hx-stat .stat-label { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.35; }
@media (min-width: 992px) { .hx-stat { padding: 1.4rem 1.7rem; border-radius: 26px; } .hx-stat .stat-label { font-size: var(--text-sm); } }

/* pages without a hero card: keep content clear of the floating nav tab */
.article-hero { padding-top: 92px; }
@media (min-width: 992px) { .article-hero { padding-top: 124px; } }
main > .section:first-child { padding-top: 108px; }
@media (min-width: 992px) { main > .section:first-child { padding-top: 140px; } }

/* --- Section headings: green dashes either side of the label --- */
.section-tag { color: var(--brand); font-weight: 600; letter-spacing: 0.06em; gap: 0.6rem; }
.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 9px;
  border-radius: 0;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--lime), var(--lime)) 6px 6px / 75% 2px no-repeat;
  flex-shrink: 0;
}
.section-tag::after { transform: scaleX(-1); }
.section-tag-emerald { color: var(--brand); }
.section-tag-on-dark { color: #a3dc7c; }
.section-tag-on-dark::before, .section-tag-on-dark::after {
  background:
    linear-gradient(#a3dc7c, #a3dc7c) 0 0 / 100% 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 6px 6px / 75% 2px no-repeat;
}

.section-title { font-weight: 700; }
.section-title .text-blue, .section-title .text-emerald, .section-title .text-sky { color: var(--brand); }
.section-title-on-dark .text-sky { color: #a3dc7c; }

/* --- Sections as rounded panels (mint) and a rounded footer --- */
.section-alt { margin: 0 var(--panel-gap); background: var(--mint); border-radius: var(--panel-radius); }
.section-feature-dark { margin: 0 var(--panel-gap); border-radius: var(--panel-radius); }
.footer { margin: var(--panel-gap); border-radius: var(--panel-radius); background: var(--brand-deep); }
.article-hero { margin: var(--panel-gap) var(--panel-gap) 0; border-radius: var(--panel-radius); }

/* cards sitting on mint panels are white; on white sections they are mint */
.feature-card { background: var(--mint); border-radius: 28px; }
.feature-icon { border-radius: 50%; background: #ffffff; }
.feature-card-dark .feature-icon { background: rgba(255, 255, 255, 0.12); }
.fact-grid > div, .article-pn, .founder-badge-card, .contact-info-card, .calc-results { background: var(--mint); }
.accordion-icon { border-radius: 50%; }

/* --- Article cards: image with an overlapping white text panel (service-card look) --- */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.article-card-img { height: 240px; border-radius: 26px; overflow: hidden; }
.article-card-img img { transition: transform 0.4s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card:hover { transform: none; box-shadow: none; }
.article-card-body {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  margin: -52px 14px 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(12, 59, 33, 0.10);
}
.article-badge { background: var(--brand); }

.article-hub-card { background: #ffffff; border-radius: 26px; }
.review-card, .cert-card, .video-card, .calculator-card, .contact-form-card { border-radius: 28px; }
.ind-panel { border-radius: 28px; }
.ind-panel-visual { border-radius: 20px; }
.option-card { border-radius: 30px; }
.option-panel { border-radius: 22px; }
.person-card { border-radius: 28px; }
.person-card img { border-radius: 20px; }
.comparison-table-wrapper { border-radius: 28px; }
.hero-badge, .logo-chip, .lang-pill { border-radius: 999px; }
.logo-chip { border-radius: 14px; }
.form-control, .faq-search-input { border-radius: 14px; }

/* --- Small screens --- */
@media (max-width: 575px) {
  :root { --panel-radius: 26px; }
  .section-alt, .section-feature-dark { margin-inline: 8px; }
  .article-card-img { height: 210px; }
}

/* v3 tuning */
@media (min-width: 640px) { .feature-card { min-height: 190px; } }
.feature-title { margin-top: 1.25rem; }
.mobile-drawer { padding-bottom: 100px; }

/* --- How the system is built: concept illustrations --- */
.section-alt + .section-alt { margin-top: var(--panel-gap); }

.diagram-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) {
  .diagram-grid { grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; }
  .diagram-card-lg { grid-row: span 2; }
}

.diagram-card { display: flex; flex-direction: column; margin: 0; padding: 8px; background: #ffffff; border-radius: 28px; }
.diagram-card img { width: 100%; height: auto; border-radius: 20px; flex: 1; object-fit: cover; }
.diagram-card figcaption { padding: 0.85rem 0.9rem 0.7rem; font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); }
.diagram-pill { display: inline-block; margin-right: 0.35rem; padding: 0.12rem 0.65rem; border-radius: 999px; background: var(--mint); color: var(--brand); font-size: var(--text-xs); font-weight: 600; }
.diagram-note { margin-top: var(--space-4); display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); }
.diagram-note i { color: var(--brand); margin-top: 0.2rem; }

/* --- Hero photo: larger and clearer (2x source), lighter overlay --- */
.hx-photo { width: min(100%, 620px); }
.hx-photo img { aspect-ratio: 4 / 3; }
@media (min-width: 992px) {
  .hx-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}
.hx-shade {
  background:
    linear-gradient(100deg, rgba(8, 45, 24, 0.90) 0%, rgba(12, 59, 33, 0.70) 42%, rgba(12, 59, 33, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 45, 24, 0.45) 0%, transparent 40%);
}
.top-bar-wa i { color: #25d366; font-size: 1rem; }

/* hero balance on desktop: bigger photo column, headline scales with the screen */
@media (min-width: 992px) {
  .hx-inner { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(400px, 40vw, 640px)); gap: 2.5rem; padding-inline: 48px; }
  .hx-title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
  .hx-photo { width: 100%; max-width: 640px; }
}


/* v3 type polish: loose enough that letters never touch, kerning on */
h1, h2, h3, h4, h5, h6, .section-title, .hx-title, .article-h1, .feature-title, .option-title, .person-name {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
.feature-title { letter-spacing: 0; word-spacing: 0.02em; }

/* why-choose cards: icon on top, text directly beneath, so titles line up across a row */
.feature-card { justify-content: flex-start; min-height: 0; }
.feature-icon { margin-bottom: 1.1rem; }
.feature-title { margin-top: 0; }

/* the dark highlight card must stay dark (the generic .feature-card mint rule above must not win) */
.feature-card.feature-card-dark {
  background: radial-gradient(70% 90% at 100% 0%, rgba(110, 180, 68, 0.34), transparent 70%), var(--brand-deep);
}
.feature-card.feature-card-dark .feature-title { color: #ffffff; }
.feature-card.feature-card-dark .feature-desc { color: #d4e6d9; }
.feature-card.feature-card-dark .feature-icon { background: rgba(255, 255, 255, 0.14); color: #a3dc7c; }


/* lime phone pill: dark-green text for legibility (white on lime is only 2.5:1) */
.btn-lime { color: var(--brand-deep); }
.btn-lime:hover { color: var(--brand-deep); }

/* WhatsApp button: dark text keeps the WhatsApp green and passes contrast */
.btn-whatsapp { color: #06301a; }
.btn-whatsapp:hover { color: #06301a; }

/* ==========================================================================
   SINHALA PAGE (html[lang="si"]) - only affects /si/. Sinhala needs its own
   font, no tracking, taller lines and slightly smaller display sizes.
   ========================================================================== */
html[lang="si"] {
  --font-heading: 'Noto Sans Sinhala', 'Nirmala UI', 'Iskoola Pota', 'Sinhala Sangam MN', 'Inter Tight', sans-serif;
  --font-body: 'Noto Sans Sinhala', 'Nirmala UI', 'Iskoola Pota', 'Sinhala Sangam MN', 'Instrument Sans', sans-serif;
}
html[lang="si"] body { line-height: 1.8; }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] h3, html[lang="si"] h4 { line-height: 1.4; }
html[lang="si"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="si"] .hx-title { font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.3; }
html[lang="si"] .section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; }
html[lang="si"] .btn { line-height: 1.5; }
html[lang="si"] .section-tag, html[lang="si"] .option-ribbon, html[lang="si"] .article-badge { line-height: 1.6; }

.lang-switch {
  display: none;
  align-items: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-deep);
  background: #fff;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 1180px) { .lang-switch { display: inline-flex; } }

/* Sinhala labels are wider: tighten the desktop nav so the phone button never clips */
@media (min-width: 992px) {
  html[lang="si"] .nav-links { gap: 1.1rem; }
  html[lang="si"] .nav-link { font-size: 0.84rem; }
  html[lang="si"] .lang-switch { padding: 0 0.85rem; min-height: 42px; font-size: 0.82rem; }
  html[lang="si"] .nav-phone { width: 46px; padding: 0; border-radius: 50%; }
  html[lang="si"] .nav-phone span { display: none; }
}
@media (min-width: 1360px) {
  html[lang="si"] .nav-links { gap: 1.6rem; }
  html[lang="si"] .nav-phone { width: auto; padding: 0.55rem 1.4rem; border-radius: 999px; }
  html[lang="si"] .nav-phone span { display: inline; }
}

/* Parawewa system types (toilet / wastewater x low / high groundwater) */
.types-box { margin-top: 2rem; background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 1.5rem; }
.types-title { font-size: 1.15rem; margin: 0 0 1rem; display: flex; gap: 0.6rem; align-items: center; }
.types-title i { color: var(--brand); }
.types-table-wrap { overflow-x: auto; }
.types-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
.types-table th, .types-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.types-table thead th { background: var(--mint); color: var(--brand-deep); font-weight: 700; }
.types-table tbody th { font-weight: 700; color: var(--text-main); }
.types-table td span { display: block; font-size: 0.85rem; color: var(--text-muted); }
.types-note { margin: 1rem 0 0; color: var(--text-main); }
@media (max-width: 600px) {
  .types-table { min-width: 0; }
  .types-table thead { display: none; }
  .types-table tr { display: block; border-bottom: 1px solid var(--border-color); padding: 0.5rem 0; }
  .types-table th, .types-table td { display: block; border: 0; padding: 0.3rem 0; }
  .types-table td::before { display: block; font-size: 0.8rem; font-weight: 700; color: var(--brand); }
  .types-table td:nth-of-type(1)::before { content: 'Low groundwater level'; }
  .types-table td:nth-of-type(2)::before { content: 'High groundwater level'; }
}
html[lang="si"] .types-table td:nth-of-type(1)::before { content: 'භූගත ජල මට්ටම පහළ ස්ථානවල'; }
html[lang="si"] .types-table td:nth-of-type(2)::before { content: 'භූගත ජල මට්ටම ඉහළ ස්ථානවල'; }

/* ==========================================================================
   CLIENT CHANGES PHASE 2 (2026-10-17)
   ========================================================================== */
/* En / සිං language toggle in the nav */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1.5px solid var(--border-color); border-radius: 999px; background: #fff; flex-shrink: 0; }
.lang-toggle > * { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 36px; padding: 0 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; line-height: 1; }
.lang-toggle a { color: var(--brand-deep); }
.lang-toggle a:hover { background: var(--mint); color: var(--brand); }
.lang-toggle .lang-current { background: var(--brand); color: #fff; }
.lang-toggle [lang="si"] { font-family: 'Noto Sans Sinhala', 'Nirmala UI', 'Iskoola Pota', sans-serif; }
@media (max-width: 400px) { .lang-toggle > * { min-width: 34px; padding: 0 0.45rem; } }
.lang-switch { display: none !important; }

/* Hero: award badge, large and gold */
.hx .hero-badge-container { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hero-award { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.15rem; border-radius: 999px; background: linear-gradient(135deg, #f7d774, #e0a82e); color: #3a2700; font-weight: 800; font-size: clamp(0.95rem, 1.6vw, 1.1rem); box-shadow: 0 6px 18px rgba(224, 168, 46, 0.35); }
.hero-award i { font-size: 1.15em; }
.top-bar-social a { font-size: 1rem; }

/* Why choose: awards card */
.award-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.award-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.award-list i { color: #f5c451; font-size: 1.15rem; margin-top: 0.1rem; flex-shrink: 0; width: 1.2rem; text-align: center; }

/* How it is built: numbered captions */
.diagram-card figcaption strong { display: block; color: var(--text-main); font-size: 1rem; margin: 0.35rem 0 0.15rem; }

/* Who suits: seven even cards */
.suit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.suit-card { display: flex; flex-direction: column; gap: 0.55rem; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; padding: 1.35rem; transition: transform .2s ease, box-shadow .2s ease; }
.suit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12, 59, 33, 0.08); }
.suit-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--brand); font-size: 1.25rem; }
.suit-title { font-size: 1.1rem; line-height: 1.3; margin: 0.2rem 0 0; }
.suit-desc { font-size: 0.95rem; line-height: 1.55; margin: 0; flex: 1; }
.suit-link { margin-top: 0.35rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: 0.4rem; align-items: center; }
.suit-link:hover { color: var(--brand-dark); }

/* Clients: full name list */
.clients-title { text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0.4rem auto 1.5rem; max-width: 760px; }
.client-names { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.6rem; }
.client-name { display: flex; gap: 0.65rem; align-items: flex-start; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 0.75rem 0.95rem; font-size: 0.92rem; font-weight: 600; color: var(--text-main); line-height: 1.4; }
.client-name i { color: var(--brand); margin-top: 0.15rem; width: 1.1rem; text-align: center; flex-shrink: 0; }

/* Room for the En / සිං toggle: phone button is icon-only on mid-size screens */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-phone { width: 46px; padding: 0; border-radius: 50%; }
  .nav-phone span { display: none; }
  .nav-links { gap: 1.1rem; }
}
@media (min-width: 1360px) and (max-width: 1439px) {
  html[lang="si"] .nav-phone { width: 46px; padding: 0; border-radius: 50%; }
  html[lang="si"] .nav-phone span { display: none; }
}
@media (min-width: 992px) and (max-width: 1099px) {
  .navbar .nav-links { gap: 0.8rem; }
  .navbar .nav-link { font-size: 0.82rem; }
  .navbar .logo img { width: 150px; height: auto; }
}
@media (min-width: 1440px) and (max-width: 1499px) {
  html[lang="si"] .nav-phone { width: 46px; padding: 0; border-radius: 50%; }
  html[lang="si"] .nav-phone span { display: none; }
}
@media (min-width: 992px) and (max-width: 1099px) {
  html[lang="si"] .navbar .nav-links { gap: 0.6rem; }
  html[lang="si"] .navbar .nav-link { font-size: 0.78rem; }
}

/* Quote forms: hidden spam trap + send status */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0.25rem 0 0; font-size: 0.92rem; font-weight: 600; line-height: 1.5; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-pending { color: var(--text-muted); }
.form-status.is-ok { color: var(--brand-dark); background: var(--mint); border-radius: 12px; padding: 0.7rem 0.9rem; }
.form-status.is-error { color: #a12020; background: #fdecec; border-radius: 12px; padding: 0.7rem 0.9rem; }
.quote-form button[disabled], #quoteForm button[disabled], #modalQuoteForm button[disabled] { opacity: 0.6; cursor: wait; }

/* Client logo wall (client-supplied logos, 2026-10-20) */
.client-wall { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.client-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem 0.85rem 0.85rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12, 59, 33, 0.08); }
.client-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; }
.client-logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.client-card-name { font-size: 0.8rem; line-height: 1.35; font-weight: 600; color: var(--text-muted); }
.client-more-label { margin: 1.75rem 0 0; text-align: center; font-weight: 700; color: var(--text-main); }
.client-more-label + .client-names { margin-top: 0.85rem; }
@media (max-width: 480px) {
  .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo { height: 60px; }
  .client-logo img { max-height: 60px; }
}

/* About: founder's text blocks (2026-10-20) */
.about-subhead { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--text-main); }
#company .about-subhead { margin-top: 1.25rem; }
.about-more { margin-top: 2.25rem; }
.about-more > .about-subhead:first-child { margin-top: 0; }
.apart-grid, .service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.apart, .service { display: flex; gap: 0.85rem; align-items: flex-start; background: #fff; border: 1px solid var(--border-color); border-radius: 18px; padding: 1.1rem; }
.service { background: var(--mint); border-color: transparent; }
.apart-icon, .service-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--brand); font-size: 1.05rem; }
.service-icon { background: #fff; }
.apart-title, .service-title { font-size: 1rem; margin: 0 0 0.3rem; line-height: 1.3; }
.apart-desc, .service-desc { font-size: 0.92rem; line-height: 1.55; margin: 0; }
.mission-box { margin-top: 1.5rem; background: var(--brand-deep); color: #fff; border-radius: 22px; padding: 1.5rem 1.6rem; }
.mission-box .about-subhead { color: #fff; margin-top: 0; }
.mission-box p { color: #d4e6d9; margin: 0.4rem 0 0; }
.mission-box strong { color: #fff; }
.apart-grid, .service-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .apart-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .apart-grid, .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Founder's diagrams: labelled Parawewa tank (Why choose) and traditional tank (comparison) */
.why-figure, .compare-figure { margin: 0 0 1.75rem; background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 0.6rem; }
.why-figure img, .compare-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.why-figure figcaption, .compare-figure figcaption { padding: 0.75rem 0.5rem 0.35rem; font-size: 0.95rem; line-height: 1.55; color: var(--text-muted); }
.compare-figure { margin: 1.75rem 0 0; }
.compare-figure figcaption strong { color: var(--text-main); }
@media (min-width: 992px) { .why-figure { max-width: 900px; } }

/* Client logos: three rows scrolling continuously (marquee). Pauses on hover; static for reduced motion. */
.logo-rows { margin-top: 1.5rem; display: grid; gap: 0.85rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-row { overflow: hidden; }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.85rem; width: max-content;
  animation: logo-scroll calc(var(--tiles) * 4.5s) linear infinite; }
.logo-row-reverse .logo-track { animation-direction: reverse; }
.logo-row:hover .logo-track, .logo-row:focus-within .logo-track { animation-play-state: paused; }
.logo-tile { flex: 0 0 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 0.9rem 0.8rem 0.8rem; text-align: center; }
.logo-tile .client-logo { height: 64px; }
.logo-tile .client-logo img { max-height: 64px; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.425rem)); } }
@media (max-width: 600px) { .logo-tile { flex-basis: 170px; } .logo-tile .client-logo { height: 52px; } .logo-tile .client-logo img { max-height: 52px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-rows { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-tile[aria-hidden="true"] { display: none; }
}

/* Team without photos: name + designation cards */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; max-width: 1000px; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person-card { margin: 0; padding: 0; background: #fff; border: 1px solid var(--border-color); border-left: 4px solid var(--brand); border-radius: 16px; }
.person-card figcaption { padding: 1.1rem 1.2rem; gap: 0.3rem; }
.person-name { font-size: 1.1rem; }
.person-role { font-size: 0.95rem; color: var(--brand-dark); font-weight: 600; }

/* Keep the header fixed on scroll (desktop + mobile).
   overflow-x:hidden on <body> made body a scroll container, so the sticky header scrolled away.
   The viewport (html) clips sideways overflow instead; body stays visible/clip so sticky works. */
html { overflow-x: hidden; }
body { overflow-x: visible; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

/* Contact: Google map + directions / review buttons; footer review link */
.contact-map { margin-top: 1.25rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-color); aspect-ratio: 16 / 10; background: var(--mint); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.footer-review { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; font-weight: 600; font-size: 0.9rem; color: #cfeab9; }
.footer-review i { color: #f5c451; }
.footer-review:hover { color: #fff; }
