/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #5f6368;
    --accent-color: #fbbc04;
    --success-color: #34a853;
    --text-dark: #202124;
    --text-medium: #5f6368;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e8eaed;
    --border-color: #dadce0;
    --shadow-subtle: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-card: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    --font-primary: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-subtle);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.logo-image {
    height: 110px;
    width: auto;
    transition: var(--transition);
    margin-top: -23px;
    margin-bottom: -23px;
}

.logo-image:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link-cta {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 24px;
    border-radius: 24px;
    transition: var(--transition);
    font-weight: 500;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-subtle);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-medium);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===========================
   Flash Messages
   =========================== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
}

.flash {
    padding: 16px 24px;
    margin-bottom: 8px;
    animation: slideDown 0.2s ease;
    border-radius: var(--border-radius);
}

.flash .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: #e6f4ea;
    color: #137333;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: #fce8e6;
    color: #c5221f;
    border-left: 4px solid #ea4335;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.flash-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===========================
   Main Content
   =========================== */
main {
    margin-top: 80px;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 36px;
    font-weight: 400;
}

h3 {
    font-size: 24px;
    font-weight: 500;
}

p {
    margin-bottom: 16px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-primary);
    letter-spacing: 0.25px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.btn-secondary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-light {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

.btn-light:hover {
    box-shadow: var(--shadow-card);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   Cards
   =========================== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 24px;
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 14px;
}

/* ===========================
   Grid System
   =========================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 64px 0 32px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-image {
    height: 200px;
    width: auto;
    opacity: 0.9;
}

.footer-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.footer-title {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-medium);
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-medium);
    margin: 0;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-legal a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal span {
    color: var(--border-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        gap: 16px;
        align-items: flex-start;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .card {
        padding: 24px;
    }
}
