/* ============================================================
   INTECOTECH - Main Stylesheet
   Industrial Energy Startup Design System
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors - Extracted from Logo */
    --color-primary: #FDD132;           /* Golden Yellow */
    --color-primary-dark: #E5BC2D;      /* Darker Yellow */
    --color-primary-light: #FFE066;     /* Lighter Yellow */
    
    --color-black: #000000;
    --color-dark: #161616;              /* Dark Background */
    --color-dark-medium: #1E1E1E;
    --color-dark-light: #2C2C2C;
    
    --color-gray-900: #1a1a1a;
    --color-gray-800: #333333;
    --color-gray-700: #4a4a4a;
    --color-gray-600: #666666;
    --color-gray-500: #888888;
    --color-gray-400: #aaaaaa;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;
    
    --color-white: #FFFFFF;
    
    /* Accent Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Emergency/24/7 */
    --color-emergency: #ef4444;
    
    /* Solar/Green */
    --color-solar: #22c55e;
    
    /* EV/Electric */
    --color-ev: #3b82f6;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(253, 209, 50, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Header Height */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
}

.highlight {
    color: var(--color-primary);
}

/* ==================== UTILITIES ==================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-20) 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--color-gray-400);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.section-dark .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.section-dark .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    border-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.2em;
}

.btn-service {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
    margin-top: auto;
}

.btn-service:hover {
    background: var(--color-dark);
    color: var(--color-primary);
    border-color: var(--color-dark);
}

.btn-emergency {
    background: var(--color-emergency);
    border-color: var(--color-emergency);
    color: var(--color-white);
    animation: pulse-emergency 2s infinite;
}

.btn-emergency:hover {
    background: #dc2626;
    border-color: #dc2626;
}

@keyframes pulse-emergency {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-4) var(--space-6);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: var(--text-sm);
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-2);
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height var(--transition-base);
}

.header.scrolled .nav {
    height: 70px;
}

.logo img {
    /* Increase logo size for greater brand presence */
    /* Further increase logo size for greater brand presence */
    height: 100px;
    width: auto;
    transition: height var(--transition-base);
}

.header.scrolled .logo img {
    /* Slightly reduce logo on scroll but keep it larger than before */
    height: 80px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.lang-btn {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-500);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--color-white);
}

.lang-btn.active {
    color: var(--color-primary);
}

.lang-divider {
    color: var(--color-gray-600);
}

.header-cta {
    padding: var(--space-2) var(--space-4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.9) 0%, rgba(44, 44, 44, 0.8) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    padding-top: var(--header-height);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    color: var(--color-white);
}

.hero-title span {
    display: block;
}

.hero-title .highlight {
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(253, 209, 50, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-gray-300);
    max-width: 700px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}

