/* Theme */
:root {
  --bg: #0b0f1a;
  --bg-gradient: radial-gradient(1200px 800px at 10% 10%, rgba(168, 85, 247, 0.12), transparent 50%), radial-gradient(1000px 600px at 90% 20%, rgba(124, 58, 237, 0.10), transparent 50%), linear-gradient(180deg, #0b0f1a 0%, #0b1220 100%);
  --text: #e6ebf5;
  --muted: #a8b3c7;
  --primary: #a855f7;
  --primary-600: #7c3aed;
  --surface: rgba(17, 25, 44, 0.6);
  --glass: rgba(17, 25, 44, 0.5);
  --border: rgba(140, 183, 255, 0.18);
  --success: #41c87a;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(2, 14, 63, 0.35);
  --container-max: 1200px;
}

[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-gradient: radial-gradient(1200px 800px at 10% 10%, rgba(168, 85, 247, 0.12), transparent 50%), radial-gradient(1000px 600px at 90% 20%, rgba(124, 58, 237, 0.10), transparent 50%), linear-gradient(180deg, #0b0f1a 0%, #0b1220 100%);
  --text: #e6ebf5;
  --muted: #a8b3c7;
  --primary: #a855f7;
  --primary-600: #7c3aed;
  --surface: rgba(17, 25, 44, 0.6);
  --glass: rgba(17, 25, 44, 0.5);
  --border: rgba(140, 183, 255, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-gradient: radial-gradient(1200px 800px at 12% 8%, rgba(168, 85, 247, 0.08), transparent 50%), radial-gradient(1000px 600px at 85% 15%, rgba(124, 58, 237, 0.10), transparent 50%), linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
  --text: #0b1220;
  --muted: #5b6472;
  --primary: #a855f7;
  --primary-600: #7c3aed;
  --surface: rgba(255, 255, 255, 0.75);
  --glass: rgba(255, 255, 255, 0.65);
  --border: rgba(12, 22, 50, 0.12);
  --success: #148a1a;
  --danger: #d92d20;
  --shadow: 0 12px 28px rgba(12, 22, 50, 0.12);
}

/* Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }

/* Containers */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.section {
  padding: 72px 0;
  width: 100%;
}

.section.alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); margin: 0 0 8px; }
.section-header p { color: var(--muted); margin: 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1200;
  background: color-mix(in srgb, var(--glass) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: color-mix(in srgb, var(--glass) 96%, transparent); border-color: color-mix(in srgb, var(--border) 80%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.brand img:not(.logo-mark) { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s ease; }
.brand .logo-mark { max-height: 56px; width: auto; height: auto; display: block; filter: drop-shadow(0 6px 16px rgba(168,85,247,.25)); transition: transform .3s ease; }
.brand:hover img, .brand:hover .logo-mark { transform: translateY(-2px) scale(1.02); }

/* Brand/logo sizing: use full image without cropping */
.brand .logo-mark, .footer-brand .logo-mark {
  max-height: 56px;        /* control height ceiling */
  width: auto;             /* allow long width */
  height: auto;            /* no forced cropping */
  max-width: 100%;
  object-fit: contain;     /* contain inside box */
  display: block;
}
@media (max-width: 600px) {
  .brand .logo-mark, .footer-brand .logo-mark { max-height: 44px; }
}

/* Mobile-only header (separate from desktop) */
.site-header-mobile { position: fixed; top: 0; left: 0; right: 0; z-index: 1300; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; background: color-mix(in srgb, var(--glass) 86%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header-mobile .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.site-header-mobile .logo-mark { max-height: 56px; width: auto; height: auto; }
.mobile-actions { display: inline-flex; align-items: center; gap: 8px; }
.mobile-actions .btn { padding: 8px 10px; border-radius: 10px; }
.mobile-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; box-shadow: var(--shadow); color: inherit; }
.mobile-menu-btn .icon { width: 18px; height: 18px; }

/* Fullscreen mobile menu panel */
.mobile-menu-panel { position: fixed; inset: 0; z-index: 1299; background: var(--bg); display: none; padding: 16px; overflow: auto; }
.mobile-menu-panel.is-open { display: block; animation: megaIn .22s ease both; }
.mobile-menu-panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-menu-panel .panel-head .close { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 6px; }
.mobile-menu-panel nav { display: grid; gap: 10px; }
.mobile-menu-panel nav a { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; background: var(--surface); }
.mobile-menu-panel .group-title { margin: 10px 0 4px; color: var(--muted); font-weight: 600; }

/* Ensure desktop header is visible on all screens; mobile header stays hidden unless enabled */
@media (max-width: 720px) {
  .site-header { display: block; }
  .site-header-mobile { display: none; }
}

/* Nav */
.nav .menu { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { background: var(--surface); }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: color-mix(in srgb, var(--primary) 70%, transparent); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; opacity: .9; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after { transform: scaleX(1); }
.nav .menu .icon { width: 16px; height: 16px; fill: currentColor; opacity: .9; flex: 0 0 auto; }

/* Nav-toggle */
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--surface); padding: 8px; border-radius: 10px; }
.nav-toggle .nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--text); margin: 3px 0; }

@media (max-width: 720px) {
  /* Show hamburger on mobile */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Turn primary menu into an overlay panel */
  .nav .menu {
    display: none;
    position: fixed;
    top: calc(var(--header-h, 64px));
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 16px;
    overflow: auto;
    z-index: 1150;
    flex-direction: column;
    gap: 10px;
  }
  .nav .menu.is-open { display: flex; }
  .nav .menu li { display: block; }
  .nav .menu a { width: 100%; }

  /* Mega menu inside mobile: collapse into simple blocks */
  .has-mega { width: 100%; }
  .has-mega > .mega-toggle { width: 100%; justify-content: space-between; }
  .mega { position: static; min-width: 0; padding: 8px; margin: 6px 0 0; border-radius: 12px; }
  .mega.is-open { display: grid; grid-template-columns: 1fr; }
  .mega a { width: 100%; }
}

/* Mobile menu (slide-in) */
@media (max-width: 720px) {
  .nav .menu { position: fixed; inset: 0 0 0 auto; width: min(300px, 86vw); height: 100vh; flex-direction: column; padding: 16px; background: var(--surface); border-left: 1px solid var(--border); border-radius: 0; display: flex; gap: 6px; transform: translateX(105%); transition: transform .3s ease; box-shadow: var(--shadow); z-index: 1201; }
  .nav .menu.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-block; }
}

/* Backdrop for mobile menu */
.nav-backdrop { position: fixed; inset: 0; background: rgba(2, 10, 30, .45); backdrop-filter: blur(2px); z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* Lock body scroll when menu open */
body.nav-open { overflow: hidden; }

/* Hamburger to X animation */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.site-hero { padding: 120px 0 48px; position: relative; border-bottom: 1px solid var(--border); background: var(--surface); }
.site-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 70% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%); pointer-events: none; }
.site-hero .hero-content { position: relative; z-index: 1; }
.site-hero .hero-media img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .site-hero { padding: 100px 0 32px; }
}

