/* =========================================================
   EMCO DESIGN SYSTEM – CORE TOKENS
   Version: 1.1
   Scope: Global Root Variables
   Strategy: Token-first, theme-aware
========================================================= */

:root {

  /* ======================================================
     1. BRAND PALETTE (STATIC – NEVER THEME-SWAPPED)
     ====================================================== */
  --emco-brand-primary: #016569;
  --emco-brand-sec: #59ffd6;
  --emco-brand-accent: #EF8638;
  --emco-red:    #E23A33;
  --emco-orange: #EF8638;
  --emco-blue:   #29C4F8;
  --emco-green:  #00A86B;
  --emco-gold:   #FFD700;
  --emco-leaf:   #72B263;
  --emco-brand-primary-rgb: 1, 101, 105;
  /* ======================================================
     2. NEUTRAL SCALE (FOUNDATION)
     ====================================================== */
  --neutral-0:   #ffffff;
  --neutral-50:  #fcfcfc;
  --neutral-100: #f7faf9;
  --neutral-200: #e5e7eb;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e1e2e;
  --neutral-900: #0a0a0e;

  /* ======================================================
     3. SEMANTIC COLOR TOKENS (LIGHT THEME DEFAULT)
     ====================================================== */
  --color-bg:           var(--neutral-50);
  --color-surface:      var(--neutral-100);
  --color-card:         var(--neutral-100);
  --color-border:       var(--neutral-200);

  --color-text:         #454545;
  --color-text-muted:   #265757;
  --color-text-inverse: #ffffff;

  /* Status (future-ready) */
  --color-success: var(--emco-green);
  --color-warning: var(--emco-orange);
  --color-error:   var(--emco-red);
  --color-info:    var(--emco-blue);

  /* ======================================================
     4. TYPOGRAPHY TOKENS
     ====================================================== */
  --font-family-base: "Source Sans Pro", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-family-heading: "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs:  0.75rem;
  --font-size-sm:  0.875rem;
  --font-size-md:  1.05rem;
  --font-size-lg:  1.25rem;
  --font-size-xl:  1.65rem;
  --font-size-2xl: 2.25rem;

  --line-height-base: 1.6;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold:600;
  --font-weight-bold:    700;

  /* ======================================================
     5. SPACING & RADIUS
     ====================================================== */
  --radius-xs:   6px;
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   30px;
  --radius-pill: 999px;

  --space-2xs: 0.125rem;
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  5rem;
  --z-base: 1;
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-overlay: 900;
  --z-toast: 1100;
  /* ======================================================
     6. SHADOWS & DEPTH
     ====================================================== */
  --shadow-xs: 0 1px 3px rgba(2,6,23,0.08);
  --shadow-sm: 0 2px 8px rgba(2,6,23,0.15);
  --shadow-md: 0 6px 16px rgba(2,6,23,0.25);
  --shadow-lg: 0 8px 24px rgba(2,6,23,0.6);
  --opacity-disabled: 0.5;
  --scale-hover: 1.02;
  /* ======================================================
     7. MOTION & EFFECTS
     ====================================================== */
  --ease-standard: cubic-bezier(.2,.9,.3,1);

  --transition-fast:  150ms var(--ease-standard);
  --transition-base:  300ms var(--ease-standard);
  --transition-slow:  450ms var(--ease-standard);

  --overlay-light: rgba(255,255,255,0.08);
  --overlay-dark:  rgba(0,0,0,0.75);

  --glass-bg: rgba(30,30,46,0.9);

  /* ======================================================
     8. LAYOUT
     ====================================================== */
  --container-max-width: 1150px;
  --container-padding:   1rem;

  /* ======================================================
     9. GRADIENT SYSTEM
     ====================================================== */
  --gradient-brand: linear-gradient(
    135deg,
    var(--emco-brand-primary),
    var(--emco-brand-sec)
  );

  --gradient-warm: linear-gradient(
    135deg,
    var(--emco-red),
    var(--emco-orange)
  );

  --gradient-cool: linear-gradient(
    135deg,
    var(--emco-blue),
    var(--emco-green)
  );

  --gradient-natural: linear-gradient(
    135deg,
    var(--emco-green),
    var(--emco-leaf)
  );

  --gradient-spectrum: linear-gradient(
    90deg,
    var(--emco-red)    5%,
    var(--emco-orange)25%,
    var(--emco-blue)  50%,
    var(--emco-green) 75%,
    var(--emco-leaf)  100%
  );
}
:root {
  --filter-icon-light: brightness(1) invert(0);
  --filter-icon-dark: brightness(0) invert(1);
  --filter-icon-muted: grayscale(1) brightness(0.8) opacity(0.7);
  --filter-icon-hover: brightness(1.15) saturate(1.2);
}

/* =========================================================
   DARK THEME OVERRIDES
   Activated via data-theme="dark"
========================================================= */