.hero-badges .badge i {
    color: var(--color-primary);
    font-size: var(--text-lg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: var(--text-2xl);
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== SERVICES SECTION ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-gray-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.service-icon i {
    font-size: var(--text-3xl);
    color: var(--color-dark);
}

.service-icon.emergency {
    background: linear-gradient(135deg, var(--color-emergency) 0%, #dc2626 100%);
}

.service-icon.emergency i {
    color: var(--color-white);
}

.service-icon.solar {
    background: linear-gradient(135deg, var(--color-solar) 0%, #16a34a 100%);
}

.service-icon.solar i {
    color: var(--color-white);
}

.service-icon.ev {
    background: linear-gradient(135deg, var(--color-ev) 0%, #2563eb 100%);
}

.service-icon.ev i {
    color: var(--color-white);
}

.service-icon.lighting {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
    flex-grow: 0;
}

.service-features {
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.service-features li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ==================== WHY US SECTION ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--color-dark-light);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--color-dark-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    background: rgba(253, 209, 50, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
}

.feature-icon i {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.feature-card:hover .feature-icon i {
    color: var(--color-dark);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.feature-card p {
    color: var(--color-gray-400);
    margin-bottom: 0;
}

/* ==================== PROCESS SECTION ==================== */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: var(--space-6);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-4);
}

.step-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.step-content p {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.step-icon {
    color: var(--color-primary);
    font-size: var(--text-3xl);
}

.process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
    font-size: var(--text-2xl);
    padding-top: var(--space-8);
}

.process-cta {
    text-align: center;
}

/* ==================== SERVICE AREAS SECTION ==================== */
.areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.areas-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8);
}

.map-region {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--color-dark-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-gray-600);
    transition: all var(--transition-base);
}

.map-region:hover,
.map-region.active {
    border-left-color: var(--color-primary);
    background: var(--color-dark-medium);
}

.map-region i {
    font-size: var(--text-2xl);
    color: var(--color-primary);
}

.map-region span {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.area-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-dark-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.area-card:hover {
    transform: translateX(10px);
    background: var(--color-dark-medium);
}

.area-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 209, 50, 0.1);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.area-icon i {
    font-size: var(--text-xl);
    color: var(--color-primary);
}

.area-info h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    color: var(--color-white);
}

.area-info p {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--space-2);
}

.area-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-2);
    background: var(--color-gray-700);
    border-radius: var(--radius-sm);
    color: var(--color-gray-300);
}

.area-tag.primary {
    background: var(--color-primary);
    color: var(--color-dark);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    margin-bottom: var(--space-4);
}

.testimonial-rating i {
    color: var(--color-primary);
    font-size: var(--text-lg);
}

.testimonial-text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
}

.author-avatar i {
    font-size: var(--text-3xl);
    color: var(--color-gray-400);
}

.author-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-base);
}

.author-info span {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.cert-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--color-dark-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-dark-medium);
    transition: all var(--transition-base);
}

.cert-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.cert-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    background: rgba(253, 209, 50, 0.1);
    border-radius: var(--radius-full);
}

.cert-icon i {
    font-size: var(--text-3xl);
    color: var(--color-primary);
}

.cert-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--color-white);
}

.cert-card p {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: 0;
}

/* ==================== FINAL CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

.cta-text {
    font-size: var(--text-lg);
    color: var(--color-dark);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.cta-section .btn-primary {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
}

.cta-section .btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-dark);
}

.cta-section .btn-outline {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.cta-section .btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.cta-contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-dark);
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-description {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-light);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: var(--space-2);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

.footer-contact i {
    width: 20px;
    color: var(--color-primary);
}

.footer-contact a {
    color: var(--color-gray-400);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-dark-light);
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ==================== FLOATING WHATSAPP ==================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: var(--text-3xl);
    color: var(--color-white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--color-dark);
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .areas-content {
        grid-template-columns: 1fr;
    }
    
    .areas-map {
        order: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-dark);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-connector {
        transform: rotate(90deg);
        padding: var(--space-2) 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: var(--text-3xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .btn-xl {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .whatsapp-float,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* === Custom additions for enhanced design === */

/* Social media section styles */
.social .section-header {
    text-align: center;
}
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.social-grid img {
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.social-grid img:hover {
    transform: scale(1.05);
}

/* AI assistant section */
.ai-assistant {
    text-align: center;
    background-color: #f5f5f5;
    padding: var(--space-8) 0;
}
.ai-assistant .section-title {
    margin-bottom: var(--space-4);
}
.ai-assistant .section-subtitle {
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.ai-assistant #open-chat {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    background-color: #f5af00;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.ai-assistant #open-chat:hover {
    background-color: #d99100;
}

/* Horizontal testimonials carousel */
.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
}
.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
}
.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}
.testimonials-grid::-webkit-scrollbar-track {
    background: transparent;
}
.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 80%;
    }
}