/* Center homepage hero content */
.site-hero.hero-home .grid-2 { grid-template-columns: 1fr; justify-items: center; }
.site-hero.hero-home .hero-content { text-align: center; }
.site-hero.hero-home .hero-lists { max-width: 980px; width: 100%; margin-inline: auto; }

/* Hero lists (two columns with icon bullets) */
.site-hero .hero-lists {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.site-hero .hero-lists > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.site-hero .hero-lists h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.site-hero .hero-lists h3::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l9 5v10l-9 5-9-5V7l9-5zm0 4.2L6 7.5v8.9l6 3.3 6-3.3V7.5L12 6.2z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l9 5v10l-9 5-9-5V7l9-5zm0 4.2L6 7.5v8.9l6 3.3 6-3.3V7.5L12 6.2z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.site-hero .hero-lists h3::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 120px; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%);
  border-radius: 999px;
}
.site-hero .hero-lists ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-hero .hero-lists li { display: flex; align-items: flex-start; gap: 10px; }
.site-hero .hero-lists li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--primary);
  /* checkmark icon using mask for crisp vector */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2L5.8 12.5l-1.4 1.4 5.1 5.1L20 9.5l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2L5.8 12.5l-1.4 1.4 5.1 5.1L20 9.5l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
@media (max-width: 1024px) {
  .site-hero .hero-lists { grid-template-columns: 1fr; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(2,14,63,.45); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }

/* Chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { border: 1px solid var(--border); background: var(--bg); color: inherit; padding: 8px 12px; border-radius: 999px; }

/* Stats */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
.num { font-size: 1.6rem; font-weight: 700; display: block; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; justify-items: center; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.testimonial-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.testimonial-card blockquote { margin: 0 0 10px; font-style: italic; }
.testimonial-card figcaption { color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-grid img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 12px; color: var(--muted); }
.contact-form { background: var(--bg); border: 1px solid var(--border); padding: 16px; border-radius: 16px; box-shadow: var(--shadow); }
.form-field { display: grid; gap: 6px; margin-bottom: 10px; }
input, textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: inherit; }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent); border-color: var(--primary); }
.hp { display: none; }
.form-message { margin-top: 8px; min-height: 1.2em; }