:root[data-theme="dark"] {
  --color-bg:         var(--neutral-900);
  --color-surface:    var(--neutral-800);
  --color-card:       var(--neutral-800);
  --color-border:     var(--neutral-700);

  --color-text:       #e5e7eb;
  --color-text-muted: #94a3b8;

  --overlay-light: rgba(255,255,255,0.04);
  --overlay-dark:  rgba(0,0,0,0.85);

  --glass-bg: rgba(15,15,25,0.85); 
}

/* =========================================================
   GLOBAL UX SAFETY NETS
========================================================= */

::selection {
  background: var(--emco-brand-primary);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--emco-brand-accent);
  outline-offset: 2px;
}

/* ================================
   Spacing Utilities
================================ */

/* ======================
   Margin Utilities
====================== */
.m-0   { margin: 0px; }
.m-5   { margin: 5px; }
.m-10  { margin: 10px; }
.m-15  { margin: 15px; }
.m-20  { margin: 20px; }
.m-30  { margin: 30px; }

/* Margin Top */
.mt-0  { margin-top: 0px; }
.mt-5  { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Margin Bottom */
.mb-0  { margin-bottom: 0px; }
.mb-5  { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Margin Left */
.ml-0  { margin-left: 0px; }
.ml-5  { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.ml-20 { margin-left: 20px; }
.ml-30 { margin-left: 30px; }

/* Margin Right */
.mr-0  { margin-right: 0px; }
.mr-5  { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.mr-20 { margin-right: 20px; }
.mr-30 { margin-right: 30px; }

/* Margin X (left & right) */
.mx-0  { margin-left: 0px; margin-right: 0px; }
.mx-5  { margin-left: 5px; margin-right: 5px; }
.mx-10 { margin-left: 10px; margin-right: 10px; }
.mx-15 { margin-left: 15px; margin-right: 15px; }
.mx-20 { margin-left: 20px; margin-right: 20px; }
.mx-30 { margin-left: 30px; margin-right: 30px; }

/* Margin Y (top & bottom) */
.my-0  { margin-top: 0px; margin-bottom: 0px; }
.my-5  { margin-top: 5px; margin-bottom: 5px; }
.my-10 { margin-top: 10px; margin-bottom: 10px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }


/* ======================
   Padding Utilities
====================== */
.p-0   { padding: 0px; }
.p-5   { padding: 5px; }
.p-10  { padding: 10px; }
.p-15  { padding: 15px; }
.p-20  { padding: 20px; }
.p-30  { padding: 30px; }

/* Padding Top */
.pt-0  { padding-top: 0px; }
.pt-5  { padding-top: 5px; }
.pt-10 { padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }

/* Padding Bottom */
.pb-0  { padding-bottom: 0px; }
.pb-5  { padding-bottom: 5px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }

/* Padding Left */
.pl-0  { padding-left: 0px; }
.pl-5  { padding-left: 5px; }
.pl-10 { padding-left: 10px; }
.pl-15 { padding-left: 15px; }
.pl-20 { padding-left: 20px; }
.pl-30 { padding-left: 30px; }

/* Padding Right */
.pr-0  { padding-right: 0px; }
.pr-5  { padding-right: 5px; }
.pr-10 { padding-right: 10px; }
.pr-15 { padding-right: 15px; }
.pr-20 { padding-right: 20px; }
.pr-30 { padding-right: 30px; }

/* Padding X (left & right) */
.px-0  { padding-left: 0px; padding-right: 0px; }
.px-5  { padding-left: 5px; padding-right: 5px; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-30 { padding-left: 30px; padding-right: 30px; }

/* Padding Y (top & bottom) */
.py-0  { padding-top: 0px; padding-bottom: 0px; }
.py-5  { padding-top: 5px; padding-bottom: 5px; }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
/**/
html {
  scroll-behavior: smooth;
}
/* =========================
   TOP UTILITY BAR
========================= */
.top-bar {
  background: var(--neutral-700);
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.top-links a:hover {
  text-decoration: underline;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: .6;
}

/* Dark */
:root[data-theme="dark"].top-bar {
  background: #020617;
}
/**/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base),
              border-color var(--transition-base);
}

.header-inner {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: var(--space-sm) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */
/* ===================================
   Logo Section
=================================== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-badge img {
  height: 30px;
  width: auto;
}

.logo .muted {
  margin-top: -2px;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  letter-spacing: .2px;
}
 
.logo .small {
  display: block;
  font-weight: 600;
  font-size: 0.825rem;
  line-height: 1.3;
  margin-top: 2px;
  color: var(--color-text-muted); /* subtle tagline */
}
 
/* =========================================================
   DESKTOP NAV
========================================================= */
.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.desktop-nav a,
.desktop-nav .nav-link {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  text-decoration:none;
}

.desktop-nav a:hover,
.desktop-nav .nav-link:hover {
  color: var(--emco-brand-primary);
}

/* CTA */
.desktop-nav .btn-primary {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.desktop-nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   EMCO MEGA MENU (DESKTOP)
   CMS-driven | Token-based | Dark-mode safe
========================================================= */

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* Hidden by default */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(14px);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

/* Hover intent */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px; /* bridge height */
}

/* =========================================================
   MEGA PANEL
========================================================= */
.dropdown-mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);

  min-width: 760px;
  padding: var(--space-lg);

  background: var(--neutral-0);
  backdrop-filter: blur(16px);

  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   COLUMN
========================================================= */
.dropdown-mega > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* =========================================================
   COLUMN TITLE
========================================================= */
.mega-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--emco-brand-primary);
  margin-bottom: var(--space-xs);
  text-decoration: none;
} 
.mega-title:hover {
  text-decoration: none;
  color: var(--emco-brand-primary);
}

/* =========================================================
   LINKS
========================================================= */
.mega-link {
  position: relative;
  display: block;

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);

  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.22rem 0;

   transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}
  
