:root {
    --primary-color: #02240b;
    --secondary-color: #9a8c78;
    --background-color: #ffffff;
    --text-color: #333333;
    --spacing-unit: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-display: swap;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-display: swap;
    text-rendering: optimizeLegibility;
}

/* Header Top Section */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-contact-info span {
    display: flex;
    align-items: center;
}

.header-contact-info i {
    margin-right: 5px;
}

/* Navbar Styling */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.logo-symbol {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e67e22;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #e67e22;
    transition: all 0.3s ease;
}

.nav-link:hover:after {
    width: 70%;
    left: 15%;
}

.nav-cta {
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: #d35400;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger:before, .hamburger:after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

/* Scrolled header style */
.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styling */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 5px 0;
    }

    .nav-cta {
        margin: 20px 0 0 0;
        display: inline-block;
    }

    .header-top {
        display: none;
    }
}

/* Navbar Styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: calc(var(--spacing-unit) * 3) 0;
    transition: padding 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 100;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 6);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 6);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
    background-color: var(--secondary-color);
}

.nav-cta {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background: #333;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 100;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Start with display none */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: calc(var(--spacing-unit) * 8);
        z-index: 99;
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-unit) * 4);
        margin-bottom: calc(var(--spacing-unit) * 4);
        width: 100%;
        padding: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: inline-block;
        font-size: 24px;
        padding: calc(var(--spacing-unit) * 2) 0;
        color: var(--primary-color);
        width: 100%;
    }

    .nav-cta {
        margin-top: calc(var(--spacing-unit) * 4);
        font-size: 18px;
        padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 5);
        width: auto;
    }

    /* Hamburger Button */
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 100;
        width: 32px;
        height: 32px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    .hamburger {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hamburger::before {
        content: '';
        top: -8px;
        left: 0;
    }

    .hamburger::after {
        content: '';
        bottom: -8px;
        left: 0;
    }

    /* Active Hamburger Animation */
    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Hide desktop menu items when in mobile view */
    .nav-menu > *:not(.nav-list):not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: calc(var(--spacing-unit) * 6);
    }

    .nav-link {
        font-size: 20px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 calc(var(--spacing-unit) * 3);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.97) 0%, 
        rgba(255,255,255,0.9) 40%, 
        rgba(255,255,255,0.8) 60%, 
        rgba(255,255,255,0.6) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 80px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 86px);
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.hero-divider {
    width: 120px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 600px;
    margin-bottom: calc(var(--spacing-unit) * 6);
    color: #444;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

.primary-btn, .secondary-btn {
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 5);
    font-size: 16px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.primary-btn:hover {
    background: #033c13;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.secondary-btn:hover {
    background: rgba(2, 36, 11, 0.05);
    transform: translateY(-2px);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-badge {
    position: absolute;
    right: 30px;
    bottom: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(2, 36, 11, 0.9);
    color: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 2px;
    transform: rotate(-2deg);
}

.hero-badge span {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    letter-spacing: 1px;
}

.badge-divider {
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: calc(var(--spacing-unit) * 1.5) 0;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-bottom: 80px;
    }
    
    .hero-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: calc(var(--spacing-unit) * 8);
        align-self: flex-end;
    }
    
    .hero-background {
        width: 100%;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(255,255,255,0.97) 0%, 
            rgba(255,255,255,0.9) 60%, 
            rgba(255,255,255,0.8) 100%);
    }
    
    .hero-container {
        align-items: center;
        text-align: center;
    }
    
    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badge {
        align-self: center;
        margin-top: calc(var(--spacing-unit) * 6);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
}

/* Hero Section - Mobile fixes */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px; /* Add padding to push content down from navbar */
    }
    
    .hero-container {
        padding-top: 100px; /* Increase padding-top to give more space below navbar */
        align-items: center;
        text-align: center;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(255,255,255,0.97) 0%, 
            rgba(255,255,255,0.9) 60%, 
            rgba(255,255,255,0.8) 100%);
    }
    
    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badge {
        align-self: center;
        margin-top: calc(var(--spacing-unit) * 6);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px calc(var(--spacing-unit) * 2) 0;
        min-height: 100vh; /* Ensure full height on small devices */
        height: auto; /* Allow content to expand the container */
    }
    
    .hero-content {
        margin-top: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
}

