/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

:root {
    /* Color System - Green & Golden Orange Theme */
    --color-primary: #1a5c1a;
    --color-primary-dark: #0f3d0f;
    --color-secondary: #2e8b57;
    --color-accent: #e07a00;
    --color-accent-light: #ffa733;
    --color-light: #f8fafc;
    
    /* Neutral Colors */
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-bg: #f8fafc;
    --color-bg-light: #ffffff;
    --color-border: #e2e8f0;
    
    /* Transparent Overlay Colors */
    --overlay-text-bg: rgba(0, 0, 0, 0.3);
    --overlay-text-bg-hover: rgba(0, 0, 0, 0.4);
    --overlay-text-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --space-unit: 0.25rem;
    --space-xxs: calc(var(--space-unit) * 1);
    --space-xs: calc(var(--space-unit) * 2);
    --space-sm: calc(var(--space-unit) * 3);
    --space-md: calc(var(--space-unit) * 4);
    --space-lg: calc(var(--space-unit) * 6);
    --space-xl: calc(var(--space-unit) * 8);
    --space-xxl: calc(var(--space-unit) * 12);
    --space-xxxl: calc(var(--space-unit) * 16);
    
    /* Typography */
    --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --font-size-xxxl: 2rem;
    --font-size-display: 3rem;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-base: 1.5;
    --line-height-loose: 1.7;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to Main Content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 500;
}

.skip-to-main:focus {
    top: 0;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 3;
}
/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e07a00;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row; /* Force row layout */
}

.header-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: block;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    white-space: nowrap; /* Prevent text wrapping */
}

.logo-main .logo-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
}

/* Ensure hero and sections don't get hidden under header */
.hero, 
.section,
.page-hero {
    margin-top: 70px;
}

/* ==========================================================================
   Mobile Styles - Only Applied on Phone/Tablet
   ========================================================================== */