.mega-link:hover {
  color: var(--color-text-inverse);
  transform: translateX(4px);
}

/* Optional bullet indicator (subtle) */
.mega-link::before {
  content: ">";
  position: absolute;
  left: -0.75rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--emco-brand-accent);
}

.mega-link:hover::before {
  opacity: 1;
}

/* =========================================================
   DARK MODE TUNING
========================================================= */
:root[data-theme="dark"] .dropdown-mega {
  border-color: var(--neutral-700);
}

:root[data-theme="dark"] .mega-link {
  color: var(--neutral-400);
}

:root[data-theme="dark"] .mega-link:hover {
  color: var(--neutral-50);
}
.dropdown-mega {
  max-width: 1100px;
}

/* =========================================================
   MOBILE CONTROLS
========================================================= */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hamburger {
  width: 28px;
  height: 20px;
  display: grid;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: background var(--transition-fast);
}

/* Theme Toggle (Emoji or SVG safe) */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

/* =========================================================
   MOBILE NAV
========================================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  padding: var(--space-lg);
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav a,
.mobile-submenu-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: var(--space-sm) 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;

  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
}


/* Submenu */
.mobile-submenu {
  display: none;
  padding-left: var(--space-md);
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

/* =========================================================
   RESPONSIVE BREAKPOINT
========================================================= */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-controls,
  .mobile-nav {
    display: none;
  }
}
/* =========================================================
   MOBILE NAV – CLOSE BUTTON
========================================================= */

.mobile-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: var(--space-md);

  background: none;
  border: none;
  cursor: pointer;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text);
}

.mobile-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.mobile-close:hover {
  color: var(--emco-brand-primary);
}
@media (max-width: 720px) {
  .logo-badge img {
    height: 16px;
  }
}
/* =========================================================
   EMCO SITE FOOTER
   Depends on: root.css (design tokens)
========================================================= */

.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  border-top: 1px solid var(--neutral-800);
}

/* Main footer content */
.footer-inner {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: var(--space-xl) var(--container-padding);

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* =========================================================
   BRAND
========================================================= */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  color: var(--neutral-0);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
  max-width: 320px;
}

/* =========================================================
   FOOTER NAV
========================================================= */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  font-size: var(--font-size-sm);
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--emco-brand-accent);
}

/* =========================================================
   FOOTER BOTTOM BAR
========================================================= */
.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding: var(--space-sm) var(--container-padding);
  text-align: center;

  font-size: var(--font-size-xs);
  color: var(--neutral-400);
}

/* =========================================================
   RESPONSIVE (DESKTOP)
========================================================= */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .footer-nav {
    align-items: flex-end;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* =========================================================
   DARK THEME SAFETY (Explicit)
========================================================= */
:root[data-theme="dark"] .site-footer {
  background: var(--neutral-900);
}
/* =========================================================
   BASE / RESET (TOKEN-DRIVEN)
========================================================= */
* { box-sizing: border-box;
        }
  body {
      margin: 0;
      font-family: var(--font-family-base);      
      font-size: var(--font-size-md); /* 1.05rem = 16.8px */
      line-height: var(--line-height-base);
      background: var(--color-surface);
      color: var(--color-text);
       font-weight: var(--font-weight-regular);      
        }

/* Container */
.container {
  max-width: var(--container-max-width);
  padding-inline: var(--container-padding);
  margin-inline: auto;
}
/**/
/* Headings Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading, "Poppins", sans-serif); 
  margin: 0 0 var(--space-sm, 1rem); 
  color: var(--color-text, #1a1a1a); 
  letter-spacing: -0.01em;
  word-break: break-word;
  font-weight: var(--font-weight-bold, 700);
}

/* ======================================================
   FLUID DESKTOP SCALE (=1024px) — Using clamp() for smoothness
====================================================== */
h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem); /* 2.5-3.5rem */
  line-height: 1.15;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.85rem, 4vw + 0.5rem, 2.15rem); /* 2-2.5rem */
  line-height: 1.2;
  margin-top: 2rem;
}

h3 {
  font-size: clamp(1.625rem, 3vw + 0.5rem, 2rem); /* 1.625-2rem */
  line-height: 1.25;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw + 0.25rem, 1.5rem); /* 1.25-1.5rem */
  line-height: 1.35;
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem); /* 1-1.25rem */
  font-weight: var(--font-weight-medium, 600);
  line-height: 1.4;
}

