﻿/* ==========================================
   FLYER PROMOTIONAL GeoCG — A5 față/verso
   V3 — Premium visual design
   ========================================== */

/* --- Flyer wrapper (replaces body styling) --- */
.flyer-wrapper {
    --accent: #2ecc71;
    --accent-light: #5dde9e;
    --accent-dark: #1fa855;
    --accent-glow: rgba(46, 204, 113, 0.3);
    --dark: #0f1923;
    --dark-card: #152030;
    --dark-soft: #1c2a3a;
    --light: #f4f7fa;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --radius: 5px;
    --radius-lg: 8px;

    font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 0;
    -webkit-font-smoothing: antialiased;
}

/* Reset global styles leaking into flyer from site stylesheet */
.flyer-wrapper section {
    padding: 0;
    text-align: left;
}

.flyer-wrapper h2,
.flyer-wrapper h3 {
    margin: 0;
}

.flyer-wrapper p {
    margin: 0;
}

.flyer-wrapper header {
    background: none;
    box-shadow: none;
    position: relative;
    top: auto;
    z-index: auto;
}

.flyer-wrapper footer {
    background: none;
    color: inherit;
    padding: 0;
    margin-top: 0;
    font-size: 0.5rem;
    text-align: center;
}

.flyer-wrapper *, .flyer-wrapper *::before, .flyer-wrapper *::after {
    box-sizing: border-box;
}

/* ============================
   A5 PAGE SHELL
   ============================ */
.page {
    width: 148mm;
    max-width : 90%;
    height: 210mm;
    background: var(--white);
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ============================
   FAȚĂ — PAGINA 1
   ============================ */
.page-front {
    color: var(--white);
}

/* --- Multi-layer background --- */
.pf-front-bg {
    position: absolute;
    inset: 0;
    background: url("../img/hero.jpg") center center / cover no-repeat;
    z-index: 0;
}

.pf-front-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(46,204,113,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(46,204,113,0.08) 0%, transparent 40%),
        linear-gradient(175deg,
            rgba(15, 25, 35, 0.93) 0%,
            rgba(15, 25, 35, 0.80) 30%,
            rgba(15, 25, 35, 0.75) 50%,
            rgba(15, 25, 35, 0.85) 75%,
            rgba(15, 25, 35, 0.95) 100%
        );
    z-index: 1;
}

/* Subtle noise grain */
.pf-front-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    pointer-events: none;
}

/* --- Geometric decorations --- */
.pf-geo-corner {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.pf-geo-tl {
    top: 5mm;
    left: 5mm;
    width: 20mm;
    height: 20mm;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.45;
}

.pf-geo-br {
    bottom: 5mm;
    right: 5mm;
    width: 20mm;
    height: 20mm;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.45;
}

/* Thin vertical accent lines */
.pf-geo-line {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.pf-geo-line-left {
    left: 8mm;
    top: 28mm;
    bottom: 28mm;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0.12;
}

.pf-geo-line-right {
    right: 8mm;
    top: 28mm;
    bottom: 28mm;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0.12;
}

/* --- Content wrapper --- */
.pf-front-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 7mm 11mm 5mm;
}

/* --- Front Header --- */
.pf-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.pf-logo-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pf-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pf-logo-text {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* --- Hero --- */
.pf-hero {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2mm;
    min-height: 0;
}

.pf-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 3mm;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4mm;
}

.pf-eyebrow-line {
    display: inline-block;
    width: 10mm;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.pf-hero-eyebrow .pf-eyebrow-line:last-child {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
}

.pf-hero h1 {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.pf-hero-accent {
    color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* Underline glow under "automatizat" */
.pf-hero-accent::after {
    content: "";
    position: absolute;
    bottom: -1mm;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.pf-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4mm 0;
}

.pf-hero-divider span {
    display: block;
    width: 5mm;
    height: 5mm;
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    opacity: 0.6;
}

.pf-hero-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.pf-hero-sub strong {
    color: var(--accent);
    font-weight: 800;
}

/* --- Stats bar --- */
.pf-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 3mm 4mm;
    margin-bottom: 3mm;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pf-stat {
    flex: 1;
    text-align: center;
}

.pf-stat-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.2;
}

.pf-stat-label {
    display: block;
    font-size: 0.45rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5mm;
}

.pf-stat-sep {
    width: 1px;
    height: 8mm;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* --- Front Intro --- */
.pf-intro {
    text-align: center;
    padding: 0 4mm;
    margin-bottom: 3mm;
}

.pf-intro p {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
}

.pf-intro strong {
    color: var(--accent);
    font-weight: 700;
}

/* --- Features Grid (2×2) --- */
.pf-features {
    margin-bottom: 2mm;
}

.pf-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2mm;
}

.pf-feat {
    display: flex;
    align-items: flex-start;
    gap: 2.5mm;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2.5mm 3mm;
    transition: background 0.2s;
}

.pf-feat-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--accent);
    margin-top: 0.5mm;
}

.pf-feat-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.pf-feat-body h3 {
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5mm;
    line-height: 1.3;
}

.pf-feat-body p {
    font-size: 0.46rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.45;
}

/* --- Front Footer --- */
.page-front .pf-page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3mm;
    padding-top: 2.5mm;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.pf-footer-url,
.pf-footer-email {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.pf-footer-dot {
    color: rgba(255,255,255,0.2);
    font-size: 0.6rem;
}

/* ============================
   VERSO — PAGINA 2 (Premium dark)
   ============================ */
.page-back {
    align-items: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--dark);
    color: var(--white);
    position: relative;
}

/* --- Layered background (matching front) --- */
.pf-back-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 15%, rgba(46,204,113,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 85%, rgba(46,204,113,0.06) 0%, transparent 45%),
        linear-gradient(175deg, #0c1620 0%, #0f1923 40%, #111e2d 70%, #0d1721 100%);
    z-index: 0;
}

.pf-back-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.15) 100%);
}