/* About Section - Updated Styles */
.about {
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 3);
    background-color: var(--background-color);
    position: relative;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: calc(var(--spacing-unit) * 12);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.about-header h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.about-divider {
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 12);
}

.about-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.about-image-container {
    position: relative;
    padding-top: calc(var(--spacing-unit) * 6);
    padding-right: calc(var(--spacing-unit) * 6);
}

.about-image {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image.primary {
    height: 480px;
    z-index: 2;
}

.about-image.secondary {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 220px;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: calc(var(--spacing-unit) * -6);
    right: calc(var(--spacing-unit) * 10);
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 5);
    text-align: center;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.badge-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: calc(var(--spacing-unit));
}

.badge-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
}

.large-text {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
    color: #444;
    font-weight: 300;
}

.about-text-content p:not(.large-text) {
    color: #666;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 2);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 4);
}

.feature-icon {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(2, 36, 11, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Custom icons using pseudo-elements - removing emoji styles */
.feature-icon i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Remove the emoji-based styles */
/* 
.feature-gavel::before,
.feature-scale::before,
.feature-briefcase::before {
    content: "⚖️";
    font-style: normal;
}
*/

/* Font Awesome icons for features section */
.fas.fa-gavel,
.fas.fa-balance-scale,
.fas.fa-briefcase {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.feature-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit));
}

.feature-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.link-arrow {
    margin-left: calc(var(--spacing-unit));
    transition: transform 0.3s ease;
}

.text-link:hover .link-arrow {
    transform: translateX(4px);
}

.about-quote {
    padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 8);
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
}

.about-quote::before {
    content: '"';
    position: absolute;
    top: calc(var(--spacing-unit) * 4);
    left: calc(var(--spacing-unit) * 4);
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    line-height: 0;
    color: rgba(2, 36, 11, 0.1);
}

.about-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
}

.about-quote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.about-quote cite {
    font-style: normal;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Responsive adjustments for About section */
@media (max-width: 1024px) {
    .about {
        padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3);
    }
    
    .about-grid {
        gap: calc(var(--spacing-unit) * 6);
    }
    
    .about-image.primary {
        height: 400px;
    }
    
    .about-image.secondary {
        width: 250px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 8);
    }

    .about-image-container {
        margin: 0 auto;
        max-width: 400px;
    }

    .about-image.primary {
        height: auto;
        aspect-ratio: 3/4;
    }

    .about-image.secondary {
        width: 200px;
        height: 150px;
    }

    .experience-badge {
        right: calc(var(--spacing-unit) * 4);
    }

    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-quote {
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    }
}

@media (max-width: 480px) {
    .about-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 3);
    }
    
    .about-quote {
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3);
    }
    
    .about-image-container {
        padding-right: calc(var(--spacing-unit) * 3);
    }
    
    .about-image.secondary {
        width: 150px;
        height: 120px;
    }
}

/* About Section Mobile Fixes */
@media (max-width: 768px) {
    .about {
        padding-top: calc(var(--spacing-unit) * 20); /* Ensure enough space from navbar */
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 8);
    }

    .about-image-container {
        margin: 0 auto;
        max-width: 400px;
        padding-top: calc(var(--spacing-unit) * 6);
        padding-right: calc(var(--spacing-unit) * 6);
        /* Set explicit dimensions to ensure proper display */
        width: 100%;
        height: auto;
        min-height: 380px; /* Ensure container has enough height for both images */
        position: relative;
    }

    .about-image.primary {
        height: auto;
        aspect-ratio: 3/4;
        width: 100%;
        position: relative;
    }

    .about-image.secondary {
        width: 200px;
        height: 150px;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .experience-badge {
        right: calc(var(--spacing-unit) * 4);
        bottom: calc(var(--spacing-unit) * -4);
    }
}

