/*!
Theme Name: Electromed
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: electromed
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Electromed is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

/*
 * Electromed Solutions — Main Stylesheet
 * Primary Brand Color: #06397D
 * ============================================================
 */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --em-primary:        #06397D;
    --em-primary-dark:   #042d63;
    --em-primary-light:  #0a52b3;
    --em-accent:         #E8500A;
    --em-accent-dark:    #c43f06;
    --em-accent-light:   #ff6b2b;
    --em-white:          #ffffff;
    --em-off-white:      #f5f7fc;
    --em-light-gray:     #eef1f8;
    --em-mid-gray:       #9aa5b8;
    --em-text:           #1a2340;
    --em-text-muted:     #5a6478;
    --em-border:         #dde3f0;
    --em-shadow-sm:      0 2px 12px rgba(6,57,125,0.08);
    --em-shadow-md:      0 8px 32px rgba(6,57,125,0.12);
    --em-shadow-lg:      0 20px 60px rgba(6,57,125,0.18);
    --em-radius-sm:      6px;
    --em-radius-md:      12px;
    --em-radius-lg:      20px;
    --em-radius-xl:      32px;
    --em-transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --em-font:           'Outfit', sans-serif;
    --em-font-display:   'DM Serif Display', serif;
    --container-max:     1240px;
    --container-pad:     clamp(1rem, 4vw, 2rem);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--em-font);
    color: var(--em-text);
    background: var(--em-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--em-transition); }
ul { list-style: none; }
button { font-family: var(--em-font); cursor: pointer; border: none; background: none; }

/* ============================================================
   CONTAINER
============================================================ */
.em-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ============================================================
   BUTTONS
============================================================ */
.em-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--em-transition);
    white-space: nowrap;
}
.em-btn-lg { padding: 16px 36px; font-size: 1rem; }

.em-btn-primary {
    background: var(--em-primary);
    color: var(--em-white);
    box-shadow: 0 4px 20px rgba(6,57,125,0.3);
}
.em-btn-primary:hover {
    background: var(--em-primary-dark);
    box-shadow: 0 6px 28px rgba(6,57,125,0.4);
    transform: translateY(-2px);
    color: var(--em-white);
}

.em-btn-accent {
    background: var(--em-accent);
    color: var(--em-white);
    box-shadow: 0 4px 20px rgba(232,80,10,0.35);
}
.em-btn-accent:hover {
    background: var(--em-accent-dark);
    box-shadow: 0 6px 28px rgba(232,80,10,0.45);
    transform: translateY(-2px);
    color: var(--em-white);
}

.em-btn-outline-white {
    background: transparent;
    color: var(--em-white);
    border: 2px solid rgba(255,255,255,0.6);
}
.em-btn-outline-white:hover {
    background: var(--em-white);
    color: var(--em-primary);
    border-color: var(--em-white);
    transform: translateY(-2px);
}

/* ============================================================
   SECTION HELPERS
============================================================ */
.em-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6,57,125,0.08);
    color: var(--em-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(6,57,125,0.15);
    margin-bottom: 14px;
}
.em-badge-white {
    background: rgba(255,255,255,0.15);
    color: var(--em-white);
    border-color: rgba(255,255,255,0.3);
}

.em-section-title {
    font-family: var(--em-font);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--em-text);
    margin-bottom: 16px;
}
.em-section-title span { color: var(--em-primary); }
.em-section-title.em-white { color: var(--em-white); }
.em-section-title.em-white span { color: var(--em-accent-light); }

.em-section-subtitle {
    font-size: 1rem;
    color: var(--em-text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.em-section-subtitle.em-white { color: rgba(255,255,255,0.8); }

.em-section-header { margin-bottom: 48px; }
.em-section-header.em-center { text-align: center; }
.em-section-header.em-center .em-section-subtitle { margin: 0 auto 24px; }
.em-section-header.em-center .em-section-badge { margin: 0 auto 14px; display: block; width: fit-content; }

/* ============================================================
   TOP BAR
============================================================ */
.em-topbar {
    background: var(--em-primary-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
}
.em-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.em-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.em-topbar-left a,
.em-topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    transition: color 0.2s;
}
.em-topbar-left a:hover { color: var(--em-white); }
.em-topbar-left i { color: var(--em-accent); font-size: 0.75rem; }

.em-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.em-topbar-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--em-white);
    font-size: 0.75rem;
    transition: var(--em-transition);
}
.em-topbar-right a:hover {
    background: var(--em-accent);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER
============================================================ */
.em-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--em-white);
    box-shadow: var(--em-shadow-sm);
    transition: box-shadow 0.3s;
}
.em-header.scrolled { box-shadow: var(--em-shadow-md); }