/* Overlay to introduce AI chat */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.chat-overlay-content {
    background-color: #ffffff;
    color: #333333;
    padding: 20px;
    max-width: 420px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#chat-overlay-ok {
    margin-top: 15px;
    background-color: #f5af00;
    color: #000000;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
#chat-overlay-ok:hover {
    background-color: #e0a400;
}

/* === Custom styles for the redesigned multi-page site === */

/* Social media grid styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}
.social-item img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AI assistant section */
.ai-assistant {
    padding: var(--space-8) 0;
    text-align: center;
}
.ai-assistant .section-title {
    margin-bottom: var(--space-4);
}
.ai-assistant .btn {
    margin-top: var(--space-4);
}

/* Hide long sections on index page to convert site to multi-page */
#index-page #services,
#index-page #why-us,
#index-page #process,
#index-page #areas,
#index-page #certifications {
    /* Hide these sections on the home page to simplify the layout.
       Testimonials remain visible on the home page so visitors can
       immediately see customer feedback. */
    display: none;
}

/* Hide social section on non-home pages */
#servicios-page #social,
#sobre-nosotros-page #social,
#areas-page #social,
#testimonios-page #social {
    display: none;
}

/* Hide irrelevant sections per page */
#servicios-page #why-us,
#servicios-page #process,
#servicios-page #areas,
#servicios-page #testimonials,
#servicios-page #certifications {
    display: none;
}

#sobre-nosotros-page #services,
#sobre-nosotros-page #areas,
#sobre-nosotros-page #testimonials,
#sobre-nosotros-page #certifications {
    display: none;
}

#areas-page #services,
#areas-page #why-us,
#areas-page #process,
#areas-page #testimonials,
#areas-page #certifications {
    display: none;
}

#testimonios-page #services,
#testimonios-page #why-us,
#testimonios-page #process,
#testimonios-page #areas,
#testimonios-page #certifications {
    display: none;
}

/*
 * Logo displayed within hero sections.
 * Adds a large logo above the hero title to emphasise brand presence
 * on each page. The logo is centered, responsive, and includes a
 * subtle drop shadow for visual depth.
 */
.hero-logo {
    max-width: 240px;
    width: 50%;
    height: auto;
    margin: 0 auto var(--space-4);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/*
 * Differentiated hero backgrounds
 *
 * Each page uses a distinct gradient background on its hero section to
 * provide visual variety while maintaining consistent typography and
 * branding. Gradients are subtle enough to not distract from the text
 * and logo, but give each page its own personality. Colours were
 * chosen to compliment the existing colour palette (yellows and blues)
 * without overpowering the content.
 */
#index-page .hero {
    background: linear-gradient(to right, #f5af00, #ffd700);
}
#servicios-page .hero {
    background: linear-gradient(to right, #ffecd2, #fcb69f);
}
#sobre-nosotros-page .hero {
    background: linear-gradient(to right, #c9d6ff, #e2e2e2);
}
#areas-page .hero {
    background: linear-gradient(to right, #f6d365, #fda085);
}
#testimonios-page .hero {
    background: linear-gradient(to right, #84fab0, #8fd3f4);
}

/*
 * Testimonials page tweaks
 *
 * On the testimonials page we expand the cards slightly and add a
 * subtle shadow so they stand on their own against the page
 * background. Text sizes are increased for readability. The grid
 * spacing is increased to give breathing room between testimonials.
 */
#testimonios-page .testimonials-grid {
    gap: 30px;
    justify-content: center;
    padding: var(--space-6);
}
#testimonios-page .testimonial-card {
    flex: 0 0 350px;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}
#testimonios-page .testimonial-card p {
    font-size: 1rem;
}

/*
 * Social section improvements
 *
 * Lighten the dark social section so the Instagram and TikTok
 * previews stand out. Ensure text colours remain visible on the
 * lighter background.
 */
#social.section-dark {
    background-color: #fafafa;
    color: #333333;
}
#social.section-dark .section-title,
#social.section-dark .section-description {
    color: #333333;
}
