/* ==========================================================================
   Oscar Studio — base / global stylesheet
   Shared design tokens, reset, layout, header, footer and common components
   used across every page. Page-specific styles live in their own CSS files.
   ========================================================================== */

/* Design tokens
   ------------------------------------------------------------------------ */
:root {
    --navy-900: #0B2A4A;
    --navy-800: #0F3960;
    --navy-700: #15497D;
    --blue-600: #1B5FA8;
    --blue-500: #2D6CB5;

    --bg: #FFFFFF;
    --surface: #F3F4F6;
    --surface-2: #EDEFF2;
    --line: #E3E6EB;

    --text-1: #14213B;
    --text-2: #5B6478;
    --text-3: #8A90A0;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;
}

/* Reset & base typography
   ------------------------------------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout container
   ------------------------------------------------------------------------ */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Buttons
   ------------------------------------------------------------------------ */
.btn-primary {
    background: var(--navy-900);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s, transform .15s;
}

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

.btn-outline {
    border: 1.5px solid var(--line);
    color: var(--text-1);
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    border-color: var(--navy-800);
}

.btn-light {
    background: #fff;
    color: var(--navy-900);
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-dark {
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 13px 25px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Lucide icons (used instead of emoji / unicode arrows)
   ------------------------------------------------------------------------ */
.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* Pill / eyebrow label
   ------------------------------------------------------------------------ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--blue-500);
    color: var(--blue-600);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: #fff;
}

.pill.on-dark {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    background: transparent;
}

/* Header & navigation
   ------------------------------------------------------------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: var(--navy-900);
}

.logo-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: color .15s;
}

.nav-links a.active {
    color: var(--navy-900);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy-900);
}

.nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 8px 32px 16px;
}

.nav-links-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.nav-links-mobile a:last-child {
    border-bottom: none;
}

.nav-links-mobile.open {
    display: flex;
}

/* Inner page hero (used by services, projects, blog, contacts)
   ------------------------------------------------------------------------ */
.page-hero {
    padding: 64px 0 48px;
    text-align: center;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin: 20px 0 14px;
}

.page-hero p {
    color: var(--text-2);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto;
}

/* Shared section helpers
   ------------------------------------------------------------------------ */
.section {
    padding: 96px 0;
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-head h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 22px 0 14px;
}

.section-head p {
    color: var(--text-2);
    font-size: 16.5px;
}

/* Call-to-action band
   ------------------------------------------------------------------------ */
.cta-band {
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 108, 181, .45), transparent 70%);
}

.cta-band h2 {
    color: #fff;
    font-size: 30px;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.cta-band-actions {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Footer
   ------------------------------------------------------------------------ */
footer {
    background: var(--surface);
    padding: 64px 0 32px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.footer-brand p {
    color: var(--text-2);
    font-size: 14px;
    margin-top: 14px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14.5px;
    color: var(--text-2);
    margin-bottom: 11px;
}

.footer-col a:hover {
    color: var(--navy-900);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 13.5px;
    color: var(--text-3);
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: inherit;
}

.footer-legal a:hover {
    color: var(--navy-900);
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .wrap {
        padding: 0 24px;
    }

    .nav-links-mobile {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 64px 0;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-band h2 {
        max-width: none;
    }

    .cta-band-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-band-actions a {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 18px;
    }

    .nav-links-mobile {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav {
        height: 64px;
    }

    header .btn-primary {
        padding: 9px 16px;
        font-size: 13px;
    }

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