/* Sanitrade Cleaning Services - Main Styles */
/* Mobile-First, World-Class Design */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --accent-gold: #FFE55C;
    --deep-gold: #B8860B;
    
    /* Neutrals */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --dark-gray: #0F0F0F;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    --gradient-dark: linear-gradient(135deg, var(--gray-900), var(--black));
    --gradient-hero: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(0, 0, 0, 0.9));
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 10px 30px rgba(255, 215, 0, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

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

/* Mobile-first base font size - starts at 14px for very small screens */
html {
    font-size: 14px;
}

/* Progressively enhance font size for larger screens */
@media (min-width: 375px) {
    html { font-size: 15px; }
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

@media (min-width: 1024px) {
    html { font-size: 16px; }
}

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

/* Container - Mobile-first with fluid padding */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* 16px base */
}

/* Small phones */
@media (min-width: 375px) {
    .container { padding: 0 1.25rem; /* 20px */ }
}

/* Phones landscape / Small tablets */
@media (min-width: 640px) {
    .container { padding: 0 1.5rem; /* 24px */ }
}

/* Tablets */
@media (min-width: 768px) {
    .container { padding: 0 2rem; /* 32px */ }
}

/* Desktop */
@media (min-width: 1024px) {
    .container { padding: 0 2rem; /* 32px */ }
}

/* Large desktop */
@media (min-width: 1280px) {
    .container { padding: 0 3rem; /* 48px */ }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

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

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

a:hover {
    color: var(--secondary-gold);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: var(--space-6);
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

.logo-circle i {
    font-size: var(--text-3xl);
    color: var(--black);
}

.loading-text {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.loading-letter {
    font-size: var(--text-xl);
    font-weight: 600;
    animation: letterWave 1.5s infinite;
}

.loading-letter:nth-child(1) { animation-delay: 0s; }
.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(4) { animation-delay: 0.3s; }
.loading-letter:nth-child(5) { animation-delay: 0.4s; }
.loading-letter:nth-child(6) { animation-delay: 0.5s; }
.loading-letter:nth-child(7) { animation-delay: 0.6s; }
.loading-letter:nth-child(8) { animation-delay: 0.7s; }
.loading-letter:nth-child(9) { animation-delay: 0.8s; }

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes letterWave {
    0%, 100% { transform: translateY(0); color: var(--white); }
    50% { transform: translateY(-10px); color: var(--primary-gold); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation - Mobile-first */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0; /* 12px - compact for mobile */
}

/* Tablet and up - more spacious */
@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 0; /* 16px */
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2); /* Smaller gap on mobile */
    font-weight: 700;
    font-size: 1rem; /* Compact for mobile */
    color: var(--white);
    text-decoration: none;
    z-index: var(--z-fixed);
}

@media (min-width: 480px) {
    .nav-logo {
        font-size: 1.125rem;
        gap: var(--space-3);
    }
}

@media (min-width: 768px) {
    .nav-logo {
        font-size: var(--text-xl);
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--black);
}

.logo-image {
    width: 32px; /* Smaller on mobile */
    height: 32px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

@media (min-width: 480px) {
    .logo-image {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 768px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Mobile menu - hidden by default, shown when active */
.nav-menu {
    position: fixed;
    top: 60px; /* Below navbar */
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; /* ensure flex on all viewports */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    list-style: none;
    padding-left: 0; /* remove default ul padding */
    margin: 0; /* reset margins */
    gap: 1.5rem;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: var(--z-dropdown);
}

.nav-menu.active {
    left: 0;
}

/* Tablet and up - horizontal menu */
@media (min-width: 768px) {
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        height: auto;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        padding-top: 0;
        gap: 1.5rem;
        overflow: visible;
        padding-left: 0;
        margin-left: auto; /* push menu to the right if needed */
    }
}

/* Ensure no bullets on list items in all cases */
.nav-menu li {
    list-style: none;
}

@media (min-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1.125rem; /* Larger on mobile for easy tapping */
    position: relative;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    width: 100%; /* Full width on mobile */
    text-align: center;
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: auto;
        text-align: left;
    }
}

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

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

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

.nav-cta {
    background: var(--gradient-primary);
    color: var(--black) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    min-height: 44px; /* Touch-friendly */
    width: 80%; /* Narrower on mobile */
    max-width: 250px;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .nav-cta {
        padding: 0.75rem 1.5rem;
        width: auto;
        margin-top: 0;
    }
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--black) !important;
}

/* Hamburger - visible on mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
    width: 44px; /* Touch-friendly size */
    height: 44px;
    border: none;
    z-index: var(--z-fixed);
}

.hamburger:hover {
    background: rgba(255, 215, 0, 0.2);
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--white);
    margin: 3px auto;
    transition: var(--transition);
    border-radius: 2px;
    display: block;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hide hamburger on tablet and up */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Section Styling - Mobile-first */
section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0; /* Mobile padding */
}

@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Compact on mobile */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-primary);
    color: var(--black);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    overflow: hidden;
}

