/* ========================================
   PRECISION CLIMATE CONTROL - STYLES
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary-dark: #1A1A1A;
    --accent-red: #D02A2A;
    --accent-blue: #2A6AD0;
    --cta-orange: #FF7F00;
    --light-bg: #F8F8F8;
    
    /* Extended Palette */
    --text-primary: #F8F8F8;
    --text-secondary: #B0B0B0;
    --text-dark: #1A1A1A;
    --border-light: rgba(248, 248, 248, 0.1);
    --border-dark: rgba(26, 26, 26, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--cta-orange);
    color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 127, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 127, 0, 0.5);
}

.back-to-top:hover svg {
    animation: wiggleUp 0.5s ease-in-out infinite;
}

@keyframes wiggleUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    z-index: 1000;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-main {
    height: 50px;
    width: auto;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--light-bg);
    transition: all var(--transition-medium);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--light-bg);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cta-orange);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link:focus {
    color: var(--cta-orange);
}

.nav-link-cta {
    background: var(--cta-orange);
    color: var(--light-bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover,
.nav-link-cta:focus {
    background: #E67300;
    transform: scale(1.05);
    color: var(--light-bg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-lg);
    color: var(--light-bg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(208, 42, 42, 0.2);
    border: 1px solid var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-bg);
    backdrop-filter: blur(10px);
}

.hero-badge svg {
    color: var(--accent-red);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.cta-primary {
    background: var(--cta-orange);
    color: var(--light-bg);
    box-shadow: 0 4px 15px rgba(255, 127, 0, 0.4);
}

.cta-primary:hover,
.cta-primary:focus {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 127, 0, 0.5), 0 0 30px rgba(255, 127, 0, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--light-bg);
    border: 2px solid var(--accent-blue);
}

.cta-secondary:hover,
.cta-secondary:focus {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.cta-button:hover .cta-ripple {
    width: 300px;
    height: 300px;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(248, 248, 248, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--light-bg);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 0.5; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-dark);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(42, 106, 208, 0.4);
}

.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-blue);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text {
    color: var(--light-bg);
}

.about-text .section-title {
    color: var(--light-bg);
    text-align: left;
}

.about-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cta-orange);
    margin-bottom: var(--space-md);
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cta-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-2xl);
}

.process-step {
    position: relative;
    text-align: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.08);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.step-content:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.step-content:hover .step-icon-wrapper {
    animation: stepBounce 0.5s ease-out;
}

@keyframes stepBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.step-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -25px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    transform: translateY(-50%);
}

.process-step:last-child .step-connector {
    display: none;
}

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

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.testimonials .section-title {
    color: var(--light-bg);
}

.testimonials .section-subtitle {
    color: var(--text-secondary);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-medium);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition-fast);
}

.testimonial-card:hover {
    border-left: 4px solid var(--accent-blue);
}

.testimonial-quote-marks {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--cta-orange);
    line-height: 1;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.quote-mark.open {
    margin-right: 0.5rem;
}

.quote-mark.close {
    margin-left: 0.5rem;
}

.testimonial-card:hover .quote-mark.open {
    transform: translateX(-10px);
}

.testimonial-card:hover .quote-mark.close {
    transform: translateX(10px);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-bg);
    text-align: center;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author cite {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--cta-orange);
    font-style: normal;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--cta-orange);
    border-color: var(--cta-orange);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--cta-orange);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--accent-blue);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--accent-blue);
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--accent-blue);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(42, 106, 208, 0.1);
}

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

.form-error {
    display: none;
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-top: 0.25rem;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--accent-red);
}

.form-submit {
    width: 100%;
    margin-top: var(--space-md);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog {
    padding: var(--space-3xl) 0;
    background: var(--primary-dark);
}

.blog .section-title {
    color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-medium);
    transition: all var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-heavy);
}

.blog-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-lg);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-blue);
    position: relative;
}

.blog-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-fast);
}

.blog-link:hover::after {
    width: 100%;
}

.blog-link:hover {
    color: var(--accent-red);
}

.blog-link svg {
    transition: transform var(--transition-fast);
}

.blog-link:hover svg {
    transform: translateX(3px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    padding: var(--space-3xl) 0 var(--space-lg);
    color: var(--light-bg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-sm);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-bg);
    margin-bottom: var(--space-md);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--cta-orange);
    padding-left: 5px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    text-align: center;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-bg);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

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

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-bg);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer-back-to-top:hover {
    color: var(--cta-orange);
}

.footer-back-to-top:hover svg {
    animation: wiggleUp 0.5s ease-in-out infinite;
}

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

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:nth-child(2) .step-connector {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 6rem var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        transition: right var(--transition-medium);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
    }
    
    .nav-link-cta {
        margin-top: var(--space-md);
    }
    
    /* Hero adjustments */
    .hero-content {
        padding: var(--space-md);
    }
    
    .hero-badge {
        font-size: 0.8rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* About stats */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-number {
        font-size: 3rem;
    }
    
    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-bg {
        transform: none !important;
    }
    
    .scroll-arrow::before {
        animation: none;
    }
    
    .carousel-dot.active {
        transform: none;
    }
}

/* Focus States */
:focus-visible {
    outline: 3px solid var(--cta-orange);
    outline-offset: 3px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta-orange);
    color: var(--light-bg);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #888888;
    }
    
    .service-card,
    .step-content,
    .blog-card {
        border: 2px solid var(--border-dark);
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll-indicator,
    .back-to-top,
    .carousel-controls,
    .cta-button,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
