/* ============================================
   NSDG - Northern Star Development Group
   Brand Colors:
   - Navy: #1B2A4A
   - Gold: #C8963E
   - Slate: #64748B
   - Teal: #0D9488
   ============================================ */

:root {
    --navy: #1B2A4A;
    --navy-light: #243656;
    --navy-dark: #111D33;
    --gold: #FFD700;
    --gold-light: #FFE033;
    --gold-dark: #D4A017;
    --slate: #64748B;
    --teal: #0D9488;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #F1F5F9;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-light: #475569;
    --text-muted: #94A3B8;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 24px;
}

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

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

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 140px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.05em;
}

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

.nav-menu a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--navy-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0F1724 100%);
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(200, 150, 62, 0.08) 0%, transparent 60%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 800;
}

.text-gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Stats */
.stats {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* About */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Services */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(200, 150, 62, 0.1);
    transform: translateY(-4px);
}

.service-card.featured {
    background: var(--navy);
    border-color: var(--navy);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: var(--white);
}

.service-card.featured p,
.service-card.featured li {
    opacity: 0.8;
}

.service-card.featured .service-icon {
    color: var(--gold);
}

.service-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--navy);
    margin-bottom: 24px;
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.service-card.featured .service-list li {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.service-list li::before {
    content: '→ ';
    color: var(--gold);
    font-weight: 600;
}

.service-list li.no-arrow::before {
    content: '';
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 640px;
    margin: -8px auto 0;
}

/* Expertise */
.expertise {
    padding: 120px 0;
    background: var(--navy);
}

.expertise .section-label {
    color: var(--gold);
}

.expertise .section-title {
    color: var(--white);
}

.expertise .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.expertise-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.expertise-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Approach */
.approach {
    padding: 120px 0;
    background: var(--navy);
}

.approach .section-label {
    color: var(--gold);
}

.approach .section-title {
    color: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.approach-step {
    position: relative;
}

.step-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(200, 150, 62, 0.2);
    margin-bottom: 16px;
    line-height: 1;
}

.approach-step h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.approach-step p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Industries */
.industries {
    padding: 120px 0;
    background: var(--off-white);
}

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

@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.industry-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.industry-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.industry-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Partners */
.partners {
    padding: 120px 0;
    background: var(--white);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-highlight {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 40px;
    border-left: 4px solid var(--gold);
}

.partner-content h3 {
    font-size: 1.375rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.partner-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.partner-link {
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.partner-link:hover {
    color: var(--gold);
}

/* Contact */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    padding: 16px 40px;
    border: 2px solid var(--navy);
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 32px;
}

.contact-email:hover {
    background: var(--navy);
    color: var(--white);
}

.contact-details {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--gold);
}

.contact-details p {
    margin-bottom: 4px;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 140px;
    width: auto;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: flex-end;
    padding-top: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        display: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-cta {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }

    .partner-highlight {
        padding: 32px 24px;
    }

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

    .footer-links {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .contact-email {
        font-size: 1.125rem;
        padding: 14px 28px;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .industry-card,
    .approach-step,
    .stat {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card.visible,
    .industry-card.visible,
    .approach-step.visible,
    .stat.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
