/* =========================================================
   ASTRA Marketing — stylesheet
   ========================================================= */

:root {
    --font-primary: 'Inter', sans-serif;
    --font-nav: 'Poppins', sans-serif;
    --font-footer-heading: 'Space Grotesk', sans-serif;
    --font-footer-body: 'Darker Grotesque', sans-serif;

    --color-ink: #09121c;
    --color-heading: #06122b;
    --color-heading-alt: #252525;
    --color-body: #666666;
    --color-body-on-dark: rgba(255, 255, 255, 0.85);
    --color-border: #dbdbdb;
    --color-accent: #f3a830;

    --bg-idea: #040a1a;
    --bg-dark: #090413;

    --gradient-lead: linear-gradient(135deg, #3c84ed 15%, #e3794b 55%, #f33123 85%);
    --gradient-cool: linear-gradient(90deg, #3a88f9 4%, #6dceed 28%, #f59e0b 65%, #ef4444 100%);
    --gradient-full: linear-gradient(120deg, #3c84ed 5%, #25abf5 25%, #6fa0b6 42%, #e3794b 65%, #f33123 100%);

    --container-max: 1680px;
    --container-pad: 100px;
    --header-height: 96px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1200px) {
    :root { --container-pad: 60px; }
}
@media (max-width: 768px) {
    :root { --container-pad: 24px; }
}
@media (max-width: 480px) {
    :root { --container-pad: 20px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-heading-alt);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #09121c;
    color: #fff;
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid #3a88f9;
    outline-offset: 2px;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient--lead { background-image: var(--gradient-lead); }
.text-gradient--cool { background-image: var(--gradient-cool); }
.text-gradient--warm { background-image: var(--gradient-cool); }
.text-gradient--full { background-image: var(--gradient-full); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 61px;
    background: rgba(237, 78, 51, 0.1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}
.eyebrow--dark { color: rgba(255, 255, 255, 0.6); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: 82px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn--dark { background: var(--color-ink); color: #fff; }
.btn--dark:hover { opacity: 0.92; }

.btn--outline {
    background: transparent;
    color: var(--color-ink);
    border: 1px solid rgba(9, 18, 28, 0.2);
}
.btn--outline:hover { background: rgba(9, 18, 28, 0.04); }

.btn--outline-light {
    background: #fff;
    color: var(--bg-dark);
    border: 3px solid #3a88f9;
}

.btn-group { display: flex; gap: 24px; flex-wrap: wrap; }
.btn-group--center { justify-content: center; margin-top: 48px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(9, 18, 28, 0.06);
    transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(9, 18, 28, 0.06); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-logo__mark { height: 34px; width: auto; }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.site-nav__link {
    font-family: var(--font-nav);
    font-size: 16px;
    color: #131313;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    position: relative;
}
.site-nav__link.is-current::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}
.site-nav__programs svg { transition: transform 0.2s var(--ease); }

.site-header__cta { flex-shrink: 0; padding: 14px 26px; font-size: 16px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #131313;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 90px) 0 100px;
    overflow: hidden;
}
.hero__decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(60, 132, 237, 0.12), transparent 70%);
}
.hero__decor--1 { width: 493px; height: 493px; top: -120px; right: 12%; }
.hero__decor--2 { width: 493px; height: 493px; top: 120px; right: 22%; background: radial-gradient(circle, rgba(243, 49, 35, 0.08), transparent 70%); }

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 90px);
}
.hero__content { flex: 1 1 620px; max-width: 720px; }

.hero__heading {
    font-size: clamp(34px, 4.6vw, 84px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-heading-alt);
    margin-bottom: 26px;
}

.hero__text {
    font-size: clamp(15px, 1.2vw, 16.6px);
    line-height: 1.79;
    letter-spacing: -0.01em;
    color: var(--color-body);
    max-width: 620px;
    margin-bottom: 24px;
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16.6px;
    color: var(--color-body);
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.hero__meta span:first-child {
    padding-right: 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.hero__visual { flex: 1 1 360px; max-width: 806px; }
.hero__visual img { width: 100%; height: auto; }

/* =========================================================
   THE IDEA
   ========================================================= */
.idea {
    position: relative;
    background: var(--bg-idea);
    padding: 120px 0;
    overflow: hidden;
}
.idea__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}
.idea .container { position: relative; z-index: 1; }

.idea__intro { max-width: 860px; margin-bottom: 92px; }
.idea__heading {
    font-size: clamp(32px, 4.6vw, 80px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 24px;
}
.idea__text {
    font-size: 16.6px;
    line-height: 1.79;
    letter-spacing: -0.01em;
    color: var(--color-body-on-dark);
    max-width: 823px;
}
.idea__text + .idea__text { margin-top: 16px; }

.idea__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}
.idea-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 73px;
    height: 73px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 32px;
}
.idea-card h3 {
    font-size: 28px;
    font-weight: 400;
    color: #fffefe;
    margin-bottom: 16px;
}
.idea-card p {
    font-size: 16.6px;
    line-height: 1.79;
    color: var(--color-body-on-dark);
}

/* =========================================================
   OPPORTUNITIES
   ========================================================= */
.opportunities { padding: 120px 0; }
.opportunities__intro {
    max-width: 823px;
    margin: 0 auto 72px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.opportunities__heading {
    font-size: clamp(32px, 4.2vw, 64px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin-bottom: 20px;
}
.opportunities__intro p {
    font-size: 16.6px;
    line-height: 1.79;
    color: #333;
}

.opportunities__grid {
    display: flex;
    align-items: center;
    gap: 64px;
}
.opportunities__list { flex: 1 1 380px; }
.opportunities__list li {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}
.opportunities__num {
    font-size: 16px;
    color: #b3b3b3;
    font-weight: 500;
    flex-shrink: 0;
}
.opportunities__label {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-heading-alt);
    flex: 1;
}

.opportunities__visual { flex: 1 1 500px; max-width: 640px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 100px 0 120px; }
.services__intro {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.services__heading {
    font-size: clamp(32px, 4.2vw, 64px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin-bottom: 20px;
}
.services__intro p {
    font-size: 16.6px;
    line-height: 1.79;
    color: #333;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 0;
}
.service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 10px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.service-card__icon { flex-shrink: 0; }
.service-card h3 {
    font-size: 22px;
    font-weight: 500;
    color: #3a3a3a;
    margin-right: auto;
}
.service-card p {
    font-size: 15px;
    color: rgba(17, 17, 17, 0.6);
    max-width: 320px;
    text-align: right;
    margin-left: auto;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    position: relative;
    background: var(--bg-dark);
    padding: 110px 0 80px;
    text-align: center;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    width: 1100px; height: 1100px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(60, 132, 237, 0.25), rgba(243, 49, 35, 0.08) 55%, transparent 75%);
    pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band__eyebrow {
    display: inline-flex;
    padding: 12px 24px;
    border-radius: 61px;
    background: rgba(237, 78, 51, 0.15);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}
.cta-band__heading {
    font-size: clamp(30px, 4.5vw, 64px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 24px;
}
.cta-band__text {
    font-size: 16.6px;
    color: var(--color-body-on-dark);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-dark); color: #fff; padding: 64px 0 40px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__logo { width: 220px; height: auto; margin-bottom: 20px; }
.site-footer__tagline { font-size: 15px; color: rgba(255, 255, 255, 0.7); }

.site-footer__links h3,
.site-footer__contact h3 {
    font-family: var(--font-footer-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}
.site-footer__links ul { display: flex; flex-direction: column; gap: 18px; }
.site-footer__links a {
    font-family: var(--font-footer-heading);
    font-size: 16px;
    color: #fff;
}
.site-footer__links a.is-current { color: var(--color-accent); }
.site-footer__links a:hover { color: var(--color-accent); }

.site-footer__contact ul { display: flex; flex-direction: column; gap: 18px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 14px; }
.site-footer__contact svg { flex-shrink: 0; margin-top: 2px; }
.site-footer__contact a,
.site-footer__contact span {
    font-family: var(--font-footer-body);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.5;
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter {
    display: flex;
    gap: 8px;
    background: rgba(246, 246, 251, 0.12);
    border-radius: 12px;
    padding: 4px;
    max-width: 480px;
    width: 100%;
}
.newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1b334d;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.social-links { display: flex; gap: 12px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s var(--ease);
}
.social-links a:hover { background: rgba(255, 255, 255, 0.2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .idea__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .site-nav, .site-header__cta { display: none; }
    .nav-toggle { display: flex; }

    .site-header {
        height: auto;
        min-height: var(--header-height);
    }
    .site-header__inner { flex-wrap: wrap; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-top: 1px solid rgba(9, 18, 28, 0.08);
        box-shadow: 0 12px 24px rgba(9, 18, 28, 0.08);
        padding: 24px var(--container-pad) 32px;
    }
    .site-header.is-open .site-nav,
    .site-header.is-open .site-header__cta {
        display: flex;
    }
    .site-header.is-open .site-header__cta { order: 3; width: 100%; margin: 0 var(--container-pad) 24px; justify-content: center; }
    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
    .site-nav__programs { width: 100%; justify-content: space-between; }

    .hero__inner { flex-direction: column; text-align: left; }
    .hero__content { max-width: 100%; }
    .hero__visual { max-width: 640px; margin: 0 auto; }

    .opportunities__grid { flex-direction: column; }
    .opportunities__visual { max-width: 100%; }
}

@media (max-width: 900px) {
    .services__grid { grid-template-columns: 1fr; column-gap: 0; }
}

@media (max-width: 768px) {
    .hero { padding-top: calc(var(--header-height) + 48px); padding-bottom: 64px; }
    .idea, .opportunities, .services { padding-top: 72px; padding-bottom: 72px; }
    .cta-band { padding-top: 80px; padding-bottom: 56px; }

    .idea__grid { grid-template-columns: 1fr; gap: 40px; }
    .idea__intro { margin-bottom: 56px; }

    .service-card { justify-content: flex-start; }
    .service-card p { text-align: left; margin-left: 0; width: 100%; max-width: 100%; }

    .hero__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero__meta span:first-child { border-right: none; padding-right: 0; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; align-items: stretch; }
    .social-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
    .btn-group { flex-direction: column; width: 100%; }
    .opportunities__list li { gap: 14px; }
    .opportunities__label { font-size: 17px; }
    .newsletter { flex-direction: column; }
    .newsletter button { justify-content: center; }
}

/* =========================================================
   FOOTER ADDRESS LINK (Google Maps)
   ========================================================= */
.site-footer__address a {
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.site-footer__address a:hover,
.site-footer__address a:focus-visible {
    color: var(--color-accent);
}

/* =========================================================
   CONSULTATION MODAL
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 18, 28, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px 40px;
    box-shadow: 0 30px 80px rgba(9, 18, 28, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s var(--ease);
}
.modal-overlay.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-ink);
    background: rgba(9, 18, 28, 0.06);
    transition: background 0.2s var(--ease);
}
.modal-close:hover { background: rgba(9, 18, 28, 0.12); }

.modal-header { margin-bottom: 28px; }
.modal-header .eyebrow { margin-bottom: 16px; }
.modal-heading {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-heading-alt);
    margin-bottom: 10px;
}
.modal-subtext {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-body);
}

.consultation-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading-alt);
}
.form-field label span { color: #e3543c; }
.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--color-heading-alt);
    background: #fff;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #3a88f9;
    box-shadow: 0 0 0 3px rgba(58, 136, 249, 0.15);
}
.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #e3543c;
}
.form-field__error {
    font-size: 13px;
    color: #e3543c;
}

.form-field--honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    font-size: 14px;
    border-radius: 10px;
    padding: 0;
    min-height: 0;
}
.form-status:not(:empty) {
    padding: 12px 16px;
    background: rgba(227, 84, 60, 0.08);
    color: #b0392a;
}
.form-status.is-success {
    background: rgba(58, 136, 249, 0.08);
    color: #1f5fb8;
}

.modal-submit { width: 100%; justify-content: center; margin-top: 4px; }
.modal-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

body.modal-open { overflow: hidden; }

@media (max-width: 576px) {
    .modal-overlay { padding: 16px; align-items: flex-end; }
    .modal-dialog {
        max-width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 20px 20px 0 0;
        padding: 40px 24px 28px;
    }
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
.thank-you {
    padding: calc(var(--header-height) + 120px) 0 140px;
    text-align: center;
}
.thank-you__inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.thank-you__heading {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-heading-alt);
    margin-bottom: 20px;
}
.thank-you__text {
    font-size: 16.6px;
    line-height: 1.79;
    color: var(--color-body);
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .thank-you { padding-top: calc(var(--header-height) + 64px); padding-bottom: 88px; }
}
