/* ============================================
   Miami Doors & Windows Corp - Production CSS
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: 300ms ease;
    --transition-fast: 150ms ease;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --header-height-mobile: 70px;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-body);
}

/* ===== CSS RESET ===== */
*, *::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: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    z-index: 10001;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
    color: var(--text-white);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

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

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--secondary);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: all var(--transition);
}

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

.nav-toggle.active .hamburger {
    background-color: transparent;
}

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

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.03'%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;
    pointer-events: none;
}

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

/* Hero with two-column layout (home page) */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle,
.hero-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* Hero image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(40px);
    pointer-events: none;
}

.hero-decoration-1 { top: -20px; right: -20px; }
.hero-decoration-2 { bottom: -30px; left: -30px; width: 150px; height: 150px; }

/* Hero page variant (simple centered hero) */
.hero-page {
    min-height: 50vh;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
}

.hero-page .hero-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.hero-page .hero-title {
    margin-bottom: 1rem;
}

.hero-page .hero-subtitle {
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.features-grid.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* Features content with list */
.features-image {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.features-image img,
.features-image-main {
    width: 100%;
    height: auto;
    display: block;
}

.features-content h2 {
    margin-bottom: 1.5rem;
}

.features-content p {
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item .feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    background: var(--primary);
    border-radius: var(--border-radius-md);
}

.feature-item .feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-item .feature-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-item .feature-content p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.service-card h3 {
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.service-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.service-link {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.service-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Services page grid */
.services-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--text-white);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover figcaption {
    opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

/* Contact form */
.contact-form-wrapper,
.form {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3,
.form-info h2 {
    margin-bottom: 1.5rem;
}

/* Lead form section */
.contact-form {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary) 100%);
    color: var(--text-white);
}

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

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-info {
    color: var(--text-white);
}

.form-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.form-info .contact-details {
    margin-top: 1.5rem;
}

.form-info .contact-details p,
.form-info .contact-details a {
    color: rgba(255, 255, 255, 0.85);
}

.form-info .contact-details a:hover {
    color: var(--accent);
}

.form-info .contact-details strong {
    color: var(--text-white);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

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

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

/* Dark form variant */
.form.dark-form {
    background-color: var(--bg-white);
}

.form.dark-form label {
    color: var(--text-primary);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--primary-dark);
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.form-disclaimer a {
    color: var(--primary);
}

.required {
    color: var(--error);
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== MAP SECTION ===== */
.map-section {
    background-color: var(--bg-light);
}

.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 0;
}

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

.footer-section h3 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-section address,
.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

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

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

.footer-disclaimer {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary);
    color: var(--text-white);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.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: space-between;
    gap: 1.5rem;
}

.cookie-text h3 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

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

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.cookie-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--text-white);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== VALUES SECTION ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== SERVICE BENEFIT ===== */
.service-benefit {
    background-color: #e8f4f8;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.service-benefit strong {
    color: var(--accent);
}

/* ===== CONTENT PAGES ===== */
.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h2 {
    margin-top: 2rem;
}

.content-page h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.content-page ol li {
    list-style: decimal;
}

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

/* ===== SITEMAP ===== */
.sitemap-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.sitemap-section ul {
    margin-left: 1.5rem;
}

.sitemap-section li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.sitemap-section li::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary);
}

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

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet - 992px */
@media (max-width: 992px) {
    :root {
        --header-height: var(--header-height-mobile);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Nav overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-text p,
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-image img,
    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid.two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .hero-page {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
    h2 { font-size: clamp(1.375rem, 6vw, 1.75rem); }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper,
    .form {
        padding: 1.5rem;
    }
    
    .hero-image img,
    .hero-image-wrapper {
        max-width: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
@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;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .cookie-banner,
    .hero-cta,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: #f5f5f5 !important;
        color: #000;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title,
    .hero-text p,
    .hero-subtitle {
        color: #000;
    }
    
    .footer {
        background: #f5f5f5 !important;
        color: #000;
    }
}
