/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Optimized for all devices with focus on mobile UX
   ======================================== */

/* Base Styles & CSS Variables */
:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #f59e0b;
    --accent: #8b5cf6;
    --cta: #10b981;
    --cta-dark: #059669;
    --cta-light: #34d399;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-cta: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (Mobile-first) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;

    /* Touch Targets (minimum 44px for accessibility) */
    --touch-target-min: 44px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Better font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1400px;
    /* Wider for Codi look */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    /* Increased padding */
}

.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .desktop-only {
        display: flex;
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.gradient-text {
    color: var(--primary);
    font-weight: 800;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ========================================
   BUTTONS - Touch Optimized
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
    /* Prevent text selection on tap */
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 0;
    margin-top: var(--spacing-sm);
}

.btn-secondary:active {
    transform: scale(0.98);
}

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

.gradient-text {
    color: var(--primary);
    font-weight: 800;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ========================================
   BUTTONS - Touch Optimized
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION - Mobile First
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   MULTI-STEP FORM MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    height: 4px;
    flex: 1;
    background: var(--border-light);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
}

.step-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.3;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-card {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    border: 1px solid var(--border-light);
}

.option-text {
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    font-family: var(--font-body);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 16px;
}

.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-next:hover {
    background: var(--primary-dark);
}

.btn-next:disabled {
    background: var(--border-light);
    cursor: not-allowed;
}

@media (min-width: 600px) {
    .option-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo-icon {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

/* Desktop Navigation - Hidden on Mobile */
.nav-links {
    display: none;
}

/* Hamburger Menu - Mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    /* Ensure touch target size */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    justify-content: center;
    align-items: center;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link,
.mobile-btn {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    padding: var(--spacing-sm);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.mobile-btn {
    font-size: 1.125rem;
    margin-top: var(--spacing-md);
}

/* ========================================
   HERO SECTION - Mobile Optimized
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align */
    text-align: left;
    /* Left align */
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    /* Slightly wider */
    z-index: 1;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    /* Remove horizontal padding to align with logo */
    margin-left: 0;
    /* Ensure left alignment */
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Larger font */
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 550px;
    font-weight: 500;
    line-height: 1.6;
}

.hero-lead {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
    /* Left align buttons */
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   SECTION HEADERS - Mobile Typography
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-sm);
}

.section-header h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
}

/* ========================================
   VALUE GRID - Clean, No Cards
   ======================================== */
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    transition: transform 0.3s ease;
}

