/* ==========================================================================
   CONSULTING GROUP OF THE AMERICAS — SITE THEME
   Colors: Charcoal (#1c2421), Emerald Green (#10b981), White (#ffffff)
   ========================================================================== */

:root {
    --color-charcoal: #1c2421;
    --color-charcoal-light: #2a3530;
    --color-emerald: #10b981;
    --color-emerald-dark: #059669;
    --color-emerald-light: rgba(16, 185, 129, 0.15);
    --color-white: #ffffff;
    --color-light-gray: #f8fafc;
    --color-gray: #94a3b8;
    --color-text: #334155;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-emerald: 0 10px 30px rgba(16, 185, 129, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-charcoal {
    background-color: var(--color-charcoal);
}

.bg-light {
    background-color: var(--color-light-gray);
}

.bg-emerald {
    background-color: var(--color-emerald);
}

.text-emerald {
    color: var(--color-emerald) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-charcoal {
    color: var(--color-charcoal) !important;
}

.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-emerald);
    color: var(--color-white);
    box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
    background-color: var(--color-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.btn-outline:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-charcoal);
    color: var(--color-emerald);
}

.btn-dark:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-subtitle {
    display: inline-block;
    color: var(--color-emerald);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.section-desc {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--color-charcoal);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    height: 80px;
    transition: var(--transition);
}

.site-header.scrolled .header-container {
    height: 70px;
}

.brand-logo .logo-img {
    height: 45px;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-emerald);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-emerald);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-charcoal);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-emerald);
    padding: 10px 0;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--color-white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
    padding-left: 25px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 11px;
}

.hamburger-line:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.main-content {
    padding-top: 80px;
    /* Offset for header */
}

.hero-section {
    position: relative;
    background-color: var(--color-light-gray);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--color-emerald);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 15s infinite linear;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    padding-right: 30px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-emerald-light);
    color: var(--color-emerald-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

/* Hero 3D Visual */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.main-dashboard-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg);
    width: 80%;
    height: 350px;
    padding: 20px;
    transform-style: preserve-3d;
    animation: float-3d 6s ease-in-out infinite alternate;
}

.dashboard-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.chart-title {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.chart-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 30px;
}

.chart-value .trend {
    font-size: 1rem;
    color: var(--color-emerald);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
}

.bar-chart .bar {
    flex: 1;
    background: var(--color-gray);
    opacity: 0.2;
    border-radius: 4px 4px 0 0;
}

.bar-chart .bar.emerald {
    background: var(--color-emerald);
    opacity: 1;
    box-shadow: 0 0 15px var(--color-emerald);
}

.float-card-1,
.float-card-2 {
    position: absolute;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
}

.float-card-1 {
    top: 20%;
    right: -5%;
    transform: translateZ(50px);
    animation: floatY 4s ease-in-out infinite alternate;
}

.float-card-2 {
    bottom: 20%;
    left: -5%;
    transform: translateZ(80px);
    animation: floatY 5s ease-in-out infinite alternate-reverse;
}

.icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--color-emerald-light);
    color: var(--color-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text strong {
    display: block;
    color: var(--color-charcoal);
    font-size: 0.9rem;
}

.card-text span {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 20px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 3.5rem;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 0;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--color-emerald);
    font-weight: 700;
}

.stat-label {
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-emerald);
    transition: var(--transition-slow);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 5px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-emerald-light);
    color: var(--color-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-emerald);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-features {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '→';
    color: var(--color-emerald);
    font-weight: bold;
}

/* ==========================================================================
   ROI SECTION (INTERACTIVE GRAPHS)
   ========================================================================== */
.roi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    font-size: 1.1rem;
    color: var(--color-charcoal);
    margin-bottom: 15px;
    font-weight: 500;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-emerald);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 15px;
}

.interactive-graph-container {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.graph-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.graph-legend {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.legend-item .box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-item .box.gray {
    background: #e2e8f0;
}

.legend-item .box.emerald {
    background: var(--color-emerald);
}

.graph-area {
    display: flex;
    height: 250px;
    gap: 20px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-gray);
    text-align: right;
    width: 40px;
}

.bars-container {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    padding-bottom: 1px;
}

.bar-group {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100%;
    position: relative;
    width: 40px;
}

.graph-bar {
    width: 18px;
    border-radius: 2px 2px 0 0;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.graph-bar.gray {
    background: #e2e8f0;
}

.graph-bar.emerald {
    background: var(--color-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.graph-bar:hover {
    filter: brightness(1.1);
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-charcoal);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--color-charcoal) transparent transparent;
}

.graph-bar:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

.x-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--color-gray);
}

.animated-bar {
    transform-origin: bottom;
    animation: growUp 1.5s ease-out forwards;
}