.em-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

/* Logo */
.em-logo a,
.em-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.em-logo img { height: auto; width: 88px; }
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.logo-name {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--em-text);
    line-height: 1.2;
}
.logo-name strong {
    color: var(--em-primary);
    font-weight: 700;
}
.logo-name em {
    display: block;
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--em-accent);
    font-weight: 600;
}

/* Navigation */
.em-nav { flex: 1; display: flex; justify-content: center; }

.em-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.em-menu li { position: relative; }

.em-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--em-text);
    border-radius: var(--em-radius-sm);
    transition: var(--em-transition);
    white-space: nowrap;
}
.em-menu > li > a i { font-size: 0.7rem; transition: transform 0.3s; }
.em-menu > li:hover > a i { transform: rotate(180deg); }

.em-menu > li > a:hover,
.em-menu > li.current-menu-item > a {
    color: var(--em-primary);
    background: rgba(6,57,125,0.06);
}
.em-menu > li.current-menu-item > a { font-weight: 600; }

/* Nav CTA item */
.em-menu > li.em-nav-cta > a {
    background: var(--em-primary);
    color: var(--em-white);
    padding: 8px 20px;
    border-radius: 50px;
}
.em-menu > li.em-nav-cta > a:hover {
    background: var(--em-primary-dark);
    color: var(--em-white);
}

/* Dropdown */
.em-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--em-white);
    border-radius: var(--em-radius-md);
    box-shadow: var(--em-shadow-lg);
    border: 1px solid var(--em-border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    list-style: none;
    z-index: 100;
}
.em-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.em-menu .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--em-text-muted);
    border-radius: var(--em-radius-sm);
    transition: var(--em-transition);
}
.em-menu .sub-menu li a:hover {
    background: var(--em-off-white);
    color: var(--em-primary);
    padding-left: 18px;
}
.em-menu .sub-menu li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--em-primary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.em-menu .sub-menu li a:hover::before { opacity: 1; }

/* Header Actions */
.em-header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.em-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--em-radius-sm);
    border: 1px solid var(--em-border);
    align-items: center;
    justify-content: center;
}
.em-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--em-text);
    border-radius: 2px;
    transition: var(--em-transition);
}
.em-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.em-hamburger.open span:nth-child(2) { opacity: 0; }
.em-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.em-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,25,60,0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}
.em-mobile-overlay.active { display: block; }

/* ============================================================
   HERO SECTION
============================================================ */
.em-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.em-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.em-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.em-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(4,45,99,0.70) 0%,
        rgba(6,57,125,0.52) 55%,
        rgba(6,57,125,0.15) 100%
    );
}

.em-hero .em-container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }

.em-hero-content { max-width: 640px; }

.em-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--em-white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.7s ease both;
}
.em-hero-badge i { color: var(--em-accent-light); }

.em-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--em-white);
    margin-bottom: 20px;
    animation: fadeInUp 0.7s 0.15s ease both;
}
.em-hero-title span { color: var(--em-accent-light); }

.em-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s 0.25s ease both;
}

.em-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.7s 0.35s ease both;
}

.em-hero-quick-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s 0.45s ease both;
}
.em-hero-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
}
.em-hero-info-item i {
    color: var(--em-accent-light);
    font-size: 1rem;
}

/* Scroll indicator */
.em-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1s 0.8s ease both;
}
.em-scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--em-accent);
    animation: scrollBounce 2s infinite;
}

/* ============================================================
   STATS SECTION
============================================================ */
.em-stats {
    padding: 80px 0;
    background: var(--em-white);
    position: relative;
    overflow: hidden;
}
.em-stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
}

.em-stats-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

.em-stats-visual { position: relative; width: 200px; height: 200px; flex-shrink: 0; }

.em-stats-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 16px 48px rgba(6,57,125,0.3);
}
.em-stats-circle-inner { text-align: center; color: white; }
.em-years-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}
.em-years-number sup { font-size: 1.2rem; }
.em-years-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
}
.em-stats-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(6,57,125,0.12);
}
.em-stats-ring-1 { width: 240px; height: 240px; top: -20px; left: -20px; }
.em-stats-ring-2 { width: 280px; height: 280px; top: -40px; left: -40px; border-style: dashed; }