@media (max-width: 480px) {
    .about {
        padding-top: calc(var(--spacing-unit) * 18);
    }
    
    .about-image-container {
        padding-right: calc(var(--spacing-unit) * 3);
        min-height: 320px; /* Smaller minimum height for smaller screens */
    }
    
    .about-image.secondary {
        width: 150px;
        height: 120px;
    }
    
    .experience-badge {
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
        right: calc(var(--spacing-unit) * 3);
        bottom: calc(var(--spacing-unit) * -3);
    }
    
    .badge-number {
        font-size: 24px;
    }
    
    .badge-text {
        font-size: 12px;
    }
}

/* Services Section - Improved Styles */
.services {
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 3);
    background-color: #f9f9f9;
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    margin-bottom: calc(var(--spacing-unit) * 12);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.services-header h2 {
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.header-divider {
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.services-intro {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 10);
}

.service-item {
    position: relative;
    padding: calc(var(--spacing-unit) * 6);
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    display: inline-block;
    color: var(--primary-color);
}

.service-icon i {
    font-size: 36px;
    opacity: 0.85;
}

.service-number {
    position: absolute;
    top: calc(var(--spacing-unit) * 6);
    right: calc(var(--spacing-unit) * 6);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 500;
    opacity: 0.7;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: relative;
}

.service-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-details p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--spacing-unit) * 6) 0;
}

.service-list li {
    font-size: 15px;
    color: #555;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 4);
    position: relative;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    width: fit-content;
}

.cta-text {
    transition: all 0.3s ease;
}

.cta-arrow {
    margin-left: calc(var(--spacing-unit) * 2);
    transition: transform 0.3s ease;
}

.service-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.service-cta:hover {
    color: var(--secondary-color);
}