.value-item:active {
    transform: scale(0.98);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 700;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   STATS SECTION - Editorial Style (Borderless)
   ======================================== */
.stats-editorial {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.editorial-content {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-editorial h2 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.editorial-intro {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.editorial-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.estat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.estat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.estat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.estat-divider {
    display: none;
    /* Hidden on mobile */
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.btn-white-outline {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-white-outline:hover {
    background: white;
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .editorial-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .estat-divider {
        display: block;
    }
}

/* ========================================
   LEGACY CARD STYLES (Keep for other sections)
   ======================================== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.glass-card:active {
    transform: scale(0.98);
}

/* ========================================
   PROCESS SECTION - Mobile Stack
   ======================================== */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-main);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto var(--spacing-sm);
}

.step-connector {
    display: none;
}

.step h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    font-weight: 600;
    font-size: clamp(1.125rem, 4vw, 1.25rem);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION - Clean List (No Cards)
   ======================================== */
.services-list-clean {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.service-item-clean {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-item-clean:hover {
    background: var(--bg-light);
    transform: translateX(8px);
}

.s-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.s-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.s-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .services-list-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-2xl);
    }
}

/* ========================================
   CONTACT SECTION - Mobile Stack
   ======================================== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-text {
    width: 100%;
}

.contact-text h2 {
    font-size: clamp(1.75rem, 7vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    font-weight: 700;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.contact-benefits span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    color: var(--text-main);
}

.contact-benefits i {
    color: var(--secondary);
    flex-shrink: 0;
}

.service-areas {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.service-areas h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.service-areas p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 100%;
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

/* ========================================
   FORMS - Touch Optimized
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    /* Prevents zoom on iOS */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Minimum touch target */
    min-height: var(--touch-target-min);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   FOOTER - Mobile Optimized
   ======================================== */
footer {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.footer-links a:active {
    color: var(--primary);
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   ANIMATIONS - Performance Optimized
   ======================================== */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

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

.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-left {
    transform: translateX(-20px);
}

.fade-in-right {
    transform: translateX(20px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* ========================================
   TABLET BREAKPOINT (600px+)
   ======================================== */
@media (min-width: 600px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: flex-start;
        /* Left align */
    }

    .btn-secondary {
        margin-left: var(--spacing-sm);
        margin-top: 0;
    }

    /* Hero stats removed */

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .service-card {
        height: 220px;
    }

    .process-steps {
        flex-direction: row;
        align-items: flex-start;
    }

    .step {
        flex: 1;
        background: transparent;
        box-shadow: none;
    }

    .step-connector {
        display: block;
        flex: 0.5;
        height: 2px;
        background: var(--border-light);
        margin-top: 28px;
    }
}

/* ========================================
   DESKTOP BREAKPOINT (992px+)
   ======================================== */
@media (min-width: 992px) {
    .section {
        padding: 80px 0;
    }

    /* Show desktop navigation */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .nav-links li a {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-secondary);
        padding: 8px 12px;
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    .nav-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Hide hamburger on desktop */
    .hamburger {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        height: 40px;
    }

    /* Desktop layouts */
    .split-container,
    .contact-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .stats-wrapper {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-2xl);
    }

    .stats-content {
        flex: 1;
    }

    .stats-visual {
        flex: 1;
    }

    .split-content,
    .split-image,
    .contact-text,
    .contact-form-wrapper {
        flex: 1;
    }

    .contact-form-wrapper {
        max-width: 500px;
    }

    /* Align hero text with first menu item (Logo width + Gap) */
    .hero-content {
        margin-left: 220px;
        max-width: 800px;
        /* Increase max-width to accommodate margin */
    }

    .floating-badge {
        bottom: 30px;
        left: -20px;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .service-card {
        height: 250px;
    }

    /* Hover effects on desktop */
    .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
    }

    .btn-secondary:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .service-card:hover {
        transform: scale(1.02);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-links a:hover {
        color: var(--text-main);
    }
}

/* ========================================
   LARGE DESKTOP (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .contact-text h2 {
        font-size: 3rem;
    }
}

/* ========================================
   PRICING / PACKAGES SECTION
   Mobile-First, Uniform Card Design
   ======================================== */

.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Uniform Card Design */
.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: var(--spacing-lg);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    /* Ensure uniform height */
    height: 100%;
    min-height: 650px;
}

.pricing-card:active {
    transform: scale(0.98);
}

/* Featured Card */
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.02), var(--card-bg));
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-md);
    background: var(--gradient-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary);
}

.pricing-badge.popular {
    background: var(--gradient-main);
    color: white;
    border-color: var(--primary);
}

/* Pricing Header - Fixed Height */
.pricing-header {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-header h3 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Pricing Price - Fixed Height */
.pricing-price {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-amount {
    display: block;
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Pricing Features - Flexible Height */
.pricing-features {
    flex: 1;
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.pricing-features h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    font-weight: 600;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-features li i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Pricing Deliverables - Fixed Height */
.pricing-deliverables {
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-deliverables strong {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.pricing-deliverables p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Pricing Button - Fixed Position at Bottom */
.pricing-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: auto;
    /* Ensure button stays at bottom */
}

/* Pricing Footer */
.pricing-footer {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-light);
}

.pricing-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pricing-footer i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   PRICING - TABLET (600px+)
   ======================================== */
@media (min-width: 600px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }

    .pricing-card {
        padding: var(--spacing-xl);
        min-height: 700px;
    }
}

/* ========================================
   PRICING - DESKTOP (992px+)
   ======================================== */
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        align-items: stretch;
    }

    .pricing-card {
        min-height: 750px;
    }

    /* Hover effects on desktop */
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .pricing-card.featured:hover {
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    }

    /* Scale featured card slightly larger */
    .pricing-card.featured {
        transform: scale(1.03);
    }

    .pricing-card.featured:hover {
        transform: scale(1.03) translateY(-8px);
    }
}

/* ========================================
   PRICING - LARGE DESKTOP (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .pricing-card {
        min-height: 720px;
    }
}

/* ========================================
   ESTIMATOR SECTION
   ======================================== */
.estimator-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 var(--spacing-sm);
}

.estimator-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.estimator-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-main);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.estimator-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.radio-group {
    display: flex;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: 12px;
    margin-top: 8px;
}

.radio-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-label {
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.radio-option input:checked+.radio-label {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-divider {
    height: 1px;
    background: var(--border-light);
    margin: 32px 0;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}