/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    --color-primary-dark: #001f5c;
    --color-primary: #002d84;
    --color-primary-light: #1e52ba;
    --color-accent: #ffffff;
    --color-text-dark: #1f2937;
    --color-text-light: #4b5563;
    --color-text-inverse: #f9fafb;
    --color-bg-light: #f3f4f6;
    --color-bg-white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin-bottom: 1rem; font-weight: 700; }
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-normal); }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-lead { font-size: 1.25rem; font-weight: 500; }
.text-body { font-size: 1.125rem; opacity: 0.9; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 4px;
    font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background-color: var(--color-accent); color: var(--color-primary-dark); }
.btn-primary:hover { background-color: #f0f0f0; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--color-accent); border-color: var(--color-accent); padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-outline:hover { background-color: var(--color-accent); color: var(--color-primary-dark); }

/* Header / Navigation */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 1rem 0;
    background-color: transparent; transition: var(--transition-normal);
}
.header.scrolled {
    background-color: rgba(0, 31, 92, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm); padding: 0.75rem 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Left group: logo + Open Chat link */
.nav-left { display: flex; align-items: center; gap: 1.5rem; }
/* Matches .btn .btn-outline (Book Consultation); just adds icon spacing */
.chat-cta { gap: 0.5rem; white-space: nowrap; margin-right: 50px; }

.logo { display: flex; align-items: center; gap: 0.75rem; color: var(--color-accent); }
.logo-icon { font-size: 2rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.5px; line-height: 1; }
.logo-subtitle { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--color-accent); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background-color: var(--color-accent); transition: var(--transition-normal);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

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

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-accent); overflow: hidden; padding-top: 5rem;
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero-bg-pattern::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--color-primary-dark) 80%);
}
.hero-content { position: relative; z-index: 10; max-width: 800px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -1px; margin-bottom: 0.5rem; }
.hero h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 300; opacity: 0.9; margin-bottom: 2rem; }
.hero .text-lead { margin-bottom: 1rem; }
.hero-actions { margin-top: 3rem; display: flex; gap: 1rem; justify-content: center; }

.hero-decor { position: absolute; border: 1px solid rgba(255, 255, 255, 0.2); transform: rotate(45deg); z-index: 1; }
.decor-1 { width: 15vw; height: 15vw; top: 10%; left: -5vw; border-width: 2px; }
.decor-2 { width: 20vw; height: 20vw; bottom: -10vw; right: -5vw; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-actions { flex-direction: column; }
    .hero h1 { line-height: 1.1; }
}

/* Sections & Layouts */
.section { padding: 6rem 0; }
.section-light { background-color: var(--color-bg-white); }
.section-alt { background-color: var(--color-bg-light); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; }
.section-header h2 { font-size: 2.5rem; color: var(--color-primary-dark); margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--color-text-light); }

.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Cards & Lists */
.info-card {
    background-color: var(--color-bg-white); border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 2.5rem; box-shadow: var(--shadow-sm); transition: var(--transition-normal); height: 100%;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--color-primary-light); }
