:root {
    --primary-color: #417d79;
    --primary-dark: #325e5c;
    --primary-light: #5ea8a3;
    --secondary-color: #f8f8f8;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --accent: #e6c280;
    --border-color: #e5e5e5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

/* Fix for mobile content being covered by header */
body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 0; /* Remove any top padding that might be causing issues */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 0;
}

.container h2 {
    text-align: center;
}

.container h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Header */
header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo {
    height: 100px;
    width: auto;
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Add hamburger menu for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-selector a {
    color: var(--white);
    margin: 0 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 5px;
}

.language-selector a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--white);
}

.language-selector a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    padding-top: 180px; /* Increased padding to accommodate fixed header */
}

.hero h1, .hero h2, .hero p {
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome {
    padding: 80px 0;
    background-color: var(--white);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.lawyer-photo {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(65, 125, 121, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.service-note {
    margin-top: 40px;
    font-style: italic;
}

/* Commitment Section */
.commitment {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    padding: 30px 20px;
    transition: var(--transition);
    border-radius: 8px;
}

.benefit-item:hover {
    background-color: var(--secondary-color);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits-conclusion {
    max-width: 800px;
    margin: 50px auto 0;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-methods {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    flex: 1;
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Raleway', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 125, 121, 0.2);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: auto;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-social p {
    color: #ccc;
}

.footer-social p a {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: #999;
    margin-bottom: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
    }

    /* Improve spacing on tablets */
    .services-grid,
    .benefits-grid {
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* More touch-friendly targets */
    .cta-button,
    .social-icons a {
        padding: 12px 20px;
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        margin-top: 0;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    
    .language-selector {
        margin: 20px 0 0;
        justify-content: center;
        width: 100%;
    }
    
    /* Improve hero section on mobile */
    .hero {
        padding: 120px 0 60px;
    }
    
    /* Fix grid layouts for mobile */
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Better spacing for mobile */
    .about-content,
    .contact-content {
        gap: 30px;
    }
    
    /* Larger form inputs for touch */
    .form-group input,
    .form-group textarea,
    .form-group button {
        padding: 15px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Fix footer layout */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3:after,
    .footer-social h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }

    /* Hamburger menu implementation */
    .menu-toggle {
        display: block;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Fix header layout on mobile */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Ensure the menu toggle is properly positioned */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* Fix navigation overlay */
    nav {
        position: fixed; /* Change to fixed to prevent scrolling issues */
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        padding-top: 100px; /* Increase padding to clear the header */
    }
    
    /* Adjust hero section padding on mobile */
    .hero {
        padding-top: 150px;
    }
    
    /* Ensure all sections have proper padding to avoid header overlap */
    section {
        padding-top: 30px;
    }
    
    /* Adjust first section after hero */
    .welcome {
        padding-top: 50px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 70px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .contact-method {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }

    /* Smaller logo for very small screens */
    .logo {
        height: 70px;
    }
    
    /* Even more touch-friendly elements */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
    
    /* Better typography for small screens */
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Improve spacing */
    .section-intro {
        margin-bottom: 25px;
    }
    
    /* Optimize contact methods */
    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        padding: 25px 15px;
    }
    
    /* Better footer for small screens */
    .footer-logo-img {
        max-width: 100%;
    }
    
    /* Fix service cards */
    .service-card,
    .benefit-item {
        padding: 25px 15px;
    }

    .hero {
        padding-top: 130px; /* Adjust for smaller header on very small screens */
    }
    
    /* Fix content margins on small screens */
    .container {
        padding: 0 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.benefit-item,
.about-image,
.about-text,
.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.services-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.benefits-grid .benefit-item:nth-child(2) {
    animation-delay: 0.1s;
}

.benefits-grid .benefit-item:nth-child(3) {
    animation-delay: 0.2s;
}

.benefits-grid .benefit-item:nth-child(4) {
    animation-delay: 0.3s;
}

.benefits-grid .benefit-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* Add overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Ensure proper z-index for the header */
header {
    z-index: 1000;
}

/* Fix z-index stacking for mobile menu */
.menu-overlay {
    z-index: 999;
}

nav {
    z-index: 1000;
}

/* Add a body class for when menu is open to prevent scrolling */
body.menu-open {
    overflow: hidden;
}
