/* ===========================
   Stratus Ridge — Styles
   =========================== */

:root {
    --navy-deep: #0a1628;
    --navy: #1a2744;
    --navy-light: #243352;
    --steel-blue: #4a7c9e;
    --sky-blue: #6ba3c7;
    --ice-blue: #a8d4e6;
    --white: #ffffff;
    --grey-light: #f0f4f8;
    --grey: #94a3b8;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--navy-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--steel-blue);
    transition: all var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--steel-blue);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    mix-blend-mode: lighten;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition);
}

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

.nav-cta {
    border: 1px solid var(--steel-blue);
    padding: 8px 20px !important;
    color: var(--sky-blue) !important;
}

.nav-cta:hover {
    background: var(--steel-blue);
    color: var(--white) !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(--white);
    transition: all var(--transition);
}

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px;
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ridge-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 200px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    width: min(400px, 80vw);
    height: auto;
    margin-bottom: 40px;
    mix-blend-mode: lighten;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line.highlight {
    color: var(--sky-blue);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Services
   =========================== */
.services {
    padding: 100px 0;
    background: var(--navy-deep);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
    justify-content: center;
}

.services-grid .service-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.service-card {
    background: var(--navy);
    border: 1px solid rgba(74, 124, 158, 0.2);
    padding: 40px 32px;
    text-align: left;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--steel-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--sky-blue);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

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

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

/* ===========================
   About
   =========================== */
.about {
    padding: 100px 0;
    background: var(--navy);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

.about-content p:last-child {
    color: var(--sky-blue);
    font-style: italic;
}

/* ===========================
   Approach
   =========================== */
.approach {
    padding: 100px 0;
    background: var(--navy-deep);
    text-align: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

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

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

.approach-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================
   Contact
   =========================== */
.contact {
    padding: 100px 0;
    background: var(--navy);
    text-align: center;
}

.contact-content {
    margin-top: 32px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 48px 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(74, 124, 158, 0.15);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    mix-blend-mode: lighten;
}

.footer-brand .logo-text {
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-legal {
    color: var(--grey);
    font-size: 0.8rem;
    margin-top: 8px;
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

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

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

    .hero {
        padding: 100px 24px;
    }
}

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

    .logo-text {
        display: none;
    }
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