h6 {
  font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem); /* 0.875-1rem */
  font-weight: var(--font-weight-medium, 600);
  line-height: 1.45;
  color: var(--color-text-muted, #6b7280);
}

/* ======================================================
   TABLET OVERRIDES (768px – 1023px) — Smoother scaling
====================================================== */

@media (max-width: 1023px) {
  h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.875rem, 5vw, 2.25rem); }
  h3 { font-size: clamp(1.5rem, 4vw, 1.875rem); }
  h4 { font-size: clamp(1.125rem, 3vw, 1.375rem); }
  h5 { font-size: clamp(0.95rem, 2.5vw, 1.125rem); }
  h6 { font-size: clamp(0.85rem, 2vw, 1rem); }
}

/* ======================================================
   MOBILE SCALE (<768px) — Optimized for thumb-friendly reading
====================================================== */

@media (max-width: 767px) {
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 1.875rem); }
  h3 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
  h4 { font-size: clamp(1.125rem, 4vw, 1.25rem); }
  h5, h6 { 
    font-size: clamp(0.875rem, 3.5vw, 1rem); 
  }

  h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-xs, 0.75rem);
    line-height: 1.35;
  }
}

/* ======================================================
   EXTRA SMALL MOBILE (<500px) — Ultra-tight for narrow screens
====================================================== */

@media (max-width: 500px) {
  h1 { font-size: clamp(1.625rem, 8vw, 2.25rem); }
  h2 { font-size: clamp(1.35rem, 7vw, 1.25rem); }
  h3 { font-size: clamp(1.15rem, 6vw, 1.175rem); }
  h4 { font-size: clamp(1rem, 5vw, 1.125rem); }
  h5 { font-size: clamp(0.875rem, 4vw, 1rem); }
  h6 { font-size: clamp(0.75rem, 3vw, 0.875rem); }

  h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-xs, 0.625rem);
    line-height: 1.3;
  }
}
@font-face {
  font-display: swap;
}
/*@font-face {
  font-family: 'Custom';
  src: url('/fonts/main.woff2') format('woff2');
  font-display: swap;
}*/
/* =========================================================
   PARAGRAPH SYSTEM (EMCO TYPOGRAPHY)
========================================================= */

p {
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-md); /* ~16.5–17px sweet spot */
  line-height: 1.7; /* better readability */
  color: var(--color-text);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.01em;
  /* max-width: 65ch; optimal reading width */
  opacity: 0.92;
}

/* First paragraph (hero/intro feel) */
p:first-of-type {
  font-size: calc(var(--font-size-md) + 0.05rem);
  line-height: 1.75; 
}

/* Muted paragraph (secondary info) */
p.muted {
  color: var(--color-text-muted);
}

/* Strong emphasis inside paragraph */
p strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

/* Inline highlight inside paragraph */
p .highlight {
  color: var(--emco-brand-primary);
  font-weight: var(--font-weight-medium);
}