/* Contact emphasis */
.contact-list a,
.team-links a {
  color: var(--primary);
  font-weight: 600;
}
.contact-list a:hover,
.team-links a:hover {
  text-decoration: underline;
}

/* Contact form dropdown (select) color effects */
.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease, background .25s ease;
  /* Custom arrow */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23a8b3c7' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center, center;
  background-size: 16px 16px, auto;
}
.contact-form select:hover {
  box-shadow: 0 12px 28px rgba(168,85,247,.12);
}
.contact-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset: 2px;
  box-shadow: 0 14px 34px rgba(168,85,247,.18);
}
/* Option colors (limited browser support but graceful) */
.contact-form select option { background: var(--bg); color: inherit; }
.contact-form select:focus option:checked { background: color-mix(in srgb, var(--primary) 18%, var(--bg)); }

/* Dark theme arrow color tweak */
[data-theme="dark"] .contact-form select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1220' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); padding: 10px 14px; border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); color: #fff; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

/* Micro interaction: ripple placeholder */
.btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120px 120px at var(--rx,50%) var(--ry,50%), rgba(255,255,255,.25), transparent 40%); opacity: 0; transition: opacity .35s ease; }
.btn.is-rippling::after { opacity: 1; }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--surface); 
  position: relative; 
  overflow: hidden; 
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 50%, transparent) 60%, transparent 100%);
}
.site-footer::after {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 60%; height: 60%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 65%);
  pointer-events: none; filter: blur(18px);
}
.footer-inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 24px 0; }
.footer-brand { 
  align-items: center; 
  overflow: visible; 
}
.footer-brand .logo-mark {
  max-height: 64px;   /* a bit taller for footer visibility */
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* never crop */
  border-radius: 0;    /* remove rounding that can clip non-square logos */
  display: block;
}
@media (max-width: 600px) {
  .footer-brand .logo-mark { max-height: 48px; }
}
.footer-cols h4 {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left calc(100% + 3px);
  background-size: 36% 2px;
  padding-bottom: 2px;
}
.footer-cols a {
  position: relative; color: var(--muted); text-decoration: none;
  background-image: linear-gradient(color-mix(in srgb, var(--primary) 50%, transparent), color-mix(in srgb, var(--primary) 50%, transparent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color .2s ease, background-size .25s ease, transform .2s ease;
}
.footer-cols a:hover { color: #fff; background-size: 100% 1.5px; transform: translateX(2px); }
.footer-cols a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; border-radius: 4px;
  background-size: 100% 1.5px;
}
.footer-brand span { color: var(--text); letter-spacing: .2px; }
.footer-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}
.footer-note a { color: var(--primary); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease, color .2s ease; }
.footer-note a:hover { color: #fff; background-size: 100% 2px; }
@media (hover:hover) and (pointer:fine) {
  .footer-cols > div { transition: transform .2s ease; }
  .footer-cols > div:hover { transform: translateY(-2px); }
}

/* Footer base (restore background/border) */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--surface); 
}

/* Ensure lists are reset in footer columns */
.footer-cols ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 6px; 
}

