/* CSS Variables - Brand Palette */
:root {
    --color-navy: #23396B;
    --color-teal: #00C1A8;
    --color-sky: #0096E0;
    --color-yellow: #FFD530;
    --color-light-gray: #F7F9FC;
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold: 600;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* Bootstrap overrides */
    --bs-nav-link-font-size: 1.3rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: #333;
    font-weight: var(--font-weight-normal);
}

/* Typography - Inter font weights */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
}

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

/* Navigation */
nav {
    background: var(--color-navy);
    color: white;
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

/* Enhanced shadow on scroll */
nav.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
}

.nav-logo {
    height: 100px;
    width: auto;
    max-width: 500px;
    background: white;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.2);
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--color-teal);
}

/* Focus states for accessibility */
nav a:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-sky) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
}

.cta-button {
    background: var(--color-teal);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background: var(--color-sky);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.cta-button:focus {
    outline: 3px solid var(--color-yellow);
    outline-offset: 2px;
    border-radius: var(--border-radius-md);
}

/* Focus states for service cards */
.service-card:focus-within {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: var(--border-radius-lg);
}

.service-card.keyboard-focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-teal);
}

/* Focus states for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* External link styling */
.external-link-icon {
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

a:hover .external-link-icon {
    opacity: 1;
}

/* About section social links */
.about-social {
    margin-top: var(--spacing-lg);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-navy);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--color-navy);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    font-weight: var(--font-weight-bold);
}

.linkedin-link:hover {
    background: var(--color-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Placeholder for lazy images */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

section:nth-child(even) {
    background: var(--color-light-gray);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--color-navy);
    font-weight: var(--font-weight-bold);
}

section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--color-light-gray);
}

.services-grid {
    margin-top: var(--spacing-xl);
}

.service-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-teal);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.service-card:hover .service-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Testimonials Section */
.testimonials {
    background: var(--color-light-gray);
    padding: var(--spacing-xxl) 0;
}

.testimonials-placeholder {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.testimonials-placeholder p {
    margin-bottom: 1rem;
    color: #666;
}

/* Contact Form */
.contact-form-container {
    margin-top: var(--spacing-xl);
}

.form-info {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.form-info h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.form-info p {
    color: #666;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.form-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-info li {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.form-embed {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

/* Contact Form Styling */
.contact-form {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-navy);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(0, 193, 168, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

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

.submit-btn {
    background: var(--color-teal);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.submit-btn:hover {
    background: var(--color-sky);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-md);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: var(--spacing-xl);
    text-align: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--color-navy);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subline {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .contact-form-container .row {
        flex-direction: column;
    }
    
    .form-info {
        margin-bottom: var(--spacing-lg);
    }
    
    .form-embed iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .nav-logo {
        height: 50px;
        padding: 6px 10px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subline {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    nav ul {
        gap: 0.6rem;
        font-size: 0.9rem;
    }
    
    .nav-logo {
        height: 44px;
        padding: 4px 8px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero-subline {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .testimonials-placeholder {
        padding: var(--spacing-md);
    }
    
    .testimonials-placeholder p {
        font-size: 0.9rem;
    }
}
