/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f2f2f2;
    --text-primary: #000000;
    --text-secondary: #2f2f2f;
    --accent-primary: #a51c58;
    --border-color: #e5e5e5;
    --font-family: 'Segoe UI', 'wf_segoe-ui_normal', Arial, sans-serif;
    --max-width: 1400px;
    --container-padding: 0 5%;
}

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Header and Navigation */
.global-header {
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* CTA Buttons */
.cta-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.cta-btn.primary {
    background-color: var(--accent-primary);
    color: #fff;
    border-radius: 6px;
}

.cta-btn.primary:hover {
    background-color: #92184d;
    box-shadow: 0 4px 12px rgba(165, 28, 88, 0.3);
}

.cta-btn.secondary {
    background-color: #a51c58;
    color: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(165, 28, 88, 0.2);
    letter-spacing: 0.02em;
    padding: 0.625rem 1.75rem;
}

.cta-btn.secondary:hover {
    background-color: #92184d;
    box-shadow: 0 4px 12px rgba(165, 28, 88, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

.cta-btn.secondary:active {
    transform: translateY(0);
}

.cta-btn.active-tab-btn {
    color: #a51c58 !important;
    border-bottom: 2px solid #a51c58 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.ai-btn {
    background-color: #f3f2f1;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-btn:hover {
    background-color: #edebe9;
    border-color: #8a8886;
}

.floating-ai-btn {
    position: fixed;
    bottom: 2rem;
    right: 5.5rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.floating-ai-btn:hover {
    transform: scale(1.05);
    background-color: #92184d;
}

.ai-assist-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background-color: #a51c58;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ai-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.ai-assist-btn:hover {
    background-color: #92184d;
    box-shadow: 0 4px 12px rgba(165, 28, 88, 0.3);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-bg);
    padding: 140px 0;
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.learn-more {
    font-weight: 600;
    color: var(--accent-primary);
}

.learn-more:hover {
    text-decoration: underline;
}

/* Services Grid */
.services {
    padding: 80px 0;
}

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

.card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* News Section */
.news {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-tag {
    display: inline-block;
    background: var(--secondary-bg);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.news-link {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.875rem;
}

/* Contact Strip */
.contact-strip {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item {
    font-size: 0.9375rem;
}

.info-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #a1a1a1;
    margin-bottom: 0.5rem;
}

/* Footer Section */
.global-footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 20px;
}

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

.footer-col h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #dcdcdc;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Inbox Styles */
.inbox-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.inbox-item:hover {
    background-color: #f8f9fa;
}

.inbox-item.active {
    background-color: #fff0f5;
    border-left: 3px solid #a51c58;
}

.filter-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
}

.filter-item:hover {
    background-color: #e1dfdd;
}

.filter-item.active {
    background-color: #fff0f5;
    color: #a51c58;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-content {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 860px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-content {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 2rem;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-content.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1.125rem;
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-actions .cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Animate Hamburger */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 80px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin: 0 auto 1.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

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

@media (max-width: 600px) {
    :root {
        --container-padding: 0 1rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}