/* Links inside paragraph */
p a {
  color: var(--emco-brand-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all var(--transition-fast);
}

p a:hover {
  color: var(--emco-brand-accent);
  border-bottom-color: var(--emco-brand-accent);
}

/* Spacing control for compact UI sections */
.section-tight p {
  margin-bottom: var(--space-sm);
}

/* Lead paragraph (you already have .lead — refine it) */
.lead {
  font-size: 1.15rem;
  line-height: 1.7; 
  font-weight: var(--font-weight-medium);
}
/* Small text */ 
.small{font-size:.85rem;line-height:1.4;color:var(--color-text-muted);}
@media (max-width: 1023px) {
  p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  p {
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .lead {
    font-size: 1.05rem;
    line-height: 1.65;
  }
}
/* ===============================
   Gradient Highlight (Default / Light)
================================ */
.brand-highlight {
background:var(--gradient-spectrum); -webkit-background-clip:text; color:transparent;
}

/* ===============================
   Gradient Highlight (Dark Theme)
================================ */
:root[data-theme="dark"] .brand-highlight {
  background: linear-gradient(
    90deg,
    var(--emco-brand-sec),
    var(--emco-brand-accent)
  );
   -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
/* =========================================================
   LINKS
========================================================= */

a {
  color: var(--emco-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.text-center {
  text-align: center;
}
a:hover {
  color: var(--emco-brand-accent);
}
.text-capitalize {
  text-transform: capitalize;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.text-brand  {
color:var(--emco-brand-primary);
}
.text-brand-sec  {
color:var(--emco-brand-sec);
}
.text-accent  {
color:var(--emco-brand-accent);
}
/* === Solid Borders === */
.emco-border-red {
  border: 1px solid var(--emco-red);
  border-radius: var(--radius-md);
}

.emco-border-blue {
  border: 1px solid var(--emco-blue);
  border-radius: var(--radius-md);
}

.emco-border-orange {
  border: 1px solid var(--emco-orange);
  border-radius: var(--radius-md);
}

.emco-border-green {
  border: 1px solid var(--emco-green);
  border-radius: var(--radius-md);
}

.emco-border-leaf {
  border: 1px solid var(--emco-leaf);
  border-radius: var(--radius-md);
}

/* === Gradient Borders (cool effect) === */
.emco-border-gradient-1 {
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--card-light);
  background-clip: padding-box;
  position: relative;
}

.emco-border-gradient-1::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--emco-red),
    var(--emco-orange),
    var(--emco-blue),
    var(--emco-green),
    var(--emco-leaf)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* === Bottom Border Accent (clean card look) === */
.emco-border-bottom {
  border-bottom: 4px solid var(--emco-green);
}
.emco-border-top {
  border-top: 2px solid; /* thickness */
  border-image: linear-gradient(
    to right,
    var(--emco-red) 0% 20%,
    var(--emco-blue) 20% 40%,
    var(--emco-orange) 40% 60%,
    var(--emco-green) 60% 80%,
    var(--emco-leaf) 80% 100%
  ) 5;
}
.rounded {
 border-radius:var(--radius-md);
}
/* =========================================================
   MEDIA
========================================================= */

img,
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}
/* =========================================
   THEME BACKGROUNDS (Light / Dark with Transparency)
   ========================================= */

/* Base style for bg-body wrapper */
.bg-body {
  position: relative;
  overflow: hidden;
  color: inherit;
}

/* Add the background pattern using ::before (keeps text unaffected) */
.bg-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: repeat;
  background-size: 400px auto;
  background-position: center;
  opacity: 0.25; /* Adjust transparency here (0.1–0.4 recommended) */
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* Light mode */
:root[data-theme="light"] .bg-body {
  background-color: #f8f9fa;
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;
}
:root[data-theme="light"] .bg-body::before {
  background-image: url('../../img/tech-bg-light.webp');
  opacity: 0.22;
}

/* Dark mode */
:root[data-theme="dark"] .bg-body {
  background-color: #121212;
  color: #f1f1f1;
  transition: background 0.3s ease, color 0.3s ease;
}
:root[data-theme="dark"] .bg-body::before {
  background-image: url('../../img/tech-bg-dark.webp');
  opacity: 0.48;
}

/* Optional: Fixed background effect (parallax-like) */
.bg-fixed::before {
  background-attachment: fixed;
}

/* Smooth text transitions and stacking above overlay */
.bg-body h2,
.bg-body p,
.bg-body .container {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* =========================================================
   SECTIONS
========================================================= */
.section {
  padding: var(--space-xl) 0;
}

.section-muted {
  background: var(--color-surface);
}
.section-highlight {
	background: var(--color-card);
}
.section-header {
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .section-header {
    padding: 0 var(--space-sm, 0.75rem);
  }
  
  .section-subtitle {
    margin: var(--space-sm, 0.75rem) auto 0;
  }
}
 .header-cta {
  margin-top: var(--space-lg, 1.5rem);
}
.section-title {
	font-weight:700;
}
#consultation, #core-services, .bg-brand{
  background: var(--gradient-brand);
  color:#FFFFFF;
}
#core-services h2, #core-services .lead, .bg-brand h2, .bg-brand h3, .bg-brand .lead {
  color:#FFFFFF;
}
.bg-brand .product-title,  .bg-brand .card  {
color:#000;  
}
 .bg-accent {
  background: var(--gradient-spectrum);
  color:#FFFFFF;
}
/* =========================================================
   UTILITIES (GLOBAL)
========================================================= */

.d-none,
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.no-text {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.no-right-click {
  pointer-events: none;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  line-height: 1;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

/* Primary */
.btn-primary {
  background: var(--gradient-brand);
  color: var(--neutral-0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background:  var(--emco-brand-primary);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--neutral-0);
  border: 2px solid var(--neutral-0);
}

.btn-outline:hover {
  background: var(--emco-brand-accent);
  color: var(--color-text-inverse);
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* ===============================
   EMCO PRIMARY CTA BUTTON
================================= */
.emco-btn {
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  border: none;

  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);

  cursor: pointer;
}

.emco-btn-sm {
  padding: 0.5rem 0.83rem;
  border-radius: var(--radius-pill);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  border: none;

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);

  cursor: pointer;
}
/* Hover (desktop only) */
@media (hover: hover) {
  .emco-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.03);
  }
}

/* Active / Press */
.emco-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Keyboard focus */
.emco-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-surface),
    0 0 0 4px var(--emco-brand-primary);
}

/* Disabled */
.emco-btn:disabled,
.emco-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: none;
}

/* Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-text-inverse);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.emco-btn.loading .spinner {
  display: inline-block;
}

.emco-btn.loading .btn-text {
  opacity: 0.6;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   OPTIONAL VARIANTS
================================= */

/* Inline button (not full width) */
.emco-btn.inline {
  width: auto;
  padding-inline: 1.4rem;
}

/* Outline variant */
.emco-btn.outline {
  background: transparent;
  color: var(--emco-brand-primary);
  border: 1px solid var(--emco-brand-primary);
}

.emco-btn.outline:hover:not(:disabled) {
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  border-color: transparent;
}