.em-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.em-stat-card {
    background: var(--em-off-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-lg);
    padding: 28px 24px;
    transition: var(--em-transition);
    position: relative;
    overflow: hidden;
}
.em-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.em-stat-card:hover { box-shadow: var(--em-shadow-md); transform: translateY(-4px); border-color: rgba(6,57,125,0.2); }
.em-stat-card:hover::after { transform: scaleX(1); }

.em-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(6,57,125,0.08);
    border-radius: var(--em-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--em-primary);
    font-size: 1rem;
    margin-bottom: 14px;
}
.em-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--em-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.em-stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--em-text-muted);
    letter-spacing: 0.03em;
}

/* ============================================================
   ABOUT STRIP
============================================================ */
.em-about-strip {
    padding: 80px 0;
    background: var(--em-off-white);
}
.em-about-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.em-about-features {
    list-style: none;
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.em-about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--em-text-muted);
    font-weight: 500;
}
.em-about-features li i { color: var(--em-primary); font-size: 1rem; flex-shrink: 0; }

.em-about-img-wrap {
    position: relative;
    border-radius: var(--em-radius-xl);
    overflow: hidden;
    box-shadow: var(--em-shadow-lg);
}
.em-about-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.em-about-exp-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--em-white);
    border-radius: var(--em-radius-md);
    padding: 16px 20px;
    box-shadow: var(--em-shadow-md);
    text-align: center;
}
.em-about-exp-badge strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--em-primary);
    line-height: 1;
}
.em-about-exp-badge span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--em-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   BRANDS
============================================================ */
.em-brands { padding: 72px 0; background: var(--em-white); overflow: hidden; }

.em-brands-track-wrap {
    overflow: hidden;
    position: relative;
}
.em-brands-track-wrap::before,
.em-brands-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}
.em-brands-track-wrap::before { left: 0; background: linear-gradient(to right, white, transparent); }
.em-brands-track-wrap::after  { right: 0; background: linear-gradient(to left, white, transparent); }

.em-brands-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: brandScroll 30s linear infinite;
}
.em-brands-track:hover { animation-play-state: paused; }

.em-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 24px;
    transition: var(--em-transition);
    flex-shrink: 0;
}
.em-brand-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.em-brand-item img { max-height: 52px; width: auto; object-fit: contain; }

/* ============================================================
   PRODUCTS
============================================================ */
.em-products {
    position: relative;
    padding: 0 0 80px;
    background: var(--em-off-white);
}
.em-products-bg {
    background: linear-gradient(135deg, var(--em-primary-dark) 0%, var(--em-primary) 60%, var(--em-primary-light) 100%);
    padding: 64px 0 120px;
    margin-bottom: -60px;
    position: relative;
    overflow: hidden;
}
.em-products-bg::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.em-products-bg .em-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.em-products-bg .em-section-header > div { flex: 1; }

.em-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.em-product-card {
    background: var(--em-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-lg);
    padding: 32px 28px;
    transition: var(--em-transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s calc(var(--card-delay, 0s) + 0.1s) both;
}
.em-product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--em-primary), var(--em-accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.em-product-card:hover {
    box-shadow: var(--em-shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(6,57,125,0.15);
}
.em-product-card:hover::before { transform: scaleY(1); }

.em-product-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(6,57,125,0.08), rgba(6,57,125,0.14));
    border-radius: var(--em-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--em-primary);
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: var(--em-transition);
}
.em-product-card:hover .em-product-card-icon {
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    color: white;
    transform: scale(1.05);
}
.em-product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--em-text);
    margin-bottom: 10px;
}
.em-product-card-desc {
    font-size: 0.875rem;
    color: var(--em-text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}
.em-product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--em-primary);
    transition: var(--em-transition);
}
.em-product-card-link i { font-size: 0.75rem; transition: transform 0.2s; }
.em-product-card-link:hover { color: var(--em-accent); }
.em-product-card-link:hover i { transform: translateX(4px); }

