/* ================================================================
   FRONT PAGE — ENTERPRISE (.astra-fp-*)
   Wzorzec: index.html (Tailwind mockup)
   ================================================================ */

@keyframes astraFpSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes astraFpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes astraFpKenBurns {
    from { transform: scale(1.12); }
    to   { transform: scale(1.0); }
}

/* ---------- SCROLL REVEAL ---------- */
.fp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.5,0,0,1);
}
.fp-reveal.fp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- HERO (split layout) ---------- */
body.home .site-main,
body.page-template-front-page .site-main {
    padding-top: 0;
}

body.home.page .site-main,
body.page-template-front-page .site-main {
    padding-top: 0;
}

.astra-fp-hero {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--astra-darker);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.astra-fp-hero-text {
    width: 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 180px 48px 60px 0;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(255,255,255,.05);
    background: var(--astra-darker);
}

.astra-fp-hero-text-inner {
    max-width: 560px;
    margin-left: auto;
    padding-left: 40px;
    animation: astraFpSlideIn .8s cubic-bezier(.16,1,.3,1) both;
}

.astra-fp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 2px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #fff;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.astra-fp-kicker i {
    color: var(--astra-accent);
    font-size: 14px;
}

.astra-fp-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 24px;
    color: #ffffff !important;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.astra-fp-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 36px;
    padding-left: 24px;
    border-left: 4px solid var(--astra-accent);
    font-weight: 300;
}

.astra-fp-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.astra-fp-hero-media {
    width: 58%;
    position: relative;
    overflow: hidden;
}

.astra-fp-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: astraFpKenBurns 25s ease-out forwards;
    opacity: .8;
}

.astra-fp-hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--astra-darker) 0%, rgba(2,6,23,.1) 50%, rgba(2,6,23,0) 100%);
    z-index: 1;
}

.astra-fp-hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .08;
    background-image:
        linear-gradient(#fff 1px, transparent 1px),
        linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ---------- STATS SECTION (dark, gradient numbers) ---------- */
.astra-fp-stats-section {
    padding: 80px 0;
    background: var(--astra-darker);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.astra-fp-stats-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: var(--astra-accent);
    opacity: .04;
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(30%,-40%);
    pointer-events: none;
}

.astra-fp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    position: relative;
    z-index: 1;
}

.astra-fp-stat-block strong {
    display: block;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--astra-accent) 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.astra-fp-stat-block h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f8fafc !important;
}

.astra-fp-stat-block p {
    font-size: .85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* ---------- SHARED SECTION HEAD ---------- */
.astra-fp-section-head {
    margin-bottom: 48px;
}

.astra-fp-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 6px 0 0;
    color: var(--astra-dark);
}

.astra-fp-section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.astra-fp-section-sub {
    color: var(--astra-gray);
    margin: 6px 0 0;
    font-size: .95rem;
}

.astra-fp-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--astra-accent);
    margin-bottom: 4px;
}

.astra-fp-label-light {
    color: var(--astra-accent);
}

.astra-heading-gradient {
    background: linear-gradient(90deg, var(--astra-accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.astra-fp-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--astra-accent);
    text-decoration: none;
    transition: color .2s;
}

.astra-fp-section-link:hover {
    color: var(--astra-accent-hover);
}

.astra-fp-section-link i {
    font-size: 12px;
    transition: transform .2s;
}

.astra-fp-section-link:hover i {
    transform: translateX(3px);
}

/* ---------- OFFER ---------- */
.astra-fp-offer {
    padding: 96px 0;
    background: var(--astra-light);
}

.astra-fp-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.astra-fp-offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 28px 24px;
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: all .3s ease;
}

