/* ========================================
   PROFI LEX - Modern Responsive Website
   Professional Law Firm Design
   ======================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Colors */
    --primary-color: #1a365d;
    --primary-dark: #0f2340;
    --primary-light: #2d4a7c;
    --accent-color: #c9a227;
    --accent-light: #dbb84a;
    --accent-dark: #a68420;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;

    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    --bg-card: #ffffff;

    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* 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), 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);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* White navbar for logo visibility */
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    padding: var(--spacing-md) 0;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    /* Dark text on white navbar */
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-normal);
}

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    /* Dark color for white navbar */
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding-top: 80px;
    /* Space for fixed navbar */
    /* Exact color from banner image */
    background: #004f87;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    /* Exact banner aspect ratio: 950x317 = 3:1 */
    aspect-ratio: 950 / 317;
    min-height: 200px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fill width completely - banner matches container exactly */
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Hide overlay to show banner text */
.hero-overlay {
    display: none;
}

/* Move hero content below the banner */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    /* Exact color from banner bottom center */
    background: #1a365d;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--text-white);
}

.title-accent {
    display: block;
    color: var(--accent-color);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slider-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--text-white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active,
.indicator:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 3 / 1;
        min-height: 200px;
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
    color: var(--text-white);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-text p {
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    color: var(--text-secondary);
}

.about-text p strong {
    color: var(--primary-color);
}

.about-text .highlight {
    background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    font-style: italic;
}

.about-features {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-color);
}

.about-features h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.features-list {
    margin-bottom: var(--spacing-xl);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cta-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   About Me Section
   ======================================== */
.about-me {
    background: var(--bg-primary);
}

.about-me-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-white);
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.profile-image {
    margin-bottom: var(--spacing-lg);
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.profile-subtitle {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.profile-text p {
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    color: var(--text-secondary);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.service-card>p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.service-list {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}

.service-list li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   Cooperation Section
   ======================================== */
.cooperation {
    background: var(--primary-color);
    color: var(--text-white);
}

.cooperation .section-title {
    color: var(--text-white);
}

.cooperation .section-divider {
    background: var(--accent-color);
}

.cooperation-content {
    text-align: center;
}

.cooperation-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.cooperation-text p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.pricing-card h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cooperation-cta {
    font-size: 1.1rem;
}

.cooperation-cta a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.cooperation-cta a:hover {
    color: var(--accent-light);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    margin-bottom: var(--spacing-xl);
}

.contact-card h3 {
    color: var(--accent-color);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.bank-number {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-width: 200px;
    height: auto;
    /* Show logos with white background for visibility */
    background: #fff;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-normal);
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-info {
    text-align: right;
}

.footer-info h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-me-content {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: static;
        max-width: 400px;
        margin: 0 auto var(--spacing-2xl);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-info {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

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

    .nav-link {
        font-size: 1.1rem;
    }

    .hero-title {
        padding: 0 var(--spacing-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
    }

    .footer-logo {
        max-width: 150px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-features,
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .pricing-card {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: var(--spacing-xl);
}