/* 
    Corsegur Modern Design System 
    Professional Insurance Services
*/

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

:root {
    --primary: #002d5c;
    --primary-dark: #001a35;
    --primary-light: #004d9c;
    --accent: #c9a44e;
    --accent-hover: #b08d3e;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 0px 0px 150px 0px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    font-weight: 500;
}

.nav-item>a {
    padding: 10px 0;
    color: var(--primary);
}

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

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 15px 0;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 25px;
    color: var(--text-dark);
    font-size: 15px;
}

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 45, 92, 0.8), rgba(0, 45, 92, 0.6)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

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

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 164, 78, 0.3);
}

/* News Section (RSS) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Common Grids */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    align-items: stretch;
    justify-items: stretch;
}

.partners-grid .news-card {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: var(--white);
    border-radius: 24px;
    transition: var(--transition);
}

.partners-grid img {
    object-fit: contain;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 20px;
    color: var(--accent);
    margin-right: 20px;
    margin-top: 5px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-map {
    width: 100%;
    margin-top: 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Premium Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eef0f2;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: #fdfdfe;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 164, 78, 0.1);
}

textarea.form-input {
    resize: none;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    z-index: 1100;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
}

/* Mobile Responsive Media Queries */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

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

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

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: 500px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        justify-items: center !important;
    }

    .hero .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .logo img {
        height: 65px;
    }

    .footer-col {
        text-align: center;
        padding-left: 0 !important;
    }

    .footer-col p {
        max-width: 100%;
    }
}

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

    .hero h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .footer-links {
        display: inline-block;
        text-align: left;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #128c7e;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}