/*
Theme Name: FlexFinance EUnion
Theme URI: https://flex-finance.eu
Author: FlexFinance EUnion
Author URI: https://flex-finance.eu
Description: A modern, professional theme for FlexFinance EUnion - Berlin-based consultancy empowering startups and entrepreneurs with financial solutions and digital transformation.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flexfinance-eunion
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables / Theme Colors
   ========================================================================== */
:root {
    --ff-background: hsl(210, 25%, 8%);
    --ff-foreground: hsl(180, 15%, 95%);
    --ff-card: hsl(210, 20%, 12%);
    --ff-card-foreground: hsl(180, 15%, 95%);
    --ff-primary: hsl(152, 65%, 45%);
    --ff-primary-foreground: hsl(210, 25%, 8%);
    --ff-secondary: hsl(210, 20%, 16%);
    --ff-secondary-foreground: hsl(180, 15%, 90%);
    --ff-muted: hsl(210, 15%, 20%);
    --ff-muted-foreground: hsl(180, 10%, 65%);
    --ff-accent: hsl(205, 75%, 50%);
    --ff-accent-foreground: hsl(210, 25%, 8%);
    --ff-border: hsl(210, 15%, 22%);
    --ff-green: hsl(152, 65%, 45%);
    --ff-green-light: hsl(152, 55%, 55%);
    --ff-green-dark: hsl(152, 70%, 35%);
    --ff-blue: hsl(205, 75%, 50%);
    --ff-blue-light: hsl(205, 65%, 60%);
    --ff-blue-dark: hsl(205, 80%, 40%);
    --ff-radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ff-background);
    color: var(--ff-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(17, 22, 28, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ff-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 1024px) {
    .header-inner {
        height: 5rem;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo img,
.site-logo .logo-image {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.site-logo .custom-logo-wrapper {
    display: inline-block;
    height: 3rem;
    width: auto;
}

.site-logo .custom-logo-wrapper img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .site-logo img,
    .site-logo .logo-image {
        height: 3.5rem;
    }
    
    .site-logo .custom-logo-wrapper {
        height: 3.5rem;
    }
}

/* Desktop Navigation */
.main-navigation {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
}

.nav-link {
    color: rgba(233, 241, 240, 0.8);
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem 0;
}

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

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ff-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--ff-primary);
    color: var(--ff-primary-foreground);
}

.btn-primary:hover {
    background-color: var(--ff-green-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(41, 163, 219, 0.5);
    color: var(--ff-accent);
}

.btn-outline:hover {
    background-color: rgba(41, 163, 219, 0.1);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--ff-foreground);
    background: none;
    border: none;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
    top: 4px;
}

.hamburger-icon span:nth-child(2) {
    top: 11px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--ff-border);
}

.mobile-navigation.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-navigation {
        display: none !important;
    }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links .nav-link {
    padding: 0.5rem 0;
    text-align: left;
}

.mobile-nav-links .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, 
        rgba(17, 22, 28, 0.95), 
        rgba(17, 22, 28, 0.9), 
        rgba(17, 22, 28, 0.8));
}

.hero-accent-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(54, 179, 126, 0.4) 0%, transparent 50%), 
        radial-gradient(circle at 70% 80%, rgba(41, 163, 219, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    padding: 0 1rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ff-foreground);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-title .accent {
    color: var(--ff-accent);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ff-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-tagline {
        font-size: 1.875rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--ff-muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(54, 179, 126, 0.6);
    transition: color 0.3s ease;
    background: none;
    border: none;
    animation: bounce 1s infinite;
}

.scroll-indicator:hover {
    color: var(--ff-primary);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 5rem 0;
    background-color: var(--ff-secondary);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ff-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--ff-primary), var(--ff-accent));
    margin: 0 auto;
}

.section-subtitle {
    color: var(--ff-muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 1.5rem auto 0;
}

.about-grid {
    display: grid;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ff-foreground);
}

@media (min-width: 768px) {
    .about-content h3 {
        font-size: 1.875rem;
    }
}

.about-content p {
    color: var(--ff-muted-foreground);
    line-height: 1.75;
}

.about-content p.lead {
    font-size: 1.125rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.value-card {
    background-color: var(--ff-card);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.value-card:hover {
    border-color: rgba(54, 179, 126, 0.5);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, rgba(54, 179, 126, 0.2), rgba(41, 163, 219, 0.2));
    color: var(--ff-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ff-primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .value-title {
        font-size: 1.5rem;
    }
}

.value-label {
    color: var(--ff-muted-foreground);
    font-weight: 500;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    position: relative;
    padding: 5rem 0;
}

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

.services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 22, 28, 0.95);
}

.services-content {
    position: relative;
    z-index: 10;
    max-width: 72rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: rgba(26, 33, 41, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(54, 179, 126, 0.5);
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, var(--ff-primary), var(--ff-accent));
    color: var(--ff-primary-foreground);
    border-radius: var(--ff-radius);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ff-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .service-title {
        font-size: 1.5rem;
    }
}

.service-description {
    color: var(--ff-muted-foreground);
    line-height: 1.75;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--ff-secondary);
}

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

.contact-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    color: var(--ff-muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .contact-cards {
        flex-direction: row;
    }
}

.contact-card {
    background-color: var(--ff-card);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 24rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .contact-card {
        margin: 0;
    }
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, rgba(54, 179, 126, 0.2), rgba(41, 163, 219, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon.email-icon {
    color: var(--ff-primary);
}

.contact-icon.location-icon {
    color: var(--ff-accent);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ff-foreground);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--ff-primary);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: rgba(54, 179, 126, 0.8);
}

.contact-card p {
    color: var(--ff-muted-foreground);
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--ff-card);
    border-top: 1px solid var(--ff-border);
    padding: 3rem 0;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-logo .primary {
    color: var(--ff-primary);
}

.footer-logo .accent {
    color: var(--ff-accent);
}

.footer-tagline {
    color: var(--ff-muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--ff-muted-foreground);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--ff-primary);
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--ff-border);
    margin: 2rem 0;
}

.footer-copyright {
    text-align: center;
    color: var(--ff-muted-foreground);
    font-size: 0.875rem;
}

/* ==========================================================================
   SVG Icons
   ========================================================================== */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

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

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

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

/* Intersection Observer Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--ff-muted-foreground);
    margin-top: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