.section-badge:hover::before {
    left: 100%;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-6);
    color: var(--gray-900);
    line-height: 1.1;
}

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

/* Buttons - Mobile-first with touch-friendly sizing */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.5rem; /* 14px 24px - touch friendly */
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: var(--text-base);
    line-height: 1.2;
}

/* Tablet and up - larger buttons */
@media (min-width: 768px) {
    .btn {
        gap: var(--space-3);
        padding: 1rem 2rem; /* 16px 32px */
        min-height: 48px;
    }
}

/* Button sizes */
.btn-small {
    padding: 0.625rem 1rem; /* 10px 16px */
    min-height: 36px;
    font-size: var(--text-sm);
}

.btn-large {
    padding: 1.125rem 2rem; /* 18px 32px */
    min-height: 52px;
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    .btn-large {
        padding: 1.25rem 2.5rem; /* 20px 40px */
        min-height: 56px;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--black);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Back to Top Button - Mobile-first */
.back-to-top {
    position: fixed;
    bottom: 1rem; /* 16px on mobile */
    right: 1rem;
    width: 48px; /* Touch-friendly */
    height: 48px;
    background: var(--gradient-primary);
    color: var(--black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

@media (hover: none) {
    .back-to-top:hover {
        transform: none;
    }

    .back-to-top:active {
        transform: scale(0.95);
    }
}

/* Quick Contact Widget - Mobile-first */
.quick-contact-widget {
    position: fixed;
    bottom: 1rem; /* 16px on mobile */
    left: 1rem;
    z-index: var(--z-fixed);
}

@media (min-width: 768px) {
    .quick-contact-widget {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

.widget-toggle {
    width: 56px; /* Touch-friendly on mobile */
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--black);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .widget-toggle {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}

.widget-toggle:hover {
    transform: scale(1.1);
}

@media (hover: none) {
    .widget-toggle:hover {
        transform: none;
    }

    .widget-toggle:active {
        transform: scale(0.95);
    }
}

.widget-content {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 280px; /* Wider on mobile for better touch targets */
    max-width: calc(100vw - 2rem); /* Don't overflow viewport */
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    padding: 1rem;
}

@media (min-width: 768px) {
    .widget-content {
        width: 300px;
    }
}

.widget-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.widget-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h4 {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--gray-900);
}

.widget-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: var(--text-lg);
    transition: var(--transition);
}

.widget-close:hover {
    color: var(--gray-900);
}

.widget-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.widget-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    color: var(--gray-900);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.widget-btn:hover {
    background: var(--gradient-primary);
    color: var(--black);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideUp 0.3s ease;
}

.modal-icon {
    font-size: var(--text-6xl);
    color: var(--primary-gold);
    margin-bottom: var(--space-4);
}

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

/* Additional mobile refinements */
@media (max-width: 360px) {
    .loading-logo .logo-circle {
        width: 60px;
        height: 60px;
    }

    .loading-letter {
        font-size: 1rem;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .quick-contact-widget,
    .loading-screen {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* ============================ */
/* Desktop polish for navbar & buttons */
/* ============================ */

/* Navbar enhancements - desktop */
@media (min-width: 1024px) {
    .nav-container {
        padding: 1.25rem 0; /* more presence on desktop */
    }

    .navbar {
        border-bottom: 1px solid rgba(255, 215, 0, 0.12);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    }

    .nav-logo span {
        letter-spacing: 0.02em;
    }

    .nav-menu {
        gap: 2.25rem;
    }

    .nav-link {
        font-weight: 600;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.92);
        padding: 0.75rem 0.25rem;
    }

    .nav-link::after {
        height: 2px;
        background: linear-gradient(90deg, var(--accent-gold), var(--secondary-gold));
        transform: translateY(4px);
    }

    .nav-link:hover {
        color: #ffffff;
    }

    .nav-cta {
        background: linear-gradient(135deg, #FFE55C, #FFD700 40%, #FFA500);
        border: 1px solid rgba(184, 134, 11, 0.35);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .nav-cta:hover {
        filter: brightness(1.02);
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(255, 215, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }
}

/* Buttons: premium look & interactions */
.btn {
    will-change: transform, box-shadow;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 70%);
    transform: skewX(-20deg);
    transition: transform 0.6s ease, left 0.6s ease;
    pointer-events: none;
}

.btn:hover::before {
    left: 130%;
}

.btn-primary {
    background: linear-gradient(135deg, #FFE55C 0%, #FFD700 45%, #FFA500 100%);
    border: 1px solid rgba(184, 134, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-secondary {
    border: 2px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFE55C, #FFD700);
    color: var(--black);
    border-color: transparent;
}

/* Desktop sizing & rhythm for hero/action buttons */
@media (min-width: 1024px) {
    .btn.btn-hero {
        padding: 1.125rem 2.25rem;
        font-size: 1.0625rem;
        border-radius: var(--radius-full);
    }
}

/* Focus rings for accessibility */
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.85);
    outline-offset: 2px;
}

/* Subtle lift on all buttons */
.btn:active {
    transform: translateY(0);
}

/* ============================ */
/* Footer - mobile first, robust desktop grid */
/* ============================ */
.footer {
    background: linear-gradient(180deg, rgba(17,24,39,0.96), rgba(17,24,39,1));
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255, 215, 0, 0.12);
}

/* Align with both index and inner pages naming */
.footer-main, .footer-top {
    padding: 2.5rem 0;
}

.footer .footer-content {
    display: grid;
    grid-template-columns: 1fr; /* stack on mobile */
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr 1fr; /* logo + three columns */
        gap: 2.5rem;
    }
}

.footer-logo, .footer-logo-img, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

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

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-4);
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,215,0,0.25);
}

.footer-phone, .footer-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: #fff;
    margin-right: var(--space-4);
}

.footer-location { color: rgba(255,255,255,0.75); margin-top: var(--space-3); }

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

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-badges, .footer-certifications {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer .badge, .footer .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 215, 0, 0.12);
    color: rgba(255, 215, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.legal-links a {
    color: rgba(255,255,255,0.7);
    margin-left: 1rem;
}

.legal-links a:hover { color: #fff; }

/* ============================ */
/* Hero section refinements (index.html) */
/* ============================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.65), rgba(10, 14, 22, 0.85));
}

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

.hero-title {
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 8px 30px rgba(0,0,0,0.6);
}

.hero-description { color: rgba(255,255,255,0.95); }

/* Reduce visual noise on small screens */
@media (max-width: 640px) {
    .particles-container { display: none; }
    .hero-badge { display: none; }
    .hero-features { display: none; }
    .hero-actions { gap: 0.75rem; }
    .hero-section { min-height: 78vh; }
}