.pf-back-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    pointer-events: none;
}

/* --- Geometric decorations (verso) --- */
.pf-geo-back-tl {
    top: 5mm;
    left: 5mm;
    width: 16mm;
    height: 16mm;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.25;
}

.pf-geo-back-br {
    bottom: 5mm;
    right: 5mm;
    width: 16mm;
    height: 16mm;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.25;
}

/* --- Content wrapper --- */
.pf-back-content {
    width: 90%;
    justify-content: space-evenly;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 5mm 0;
}

/* --- Back Header --- */
.pf-header-back {
    padding: 6mm 8mm 0;
    margin-bottom: 5mm;
    align-items: flex-start;
}

.pf-back-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pf-header-back .pf-logo-img {
    width: 18px;
    height: 18px;
}

.pf-header-back .pf-logo-text {
    font-size: 0.9rem;
}

.pf-header-subtitle {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
    padding-right: 4mm;
}

.pf-header-subtitle::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Benefits (numbered — glassmorphism cards) --- */
.pf-benefits-section {
    padding: 0 8mm 3mm;
    flex-shrink: 0;
}

.pf-benefits {
    display: flex;
    flex-direction: column;
    gap: 3mm;
}

.pf-benefit {
    display: flex;
    align-items: flex-start;
    gap: 3mm;
    padding: 2.5mm 4mm;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 2.5px solid var(--accent);
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.pf-benefit-num {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    min-width: 6mm;
    font-variant-numeric: tabular-nums;
    padding-top: 0.5mm;
}

.pf-benefit-body h3 {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3mm;
    line-height: 1.3;
}

.pf-benefit-body p {
    font-size: 0.48rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.5;
}

/* --- Screenshot --- */
.pf-screenshot {
    padding: 2mm 8mm;
    text-align: center;
    flex-shrink: 0;
}

.pf-screenshot-frame {
    background: linear-gradient(145deg, var(--dark-card), var(--dark-soft));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2mm 2mm 1.5mm;
    display: inline-block;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.35),
        0 0 30px rgba(46,204,113,0.06);
}

.pf-screenshot-frame img {
    max-width: 100%;
    max-height: 24mm;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

/* --- Pricing CTA --- */
.pf-pricing {
    padding: 2mm 8mm;
    flex-shrink: 0;
}

.pf-price-box {
    background: linear-gradient(135deg, rgba(46,204,113,0.12) 0%, rgba(46,204,113,0.04) 100%);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: var(--radius-lg);
    padding: 3.5mm 5mm;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pf-price-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 55mm;
    height: 55mm;
    background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.pf-price-left {
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    min-width: 26mm;
}

.pf-price-label {
    font-size: 0.48rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1mm;
}

.pf-price-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(46,204,113,0.3);
}

.pf-price-amount span {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-shadow: none;
}

.pf-price-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(46,204,113,0.25), transparent);
    margin: 0 4mm;
    flex-shrink: 0;
}

.pf-price-right {
    position: relative;
    z-index: 1;
}

.pf-price-right p {
    font-size: 0.48rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    padding-left: 3.5mm;
    position: relative;
}

.pf-price-right p::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.48rem;
}

/* --- Contact --- */
.pf-contact-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4mm;
    margin-bottom: 2mm;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 3mm 5mm;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pf-contact-item {
    display: flex;
    align-items: center;
    gap: 2mm;
}

.pf-contact-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.pf-contact-label {
    display: block;
    font-size: 0.42rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.2mm;
}

.pf-contact-item strong {
    font-size: 0.58rem;
    color: var(--white);
    display: block;
}

.pf-contact-sep {
    width: 1px;
    height: 7mm;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.pf-contact-cta {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(46,204,113,0.25);
    margin-bottom: 1.5mm;
}

/* --- Footer verso --- */
.pf-footer-back {
    padding: 2mm 8mm 5mm;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
    text-align: center;
    font-size: 0.5rem;
    color: var(--white);
}

.pf-footer-back .pf-contact-inner {
    margin-bottom: 1.5mm;
}

.pf-footer-back .pf-contact-cta {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(46,204,113,0.25);
    margin-bottom: 1.5mm;
}

.pf-footer-copyright {
    font-size: 0.48rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

/* ============================
   PRINT BUTTON
   ============================ */
.pf-print-btn-container {
    text-align: center;
    padding: 0.5rem 0 3rem;
}

.pf-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0.85rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.pf-print-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,204,113,0.35);
}

/* ============================
   PRINT — A5
   ============================ */
@media print {
    .no-print { display: none !important; }

    /* Hide site layout chrome when printing the flyer */
    body > header,
    body > footer,
    .promo-bar,
    #promo-bar,
    .modal-overlay {
        display: none !important;
    }

    .flyer-wrapper {
        background: white;
        padding: 0;
        gap: 0;
    }

    .page {
        box-shadow: none;
        page-break-after: always;
        page-break-inside: avoid;
        margin: 0;
        width: 148mm;
        height: 210mm;
    }

    .page:last-of-type {
        page-break-after: auto;
    }

    /* Force backgrounds to print */
    .pf-front-bg,
    .pf-front-overlay,
    .pf-front-grain,
    .pf-back-bg,
    .pf-back-overlay,
    .pf-back-grain,
    .pf-feat,
    .pf-stats,
    .pf-price-box,
    .pf-back-topbar,
    .pf-benefit,
    .pf-screenshot-frame,
    .pf-geo-corner,
    .pf-geo-line,
    .pf-price-glow,
    .pf-contact-inner,
    .page-back {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@page {
    size: A5 portrait;
    margin: 0;
}