/* ===============================
   REDUCED MOTION
================================= */
@media (prefers-reduced-motion: reduce) {
  .emco-btn {
    transition: none;
  }
}

/* =========================================================
   FORMS
========================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-sm);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

/* Focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--emco-brand-primary);
  box-shadow: 0 0 0 3px rgba(6,112,86,0.2);
}

/* Error */
.form-error input,
.form-error textarea,
.form-error select {
  border-color: var(--color-error);
}

.form-error small {
  color: var(--color-error);
}

/* Success */
.form-success input,
.form-success textarea,
.form-success select {
  border-color: var(--color-success);
}

.form-success small {
  color: var(--color-success);
}
/* =========================================================
   CARDS
========================================================= */

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              opacity var(--transition-fast);
}
.card {
  backdrop-filter: blur(6px);
}
.card p{
 font-size: var(--font-size-md);
}
/* Hover */
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Active */
.card:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Disabled */
.card.disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* =========================================================
   GRID SYSTEM (Mobile First)
========================================================= */

/* Base Grid */
.grid {
  display: grid;
  width: 100%;
}

/* Column Utilities (Desktop Default) */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
/* Gap Utilities */
.gap-xs { gap: var(--space-xs, 8px); }
.gap-sm { gap: var(--space-sm, 12px); }
.gap-md { gap: var(--space-md, 18px); }
.gap-lg { gap: var(--space-lg, 28px); }

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

/* Large Tablets (= 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (= 768px) */
@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (= 576px) */
@media (max-width: 576px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   PRINT STYLES
========================================================= */

@media print {

  body {
    background: #fff;
    color: #000;
  }

  header,
  footer,
  nav,
  .btn,
  .cta-band {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
/**/
/* =========================================================
   TOASTS
========================================================= */

 
/* =========================================================
   MODAL
=========================================================  */

/* =========================================================
   TABLES
========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table th,
.table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-surface);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.table tr:hover {
  background: var(--overlay-light);
}

/* Compact */
.table.compact th,
.table.compact td {
  padding: var(--space-xs);
}
/* =========================================================
   BADGES
========================================================= */

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
 background: rgba(1, 101, 105,0.55);
   color: var(--neutral-50);
}

.badge-success {
  background:var(--emco-brand-sec);
  color: var(--color-text);
}

.badge-error {
  background: rgba(226,58,51,0.15);
  color: var(--color-error);
}

.badge-warning,.badge-orange {
  background: rgba(239,134,56,0.15);
  color: var(--color-warning);
}
:root[data-theme="dark"] .badge-success {
  background: rgba(0,168,107,0.15);
  color: var(--color-text-muted);
}
/**/
/* =========================================================
   TABS
========================================================= */

.tabs {
  width: 100%;
}

/* Tab Buttons */
.tab-list {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.tab {
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  cursor: pointer;

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);

  position: relative;
  transition: color var(--transition-fast);
}

.tab:hover {
  color: var(--emco-brand-primary);
}

.tab.active {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

/* Active underline */
.tab.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--emco-brand-primary);
}

/* Panels */
.tab-panels {
  padding-top: var(--space-md);
}

.tab-panel {
  display: none;
  animation: fade-in 200ms ease-in;
}

.tab-panel.active {
  display: block;
}

/* Motion */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   ACCORDION
========================================================= */

.accordion {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--color-border);
}

.accordion-header {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-card);
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-align: left;
}

.accordion-header:hover {
  background: var(--overlay-light);
}

/* Icon */
.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

/* Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--color-surface);
  transition: max-height var(--transition-base),
              padding var(--transition-base);

  padding: 0 var(--space-md);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: var(--space-sm) var(--space-md);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
/**/
/* =========================
   FAQ + SIDEBAR SECTION
========================= */

.emco-sec {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 992px) {
  .emco-sec {
    grid-template-columns: minmax(0, 1fr) 340px; 
  }
}

/* =========================
   MAIN CONTENT
========================= */

.emco-sec article {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.emco-sec article h2 {
  margin-top: var(--space-lg);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.emco-sec article > p {
  color: var(--color-text-muted);
}

/* ================================
   FAQ
================================ */

.faq-item {
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--space-sm);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition-base),
              box-shadow var(--transition-base);
}

.faq-item:hover {
  background: var(--overlay-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  color: var(--emco-brand-primary);
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  margin-top: var(--space-sm);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn var(--transition-fast);

}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   SIDEBAR
========================= */

.emco-sec aside {
  display: grid;
  gap: var(--space-lg);
}
.emco-sec .card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.card p.text-center {
  font-weight: var(--font-weight-semibold);
}

/* =========================
   FORM ELEMENTS (TOKEN-DRIVEN)
========================= */

form {
  width: 100%;
}

/* Labels */
form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}

/* Inputs / Select / Textarea */
form input,
form select,
form textarea {
  width: 95%;
    padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-family: inherit;
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

/* Placeholder */
form input::placeholder,
form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Focus State */
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--emco-brand-primary);
  box-shadow: 0 0 0 2px rgba(89, 255, 214, 0.25);
  background: var(--color-surface);
}

