/* Shared styles extracted from main NextStep BHS site for serverless blog */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --secondary: #10B981;
    --secondary-light: #34D399;
    --accent: #6366F1;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --gray-light: #CBD5E1;
    --gray-lighter: #F1F5F9;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-lighter);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    will-change: transform;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    height: 58px;
    max-width: 200px;
    object-fit: contain;
}

.logo-placeholder:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Prevent logo scaling on touch devices */
@media (hover: none) {
    .logo-placeholder:hover {
        transform: none;
    }
}

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

nav a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.cta-header {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    white-space: nowrap;
}

.cta-header:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

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

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Button Styles */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--dark-light);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo .logo-placeholder {
    height: 60px;
    max-width: 250px;
    object-fit: contain;
}

.footer-logo .company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.footer-logo p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-nav {
    display: contents;
}

.footer-nav > div {
    display: flex;
    flex-direction: column;
}

.footer-nav h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--secondary-light);
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-contact p {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.coropos-link {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.coropos-link:hover {
    color: var(--secondary);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Improve focus indicators for keyboard navigation */
.btn:focus,
nav a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Better touch targets */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    nav a {
        min-height: 48px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

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

    .footer-contact {
        grid-column: span 3;
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-menu:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
        z-index: 1001;
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav a {
        text-align: center;
        padding: 16px;
        border-radius: 12px;
        font-size: 1.1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-header {
        margin-top: 0.5rem;
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

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

    .footer-contact {
        grid-column: span 2;
        margin-top: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-placeholder {
        height: 48px;
        max-width: 180px;
    }

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

    .footer-contact {
        grid-column: span 1;
        margin-top: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
}