.astra-fp-offer-card:hover {
    border-left-color: var(--astra-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

.astra-fp-offer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(249,115,22,.08);
    margin-bottom: 16px;
    transition: background .3s, color .3s;
}

.astra-fp-offer-card:hover .astra-fp-offer-icon {
    background: var(--astra-accent);
}

.astra-fp-offer-icon i {
    font-size: 20px;
    color: var(--astra-accent);
    transition: color .3s;
}

.astra-fp-offer-card:hover .astra-fp-offer-icon i {
    color: #fff;
}

.astra-fp-offer-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--astra-dark);
    transition: color .2s;
}

.astra-fp-offer-card:hover h3 {
    color: var(--astra-accent);
}

.astra-fp-offer-card p {
    font-size: .85rem;
    color: var(--astra-gray);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.astra-fp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--astra-accent);
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    transition: transform .2s;
}

.astra-fp-card-link i {
    font-size: 11px;
    transition: transform .2s;
}

.astra-fp-offer-card:hover .astra-fp-card-link i {
    transform: translateX(3px);
}

/* ---------- ARTICLE CARDS (projects + journal) ---------- */
.astra-fp-projects {
    padding: 96px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.astra-fp-journal {
    padding: 96px 0;
    background: var(--astra-light);
    border-top: 1px solid #e2e8f0;
}

.astra-fp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.astra-fp-article-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: all .3s ease;
}

.astra-fp-article-card:hover {
    box-shadow: 0 20px 40px -8px rgba(0,0,0,.12);
}

.astra-fp-article-thumb {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.astra-fp-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.astra-fp-article-card:hover .astra-fp-article-thumb img {
    transform: scale(1.1);
}

.astra-fp-article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    color: var(--astra-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 5px 12px;
    border-radius: 2px;
    z-index: 1;
}

.astra-fp-article-body {
    padding: 28px 28px 32px;
}

.astra-fp-article-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--astra-gray);
    margin-bottom: 10px;
}

.astra-fp-article-date i {
    font-size: 12px;
}

.astra-fp-article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.astra-fp-article-body h3 a {
    color: var(--astra-dark);
    text-decoration: none;
    transition: color .2s;
}

.astra-fp-article-card:hover h3 a {
    color: var(--astra-accent);
}

.astra-fp-article-body p {
    font-size: .88rem;
    color: var(--astra-gray);
    line-height: 1.65;
    margin: 0 0 16px;
}

.astra-fp-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--astra-accent);
    text-decoration: none;
}

.astra-fp-read-link i {
    font-size: 10px;
    transition: transform .2s;
}

.astra-fp-read-link:hover i {
    transform: translateX(3px);
}

/* ---------- ABOUT SECTION (deep-dive 2-col) ---------- */
.astra-fp-about-section {
    padding: 96px 0;
    background-color: var(--astra-darker);
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
    overflow: hidden;
}

.astra-fp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.astra-fp-about-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--astra-accent);
    margin-bottom: 16px;
}

.astra-fp-about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 40px;
    color: #fff;
    letter-spacing: -.01em;
}

.astra-fp-about-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.astra-fp-about-item {
    display: flex;
    gap: 16px;
}

.astra-fp-about-item-icon {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 20px;
    color: var(--astra-accent);
}

.astra-fp-about-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.astra-fp-about-item p {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
    margin: 0;
}

.astra-fp-about-action {
    margin-top: 40px;
}

.astra-fp-about-media {
    position: relative;
}

.astra-fp-about-img-wrap {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px;
    transform: rotate(1deg);
    transition: transform .7s ease;
}

.astra-fp-about-img-wrap:hover {
    transform: rotate(0deg);
}

.astra-fp-about-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    opacity: .8;
    filter: grayscale(100%);
    transition: all .5s ease;
}

.astra-fp-about-img-wrap:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.astra-fp-about-stat {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: var(--astra-accent);
    color: #fff;
    padding: 16px 20px;
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(249,115,22,.4);
    max-width: 200px;
}

.astra-fp-about-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 4px;
    opacity: .9;
}

.astra-fp-about-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4px;
}

