/* =========================================================================
   PlexLead — Global Stylesheet
   Single source of truth for branding, type, color, spacing, and components.
   ========================================================================= */

:root {
    /* Google-inspired Color Palette */
    --primary-blue: #1a73e8;
    --primary-blue-hover: #1557b0;
    --primary-blue-light: #e8f0fe;
    --accent-green: #34a853;
    --accent-green-light: #e6f4ea;
    --accent-orange: #fbbc04;
    --accent-red: #ea4335;
    --accent-purple: #9c27b0;
    --accent-teal: #20c997;

    /* Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-light: #e8eaed;
    --border-medium: #dadce0;

    /* Text */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #80868b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.1);
    --shadow-md: 0 1px 3px 0 rgba(60,64,67,.1), 0 4px 8px 3px rgba(60,64,67,.07);
    --shadow-lg: 0 4px 6px -1px rgba(60,64,67,.1), 0 10px 15px -3px rgba(60,64,67,.1);
    --shadow-xl: 0 10px 25px -3px rgba(60,64,67,.1), 0 4px 6px -2px rgba(60,64,67,.05);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* =========================================================================
   Layout
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================================================
   Hero (subpage variant — shorter than landing hero)
   ========================================================================= */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 25% 25%, rgba(26, 115, 232, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(52, 168, 83, 0.08) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out;
}

.page-hero h1 .highlight {
    color: var(--primary-blue);
    font-weight: 500;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-hero .meta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================================================
   Section Headers
   ========================================================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   Content sections (legal, policy, docs)
   ========================================================================= */
.content-section {
    padding: 4rem 0 6rem;
    background: var(--bg-primary);
}

.content {
    background: var(--bg-primary);
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content ul,
.content ol {
    color: var(--text-secondary);
    margin: 0 0 1.25rem 1.25rem;
    line-height: 1.7;
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.content a:hover {
    text-decoration: underline;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 0.95rem;
}

.content th,
.content td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.content th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.content tbody tr:last-child td {
    border-bottom: none;
}

.content .contact-info {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.content .contact-info h2 {
    border: none;
    padding: 0;
    margin-top: 0;
}

/* Back link above page hero */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue);
}

.back-link::before {
    content: '←';
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .page-hero {
        padding: 6.5rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

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

    .content table {
        display: block;
        overflow-x: auto;
    }
}
