/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Trust & Expertise Palette */
    --primary-navy: #0a192f;
    /* Deep Navy - Structure, Text */
    --primary-light: #172a45;
    /* Lighter Navy - Cards, Footers */
    --accent-gold: #c5a059;
    /* Gold/Bronze - Highlights, CTAs */
    --accent-gold-hover: #b08d4b;

    --bg-page: #eaeff2;
    /* Darker off-white/gray for page bg */
    --bg-card: #ffffff;
    /* Crisp white for cards/sections */

    --white: #ffffff;
    --light-bg: #f4f6f8;
    /* Very subtle gray-blue for sections */
    --text-dark: #333333;
    --text-light: #8892b0;
    /* Muted text on dark background */
    --border-color: #e2e8f0;

    --font-main: 'Outfit', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary-navy);
    line-height: 1.6;
    background-color: var(--bg-page);
    /* Changed from white to light gray */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-navy);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: var(--white);
    /* Match page bg */
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.12);
    /* Slightly stronger shadow for depth */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* Header /* Button Text Variants (Mobile vs Desktop) */
.btn-text-mobile {
    display: none;
}

.btn-text-desktop {
    display: inline;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: var(--bg-page);
    /* Reduced glare */
    /* Light & Clean */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero CTA Bar (Overlay on Image) */
.hero-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    /* Vertical centering góra-dół */
    padding: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.70));
    backdrop-filter: blur(5px);
    z-index: 10;
}

.hero-cta .btn {
    margin-left: 0;
}

/* On overlay bar, outline button needs solid bg for visibility */
.hero-cta .btn-outline {
    background-color: white;
}

/* Match desktop hover behavior on overlay bar */
.hero-cta .btn-outline:hover {
    color: var(--white);
    background-color: var(--primary-navy);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-navy);
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--accent-gold);
}

.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-navy);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.badge i {
    color: var(--accent-gold);
}

.hero-lead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Styling */
@media (max-width: 768px) {

    /* Reduce section spacing by 50% (80px -> 40px) */
    .section {
        padding: 40px 0 !important;
    }

    #faq.section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Reduce icon to title spacing by 50% */
    .feature-box i {
        margin-bottom: 10px !important;
    }

    .service-item {
        gap: 15px !important;
        padding: 20px !important;
    }

    .service-icon {
        margin-bottom: 8px !important;
    }

    .team-grid {
        margin-top: 25px !important;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        height: 70px;
        /* Reduced by ~12% from 80px */
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        /* Sync with new height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
    }

    /* Hide rectangular call button on mobile - only show floating CTA */
    .navbar-container>.btn-primary {
        display: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin-bottom: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        position: relative;
    }

    /* Reduce hero section top spacing on mobile */
    .hero {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .hero-badges {
        justify-content: center;
        gap: 8px;
        /* Reduced gap */
        flex-wrap: nowrap;
        /* Force single row */
        overflow-x: auto;
        /* Allow scroll if extreme */
        padding-bottom: 5px;
    }

    .hero-badges .badge {
        font-size: 0.75rem;
        /* Smaller font */
        padding: 4px 8px;
        white-space: nowrap;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Slightly smaller to fit better */
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* CTA buttons mobile optimization */
    .hero-cta {
        gap: 8px;
        padding: 12px;
    }

    .hero-cta .btn {
        font-size: 0.8rem;
        /* Smaller font to fit text */
        padding: 10px 12px;
        white-space: nowrap;
        /* Prevent wrapping */
        flex: 1;
        /* Equal width */
    }

    /* Hero image container with overlay buttons */
    .hero-image {
        position: relative;
        max-height: 250px;
        overflow: hidden;
        border-radius: 8px;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image img {
        object-position: center;
        margin-top: -36px;
        /* Shift image up for 60% top / 40% bottom coverage (button bar ~60px, so 36px top) */
    }

    /* Move CTA buttons to overlay on image */
    .hero-cta {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding: 15px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.70));
        backdrop-filter: blur(5px);
        z-index: 10;
        order: 2;
    }

    .hero-cta .btn {
        flex: 1;
        max-width: 180px;
        padding: 12px 16px;
        font-size: 0.9rem;
        margin-left: 0 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Add solid background to outline button on mobile */
    .hero-cta .btn-outline {
        background-color: white;
    }

    /* Keep outline button text color on hover */
    .hero-cta .btn-outline:hover {
        color: var(--white);
        background-color: var(--primary-navy);
    }

    /* Show mobile text, hide desktop text */
    .btn-text-mobile {
        display: inline;
    }

    .btn-text-desktop {
        display: none;
    }

    /* Floating CTA for Mobile */
    .floating-cta {
        display: flex !important;
        /* Force show on mobile */
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: var(--accent-gold);
        color: var(--white);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
        z-index: 1001;
        font-size: 1.5rem;
        animation: pulse 2s infinite;
    }

    /* Mobile: Icons inline with titles in feature/service boxes */
    .feature-box {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .feature-box i {
        font-size: 2rem !important;
        margin-bottom: 0 !important;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .feature-box h3 {
        flex: 1;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .feature-box p {
        flex-basis: 100%;
        width: 100%;
    }

    /* Alternative: restructure to put icon next to title */
    .service-item {
        flex-direction: column !important;
        text-align: center;
    }

    .service-icon {
        margin-bottom: 15px !important;
    }

    /* Stack contact section vertically on mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* Contact Form - Darker background for better contrast */
.contact-form-wrapper {
    background-color: #d8dfe6;
    /* Much darker gray-blue for clear distinction */
}

/* FAQ Section */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-gold);
}

.faq-item[open] {
    border-color: var(--primary-navy);
    background: var(--light-bg);
}

.faq-item summary {
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    font-size: 1.1rem;
    position: relative;
    padding-right: 30px;
}

/* Custom indicator */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: bold;
    color: var(--accent-gold);
    font-size: 1.5rem;
    line-height: 1rem;
}

.faq-item[open] summary::after {
    content: '-';
    color: var(--primary-navy);
}

.faq-item p {
    margin-top: 15px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--accent-gold);
}

.notification-toast.show {
    top: 100px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.notification-content i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.notification-toast.error {
    background-color: #721c24;
    border-color: #f5c6cb;
}