/* Bright Layer Labs Design System - Vanilla CSS Version */

/* CSS Variables - Design System */
:root {
    /* Core brand colors */
    --primary: hsl(229, 84%, 15%);
    --primary-foreground: hsl(210, 40%, 98%);
    --primary-glow: hsl(229, 84%, 25%);
    
    /* Sophisticated accent system */
    --accent-blue: hsl(217, 91%, 59%);
    --accent-emerald: hsl(158, 64%, 52%);
    --accent-purple: hsl(262, 83%, 58%);
    
    /* Neutral foundation */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(226, 15%, 10%);

    /* Surface colors */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(226, 15%, 10%);
    --card-muted: hsl(220, 14%, 96%);
    
    --surface-elevated: hsl(220, 14%, 96%);
    --surface-interactive: hsl(220, 23%, 94%);
    
    /* Semantic colors */
    --secondary: hsl(220, 14%, 96%);
    --secondary-foreground: hsl(226, 15%, 10%);
    
    --muted: hsl(220, 13%, 91%);
    --muted-foreground: hsl(215, 13%, 35%);
    
    --accent: var(--accent-blue);
    --accent-foreground: hsl(0, 0%, 100%);

    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
    
    /* Interactive elements */
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --ring: var(--primary);
    
    /* Design tokens */
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    --gradient-subtle: linear-gradient(180deg, var(--background), var(--surface-elevated));
    --gradient-hero: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    
    /* Shadows */
    --shadow-subtle: 0 2px 8px -2px hsl(229 84% 15% / 0.08);
    --shadow-medium: 0 8px 24px -4px hsl(229 84% 15% / 0.12);
    --shadow-large: 0 16px 40px -8px hsl(229 84% 15% / 0.16);
    --shadow-glow: 0 0 40px hsl(217 91% 59% / 0.15);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: hsl(229, 84%, 25%);
        --primary-foreground: hsl(0, 0%, 100%);
        --primary-glow: hsl(229, 84%, 35%);
        
        --background: hsl(226, 15%, 6%);
        --foreground: hsl(210, 40%, 98%);
        
        --card: hsl(226, 15%, 8%);
        --card-foreground: hsl(210, 40%, 98%);
        --card-muted: hsl(226, 15%, 12%);
        
        --surface-elevated: hsl(226, 15%, 10%);
        --surface-interactive: hsl(226, 15%, 14%);
        
        --secondary: hsl(226, 15%, 12%);
        --secondary-foreground: hsl(210, 40%, 98%);
        
        --muted: hsl(226, 15%, 16%);
        --muted-foreground: hsl(215, 20%, 65%);
        
        --accent: var(--accent-blue);
        --accent-foreground: hsl(0, 0%, 100%);
        
        --destructive: hsl(0, 62%, 50%);
        --destructive-foreground: hsl(0, 0%, 100%);
        
        --border: hsl(226, 15%, 16%);
        --input: hsl(226, 15%, 16%);
        --ring: var(--primary);
    }
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navigation {
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    width: 4rem;
    height: 4rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 500;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 1.25rem;
    height: 0.125rem;
    background-color: var(--foreground);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--foreground);
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -0.375rem;
}

.hamburger::after {
    top: 0.375rem;
}

.mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--foreground);
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 500;
}

.mobile-cta {
    margin-top: 1rem;
    width: fit-content;
}

/* Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: var(--primary-foreground);
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    box-shadow: var(--shadow-medium);
    transform: scale(1.05);
}

.btn-hero:active {
    transform: scale(0.95);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition-smooth);
    background: var(--background);
}

.btn-outline:hover {
    background: var(--surface-interactive);
    color: var(--foreground);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    background: hsl(0, 0%, 90%);
}

.icon-arrow {
    margin-left: 0.5rem;
}

/* Section styling */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

.bg-gradient-subtle {
    background: var(--gradient-subtle);
}

.bg-card {
    background: var(--card);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

/* Hero section */
.hero-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Services Layout (for detailed service pages) */
.services-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .services-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Principles Grid (for about page) */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Service Card Variants */
.service-card.large {
    padding: 2rem;
}

@media (min-width: 768px) {
    .service-card.large {
        padding: 2.5rem;
    }
}

.service-card.principle-wide {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .service-card.principle-wide {
        grid-column: span 2;
    }
}

.service-details {
    margin-top: 1rem;
}

.service-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.service-details p:last-child {
    margin-bottom: 0;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
    text-align: center;
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon-blue {
    background: hsl(217 91% 59% / 0.1);
    color: var(--accent-blue);
}

.service-icon-emerald {
    background: hsl(158 64% 52% / 0.1);
    color: var(--accent-emerald);
}

.service-icon-purple {
    background: hsl(262 83% 58% / 0.1);
    color: var(--accent-purple);
}

.service-icon-red {
    background: hsl(0 84% 60% / 0.1);
    color: var(--destructive);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* Outcomes grid */
.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .outcomes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.outcome-item {
    text-align: center;
}

.outcome-stat {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5rem;
}

.outcome-description {
    color: var(--muted-foreground);
}

/* Process grid */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* Callout section */
.callout-container {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.callout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .callout-title {
        font-size: 1.875rem;
    }
}

.callout-description {
    font-size: 1.125rem;
    color: hsl(var(--primary-foreground) / 0.9);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-image {
    width: 2rem;
    height: 2rem;
}

.footer-logo-text {
    font-weight: 600;
    color: var(--foreground);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Contact Form Styles */
.contact-form {
    /* Container styles handled by .contact-form-card */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: left;
}

.services-label {
    margin-bottom: 0.75rem;
}

.form-input,
.form-textarea {
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    text-align: left;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background-color: var(--background);
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    margin-bottom: 0;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .form-submit {
        width: auto;
        justify-content: flex-start;
    }
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

.contact-form-section {
    width: 100%;
}

.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    text-align: left;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

/* Checklist Styles */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checklist-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.checklist-text {
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Contact Info Styles */
.contact-info {
    background: transparent;
    border-radius: 0;
    padding: 0;
}


.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-blue {
    background: hsl(217 91% 59% / 0.1);
    color: var(--accent-blue);
}

.contact-icon-emerald {
    background: hsl(158 64% 52% / 0.1);
    color: var(--accent-emerald);
}

.contact-icon-purple {
    background: hsl(262 83% 58% / 0.1);
    color: var(--accent-purple);
}

.contact-icon-red {
    background: hsl(0 84% 60% / 0.1);
    color: var(--destructive);
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--foreground);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.contact-address .contact-value {
    line-height: 1.4;
}

.contact-text {
    color: var(--foreground);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 0;
    }
}

/* Legal page styles */
.legal-content {
    color: var(--foreground);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-subheading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-text {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-card {
    background-color: var(--surface-elevated);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
}

.contact-card p:first-child {
    font-weight: 600;
    color: var(--foreground);
}