/* Bergstrom Strategy Group - Main Stylesheet */

/* Font imports - Playfair Display for headings, Source Sans 3 for body */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary colors from logo */
    --bergstrom-navy: #1a2744;
    --bergstrom-blue: #2d5a8b;
    --bergstrom-blue-light: #4a7fb5;
    --bergstrom-silver: #a8b5c4;
    --bergstrom-silver-light: #d4dbe5;
    
    /* Supporting colors */
    --white: #ffffff;
    --off-white: #f8f9fb;
    --text-dark: #1a2744;
    --text-muted: #5a6677;
    --accent-gold: #c9a962;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--bergstrom-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

a {
    color: var(--bergstrom-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bergstrom-navy);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 181, 196, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(26, 39, 68, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--bergstrom-navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 8px 0;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--bergstrom-navy) !important;
    color: var(--white) !important;
    padding: 14px 28px !important;
    border-radius: 4px;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--bergstrom-blue) !important;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bergstrom-navy);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(165deg, var(--off-white) 0%, var(--white) 50%, var(--bergstrom-silver-light) 100%);
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(45, 90, 139, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tagline {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bergstrom-blue);
    margin-bottom: 24px;
    padding: 10px 20px;
    background: rgba(45, 90, 139, 0.08);
    border-radius: 4px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--bergstrom-blue);
    position: relative;
}

.hero-lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 640px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 36px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--bergstrom-navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--bergstrom-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(26, 39, 68, 0.2);
}

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

.btn-secondary:hover {
    background: var(--bergstrom-navy);
    color: var(--white);
}

/* Mountain graphic */
.hero-graphic {
    position: absolute;
    right: -10%;
    bottom: 0;
    width: 60%;
    height: 80%;
    opacity: 0.08;
    pointer-events: none;
}

.hero-graphic svg {
    width: 100%;
    height: 100%;
}

/* Trademark text */
.trademark {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--bergstrom-blue);
    font-size: 1.5rem;
    display: block;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bergstrom-silver-light);
    max-width: 500px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.credential-list {
    list-style: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bergstrom-silver-light);
}

.credential-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.credential-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(45, 90, 139, 0.1);
    color: var(--bergstrom-blue);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--bergstrom-silver-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--bergstrom-navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Services Section */
.services-section {
    background: var(--bergstrom-navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.services-section .section-header h2 {
    color: var(--white);
}

.services-section .section-header p {
    color: var(--bergstrom-silver);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(74, 127, 181, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--bergstrom-silver);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Industries Section */
.industries-section {
    background: var(--off-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.industry-group h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bergstrom-blue);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bergstrom-blue);
}

.industry-list {
    list-style: none;
}

.industry-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--bergstrom-silver-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.industry-list li::before {
    content: '▸';
    color: var(--bergstrom-blue);
}

/* Engagement Section */
.engagement-section {
    background: var(--white);
}

.engagement-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.engagement-card {
    background: var(--off-white);
    border: 1px solid var(--bergstrom-silver-light);
    border-radius: 8px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.engagement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bergstrom-blue), var(--bergstrom-navy));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.1);
}

.engagement-card:hover::before {
    transform: scaleX(1);
}

.engagement-card h3 {
    margin-bottom: 16px;
}

.engagement-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bergstrom-navy) 0%, var(--bergstrom-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23ffffff' fill-opacity='0.02' points='50,0 100,100 0,100'/%3E%3C/svg%3E") center/cover;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--bergstrom-navy);
}

.cta-section .btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bergstrom-silver-light);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bergstrom-navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    color: var(--bergstrom-navy);
    margin-bottom: 4px;
}

.contact-text a {
    color: var(--bergstrom-blue);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--bergstrom-navy);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--bergstrom-silver-light);
    border-radius: 6px;
    background: var(--off-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--bergstrom-blue);
    background: var(--white);
}

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

.form-submit {
    width: 100%;
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--bergstrom-navy);
    color: var(--white);
    padding: 80px 24px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--bergstrom-silver);
    font-size: 1rem;
    max-width: 300px;
}

.footer-nav h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

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

.footer-nav a {
    color: var(--bergstrom-silver);
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: var(--bergstrom-silver);
    font-size: 14px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* Alert messages */
.alert {
    padding: 16px 24px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-stats {
        order: -1;
    }
    
    .services-grid,
    .engagement-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 20px 40px rgba(26, 39, 68, 0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--bergstrom-silver-light);
        width: 100%;
    }
    
    .nav-cta {
        margin-top: 16px;
        text-align: center;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .engagement-cards,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