/* ============================================================
   SERVICES
============================================================ */
.em-services { padding: 80px 0; background: var(--em-white); }
.em-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.em-service-card {
    background: var(--em-off-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--em-transition);
}
.em-service-card:hover {
    box-shadow: var(--em-shadow-md);
    transform: translateY(-4px);
    background: var(--em-white);
}
.em-service-icon-wrap {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    border-radius: var(--em-radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin: 0 auto 18px;
    transition: var(--em-transition);
    box-shadow: 0 8px 20px rgba(6,57,125,0.25);
}
.em-service-card:hover .em-service-icon-wrap {
    background: linear-gradient(135deg, var(--em-accent), var(--em-accent-dark));
    box-shadow: 0 8px 20px rgba(232,80,10,0.3);
}
.em-service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.em-service-card p { font-size: 0.85rem; color: var(--em-text-muted); line-height: 1.65; margin-bottom: 16px; }
.em-service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--em-primary);
    transition: var(--em-transition);
}
.em-service-link i { font-size: 0.72rem; transition: transform 0.2s; }
.em-service-link:hover { color: var(--em-accent); }
.em-service-link:hover i { transform: translateX(3px); }

/* ============================================================
   CLIENTS
============================================================ */
.em-clients { padding: 80px 0; background: var(--em-off-white); }
.em-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.em-client-item {
    background: var(--em-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-md);
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: var(--em-transition);
}
.em-client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: var(--em-shadow-md);
    border-color: rgba(6,57,125,0.2);
    transform: translateY(-2px);
}
.em-client-item img { max-height: 50px; width: auto; object-fit: contain; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.em-testimonials { padding: 80px 0; background: var(--em-white); }
.em-testimonials-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.em-testimonials-left { padding-right: 16px; }

.em-testimonial-slider { margin: 28px 0 20px; position: relative; min-height: 200px; }
.em-testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}
.em-testimonial-slide.active { display: block; }

.em-testimonial-quote-icon {
    font-size: 2rem;
    color: rgba(6,57,125,0.12);
    margin-bottom: 12px;
}
.em-testimonial-text {
    font-size: 0.95rem;
    color: var(--em-text-muted);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    border-left: 3px solid var(--em-primary);
    padding-left: 18px;
}
.em-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.em-testimonial-author img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--em-border);
}
.em-testimonial-author strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--em-text);
}
.em-testimonial-author span {
    font-size: 0.78rem;
    color: var(--em-text-muted);
}

.em-testimonial-dots { display: flex; gap: 8px; }
.em-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--em-border);
    transition: var(--em-transition);
    cursor: pointer;
}
.em-dot.active {
    background: var(--em-primary);
    width: 28px;
    border-radius: 4px;
}

/* Video */
.em-testimonials-right {}
.em-video-wrap {
    position: relative;
    border-radius: var(--em-radius-xl);
    overflow: hidden;
    box-shadow: var(--em-shadow-lg);
    aspect-ratio: 16/10;
}
.em-video-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.em-video-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,57,125,0.7), rgba(6,57,125,0.1));
    z-index: 1;
}
.em-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    width: 72px; height: 72px;
    background: var(--em-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--em-primary);
    font-size: 1.3rem;
    padding-left: 4px;
    box-shadow: 0 0 0 16px rgba(255,255,255,0.15);
    transition: var(--em-transition);
}
.em-play-btn:hover {
    background: var(--em-accent);
    color: white;
    box-shadow: 0 0 0 20px rgba(232,80,10,0.15);
    transform: translate(-50%,-50%) scale(1.05);
}
.em-video-caption {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.em-video-caption i { color: #FF0000; }

/* ============================================================
   CTA BANNER
============================================================ */
.em-cta-banner {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}
.em-cta-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--em-primary-dark) 0%, var(--em-primary) 50%, var(--em-primary-light) 100%);
}
.em-cta-banner-bg::after {
    content: '';
    position: absolute;
    right: -80px; bottom: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.em-cta-banner .em-container { position: relative; z-index: 1; }
.em-cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.em-cta-banner-text h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}
.em-cta-banner-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}
.em-cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   NEWSLETTER STRIP
============================================================ */
.em-newsletter-strip {
    background: var(--em-off-white);
    border-top: 1px solid var(--em-border);
    padding: 40px 0;
}
.em-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.em-newsletter-text {
    display: flex;
    align-items: center;
    gap: 16px;
}
.em-newsletter-icon {
    font-size: 2rem;
    color: var(--em-primary);
    flex-shrink: 0;
}
.em-newsletter-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--em-text);
    margin-bottom: 4px;
}
.em-newsletter-text p {
    font-size: 0.85rem;
    color: var(--em-text-muted);
}
.em-newsletter-form { flex: 1; max-width: 480px; }
.em-newsletter-inputs {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--em-border);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    transition: border-color 0.3s;
}
.em-newsletter-inputs:focus-within { border-color: var(--em-primary); }
.em-newsletter-inputs input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-family: var(--em-font);
    font-size: 0.88rem;
    background: transparent;
    color: var(--em-text);
}
.em-newsletter-inputs input::placeholder { color: var(--em-mid-gray); }
.em-newsletter-inputs .em-btn {
    border-radius: 50px;
    margin: 4px;
}

