/* StrataTek Consulting — Redesign */

:root {
    --bg: #080b10;
    --bg-card: #0e1218;
    --bg-card-hover: #131922;
    --bg-alt: #0b0f15;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(59,181,232,0.25);
    --text: #e2e8f0;
    --text-muted: #8494a7;
    --text-dim: #546178;
    --white: #f8fafc;
    --accent: #3bb5e8;
    --accent-dim: rgba(59,181,232,0.12);
    --accent-hover: #2da3d4;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection {
    background: var(--accent);
    color: var(--bg);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }


/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 28px;
    transition: background 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8,11,16,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo img {
    height: 26px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    color: var(--accent) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { color: var(--white) !important; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}


/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8,11,16,0.7) 0%,
        rgba(8,11,16,0.5) 30%,
        rgba(8,11,16,0.65) 70%,
        rgba(8,11,16,1) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 28px;
    max-width: 720px;
    width: 100%;
}
.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 16px;
    border-radius: 100px;
}
.hero-badge-alt {
    color: #a5f3c4;
    background: rgba(34,197,94,0.12);
}
.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.4s forwards;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.6s forwards;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.8s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-dim);
    animation: float 2s ease-in-out infinite;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.2s forwards, float 2s ease-in-out 1.7s infinite;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(59,181,232,0.25);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 12px 28px;
}
.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--white);
}


/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    background: var(--bg);
}
.section-alt {
    background: var(--bg-alt);
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header h2,
.contact-left h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 14px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 8px;
    margin-bottom: 18px;
    color: var(--accent);
}
.service-icon svg {
    width: 20px;
    height: 20px;
}
.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ===== APPROACH ===== */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.approach-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    overflow: hidden;
}
.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.approach-card:hover::before { opacity: 1; }
.approach-num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(59,181,232,0.2), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
}
.approach-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}
.approach-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ===== CONTACT ===== */
.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 48px;
}
.contact-split {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-left h2 { margin-bottom: 12px; }
.contact-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}
a.contact-line:hover { color: var(--accent); }
.contact-line svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238494a7' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--bg);
    padding-right: 36px;
    cursor: pointer;
}
.contact-form select option {
    background: var(--bg);
    color: var(--white);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.btn-submit {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    margin-top: 4px;
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ===== FOOTER ===== */
.footer {
    padding: 36px 0 28px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.7;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-dim);
}
.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-dim);
}
.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}


/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.vis {
    opacity: 1;
    transform: translateY(0);
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: rgba(8,11,16,0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 12px 28px 20px;
        gap: 0;
        border-top: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        font-size: 15px;
    }
    .nav-cta { border-bottom: none !important; }
    .nav-toggle { display: flex; }
    .nav-logo img { height: 22px; }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.03em;
    }
    .hero-title br { display: none; }
    .hero-sub {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-scroll { display: none; }
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }

    .section { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2,
    .contact-left h2 { font-size: 28px; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .service-card { padding: 24px 22px; }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .approach-card { padding: 28px 24px; }
    .approach-num { font-size: 36px; margin-bottom: 10px; }

    .contact-wrapper {
        padding: 32px 24px;
    }
    .contact-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-logo { height: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 42px; }
}