/* Disabled */
form input:disabled,
form select:disabled,
form textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error State (JS / Server) */
form .is-error,
form input[aria-invalid="true"] {
  border-color: var(--color-error);
}

form .error-text {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-error);
}

/* Helper / Hint Text */
form .helper-text {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 480px) {
  form label {
    font-size: 11px;
  }

  form input,
  form select,
  form textarea {
    font-size: 14px; /* iOS zoom prevention */
    padding: 0.85rem 1rem;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}
/* =========================
   ACCESSIBILITY
========================= */

form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
  outline: none;
}
/* =========================================================
   SIDEBAR BLOG IMAGE — OVERLAY DATE
========================================================= */
.sidebar-title {
	font-size: var(--font-size-md);
}
/* =========================================================
   SIDEBAR BLOG TITLE
========================================================= */

.sidebar-blog-title {
  margin: 0.6rem 0 0.25rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Link styling */
.sidebar-blog-title a {
  color: var(--color-text);
  text-decoration: none;
  display: inline;
  background-image: linear-gradient(
    transparent 60%,
    rgba( var(--emco-brand-primary-rgb), 0.18 )
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition:
    color var(--transition-fast),
    background-size 260ms ease;
}

/* Hover / focus */
.sidebar-blog-title a:hover,
.sidebar-blog-title a:focus-visible {
  color: var(--emco-brand-primary);
  background-size: 100% 100%;
}

/* Clamp to 2 lines (clean cards) */
@supports (-webkit-line-clamp: 2) {
  .sidebar-blog-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* Subtle polish on card hover */
.sidebar-blog-item:hover .sidebar-blog-title a {
  color: var(--emco-brand-primary);
}

.sidebar-blog-img {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Image */
.sidebar-blog-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast),
              opacity var(--transition-fast);
}

/* Gradient overlay */
.sidebar-blog-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* Hover polish */
.sidebar-blog-item:hover .sidebar-blog-img img {
  transform: scale(1.03);
  opacity: 0.96;
}

/* =========================================================
   DATE BADGE ON IMAGE
========================================================= */

.sidebar-blog-date {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 2;

  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;

  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* =========================================================
   CONTENT SPACING ADJUSTMENT
========================================================= */

.sidebar-blog-content {
  margin-top: 0.35rem;
}

/* Hide duplicate date text below (since it’s on image now) */
.sidebar-blog-content > .sidebar-blog-date {
  display: none;
}

/* =========================================================
   MOBILE TUNING
========================================================= */

@media (max-width: 640px) {
  .sidebar-blog-img img {
    aspect-ratio: 4 / 3;
  }

  .sidebar-blog-date {
    font-size: 0.7rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }
}


/* =========================
   MOBILE TUNING
========================= */

@media (max-width: 991px) {

  .emco-sec {
    grid-template-columns: 1fr;
  }

  .emco-sec article { order: 1; }
  .emco-sec aside   { order: 2; }
}

/* ===============================================
   EMCO TABLE (Responsive)
================================================= */

.emco-table .table-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.emco-table table {
  width: 100%;
  border-collapse: collapse;
}

.emco-table thead {
  background: var(--color-card);
}

.emco-table th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  color: var(--emco-brand-primary);
  border-bottom: 1px solid var(--color-border);
}

.emco-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.emco-table tbody tr:hover {
  background: var(--overlay-light);
}

.emco-table td.actions {
  text-align: right;
}

.emco-table .btn {
  padding: 0.25rem 0.59rem;
  border-radius: var(--radius-pill);
  background: var(--emco-brand-primary);
  color: #fff;
  border: none;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-size:095rem;
}

.emco-table .btn:hover {
  filter: brightness(1.1);
}

/* =========================
   MOBILE TABLE ? CARDS
========================= */

@media (max-width: 720px) {
  .emco-table table,
  .emco-table thead,
  .emco-table tbody,
  .emco-table tr,
  .emco-table td {
    display: block;
  }

  .emco-table thead {
    display: none;
  }

  .emco-table tbody tr {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
  }

  .emco-table tbody tr::before {
    content: attr(data-service);
    display: block;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
  }

  .emco-table td {
    display: none;
  }

  .emco-table td:nth-child(2),
  .emco-table td:nth-child(3),
  .emco-table td:nth-child(4) {
    display: block;
    font-weight: var(--font-weight-medium);
  }
}
/**/
 .p-type { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.intro-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.intro-feats li {
  position: relative;
  padding: 4px 0 8px 28px; /* space for tick */
  font-size:var(--fornt-size-sm);
  color: #333;
}

/* Tick icon */
.intro-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Bottom dotted line */
.intro-feats li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background-image: radial-gradient(#bbb 1px, transparent 1px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}
li.dim { opacity: 0.45; }
.price svg {
  vertical-align: middle;
  margin-right: 4px;
  color: #111;
}
/* ================================
   Feature List
   Modes:
   - default / .auto   ? 2-col desktop, 1-col mobile
   - .single           ? always single column
   - .double           ? always two columns
================================= */
/* Base */
.feature-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  gap: 8px 28px;

  /* Local tokens */
  --icon-size: 1.2rem;
  --icon-top: 0.25rem;
}

/* List Item */
.feature-list li {
  position: relative;
  padding-left: calc(var(--icon-size) + 0.8rem);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text);
}

/* Dark / inverse sections */
body.dark .feature-list li {
  color: var(--color-text);
}

/* ===============================
   Column Behaviour
================================= */

/* Default / auto ? 2 columns desktop */
.feature-list:not(.single):not(.double) {
  grid-template-columns: repeat(2, 1fr);
}

/* Forced single */
.feature-list.single {
  grid-template-columns: 1fr !important;
}

/* Forced double */
.feature-list.double {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* ===============================
   Icon (Inline SVG)
================================= */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--icon-top);
  width: var(--icon-size);
  height: var(--icon-size);

  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='11' fill='%23e9f8f0' stroke='%23067056' stroke-width='1.5'/>\
<path d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%23067056' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") no-repeat center center;

  background-size: contain;
  transition: transform .25s var(--ease-standard), filter .25s var(--ease-standard);
}

/* Dark mode icon tuning */
body.dark .feature-list li::before {
  filter: brightness(1.15);
}

/* Hover */
.feature-list li:hover::before {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ===============================
   Responsive
================================= */
@media (max-width: 600px) {

  /* Auto collapses */
  .feature-list.auto,
  .feature-list:not(.single):not(.double) {
    grid-template-columns: 1fr;
  }

  .feature-list {
    gap: 6px 12px;
  }

  .feature-list li {
    font-size: 0.94rem;
    line-height: 1.45;
    padding-left: calc(var(--icon-size) + 0.6rem);
  }

  .feature-list li::before {
    width: 1.05rem;
    height: 1.05rem;
    top: 0.2rem;
  }
}
/**/
/* ================================
   SERVICE CARD (EMCO v1.2)
================================ */
.service-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  contain: layout paint; 
}

.service-card p {
  max-width: 65ch;
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}

/* Hover lift (pointer devices only) */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

/* ================================
   IMAGE
================================ */
.service-card-image { 
background-color: var(--neutral-300);
opacity: 95%;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ================================
   CONTENT
================================ */

.service-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ================================
   META / TAG
================================ */

.service-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--emco-brand-primary);
}