/* Responsive columns */
@media (max-width: 960px) { 
  .footer-inner { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  } 
}
@media (max-width: 600px) { 
  .footer-inner { 
    grid-template-columns: 1fr; 
  } 
  .footer-note { 
    flex-direction: column; 
    gap: 8px; 
  } 
}

/* Footer social icons */
.footer-social { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: color-mix(in srgb, var(--surface) 90%, black); transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.footer-social a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); color: #fff; }
.footer-social a:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }
.footer-social .icon { width: 18px; height: 18px; fill: currentColor; display: block; }
@media (max-width: 600px) { .footer-social { gap: 10px; } .footer-social a { width: 34px; height: 34px; } .footer-social .icon { width: 16px; height: 16px; } }

/* Brand-colored states for social icons */
.footer-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  color: #fff;
}
.footer-social a[aria-label="YouTube"]:hover,
.footer-social a[aria-label="YouTube"]:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}
.footer-social a[aria-label="LinkedIn"]:hover,
.footer-social a[aria-label="LinkedIn"]:focus-visible {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.footer-social a[aria-label="WhatsApp"]:hover,
.footer-social a[aria-label="WhatsApp"]:focus-visible {
  background: #25d366;
  border-color: #25d366;
  color: #0b2b1a;
}
.footer-social a[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.footer-social a[aria-label="IndiaMART"]:hover,
.footer-social a[aria-label="IndiaMART"]:focus-visible {
  background: #6f42c1;
  border-color: #6f42c1;
  color: #fff;
}

/* Default brand colors for social icons (always colored, not only on hover) */
.footer-social a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  color: #fff;
}
.footer-social a[aria-label="YouTube"] {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}
.footer-social a[aria-label="LinkedIn"] {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.footer-social a[aria-label="WhatsApp"] {
  background: #25d366;
  border-color: #25d366;
  color: #0b2b1a;
}
.footer-social a[aria-label="Facebook"] {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.footer-social a[aria-label="IndiaMART"] {
  background: #6f42c1;
  border-color: #6f42c1;
  color: #fff;
}

/* Topbar (global contact + social) */
.topbar { background: color-mix(in srgb, var(--surface) 92%, black); border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.topbar a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: color .2s ease, background-size .25s ease; }
.topbar a:hover { color: #fff; background-size: 100% 1px; }
.topbar .contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topbar .contacts a { color: var(--primary); }
.topbar .sep { opacity: .5; }
/* Reuse footer-social buttons but smaller */
.topbar .footer-social a { width: 32px; height: 32px; }
.topbar .footer-social .icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .topbar .optional { display: none; } }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(16px) scale(.99); transition: opacity .6s cubic-bezier(.2,.65,.3,1), transform .6s cubic-bezier(.2,.65,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Subtle hover lift */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,14,63,.4); }

/* Team Contacts */
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.team-card-head h4 { margin: 0; }
.team-card .icon { width: 18px; height: 18px; fill: var(--text); opacity: .9; }

/* Leadership images: consistent sizing */
.team-card img[src*="leader-"] {
  width: 120px;
  height: 120px;
  object-fit: cover;      /* crop evenly to fill the box */
  aspect-ratio: 1 / 1;    /* keep square */
  border-radius: 12px;    /* match card style */
  display: block;
}
@media (max-width: 600px) {
  .team-card img[src*="leader-"] { width: 100px; height: 100px; }
}

/* Parallax container helpers */
.parallax { transform: translateZ(0); will-change: transform; }

/* Smooth anchor scroll offset fix */
:target { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .cards { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  /* Slightly smaller brand logo on small screens */
  .brand img { width: 42px; height: 42px; }
  .brand .logo-mark { max-height: 44px; }
}

/* Mega menu */
.has-mega { position: relative; }
.has-mega > .mega-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; color: inherit; background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; box-shadow: var(--shadow); transition: box-shadow .2s ease, filter .2s ease; }
.has-mega > .mega-toggle:hover { box-shadow: 0 12px 28px rgba(168,85,247,.12); }
.has-mega > .mega-toggle:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; box-shadow: 0 14px 34px rgba(168,85,247,.18); }
.mega { position: absolute; left: 0; top: calc(100% + 10px); min-width: 560px; padding: 14px; display: none; background: var(--surface); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.mega.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; animation: megaIn .22s ease both; }
.has-mega .mega { border: 1px solid transparent; background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; }
.mega a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; background: var(--bg); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mega a:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.mega .thumb { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); border: 1px solid var(--border); flex: 0 0 auto; }
.mega .thumb svg { width: 18px; height: 18px; fill: var(--primary); }
.mega .meta { display: grid; gap: 2px; }
.mega .meta .muted { color: var(--muted); font-size: .92em; }
.mega-footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 4px; }
.mega-footer a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; background: var(--bg); }
.mega-footer a:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }

@keyframes megaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mobile behavior: mega becomes inline collapsible */
@media (max-width: 720px) {
  .has-mega { width: 100%; }
  .has-mega > .mega-toggle { width: 100%; justify-content: space-between; }
  .mega { position: static; min-width: 0; padding: 8px; margin: 6px 0 0; border-radius: 12px; }
  .mega.is-open { display: grid; grid-template-columns: 1fr; }
  .mega-footer { justify-content: stretch; }
  .mega-footer a { width: 100%; justify-content: center; }
}

/* Products caret rotate when open */
.has-mega > .mega-toggle .icon { transition: transform .22s ease; }
.has-mega > .mega-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Language selector caret + rotate */
.lang-current { position: relative; }
.lang-current::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px; margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1220' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 12px;
  transition: transform .22s ease;
}
.lang-switch[aria-expanded="true"] .lang-current::after { transform: rotate(180deg); }

/* Dark theme caret color for language */
[data-theme="dark"] .lang-current::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23e6ebf5' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
}

/* Language Switcher */
.lang-switch { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; color: inherit; background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; box-shadow: var(--shadow); transition: box-shadow .2s ease, filter .2s ease; }
.lang-current:hover { box-shadow: 0 12px 28px rgba(168,85,247,.12); }
.lang-current:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; box-shadow: 0 14px 34px rgba(168,85,247,.18); }
.lang-label { display: inline-block; min-width: 72px; text-align: left; }
.lang-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(280px, 92vw); background: var(--bg); border: 1px solid transparent; border-radius: 12px; box-shadow: var(--shadow); padding: 10px; z-index: 1200; background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; }
.lang-search { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: inherit; margin-bottom: 8px; }
.lang-list { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow: auto; }
.lang-item { width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: inherit; }
.lang-item:hover { background: var(--surface); }

@media (max-width: 720px) {
  /* Language dropdown mobile-friendly layout */
  .lang-switch { width: 100%; }
  .lang-current { width: 100%; justify-content: space-between; }
  .lang-panel { position: static; right: auto; top: auto; width: 100%; margin-top: 8px; z-index: auto; }
  .lang-list { max-height: 240px; }
  .lang-item { width: 100%; text-align: left; }
}

/* Theme Toggle */
.theme-toggle { border: 1px solid transparent; background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) border-box; padding: 6px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.theme-toggle:hover { box-shadow: 0 12px 28px rgba(168,85,247,.12); }
.theme-toggle:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; box-shadow: 0 14px 34px rgba(168,85,247,.18); }
.theme-toggle .icon { width: 20px; height: 20px; fill: var(--text); }