.services-footer {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-footer-content {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.services-footer p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.services-footer p:last-child {
    margin-bottom: 0;
}

.services-cta-wrapper {
    margin-top: calc(var(--spacing-unit) * 6);
}

/* Font Awesome Icons Integration */
.fa-balance-scale,
.fa-briefcase,
.fa-file-contract,
.fa-gavel,
.fa-arrow-right {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.fa-balance-scale::before {
    content: "\f24e"; /* Font Awesome balance-scale icon */
}

.fa-briefcase::before {
    content: "\f0b1"; /* Font Awesome briefcase icon */
}

.fa-file-contract::before {
    content: "\f56c"; /* Font Awesome file-contract icon */
}

.fa-gavel::before {
    content: "\f0e3"; /* Font Awesome gavel icon */
}

.fa-arrow-right::before {
    content: "\f061"; /* Font Awesome arrow-right icon */
}

/* Service Item - Active State for Prawo Gospodarcze */
.service-item[data-category="Prawo Gospodarcze"] {
    border-bottom: 3px solid var(--primary-color);
    background-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-item[data-category="Prawo Gospodarcze"] .service-content h3,
.service-item[data-category="Prawo Gospodarcze"] .service-details p,
.service-item[data-category="Prawo Gospodarcze"] .service-list li,
.service-item[data-category="Prawo Gospodarcze"] .service-icon,
.service-item[data-category="Prawo Gospodarcze"] .service-number,
.service-item[data-category="Prawo Gospodarcze"] .service-cta {
    color: white;
}

.service-item[data-category="Prawo Gospodarcze"] .service-list li::before {
    color: var(--secondary-color);
}

/* Responsive adjustments for Services section */
@media (max-width: 1024px) {
    .services {
        padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3);
    }
    
    .services-grid {
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .service-item {
        padding: calc(var(--spacing-unit) * 5);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content h3 {
        font-size: 24px;
    }
    
    .services-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .service-item {
        padding: calc(var(--spacing-unit) * 4);
    }
    
    .service-number {
        top: calc(var(--spacing-unit) * 4);
        right: calc(var(--spacing-unit) * 4);
    }
    
    .service-content h3 {
        font-size: 22px;
    }
    
    .service-icon {
        font-size: 28px;
    }
    
    .services-footer {
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2) 0;
    }
}

/* Team Section */
.team {
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 3);
    background-color: #f9f9f9;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-header {
    margin-bottom: calc(var(--spacing-unit) * 12);
    max-width: 900px;
}

.team-header h2 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 4);
}

.team-member {
    position: relative;
    background-color: var(--background-color);
}

.member-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-info {
    padding: calc(var(--spacing-unit) * 4);
    background-color: var(--background-color);
}

.member-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.member-role {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: #333;
}

.btn-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-line {
    transform: scaleX(1);
    transform-origin: left;
}

/* Map Styles */
.map-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.map-wrapper:hover {
    filter: grayscale(0%);
}

/* Responsive adjustments for Contact section */
@media (max-width: 1024px) {
    .contact {
        padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3);
    }
    
    .contact-content {
        gap: calc(var(--spacing-unit) * 6);
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 {
        font-size: 36px;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .map-container {
        height: 300px;
    }
}

/* Footer Styles */
.footer {
    background-color: #010f06;
    color: white;
    padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 6);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    padding-bottom: calc(var(--spacing-unit) * 8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
    display: grid;
    gap: calc(var(--spacing-unit) * 6);
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 6);
}

.footer-nav h4,
.footer-practice h4 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav ul,
.footer-practice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li,
.footer-practice ul li {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-nav ul a,
.footer-practice ul a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-nav ul a::after,
.footer-practice ul a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-nav ul a:hover,
.footer-practice ul a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul a:hover::after,
.footer-practice ul a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    padding-top: calc(var(--spacing-unit) * 6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand .adwokatura-logo {
    width: 100px;
    height: auto;
    margin-top: calc(var(--spacing-unit) * 3);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-brand .adwokatura-logo {
        width: 80px;
    }
}

/* Responsive adjustments for Footer */
@media (max-width: 1024px) {
    .footer {
        padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
    }
    
    .footer-main {
        gap: calc(var(--spacing-unit) * 6);
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 8);
    }
    
    .footer-links {
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
    
    .footer-nav,
    .footer-practice, .footer-info {
        text-align: center;
    }
}

/* Contact Section - Added Styles */
.contact {
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 3);
    background-color: var(--background-color);
    position: relative;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 10);
}

.contact-info {
    max-width: 500px;
}

.contact-info h2 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-intro {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: calc(var(--spacing-unit) * 5);
}

.contact-item {
    position: relative;
}

.detail-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.contact-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.contact-form-wrapper {
    background-color: #f9f9f9;
    padding: calc(var(--spacing-unit) * 6);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 5);
    width: 100%;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 2) 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.contact-form label {
    position: absolute;
    left: 0;
    top: calc(var(--spacing-unit) * 2);
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form input:valid,
.contact-form textarea:valid {
    border-color: var(--primary-color);
}

.contact-form input:focus ~ label,
.contact-form textarea:focus ~ label,
.contact-form input:valid ~ label,
.contact-form textarea:valid ~ label {
    top: -10px;
    font-size: 12px;
    color: var(--primary-color);
}

.submit-btn {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 5);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    overflow: hidden;
}

/* Form message styles added for contact form feedback */
.form-message {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    margin: calc(var(--spacing-unit) * 3) 0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
    color: #27ae60;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    color: #c0392b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for Contact section */
@media (max-width: 1024px) {
    .contact {
        padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3);
    }
    
    .contact-content {
        gap: calc(var(--spacing-unit) * 6);
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 {
        font-size: 36px;
    }
    
    .contact-form-wrapper {
        padding: calc(var(--spacing-unit) * 5);
    }
    
    .map-container {
        height: 400px;
        margin-top: calc(var(--spacing-unit) * 8);
    }
    
    .submit-btn {
        align-self: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: calc(var(--spacing-unit) * 4);
    }
    
    .map-container {
        height: 300px;
    }
}

/* Performance optimizations */
/* Optimize animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Add page load animations to improve perceived performance */
.page-loaded .hero-content h1 {
    animation: fadeInUp 0.8s ease backwards;
}

.page-loaded .hero-content p {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.page-loaded .hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

/* Print styles for better accessibility */
@media print {
    .header,
    .nav-cta,
    .hero-buttons,
    .footer {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .about-image-container,
    .map-container {
        page-break-inside: avoid;
    }
}