/* ================================
   TITLE
================================ */

.service-title h3 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.25;
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--color-text);
}
/* ================================
   DESCRIPTION
================================ */

.service-desc {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ================================
   SUBCATEGORY LIST
================================ */
.service-subcat-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  display: grid;
  gap: 0.5rem;
}

.service-subcat-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
}

.service-subcat-list .list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--emco-brand-primary);
}

.service-subcat-list .subcat-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size:var(--font-size-md);
  font-weight:var(--font-weight-semibold);
}

.service-subcat-list .subcat-link:hover {
  color: var(--emco-brand-accent);
}

/* ================================
   CTA LINK (ARROW)
================================ */

.service-link {
  margin-top: auto;
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--emco-brand-primary);
  color: var(--color-text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}

.service-link:hover {
  background: var(--emco-brand-accent);
  transform: translateX(4px);
  
}

.service-link .arrow-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ================================
   "VIEW ALL" LINK
================================ */

.view-all-subcats {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--emco-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.view-all-subcats:hover {
  color: var(--emco-brand-accent);
}

/* ================================
   RESPONSIVE
================================ */

@media (min-width: 992px) {
  .service-card {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .service-card-content {
    padding: var(--space-xl);
  }
}

@media (max-width: 600px) {
  .service-desc {
    font-size: 0.95rem;
  }
}

/* =========================================================
   CTA BAND (HIGH-CONVERSION STRIP)
   Depends on: EMCO Core Tokens + Button System
========================================================= */

.cta-band {
  background: var(--gradient-spectrum);
  color: var(--color-text-inverse);
  padding: var(--space-xl) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* =========================================================
   CTA CONTENT
========================================================= */

.cta-content {
  max-width: 640px;
}

.cta-content h2 {
   
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  margin: 0 0 var(--space-xs);
  color: var(--color-text-inverse);
}

.cta-content p {
  margin: 0;
  font-size: var(--font-size-md);
  opacity: 0.9;
}

/* =========================================================
   CTA BUTTON OVERRIDE (CONTEXTUAL)
========================================================= */

.cta-band .btn-primary {
  background: var(--color-text-inverse);
  color: var(--emco-brand-primary);
  font-weight: var(--font-weight-semibold);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  white-space: nowrap;

  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              color var(--transition-fast);
}

.cta-band .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--neutral-50);
}

/* =========================================================
   RESPONSIVE (STACK ON MOBILE)
========================================================= */

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-band .btn-primary {
    margin-top: var(--space-md);
  }
}


/* =========================================================
   RESPONSIVE SAFETY
========================================================= */

@media (max-width: 768px) { 
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/**/ 