@keyframes growUp {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

/* ==========================================================================
   INDUSTRIES TABS
   ========================================================================== */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.tab-btn:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald);
}

.tab-btn.active {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    color: var(--color-white);
    box-shadow: var(--shadow-emerald);
}

.tabs-content-wrapper {
    position: relative;
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.tab-img-wrap {
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.tab-text p {
    color: var(--color-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.tab-features {
    list-style: none;
}

.tab-features li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--color-charcoal);
}

.tab-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-emerald);
    font-weight: bold;
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-widget {
    padding: 40px;
    background: var(--color-charcoal-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.calc-group {
    margin-bottom: 25px;
}

.calc-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-white);
}

.calc-group span {
    color: var(--color-emerald);
    font-weight: 700;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-emerald);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.calc-results {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.result-box {
    flex: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.result-box.highlight {
    border: 1px solid var(--color-emerald);
    background: rgba(16, 185, 129, 0.05);
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.result-value {
    font-size: 1.8rem;
    margin: 0;
    color: var(--color-white);
}

.result-gain {
    display: block;
    font-size: 0.9rem;
    color: var(--color-emerald);
    margin-top: 5px;
    font-weight: 600;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    font-family: var(--font-serif);
    line-height: 1;
    margin-bottom: -10px;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-charcoal);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    color: var(--color-charcoal);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--color-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--color-emerald);
    color: white;
    border-color: var(--color-emerald);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot-btn.active {
    background: var(--color-emerald);
    transform: scale(1.3);
}

/* ==========================================================================
   REPORTS SECTION
   ========================================================================== */
.reports-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.report-features {
    margin-top: 30px;
}

.report-features li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--color-text);
}

.report-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-emerald);
    border-radius: 50%;
}

.report-features strong {
    color: var(--color-charcoal);
}

.mockup-window {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.mockup-header {
    background: #f1f5f9;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.mockup-url {
    background: white;
    flex: 1;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-gray);
}

.mockup-body {
    padding: 25px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.dash-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.dash-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.dash-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.dash-chart-area {
    height: 150px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.line-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 80px 0;
}

.cta-title {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */
.page-header {
    background-color: var(--color-charcoal);
    padding: 150px 0 80px;
    color: var(--color-white);
}

.page-title {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--color-gray);
}

.breadcrumbs a {
    color: var(--color-white);
}

.breadcrumbs a:hover {
    color: var(--color-emerald);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card p {
    margin: 0;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-form-panel {
    padding: 40px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-charcoal);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-light-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 4px;
}

.text-sm {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Form Popup */
.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.form-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    width: 90%;
    max-width: 400px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.form-popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: var(--color-white);
}

.legal-content-wrapper h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-charcoal);
}

.legal-content-wrapper p {
    margin-bottom: 20px;
    color: var(--color-text);
}

.legal-content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-gray);
    padding: 80px 0 20px;
    border-top: 5px solid var(--color-emerald);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-charcoal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-emerald);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-emerald);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--color-emerald);
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   LIVE CHAT & BACK TO TOP
   ========================================================================== */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-emerald);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-glow 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.live-chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--color-charcoal);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 200px;
    background: #f8fafc;
    overflow-y: auto;
}

.chat-msg {
    background: #e2e8f0;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.85rem;
    color: var(--color-charcoal);
    display: inline-block;
}

.chat-input {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 10px;
    background: white;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
}

.chat-input button {
    background: none;
    border: none;
    color: var(--color-emerald);
    cursor: pointer;
    font-size: 1.2rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-charcoal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-emerald);
    transform: translateY(-5px);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    33% {
        transform: translateY(-20px) translateX(20px);
    }

    66% {
        transform: translateY(20px) translateX(-20px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes float-3d {
    0% {
        transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg) translateY(0);
    }

    100% {
        transform: translate(-50%, -50%) rotateY(-5deg) rotateX(15deg) translateY(-20px);
    }
}

@keyframes floatY {
    0% {
        transform: translateZ(50px) translateY(0);
    }

    100% {
        transform: translateZ(50px) translateY(-15px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Hover generic */
.\33 d-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.\33 d-hover:hover {
    transform: translateY(-5px) scale(1.02) perspective(1000px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-container,
    .roi-container,
    .calculator-grid,
    .reports-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-charcoal);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: var(--transition);
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-emerald);
        padding-left: 15px;
        display: none;
        margin-top: 10px;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    /* Hide proposal btn on mobile to save space */

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tab-grid {
        grid-template-columns: 1fr;
    }

    .tab-img-wrap {
        min-height: 200px;
    }

    .calc-widget {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-panel {
        padding: 25px;
    }

    .legal-content-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item::after {
        display: none;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .calc-results {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}