@media (max-width: 992px) {
    .main-navigation ul {
        gap: 3px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .header-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .hero, 
    .section,
    .page-hero {
        margin-top: 60px;
    }
    
    /* Hide desktop navigation on mobile */
    .main-navigation ul {
        display: none;
    }
    
    /* Mobile Menu Button - Visible on Mobile */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        width: 36px;
        height: 36px;
        cursor: pointer;
        padding: 5px;
        position: relative;
        z-index: 1002;
    }
    
    .menu-icon {
        font-size: 1.8rem;
        color: #000000;
        transition: all var(--transition-base);
        display: block;
        line-height: 1;
        font-weight: bold;
    }
    
    .mobile-menu-btn[aria-expanded="true"] .menu-icon {
        color: #000000;
    }
    
    /* Mobile Navigation - Shown when active */
    .main-navigation ul.active {
        display: flex;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        background: #e07a00;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        gap: 5px;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: flex;
        padding: 12px 15px;
        border-radius: var(--radius-md);
        margin-bottom: 5px;
        text-align: left;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 6px 0;
    }
    
    .header-icon {
        width: 26px;
        height: 26px;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .hero, 
    .section,
    .page-hero {
        margin-top: 55px;
    }
    
    .main-navigation ul.active {
        top: 50px;
    }
}
/* ==========================================================================
   Hero Section (Index Page)
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Grey overlay layer - above background but below content */
.hero::before,
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 3;
    padding: var(--space-xxl) 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, var(--color-accent-light) 70%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lead-text {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xxl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: var(--font-size-base);
    min-height: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(26, 92, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(224, 122, 0, 0.2);
}

/* ==========================================================================
   Page Hero Sections (Other Pages)
   ========================================================================== */

.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    text-align: center;
    z-index: 3;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-hero .lead-text {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Sections Common Styles
   ========================================================================== */

.section {
    padding: var(--space-xxxl) 0;
    position: relative;
    overflow: hidden;
}

/* Remove old ::after from section-background */
.section-background::after {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    position: relative;
    z-index: 3;
}

.section-header h2 {
    font-size: var(--font-size-xxxl);
    color: white;
    margin-bottom: var(--space-md);
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Text Overlay Components
   ========================================================================== */

.text-overlay {
    background: var(--overlay-text-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    color: white;
    border: 1px solid var(--overlay-text-border);
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
    height: 100%;
}

.text-overlay:hover {
    background: var(--overlay-text-bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.text-overlay h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
    position: relative;
    padding-bottom: var(--space-sm);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-overlay h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent-light);
    border-radius: 1px;
}

.text-overlay p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-loose);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Lists within text overlays */
.text-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-overlay li {
    padding: var(--space-sm) 0;
    position: relative;
    padding-left: var(--space-lg);
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--line-height-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.text-overlay li:last-child {
    border-bottom: none;
}

.text-overlay li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-light);
    font-weight: bold;
    font-size: 1.2em;
}

.text-overlay li strong {
    color: var(--color-accent-light);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   About Page Specific
   ========================================================================== */

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: relative;
    z-index: 3;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.values-overlay .values-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.values-overlay .values-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Products Page Specific
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 3;
}

/* Center last bubble when odd-numbered */
@media (min-width: 769px) {
    .products-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        grid-column: 1 / span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        max-width: 100%;
        margin: 0;
    }
}

.product-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
}

.product-list li {
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

/* ==========================================================================
   Services Page Specific
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 3;
}

/* Center last bubble when odd-numbered */
@media (min-width: 769px) {
    .services-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        grid-column: 1 / span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        max-width: 100%;
        margin: 0;
    }
}

/* ==========================================================================
   Clients Page Specific
   ========================================================================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Center last bubble when odd-numbered */
@media (min-width: 769px) {
    .clients-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        grid-column: 1 / span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid .text-overlay.last-bubble:nth-child(odd):last-child {
        max-width: 100%;
        margin: 0;
    }
}

.clients-list li {
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */

.section--contact {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    margin-top: var(--space-lg);
}

.contact-info p {
    margin-bottom: var(--space-lg);
    padding-left: 28px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
}

.contact-info p i {
    color: var(--color-accent-light);
    width: 20px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 2px;
}

.contact-info a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.contact-info strong {
    color: var(--color-accent-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #1a1a1a;
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--space-xxxl) 0 var(--space-xl);
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/footer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.15;
}

.site-footer .container {
    position: relative;
    z-index: 3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.footer-brand .logo-main {
    color: var(--color-accent-light);
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-xs);
    font-weight: 800;
}

.footer-brand .logo-tagline {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-title {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: var(--space-xs) 0;
    transition: all var(--transition-base);
    position: relative;
    padding-left: var(--space-sm);
}

.footer-link::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

.footer-link:hover,
.footer-link:focus {
    color: white;
    transform: translateX(5px);
}

.footer-link:hover::before {
    transform: translateX(3px);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-sm);
}

.footer-contact p i {
    color: var(--color-accent-light);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-contact a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    border: none;
    box-shadow: 0 5px 15px rgba(26, 92, 26, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(224, 122, 0, 0.3);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background loading animation */
.bg-loaded {
    animation: fadeInBg 1s ease-out;
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Mobile Styles (Tablet and Phone)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .lead-text {
        font-size: var(--font-size-xl);
    }
    
    .section {
        padding: var(--space-xxl) 0;
    }
    
    .section-background,
    .footer-background {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .header-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .hero, 
    .section,
    .page-hero {
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .lead-text {
        font-size: var(--font-size-lg);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-hero {
        min-height: 50vh;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    /* Mobile Menu Button - Visible on Mobile */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        width: 36px;
        height: 36px;
        cursor: pointer;
        padding: 5px;
        position: relative;
        z-index: 1002;
        color: #000000;
    }
    
    .menu-icon {
        font-size: 1.8rem;
        color: #000000;
        transition: all var(--transition-base);
        display: block;
        line-height: 1;
        font-weight: bold;
    }
    
    .mobile-menu-btn[aria-expanded="true"] .menu-icon {
        color: #000000;
    }
    
    /* Mobile Navigation */
    .main-navigation ul {
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        background: #e07a00;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        gap: 5px;
    }
    
    .main-navigation ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: flex;
        padding: 12px 15px;
        border-radius: var(--radius-md);
        margin-bottom: 5px;
        text-align: left;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(0, 0, 0, 0.3);
    }
    
    /* Grid Layouts */
    .about-grid,
    .products-grid,
    .services-grid,
    .clients-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .text-overlay {
        padding: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 6px 0;
    }
    
    .header-icon {
        width: 26px;
        height: 26px;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .hero, 
    .section,
    .page-hero {
        margin-top: 55px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-xxl);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .text-overlay {
        padding: var(--space-md);
    }
    
    .main-navigation ul {
        top: 50px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .hero-actions,
    .mobile-menu-btn,
    .footer-background,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero {
        min-height: auto;
        margin-top: 0;
        background: none !important;
        color: black !important;
    }
    
    .hero-title {
        color: black !important;
        background: none !important;
    }
    
    .section {
        padding: 1cm 0;
        break-inside: avoid;
        background: none !important;
    }
    
    .section-background {
        display: none;
    }
    
    .hero::before,
    .section::before {
        display: none;
    }
    
    .text-overlay {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .text-overlay h3,
    .text-overlay p,
    .text-overlay li {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .footer-contact a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
}