/* =============================================
   MAIN PAGE STYLES
   For the main website with embedded chatbot
   ============================================= */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --primary-color: #2980B9;
    --primary-dark: #1a5276;
    --primary-light: #5dade2;
    --secondary-color: #27AE60;
    --accent-color: #F39C12;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --text-color: #34495E;
    --error-color: #E74C3C;
    --success-color: #27AE60;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
}

/* Page Container */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================================
   HEADER STYLES
   ============================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: #000000;
    padding: var(--spacing-xxl) var(--spacing-xl);
    text-align: center;
    color: var(--white);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.cta-button svg {
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: var(--white);
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xl);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--gray-600);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg);
}

/* =============================================
   CHAT WIDGET BUTTON
   ============================================= */
.chat-widget-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.chat-widget-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.chat-widget-button svg {
    transition: all var(--transition-fast);
}

.chat-widget-button .hidden {
    display: none;
}

/* =============================================
   CHAT WIDGET CONTAINER
   ============================================= */
.chat-widget-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    height: 600px;
    max-height: calc(100vh - 140px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
    background: var(--white);
}

.chat-widget-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-widget-container.hidden {
    display: none;
}

.chat-widget-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .chat-widget-container {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 90px;
        height: calc(100vh - 120px);
    }
    
    .chat-widget-button {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
