/* ===================================
   FLORES REMODELING - MAIN STYLES
   Premium Design System
   =================================== */

/* Design System & Variables */
:root {
    /* Premium Color Palette */
    --primary: #19482E;           /* Deep forest green */
    --primary-light: #2a5f3f;     /* Lighter forest green */
    --primary-dark: #0f2a1b;      /* Darker forest green */
    --secondary: #f8f7f4;         /* Warm off-white */
    --accent: #d4af37;            /* Subtle gold accent */
    
    /* Text Colors */
    --text-primary: #1a1a1a;      /* Almost black */
    --text-secondary: #6b6b6b;    /* Medium gray */
    --text-light: #999999;        /* Light gray */
    --text-inverse: #ffffff;      /* White */
    
    /* UI Colors */
    --border: #e8e8e8;            /* Light border */
    --border-light: #f0f0f0;      /* Very light border */
    --background: #ffffff;        /* Pure white */
    --background-alt: #fafafa;    /* Off-white */
    --overlay: rgba(0, 0, 0, 0.6);
    
    /* Spacing System */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 1.5rem;     /* 24px */
    --space-lg: 2.5rem;     /* 40px */
    --space-xl: 4rem;       /* 64px */
    --space-2xl: 6rem;      /* 96px */
    --space-3xl: 8rem;      /* 128px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.5rem;     /* 40px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 4rem;       /* 64px */
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 95px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { 
    font-size: var(--text-5xl);
    font-weight: 300;
}

h2 { 
    font-size: var(--text-4xl);
    font-weight: 300;
}

h3 { 
    font-size: var(--text-2xl);
    font-weight: 500;
}

h4 { 
    font-size: var(--text-xl);
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

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

strong, .accent {
    font-weight: 600;
    color: var(--primary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xs) var(--space-lg);
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    flex: 0 0 auto;
    padding: var(--space-xs) 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    list-style: none;
}

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

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

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

.btn-white:hover {
    background: transparent;
    color: var(--text-inverse);
    border-color: var(--text-inverse);
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
}

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

.section-title {
    font-size: var(--text-4xl);
    font-weight: 300;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 300;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23grid)"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.page-header h1 {
    color: var(--text-inverse);
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    font-weight: 300;
    position: relative;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    text-align: center;
    padding: var(--space-3xl) 0;
    position: relative;
}

.cta h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--text-inverse);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--text-inverse);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Icons */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    color: var(--primary);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        top: var(--nav-height);
        width: 100%;
        height: 0;
        background: var(--background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        gap: var(--space-sm);
        transition: height 0.3s ease, padding 0.3s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transform: none;
    }
    
    .nav-menu.active {
        height: auto;
        padding: var(--space-xl) var(--space-lg);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-link {
        display: block;
        padding: var(--space-sm) 0;
        font-size: var(--text-base);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .lang-switcher {
        margin-left: auto;
        margin-right: var(--space-sm);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .page-header {
        padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
}