/* WhatsApp Floating Action Button */
.fab-whatsapp {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: none;
  z-index: 1301; /* above header/backdrops */
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.fab-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fab-whatsapp:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}
.fab-whatsapp svg { width: 30px; height: 30px; display: block; }
/* Ensure glyph is white even if inline SVG sets its own fill */
.fab-whatsapp svg path { fill: #fff !important; }

/* Hide FAB when mobile nav menu is open to avoid overlap */
body.nav-open .fab-whatsapp { opacity: 0; pointer-events: none; transform: translateY(4px) scale(.98); }

/* Smaller on very small screens */
@media (max-width: 480px) {
  .fab-whatsapp { width: 52px; height: 52px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
}

/* Hide on print */
@media print { .fab-whatsapp { display: none !important; } }

/* Map */
.map-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); margin-top: 16px; }
.map-title { margin: 0 0 8px; }
.map { width: 100%; height: 380px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Cookie Banner */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; inset: auto 16px 16px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); z-index: 1100; }
.cookie-content { padding: 12px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.cookie-actions { display: inline-flex; gap: 8px; }
@media (max-width: 720px) {
  .cookie-content { flex-direction: column; align-items: stretch; }
}

/* Product Pages */
.hero-mini { padding: 56px 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.product-header h1 { margin: 4px 0 0; font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); }
.product-hero-icon { margin-top: 6px; }
.product-hero-icon .icon { width: 28px; height: 28px; fill: var(--primary); opacity: .95; }
.hero-illustration { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); margin-top: 12px; }
.product-main { padding: 32px 0; }
.product-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.specs, .downloads { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.specs h3, .downloads h3 { margin-top: 0; }
.spec-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-list li { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .spec-list { grid-template-columns: 1fr; } }

/* Google Translate (hide UI artifacts for seamless fallback) */
.goog-logo-link, .goog-te-gadget { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* About section portrait image */
.about-portrait { width: 100%; max-width: 420px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; margin: 12px auto 0; }

/* Product pages centered layout */
.water-page .product-grid, .thinner-page .product-grid { grid-template-columns: 1fr; justify-items: center; }
.water-page .product-grid > article,
.water-page .product-grid > aside,
.thinner-page .product-grid > article,
.thinner-page .product-grid > aside { width: 100%; max-width: 980px; margin-inline: auto; }

/* Product entries: card styling, heading highlight, target focus */
.product-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; margin: 12px 0; }
.product-entry:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2,14,63,.35); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.product-entry h2,
.product-entry h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; position: relative; font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.35rem); }
.product-entry h2::before,
.product-entry h3::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l9 5v10l-9 5-9-5V7l9-5zm0 4.2L6 7.5v8.9l6 3.3 6-3.3V7.5L12 6.2z'/%3E%3C/svg%3E") no-repeat center / 16px 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l9 5v10l-9 5-9-5V7l9-5zm0 4.2L6 7.5v8.9l6 3.3 6-3.3V7.5L12 6.2z'/%3E%3C/svg%3E") no-repeat center / 16px 16px; }
.product-entry h2::after,
.product-entry h3::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 140px; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%); border-radius: 999px; }
.product-entry:target, .product-entry.is-target { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); box-shadow: 0 18px 48px rgba(168,85,247,.35); animation: targetPulse 1.2s ease 1; }
@keyframes targetPulse { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,.4); } 70% { box-shadow: 0 0 0 12px rgba(168,85,247,0); } 100% { box-shadow: 0 18px 48px rgba(168,85,247,.35); } }

/* Featured badge */
.badge-featured { display: inline-block; margin-left: auto; padding: 4px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); }
.product-entry h3 .badge-featured { position: static; }

/* In-page Table of Contents (Products list) */
.toc { margin: 12px 0; }
.toc-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.toc-list li { display: flex; align-items: center; gap: 8px; }
.toc-list li::before {
  content: "";
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 6px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 2h9l5 5v15H6zM8 4v14h12V8h-5V4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 2h9l5 5v15H6zM8 4v14h12V8h-5V4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.toc-list a { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: color .2s ease, border-color .2s ease; }
.toc-list a:hover { color: #ffffff; border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
@media (max-width: 720px) { .toc-list { grid-template-columns: 1fr; } }

/* Sticky ToC on desktop (only when .sticky is present) */
@media (min-width: 1024px) {
  .toc.sticky { position: sticky; top: calc(var(--header-h, 64px) + 12px); z-index: 10; }
}

/* Animated section headings */
.section-header h2,
.section .reveal h2,
.section .reveal h3 { position: relative; opacity: 0; transform: translateY(8px); }
.section-header.reveal.is-visible h2,
.section .reveal.is-visible h2,
.section .reveal.is-visible h3 { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.65,.3,1), transform .6s cubic-bezier(.2,.65,.3,1); }
.section-header h2::after,
.section .reveal h2::after,
.section .reveal h3::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 120px; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%); border-radius: 999px; transform: translateX(-50%) scaleX(0); transform-origin: 0 50%; transition: transform .6s ease .1s; }
.section-header.reveal.is-visible h2::after,
.section .reveal.is-visible h2::after,
.section .reveal.is-visible h3::after { transform: translateX(-50%) scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .section-header h2,
  .section .reveal h2,
  .section .reveal h3 { opacity: 1; transform: none; }
  .section-header h2::after,
  .section .reveal h2::after,
  .section .reveal h3::after { transform: translateX(-50%) scaleX(1); }
}

