/*
Theme Name: Flatsome Child - ALO
Theme URI: https://alo.pl
Author: ALO Development Team
Author URI: https://alo.pl
Description: Motyw potomny Flatsome dla ALO - Kancelaria Doradztwa Podatkowego. Profesjonalna strona z kompleksowym systemem zarządzania treścią dla usług doradczych i produktów cyfrowych.
Template: flatsome
Version: 1.0.0
License: Commercial
License URI: https://alo.pl/licencja
Text Domain: flatsome-child-alo
Tags: responsive, business, corporate, tax-advisory, financial-services, woocommerce
*/

/* ==========================================================================
   ALO Custom Styles
   ========================================================================== */

/* Import parent theme styles */
@import url("../flatsome/style.css");

/* ==========================================================================
   1. Base Styles
   ========================================================================== */

:root {
    /* Colors */
    --primary-navy: #1E3A5F;
    --primary-navy-dark: #0D2C4F;
    --primary-navy-deep: #0A203C;
    --accent-gold: #C6A573;
    --accent-gold-darker: #B59461;
    --text-dark: #212529;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-gray: #E5E7EB;
    
    /* Typography */
    --font-lora: 'Lora', serif;
    --font-lato: 'Lato', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* 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);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

body {
    font-family: var(--font-lato);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-lora);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-navy);
}

h1, .h1 { font-size: 3rem; }
h2, .h2 { font-size: 2.25rem; }
h3, .h3 { font-size: 1.875rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.125rem; }

@media (max-width: 768px) {
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.875rem; }
    h3, .h3 { font-size: 1.5rem; }
}

/* ==========================================================================
   3. Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow);
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.header-main {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-primary {
    font-family: var(--font-lato);
    font-weight: 600;
}

.nav-primary a {
    color: var(--primary-navy);
    transition: color var(--transition-base);
}

.nav-primary a:hover {
    color: var(--accent-gold);
}

/* Services Dropdown */
.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.services-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-section {
    background: var(--primary-navy);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--primary-navy), transparent);
}

/* ==========================================================================
   6. Trust Bar
   ========================================================================== */

.trust-bar-section {
    background: var(--primary-navy);
    padding: 4rem 0 6rem;
}

.trust-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--accent-gold);
}

.trust-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-lora);
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==========================================================================
   7. Offer Section
   ========================================================================== */

.offer-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.offer-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.offer-card.featured {
    border-color: var(--accent-gold);
}

.offer-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-gold);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-navy);
    color: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.offer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.offer-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.offer-features i {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.offer-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
    margin-bottom: 1.5rem;
}

.offer-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==========================================================================
   8. Newsletter Section
   ========================================================================== */

.newsletter-section {
    background: var(--primary-navy);
    color: white;
    padding: 6rem 0;
}

.newsletter-box {
    background: rgba(13, 44, 79, 0.5);
    border-radius: var(--radius-2xl);
    padding: 3rem;
}

.newsletter-form-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: white;
    color: var(--primary-navy-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 0.125rem;
}

.newsletter-consent a {
    color: white;
    text-decoration: underline;
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-lato);
}

.button.primary {
    background: var(--primary-navy);
    color: white;
}

.button.primary:hover {
    background: var(--primary-navy-dark);
    transform: translateY(-2px);
}

.button.accent {
    background: var(--accent-gold);
    color: white;
}

.button.accent:hover {
    background: var(--accent-gold-darker);
    transform: translateY(-2px);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.button.outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.button.outline:hover {
    background: var(--accent-gold);
    color: white;
}

.button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.button.full-width {
    width: 100%;
}

.button-arrow {
    transition: transform var(--transition-base);
}

.button:hover .button-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   10. Cards
   ========================================================================== */

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

[data-animate-on-scroll] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

[data-animate-on-scroll].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-on-scroll][data-delay="100"] {
    transition-delay: 100ms;
}

[data-animate-on-scroll][data-delay="200"] {
    transition-delay: 200ms;
}

[data-animate-on-scroll][data-delay="300"] {
    transition-delay: 300ms;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   12. Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--accent-gold);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold-darker);
    transform: translateY(-4px);
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 5rem 0 4rem;
    }
    
    .offer-section,
    .newsletter-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .button {
        width: 100%;
    }
    
    .trust-bar {
        padding: 1.5rem;
    }
    
    .offer-card {
        margin-bottom: 2rem;
    }
    
    .newsletter-box {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .trust-value {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   15. Print Styles
   ========================================================================== */

@media print {
    .header-main,
    .footer,
    .back-to-top,
    .newsletter-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