/* ============================================================
   FOOTER
============================================================ */
.em-footer { background: var(--em-primary-dark); }
.em-footer-top { padding: 72px 0 48px; }

.em-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer Logo */
.em-footer-brand .em-footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}
.em-footer-brand .logo-icon {
    background: rgba(255,255,255,0.12);
    color: white;
}
.em-footer-brand .logo-name {
    color: white;
}
.em-footer-brand .logo-name strong { color: var(--em-accent-light); }
.em-footer-brand .logo-name em { color: rgba(255,255,255,0.5); }

.em-footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 24px;
}

.em-footer-socials {
    display: flex;
    gap: 10px;
}
.em-footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    transition: var(--em-transition);
}
.em-footer-socials a:hover {
    background: var(--em-accent);
    border-color: var(--em-accent);
    color: white;
    transform: translateY(-2px);
}

/* Footer Headings */
.em-footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.em-footer-heading span::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 36px; height: 2px;
    background: var(--em-accent);
}

/* Footer Links */
.em-footer-links { display: flex; flex-direction: column; gap: 6px; }
.em-footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    transition: var(--em-transition);
}
.em-footer-links a i { font-size: 0.65rem; color: var(--em-accent); opacity: 0.7; }
.em-footer-links a:hover { color: white; padding-left: 4px; }
.em-footer-links a:hover i { opacity: 1; }

/* Footer Contact */
.em-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.em-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
}
.em-footer-contact li i {
    color: var(--em-accent);
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
}
.em-footer-contact a { color: rgba(255,255,255,0.6); }
.em-footer-contact a:hover { color: white; }

/* Footer Bottom */
.em-footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.em-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.em-copyright, .em-credit {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.em-copyright a { color: rgba(255,255,255,0.6); }
.em-copyright a:hover { color: white; }

.em-footer-legal {
    display: flex;
    gap: 20px;
    list-style: none;
}
.em-footer-legal a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.em-footer-legal a:hover { color: white; }

/* ============================================================
   BACK TO TOP
============================================================ */
.em-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--em-primary);
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(6,57,125,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--em-transition);
}
.em-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.em-back-to-top:hover {
    background: var(--em-accent);
    box-shadow: 0 6px 20px rgba(232,80,10,0.4);
    transform: translateY(-3px);
}

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
@keyframes brandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .em-products-grid { grid-template-columns: repeat(2, 1fr); }
    .em-services-grid { grid-template-columns: repeat(2, 1fr); }
    .em-footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
    .em-hamburger { display: flex; }

    .em-nav {
        position: fixed;
        top: 0; right: -320px;
        width: 300px; height: 100vh;
        background: var(--em-white);
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 32px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .em-nav.open { right: 0; }

    .em-menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .em-menu > li > a { padding: 12px 14px; font-size: 0.95rem; }
    .em-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--em-off-white);
        border-radius: var(--em-radius-md);
        padding: 8px;
        margin-top: 4px;
        display: none;
    }
    .em-menu li.open > .sub-menu { display: block; }

    .em-stats-wrapper { grid-template-columns: 1fr; }
    .em-stats-visual { margin: 0 auto; }
    .em-stats-grid { grid-template-columns: repeat(2,1fr); }

    .em-about-strip-inner { grid-template-columns: 1fr; }
    .em-about-strip-image { order: -1; }

    .em-testimonials-inner { grid-template-columns: 1fr; }
    .em-cta-banner-inner { flex-direction: column; text-align: center; }
    .em-cta-banner-actions { justify-content: center; }
    .em-clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .em-topbar-left span:last-child { display: none; }
    .em-hero-title { font-size: 2rem; }
    .em-hero-quick-info { flex-direction: column; gap: 12px; }
    .em-hero-actions { flex-direction: column; align-items: flex-start; }
    .em-products-grid { grid-template-columns: 1fr; }
    .em-services-grid { grid-template-columns: 1fr; }
    .em-footer-grid   { grid-template-columns: 1fr; }
    .em-newsletter-inner { flex-direction: column; }
    .em-newsletter-form { max-width: 100%; width: 100%; }
    .em-footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
    .em-stats-grid { grid-template-columns: 1fr 1fr; }
}