
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

:root {
    --primary-color: #0067B1; /* PANTONE 307 C */
    --secondary-color: #FFC72C; /* PANTONE 136 C */
    --background-color: #f8f9fa; /* Light Gray */
    --card-background: #ffffff;
    --text-color: #212121;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(255, 199, 44, 0.4); /* Yellow glow */
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 96px; /* Adjust for fixed nav */
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Navigation */
.top-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 96px;
}

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

.logo {
    height: 72px;
    width: auto;
    max-width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.menu-items ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-items a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.menu-items a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.menu-items a:hover:not(.cta-button)::after,
.menu-items a.active:not(.cta-button)::after {
    width: 100%;
}

.menu-items a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    color: #fff !important;
}

header {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/delta-nobre-static.firebasestorage.app/o/Logos%2FLogoDelta%20Site.webp?alt=media&token=e2a4b8b6-6218-472d-8a47-4c4f31c87609');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 20px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    min-height: 50vh;
    container-type: inline-size;
}

.header-content {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    text-align: right;
}

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff; /* Changed to white */
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Added for readability */
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-section, .content-section {
    text-align: center;
    padding: 60px 0;
}

.link-section h2, .content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.link-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow-color), 0 8px 16px var(--shadow-color);
    padding: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px var(--shadow-color), 0 12px 24px var(--shadow-color), 0 0 25px var(--glow-color);
}

.link-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.link-card:hover i {
    color: var(--primary-color);
}

.link-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .menu-items ul {
        gap: 15px;
    }
    .menu-items a {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 8px 15px;
    }
}

@container (max-width: 768px) {
    header {
        background-size: contain;
        min-height: 30vh;
        background-color: var(--primary-color);
    }

    .header-subtitle {
        color: var(--primary-color);
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 84px;
    }

    .top-nav {
        height: 84px;
    }

    .logo {
        height: 60px;
    }
    
    .menu-toggle {
        display: block;
    }

    .menu-items {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px var(--shadow-color);
        padding: 20px 0;
    }

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

    .menu-items ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    header {
        min-height: 40vh;
        padding: 8rem 20px;
    }

    .header-content {
        bottom: 1rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .link-section h2, .content-section h2 {
        font-size: 2rem;
    }

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