:root {
    --primary-color: #0c2340; /* Navy Blue */
    --secondary-color: #ffffff; /* White */
    --accent-color: #1d4ed8; /* Lighter Blue Accent */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8fafc;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 90px; /* Taller navbar so logo fits better */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 90px; /* Match new navbar height */
    width: 280px; /* Slightly wider for logo */
    overflow: hidden; /* Cropping out the white space */
}

.logo-img {
    height: 200px; /* Less zoom so logo is not cut */
    width: auto;
    margin-bottom: 0;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        height: 80px;
    }

    .logo {
        width: 200px;
        height: 80px;
    }

    .logo-img {
        height: 160px;
        margin-bottom: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 78%;
        height: calc(100svh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.25rem;
        padding: 2rem 1.25rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links a {
        font-size: 1rem;
    }

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

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: calc(100svh - 80px);
        height: calc(100svh - 80px);
        padding: 1rem 0 1rem;
    }

    .hero-content {
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 0.25rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.08;
        margin-bottom: 0.7rem;
    }

    .hero p {
        font-size: 0.92rem;
        line-height: 1.42;
        margin-bottom: 1rem;
        max-width: 92%;
    }

    .btn {
        width: auto;
        min-width: 220px;
        max-width: 90%;
        padding: 0.82rem 1.05rem;
        font-size: 0.95rem;
    }

    .services {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.25rem;
    }

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

    .service-card {
        height: 340px;
    }

    .service-title {
        font-size: 1.2rem;
        left: 16px;
        right: 16px;
        bottom: 18px;
    }

    .service-info {
        min-height: 118px;
        padding: 2.4rem 1rem 1rem;
    }

    .service-overlay {
        padding: 1.4rem;
    }

    .service-overlay p {
        font-size: 0.92rem;
        line-height: 1.45;
        max-width: 100%;
    }
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(12, 35, 64, 0.7), rgba(12, 35, 64, 0.7)), url('../img/casa_index.png') center/cover;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-align: center;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: #cbd5e1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Services */
.services {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: var(--bg-light);
    height: 350px;
}

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

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

.service-title {
    position: absolute;
    bottom: 22px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 3;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.75);
    transition: var(--transition);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 130px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(transparent, rgba(12, 35, 64, 0.96));
    padding: 2.8rem 1.5rem 1.4rem;
    color: var(--secondary-color);
    z-index: 2;
}

.service-info h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 3;
}

.service-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(12, 35, 64, 0.88);
    opacity: 0;
    transition: var(--transition);
    z-index: 4;
}

.service-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin: 0;
    max-width: 90%;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover .service-title {
    opacity: 0;
}

.service-card:hover .service-img {
    transform: scale(1.05);
    opacity: 0.25;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
}


@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        width: 150px;
    }

    .logo-img {
        height: 150px;
    }

    .hero {
        min-height: calc(100svh - 80px);
        height: calc(100svh - 80px);
        padding: 0.9rem 0 0.9rem;
    }

    .hero h1 {
        font-size: 1.72rem;
        line-height: 1.06;
        margin-bottom: 0.6rem;
    }

    .hero p {
        font-size: 0.86rem;
        line-height: 1.35;
        margin-bottom: 0.9rem;
        max-width: 94%;
    }

    .btn {
        width: auto;
        min-width: 205px;
        max-width: 92%;
        padding: 0.78rem 0.95rem;
        font-size: 0.9rem;
    }

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

    .services-grid {
        gap: 1.25rem;
    }

    .service-card {
        height: 320px;
        border-radius: 14px;
    }

    .service-title {
        font-size: 1.08rem;
        line-height: 1.2;
        bottom: 16px;
    }

    .service-info {
        min-height: 108px;
        padding: 2.15rem 0.95rem 0.95rem;
    }

    .service-overlay {
        padding: 1.1rem;
    }

    .service-overlay p {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.92rem;
    }
}
