/* =========================================================================
   PORTFOLIO PAGE — assets/css/portfolio.css
   Uses the same design tokens defined in home.css (:root)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------------------- */
.pf-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--color-bg-dark, #f8f9fc);
}

.pf-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.pf-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}
.pf-hero-blob-1 {
    width: 460px; height: 460px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 70%);
}
.pf-hero-blob-2 {
    width: 380px; height: 380px;
    bottom: -140px; right: -100px;
    background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
}

.pf-hero-inner { max-width: 760px; margin: 0 auto 56px; position: relative; z-index: 2; }

.pf-hero-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text-pure, #0f1117);
    margin: 20px 0 18px;
}

.pf-hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-silver, #6b7280);
    max-width: 620px;
    margin: 0 auto;
}

/* Trust Bar */
.pf-trust-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px;
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border-glass, rgba(0,0,0,0.08));
    border-radius: 20px;
    padding: 32px 40px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(37,99,235,0.08);
}
.pf-trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-trust-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary, #2563eb);
}
.pf-trust-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-silver, #6b7280);
}
.pf-trust-sep { width: 1px; height: 34px; background: var(--color-border-glass, rgba(0,0,0,0.08)); }

/* -------------------------------------------------------------------------
   2. SECTION WRAPPERS
   ------------------------------------------------------------------------- */
.pf-section { padding: 90px 0; background: var(--color-bg-dark, #f8f9fc); }
.pf-section-alt { background: #f0f5ff; }

/* -------------------------------------------------------------------------
   2b. CATEGORY SUB-HEADING (used above each 2-store row)
   ------------------------------------------------------------------------- */
.pf-subhead {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 24px;
}
.pf-subhead:first-of-type { margin-top: 48px; }
.pf-subhead-icon { font-size: 20px; line-height: 1; }
.pf-subhead h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-pure, #0f1117);
    white-space: nowrap;
}
.pf-subhead-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-border-glass, rgba(0,0,0,0.1)), transparent);
}

/* -------------------------------------------------------------------------
   3. CARD GRID
   ------------------------------------------------------------------------- */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.pf-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------------------
   4. CARD
   ------------------------------------------------------------------------- */
.pf-card {
    position: relative;
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border-glass, rgba(0,0,0,0.08));
    border-radius: 22px;
    overflow: hidden;
    transition: var(--transition-smooth, all 0.4s ease);
    box-shadow: 0 4px 24px rgba(15,17,23,0.05);
}
.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(37,99,235,0.14);
    border-color: rgba(37,99,235,0.25);
}

.pf-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.pf-card-top h3 { margin-bottom: 0; }
.pf-card-top h3 span { color: var(--color-text-silver, #6b7280); font-weight: 600; }
.pf-card-date {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--color-primary, #2563eb);
    background: rgba(37,99,235,0.08);
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Stats grid inside marketing-results cards */
.pf-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.pf-stat-grid-4 { grid-template-columns: repeat(4, 1fr); }

.pf-stat {
    text-align: center;
    background: rgba(37,99,235,0.04);
    border: 1px solid rgba(37,99,235,0.08);
    border-radius: 12px;
    padding: 12px 6px;
}
.pf-stat-num {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text-pure, #0f1117);
    margin-bottom: 3px;
}
.pf-stat-label {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-text-silver, #6b7280);
}
.pf-stat-accent { background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.25); }
.pf-stat-accent .pf-stat-num { color: var(--color-primary, #2563eb); }

@media (max-width: 640px) {
    .pf-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-card-top { flex-direction: column; }
}

/* -------------------------------------------------------------------------
   4b. IN-PAGE JUMP NAV (hero buttons)
   ------------------------------------------------------------------------- */
.pf-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.pf-card-best { border-color: rgba(217,119,6,0.35); }
.pf-best-badge {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 5;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 6px 16px rgba(217,119,6,0.4);
}

/* Visual / image area */
.pf-card-visual {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    text-decoration: none;
}
.pf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.pf-card:hover .pf-card-img { transform: scale(1.06); }

/* Fallback gradients (shown when no image / behind the <img>) */
.pf-visual-1 { background: linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%); }
.pf-visual-2 { background: linear-gradient(135deg,#059669 0%,#10b981 100%); }
.pf-visual-3 { background: linear-gradient(135deg,#7c3aed 0%,#a78bfa 100%); }
.pf-visual-4 { background: linear-gradient(135deg,#d97706 0%,#f59e0b 100%); }
.pf-visual-5 { background: linear-gradient(135deg,#0f766e 0%,#14b8a6 100%); }
.pf-visual-6 { background: linear-gradient(135deg,#be123c 0%,#fb7185 100%); }

.pf-card-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 30%);
    z-index: 2;
}

.pf-card-chip {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: rgba(15,17,23,0.6);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(6px);
}

/* Body */
.pf-card-body { padding: 24px 26px 28px; }

.pf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.pf-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--color-primary, #2563eb);
    padding: 5px 12px;
    border-radius: 100px;
}
.pf-tag-outline {
    color: var(--color-primary, #2563eb);
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.25);
}

.pf-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-pure, #0f1117);
    line-height: 1.3;
    margin-bottom: 8px;
}

.pf-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-silver, #6b7280);
    margin-bottom: 20px;
}

.pf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-primary, #2563eb);
    text-decoration: none;
    transition: gap 0.3s ease;
}
.pf-card-link:hover { gap: 10px; }
.pf-card-link svg { transition: transform 0.3s ease; }
.pf-card-link:hover svg { transform: translate(2px,-2px); }

/* -------------------------------------------------------------------------
   5. CTA
   ------------------------------------------------------------------------- */
.pf-cta-section { padding: 40px 0 120px; background: var(--color-bg-dark, #f8f9fc); }

.pf-cta-box {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 100%);
    border-radius: 28px;
    padding: 72px 40px;
    overflow: hidden;
}
.pf-cta-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.pf-cta-eyebrow {
    position: relative; z-index: 2;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #60a5fa;
    margin-bottom: 16px;
}
.pf-cta-title {
    position: relative; z-index: 2;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #f9fafb;
    letter-spacing: -0.02em;
    max-width: 620px;
    margin: 0 auto 14px;
}
.pf-cta-desc {
    position: relative; z-index: 2;
    font-size: 15px;
    color: #9ca3af;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.pf-cta-btn {
    position: relative; z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f1117;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    padding: 15px 32px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(59,130,246,0.4);
    transition: all 0.3s ease;
}
.pf-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(59,130,246,0.55); }

/* -------------------------------------------------------------------------
   6. SCROLL REVEAL (shared pattern)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: var(--transition-smooth, all 0.5s ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------------
   7. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pf-grid, .pf-grid-2 { grid-template-columns: 1fr; }
    .pf-trust-bar { gap: 24px; padding: 28px 24px; }
}

@media (max-width: 640px) {
    .pf-hero { padding: 110px 0 60px; }
    .pf-trust-bar { flex-direction: column; gap: 20px; }
    .pf-trust-sep { display: none; }
    .pf-subhead { margin: 40px 0 20px; }
    .pf-cta-box { padding: 52px 24px; }
}