.card-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1.5rem; }
.info-card h3 { font-size: 1.5rem; color: var(--color-primary-dark); margin-bottom: 1rem; }
.check-list { list-style: none; margin-top: 1rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.check-list i { position: absolute; left: 0; top: 4px; color: var(--color-primary); }
.text-primary { color: var(--color-primary); }

.alert-box {
    background-color: rgba(0, 45, 132, 0.05); border-left: 4px solid var(--color-primary);
    padding: 1.5rem; border-radius: 4px; display: flex; gap: 1rem; align-items: flex-start;
}
.alert-box i { color: var(--color-primary); font-size: 1.25rem; margin-top: 2px; }
.alert-box p { margin-bottom: 0; font-size: 0.95rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.75rem; }

.service-card {
    background-color: var(--color-bg-white); padding: 2rem; border-radius: 8px;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: var(--transition-normal); border-top: 4px solid var(--color-primary-light);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.step-num { font-size: 3rem; font-weight: 700; color: var(--color-primary-dark); opacity: 0.1; position: absolute; top: 1rem; right: 1.5rem; line-height: 1; }
.service-card h4 { font-size: 1.2rem; color: var(--color-primary-dark); margin-bottom: 1rem; margin-top: 1rem; position: relative; z-index: 1; }
.service-card p { font-size: 0.95rem; color: var(--color-text-light); position: relative; z-index: 1; margin-bottom: 0; }

.align-center { align-items: center; }
.text-primary-dark { color: var(--color-primary-dark); font-size: 2.5rem; margin-bottom: 1.5rem; }
.approach-content .text-lead { color: var(--color-primary); margin-bottom: 1.5rem; }

.partner-card {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-accent); padding: 3rem; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.partner-card h3 { font-size: 2rem; margin-bottom: 2rem; color: var(--color-accent); }
.partner-list { list-style: none; }
.partner-list li { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.partner-list li:last-child { margin-bottom: 0; }
.icon-box { width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.partner-list strong { display: block; margin-bottom: 0.25rem; font-size: 1.1rem; }
.partner-list p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0; }

/* News & Articles */
.article-card { background-color: var(--color-bg-white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal); display: flex; flex-direction: column; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.article-image { height: 200px; background-size: cover; background-position: center; background-color: var(--color-bg-light); }
.article-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 1rem; }
.article-tag { background-color: rgba(30, 82, 186, 0.1); color: var(--color-primary); padding: 0.25rem 0.75rem; border-radius: 99px; font-weight: 500; }
.article-content h3 { font-size: 1.25rem; color: var(--color-primary-dark); margin-bottom: 0.75rem; line-height: 1.4; }
.article-content h3 a:hover { color: var(--color-primary); }
.article-content p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.read-more:hover { gap: 0.75rem; }

/* CTA & Contact */
.cta-section { position: relative; padding: 6rem 0; background-color: var(--color-primary-dark); color: var(--color-accent); overflow: hidden; }
.cta-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.05;
    background-image: linear-gradient(45deg, var(--color-accent) 25%, transparent 25%, transparent 75%, var(--color-accent) 75%, var(--color-accent)),
        linear-gradient(45deg, var(--color-accent) 25%, transparent 25%, transparent 75%, var(--color-accent) 75%, var(--color-accent));
    background-size: 60px 60px; background-position: 0 0, 30px 30px;
}
.cta-content { position: relative; z-index: 10; }
.cta-section h2 { font-size: 2.5rem; text-align: center; }
.cta-section .text-lead { text-align: center; opacity: 0.9; margin-bottom: 3rem; }
.step-list { list-style: none; }
.step-list li { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; align-items: flex-start; }
.step-list i { font-size: 1.5rem; color: var(--color-bg-light); width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-list p { font-size: 1.05rem; padding-top: 0.5rem; }

.contact-form-container { background-color: rgba(0, 0, 0, 0.2); padding: 2.5rem; border-radius: 8px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
.contact-form-container h3 { margin-bottom: 0.5rem; font-size: 1.75rem; }
.contact-form-container p { opacity: 0.8; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.75rem 1rem; background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent; border-radius: 4px; font-family: var(--font-main);
    font-size: 0.95rem; color: var(--color-text-dark); transition: var(--transition-fast);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(30, 82, 186, 0.3); }
.contact-form textarea { resize: vertical; margin-bottom: 1rem; }
.btn-submit { width: 100%; padding: 1rem; font-size: 1.1rem; }

/* Footer */
.footer { background-color: #001540; color: var(--color-accent); padding: 4rem 0 2rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; }
.contact-info p { margin-bottom: 0.5rem; opacity: 0.9; display: flex; align-items: center; gap: 0.75rem; }
.contact-info a:hover { text-decoration: underline; }
.footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--color-accent); font-size: 1.25rem; opacity: 0.7; transition: var(--transition-fast); }
.social-icons a:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 992px) {
    .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 4rem 0; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    nav.nav-links {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--color-primary-dark); padding: 2rem; gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
    nav.nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .footer-social { align-items: flex-start; margin-top: 1rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 1.25rem; }
    .nav-left { gap: 0.75rem; }
    .chat-cta { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
    .partner-card { padding: 2rem 1.5rem; }
    .partner-list li { flex-direction: column; gap: 1rem; }
    .step-list i { margin-bottom: 0.5rem; }
    .contact-form-container { padding: 1.5rem; }
    .logo-title { font-size: 1.1rem; }
    .logo-subtitle { font-size: 0.55rem; }
}