/* Center specific section headings */
#about .reveal > h2,
#contact .reveal > h2 { text-align: center; }
#about .reveal > h2 + p,
#contact .reveal > h2 + p { text-align: center; }

/* Body offset for fixed header */
body.has-fixed-header { padding-top: var(--header-h, 80px); }

/* Fancy section header gradient + shine */
.section-header h2 { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.section-header h2::before { content: ""; position: absolute; left: -120px; top: 0; width: 80px; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); filter: blur(1px); opacity: .0; }
.section-header.reveal.is-visible h2::before { animation: headerShine 1.4s .4s ease forwards; }
@keyframes headerShine { 0% { left: -120px; opacity: 0; } 30% { opacity: .6; } 100% { left: 120%; opacity: 0; } }

/* Why DUTEC grid */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why-grid .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: 0 16px 40px rgba(2,14,63,.25); }
.why-grid .about-head .icon { width: 18px; height: 18px; fill: var(--primary); opacity: .95; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* About cards â€“ alternate style with accent border and hover glow */
.about-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-cards .card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.about-cards .card::before {
  content: none;
}
.about-cards .card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(2,14,63,.45); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.about-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.about-head .icon { width: 18px; height: 18px; fill: var(--text); opacity: .9; }
@media (max-width: 960px) { .about-cards { grid-template-columns: 1fr; } }

/* Leadership â€“ image reveal and tilt */
.leaders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.leader-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; box-shadow: var(--shadow); transition: transform .25s ease; text-align: left; }
.leader-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(2,14,63,.45); }
.leader-photo { width: 180px; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); filter: grayscale(30%); transition: filter .25s ease, transform .25s ease; margin: 0 auto 6px; }
.leader-card:hover .leader-photo { filter: grayscale(0%); transform: scale(1.03); }
.leader-meta h3 { margin: 0 0 4px; font-size: 1.05rem; }
.leader-meta .role { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.leader-meta .edu, .leader-meta .exp { margin: 0 0 4px; color: var(--muted); font-size: .95em; }
.leader-meta .bio { margin: 6px 0 0; }
@media (max-width: 960px) { .leaders-grid { grid-template-columns: 1fr; } .leader-card { grid-template-columns: 1fr; } .leader-photo { width: 140px; } }

/* Accent glow on focusable elements inside cards for keyboard users */
.about-cards .card :focus-visible,
.leader-card :focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Mobile fit fixes */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, picture, video, svg, canvas { max-width: 100%; height: auto; }
.container { padding-left: 12px; padding-right: 12px; }
@media (min-width: 721px) { .container { padding-left: 16px; padding-right: 16px; } }
.card { min-width: 0; }

/* Contact form validation styles */
.contact-form [aria-invalid="true"] {
  border-color: var(--danger, #c62828) !important;
  background: color-mix(in srgb, #c62828 6%, var(--surface));
}
.contact-form .field-error {
  color: var(--danger, #c62828);
  font-size: .875rem;
  margin-top: 4px;
}
.contact-form .form-message {
  margin-top: 10px;
  font-size: .95rem;
}
.contact-form .form-message.success { color: var(--success, #1b5e20); }
.contact-form .form-message.error { color: var(--danger, #c62828); }

/* Full-bleed section width (safety) */
.section { width: 100%; }

/* Utility: make a section fit the viewport height like the hero */
.section.vh-100, .fit-screen { min-height: 100vh; display: flex; align-items: center; }
.section.vh-100 > .container, .fit-screen > .container { width: 100%; }

/* Harden common grids to avoid overflow and fit neatly */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

/* Ensure images do not overflow any containers */
.section img { max-width: 100%; height: auto; }

/* Content link styles (site-wide, incl. Privacy/Terms) */
.section a:not(.btn) {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .2s ease, border-color .2s ease, text-decoration-color .2s ease;
}
.section a:not(.btn):hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section a:not(.btn):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Footer link styling to match */
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-footer a:hover { color: #ffffff; border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.site-footer a:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; border-radius: 4px; }

/* Product Card Layout (Water-based product page) */
.product-card .section-header p { color: var(--muted); }
.product-card-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.pc-overview { display: grid; gap: 14px; }
.pc-media img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.pc-feature-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-app ul { margin: 6px 0 0; }

.pc-aside { display: grid; gap: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; }
.spec-table th { width: 46%; background: color-mix(in srgb, var(--surface) 90%, black); border-right: 1px solid var(--border); }
.spec-table tr { border-bottom: 1px solid var(--border); }

/* Note cards (success/warning) */
.note { border-left: 4px solid var(--primary); }
.note.success { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.note.warning { border-left-color: #f59e0b; background: color-mix(in srgb, #f59e0b 8%, var(--surface)); }
.note.info { border-left-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

@media (max-width: 960px) {
  .product-card-grid { grid-template-columns: 1fr; }
  .pc-feature-cards { grid-template-columns: 1fr; }
}

/* Multi-image support inside product card media */
.pc-media.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-media.multi img { height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 720px) { .pc-media.multi { grid-template-columns: 1fr; } }

/* Informational panel styling (Understanding Refractory Coatings) */
.info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.info-panel::before { content: none; }
.info-panel:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: 0 16px 40px rgba(2,14,63,.35); }

.info-head h3 { margin: 0 0 6px; font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); display: inline-flex; align-items: center; gap: 8px; position: relative; }
.info-head h3::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 140px; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%); border-radius: 999px; }
.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.info-body { margin-top: 10px; display: grid; gap: 8px; }

/* Checklist with icon bullets */
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, black); }
.list-check li::before {
  content: "";
  width: 18px; height: 18px; border-radius: 6px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2L5.8 12.5l-1.4 1.4 5.1 5.1L20 9.5l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2L5.8 12.5l-1.4 1.4 5.1 5.1L20 9.5l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
@media (max-width: 720px) {
  .lead { font-size: 1rem; }
  .list-check li { grid-template-columns: 20px 1fr; }
}

/* Hero: Water-based product page */
.hero-water { padding: 120px 0 36px; border-bottom: 1px solid var(--border); background: var(--surface); position: relative; }
.hero-water::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 70% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%); pointer-events: none; }
.hero-water-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
.hero-water-copy h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.6rem); }
.hero-water-copy .lead { color: var(--muted); max-width: 60ch; }
.hero-water .hero-ctas { display: flex; gap: 10px; }
.hero-water-art img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 960px) { .hero-water-inner { grid-template-columns: 1fr; } .hero-water { padding: 100px 0 24px; } }

/* Hero: Thinner-based product page */
.hero-thinner { padding: 120px 0 36px; border-bottom: 1px solid var(--border); background: var(--surface); position: relative; }
.hero-thinner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 30% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%); pointer-events: none; }
.hero-thinner-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
.hero-thinner-copy h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.6rem); }
.hero-thinner-copy .lead { color: var(--muted); max-width: 60ch; }
.hero-thinner .hero-ctas { display: flex; gap: 10px; }
.hero-thinner-art img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 960px) { .hero-thinner-inner { grid-template-columns: 1fr; } .hero-thinner { padding: 100px 0 24px; } }

/* Zircon page specific styles */
.zircon-page .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.zircon-page .product-grid > article,
.zircon-page .product-grid > aside {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

.zircon-page .product-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.zircon-page .toc.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.zircon-page .toc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.zircon-page .toc-list li {
  margin: 0;
}

.zircon-page .toc-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.zircon-page .toc-list a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.zircon-page .section-header {
  margin: 32px 0 24px;
  text-align: center;
}

.zircon-page .section-header h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
  color: var(--heading);
}

.zircon-page .section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Form Status Messages */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-status.success {
  background-color: rgba(20, 138, 26, 0.15);
  color: var(--success);
  border: 1px solid rgba(20, 138, 26, 0.3);
}

.form-status.error {
  background-color: rgba(217, 45, 32, 0.15);
  color: var(--danger);
  border: 1px solid rgba(217, 45, 32, 0.3);
}