.astra-fp-about-stat-desc {
    display: block;
    font-size: 12px;
    opacity: .9;
    line-height: 1.4;
}

/* ---------- CONTACT ---------- */
.astra-fp-contact {
    padding: 96px 0;
    background: var(--astra-light);
    border-top: 1px solid #e2e8f0;
}

.astra-fp-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.astra-fp-contact-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 10px 0 16px;
    color: var(--astra-dark);
}

.astra-fp-contact-info > p {
    color: var(--astra-gray);
    line-height: 1.75;
    margin-bottom: 32px;
}

.astra-fp-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.astra-fp-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: .9rem;
    color: #334155;
}

.astra-fp-contact-details li i {
    color: var(--astra-accent);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.astra-fp-contact-details li a {
    color: var(--astra-accent);
    text-decoration: none;
    font-weight: 600;
}

.astra-fp-contact-details li a:hover {
    text-decoration: underline;
}

.astra-fp-contact-form-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--astra-accent);
    border-radius: 2px;
    padding: 36px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.astra-fp-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--astra-dark);
    margin: 0 0 24px;
}

.astra-fp-form-title i {
    color: var(--astra-accent);
    font-size: 16px;
}

.astra-fp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.astra-fp-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.astra-fp-form-row .astra-fp-form-field {
    margin-bottom: 0;
}

.astra-fp-form-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 6px;
}

.astra-fp-form-field input,
.astra-fp-form-field select,
.astra-fp-form-field textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #fff;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s;
}

.astra-fp-form-field input:focus,
.astra-fp-form-field select:focus,
.astra-fp-form-field textarea:focus {
    outline: none;
    border-color: var(--astra-accent);
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.astra-fp-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.astra-fp-form-consent {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--astra-gray);
}

.astra-fp-form-consent a {
    color: var(--astra-accent);
    text-decoration: none;
}

.astra-fp-form-consent a:hover {
    text-decoration: underline;
}

.astra-fp-form-consent input[type="checkbox"] {
    margin-right: 6px;
}

.astra-fp-contact-form-wrap .contact-message {
    margin-top: 14px;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 2px;
}

.astra-fp-contact-form-wrap .contact-message.text-success {
    background: #ecfdf5;
    color: #065f46;
}

.astra-fp-contact-form-wrap .contact-message.text-danger {
    background: #fef2f2;
    color: #991b1b;
}

.astra-fp-contact-form-wrap .contact-message.text-muted {
    background: #f1f5f9;
    color: var(--astra-gray);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .astra-fp-hero {
        flex-direction: column;
        min-height: auto;
    }
    .astra-fp-hero-text {
        width: 100%;
        border-right: none;
        padding: 0 24px;
    }
    .astra-fp-hero-text-inner {
        max-width: 100%;
        margin: 0;
        padding: 140px 0 48px;
    }
    .astra-fp-hero-media {
        width: 100%;
        height: 50vh;
        min-height: 280px;
    }
    .astra-fp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .astra-fp-offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .astra-fp-contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .astra-fp-about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .astra-fp-about-img-wrap {
        transform: none;
    }
}

@media (max-width: 680px) {
    .astra-fp-hero h1 {
        font-size: 2rem;
    }
    .astra-fp-hero-desc {
        font-size: .95rem;
    }
    .astra-fp-offer,
    .astra-fp-projects,
    .astra-fp-about-section,
    .astra-fp-journal,
    .astra-fp-contact,
    .astra-fp-stats-section {
        padding: 64px 0;
    }
    .astra-fp-offer-grid {
        grid-template-columns: 1fr;
    }
    .astra-fp-posts-grid {
        grid-template-columns: 1fr;
    }
    .astra-fp-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .astra-fp-form-row {
        grid-template-columns: 1fr;
    }
    .astra-fp-contact-form-wrap {
        padding: 24px 20px;
    }
    .astra-fp-about-section {
        padding: 64px 0;
    }
}
