/* =========================================================
   Feat. Budgeting – Frontend Experience  v1.1
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
.fp-wrap {
    --fp-bg:           #071421;
    --fp-gold:         #FFDD88;
    --fp-gold-dim:     rgba(255, 221, 136, 0.15);
    --fp-gold-border:  rgba(255, 221, 136, 0.25);
    --fp-gold-faint:   rgba(255, 221, 136, 0.06);
    --fp-gold-glow:    rgba(255, 221, 136, 0.55);
    --fp-white:        #ffffff;
    --fp-muted:        rgba(255, 221, 136, 0.45);
    --fp-text:         rgba(255, 255, 255, 0.82);
    --fp-ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --fp-ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Outer wrap ─────────────────────────────────────────── */
.fp-wrap {
    background: var(--fp-bg);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Double-border: outer thin gold line */
.fp-wrap::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 221, 136, 0.18);
    pointer-events: none;
    z-index: 5;
}

/* ── Frame ──────────────────────────────────────────────── */
.fp-frame {
    position: relative;
    border: 1px solid var(--fp-gold-border);
    box-shadow: 0 0 24px rgba(255, 221, 136, 0.08),
                inset 0 0 60px rgba(7, 20, 33, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 82vh;
    overflow: hidden;
    background: var(--fp-bg);
}

/* ==========================================================
   TAB STRIP
   ========================================================== */

.fp-tab-strip {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;        /* needed for .fp-tab-cover */
    z-index: 2;
    min-height: 0;
    transition: flex 0.80s var(--fp-ease), min-height 0.80s var(--fp-ease);
}

.fp-frame.fp--content .fp-tab-strip {
    flex: 0 0 88px;
    min-height: 88px;
}

/* ── Individual tab column ──────────────────────────────── */
.fp-tab {
    position: relative;
    flex: 1;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-color: #0d1f30;
    cursor: pointer;
    overflow: hidden;

    /* Full B&W with punchy contrast */
    filter: grayscale(100%) contrast(1.25) brightness(0.42);
    transition: filter 0.85s var(--fp-ease-out), box-shadow 0.3s ease;
}

.fp-tab + .fp-tab {
    border-left: 1px solid rgba(255, 221, 136, 0.08);
}

/* Scroll-revealed: still greyscale, slightly brighter */
.fp-tab.fp--revealed {
    filter: grayscale(100%) contrast(1.15) brightness(0.58);
}

/* Hover: gold inset border — the cover handles the image reveal */
.fp-tab:hover {
    box-shadow: inset 0 0 0 2px var(--fp-gold);
}

/* Active tab in content mode nav bar */
.fp-frame.fp--content .fp-tab {
    filter: grayscale(100%) contrast(1.1) brightness(0.32) !important;
    transition: filter 0.4s ease, box-shadow 0.3s ease !important;
}

.fp-frame.fp--content .fp-tab.fp--active {
    filter: grayscale(0%) brightness(0.80) !important;
    box-shadow: inset 0 0 0 2px var(--fp-gold);
}

/* ── Tab overlay gradient ───────────────────────────────── */
.fp-tab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 20, 33, 0.5)  0%,
        rgba(7, 20, 33, 0.1) 40%,
        rgba(7, 20, 33, 0.1) 60%,
        rgba(7, 20, 33, 0.65) 100%
    );
    pointer-events: none;
    transition: background 0.5s ease;
}

.fp-frame.fp--content .fp-tab-overlay {
    background: rgba(7, 20, 33, 0.55);
}

/* ── Tab label (TOP) ────────────────────────────────────── */
.fp-tab-label {
    position: absolute;
    top: 14px;                  /* moved to top */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;

    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fp-gold);

    opacity: 0;
    transition: opacity 0.55s ease 0.2s;
}

.fp-tab.fp--revealed .fp-tab-label,
.fp-tab.fp--active   .fp-tab-label {
    opacity: 1;
}

.fp-frame.fp--content .fp-tab-label {
    font-size: 7px;
    top: 6px;
    letter-spacing: 0.16em;
    opacity: 0.65;
}

.fp-frame.fp--content .fp-tab.fp--active .fp-tab-label {
    opacity: 1;
    color: var(--fp-gold);
}

/* ==========================================================
   COVER OVERLAY  (hover → full-frame image reveal)
   Clip-path is set and animated by frontend.js
   ========================================================== */

.fp-tab-cover {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    /* clip-path set inline by JS */
}

.fp-tab-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(0%) brightness(0.92);
    transition: background-image 0s;
}

/* Same gradient overlay as regular tabs */
.fp-tab-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 20, 33, 0.45) 0%,
        transparent 35%,
        transparent 65%,
        rgba(7, 20, 33, 0.55) 100%
    );
    pointer-events: none;
}

/* Gold inset border on the cover */
.fp-tab-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px var(--fp-gold);
    pointer-events: none;
    z-index: 1;
}

/* Label shown over the cover */
.fp-tab-cover-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fp-gold);
    z-index: 2;
}

/* ==========================================================
   HERO OVERLAY  (click → transition to content)
   ========================================================== */

.fp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    align-items: center;
}

.fp-hero-overlay.fp--visible {
    opacity: 1;
    pointer-events: auto;
}

.fp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.78);
}

.fp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 20, 33, 0.35) 0%,
        rgba(7, 20, 33, 0.05) 50%,
        rgba(7, 20, 33, 0.05) 100%
    );
}

.fp-hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 60px;
    color: var(--fp-white);
    font-size: clamp(44px, 7vw, 90px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 32px rgba(0,0,0,0.35);

    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.65s var(--fp-ease) 0.12s,
                opacity   0.65s ease            0.12s;
}

.fp-hero-overlay.fp--visible .fp-hero-title {
    transform: translateX(0);
    opacity: 1;
}

/* ==========================================================
   CONTENT AREA
   ========================================================== */

.fp-content-area {
    flex: 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: flex 0.80s var(--fp-ease), opacity 0.55s ease 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.fp-frame.fp--content .fp-content-area {
    flex: 1 1 auto;
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--fp-gold-border) transparent;
}

.fp-frame.fp--content .fp-content-area::-webkit-scrollbar       { width: 3px; }
.fp-frame.fp--content .fp-content-area::-webkit-scrollbar-track  { background: transparent; }
.fp-frame.fp--content .fp-content-area::-webkit-scrollbar-thumb  { background: var(--fp-gold-border); }

/* ── Content header (client info + back btn) ────────────── */
.fp-content-header {
    display: flex;
    align-items: center;
    padding: 13px 24px;
    border-bottom: 1px solid var(--fp-gold-border);
    background: rgba(7, 20, 33, 0.97);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.fp-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
}

.fp-client {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fp-gold);
}

.fp-project {
    font-size: 12px;
    color: var(--fp-muted);
    font-style: italic;
}

.fp-date {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.28);
}

.fp-back-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
    margin-left: auto;
}

.fp-back-btn:hover { color: var(--fp-gold); }

/* ==========================================================
   BOTTOM NAV  (slides in at frame bottom in content mode)
   ========================================================== */

.fp-bottom-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 11px 20px;
    border-top: 1px solid var(--fp-gold-border);
    background: rgba(7, 20, 33, 0.97);
    flex-shrink: 0;
    z-index: 25;

    /* Hidden until content mode */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    transition: max-height 0.65s var(--fp-ease),
                opacity    0.45s ease 0.25s,
                padding    0.65s var(--fp-ease),
                border-top-width 0s linear 0.65s;
}

.fp-frame.fp--content .fp-bottom-nav {
    max-height: 56px;
    opacity: 1;
    padding-top: 11px;
    padding-bottom: 11px;
    border-top-width: 1px;
    transition: max-height 0.65s var(--fp-ease),
                opacity    0.45s ease 0.25s,
                padding    0.65s var(--fp-ease),
                border-top-width 0s;
}

/* ── Mini tabs (bottom nav) ─────────────────────────────── */
.fp-mini-tab {
    background: none;
    border: 1px solid var(--fp-gold-border);
    color: rgba(255,255,255,0.32);
    font-family: 'DM Mono', monospace;
    font-size: 7.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fp-mini-tab:hover,
.fp-mini-tab.fp--active {
    background: var(--fp-gold-dim);
    border-color: var(--fp-gold);
    color: var(--fp-gold);
}

/* ==========================================================
   PANELS
   ========================================================== */

.fp-panels { flex: 1; }

.fp-panel { display: none; }

.fp-panel.fp--active {
    display: block;
    animation: fpPanelIn 0.55s var(--fp-ease) forwards;
}

@keyframes fpPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Panel hero ─────────────────────────────────────────── */
.fp-panel-hero {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.fp-panel-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7,20,33,0.7) 0%, transparent 60%),
        linear-gradient(to top,   rgba(7,20,33,0.85) 0%, transparent 50%);
    pointer-events: none;
}

.fp-section-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--fp-white);
    font-size: clamp(22px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

/* ── Panel body ─────────────────────────────────────────── */
.fp-panel-body {
    padding: 30px 32px 36px;
    color: var(--fp-text);
}

/* Force ALL content inside panels to be white/gold — overrides
   any inherited or editor-injected black text */
.fp-panel-body,
.fp-panel-body p,
.fp-panel-body li,
.fp-panel-body ul,
.fp-panel-body ol,
.fp-panel-body span,
.fp-panel-body a,
.fp-panel-body strong,
.fp-panel-body em,
.fp-panel-body h1,
.fp-panel-body h2,
.fp-panel-body h3,
.fp-panel-body h4,
.fp-panel-body h5,
.fp-panel-body h6,
.fp-panel-body blockquote,
.fp-panel-body td,
.fp-panel-body th {
    color: var(--fp-text) !important;
}

.fp-panel-body strong { color: var(--fp-white) !important; }
.fp-panel-body a      { color: var(--fp-gold)  !important; }

.fp-text {
    font-size: 15px;
    line-height: 1.78;
    max-width: 700px;
    margin-bottom: 30px;
}

.fp-text p           { margin: 0 0 12px; }
.fp-text p:last-child { margin-bottom: 0; }

/* ==========================================================
   GALLERY  — horizontal scroll strip, 3 visible at a time
   ========================================================== */

.fp-gallery {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 8px;
}

.fp-gallery::-webkit-scrollbar { display: none; }

.fp-gal-item {
    flex: 0 0 calc(33.333% - 6px);
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
    border: 1px solid var(--fp-gold-border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/* Thicker gold border on hover — no scale */
.fp-gal-item:hover {
    border: 2px solid var(--fp-gold);
    box-shadow: 0 0 14px rgba(255, 221, 136, 0.22);
}

/* ==========================================================
   SOBRE NÓS
   ========================================================== */

.fp-sobre-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.fp-values {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.fp-values li {
    padding: 11px 0;
    border-bottom: 1px solid var(--fp-gold-border);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fp-gold) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-values li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--fp-muted);
    flex-shrink: 0;
}

.fp-sobre-img {
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--fp-gold-border);
}

/* ==========================================================
   VALOR / PACKAGES
   ========================================================== */

.fp-valor-intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fp-muted);
    max-width: 680px;
    margin: 0 0 32px;
    font-style: italic;
}

.fp-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.fp-pkg {
    border: 1px solid var(--fp-gold-border);
    background: var(--fp-gold-faint);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.fp-pkg:hover {
    border-color: rgba(255, 221, 136, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.fp-pkg--featured {
    border-color: var(--fp-gold);
    background: rgba(255, 221, 136, 0.08);
}

.fp-pkg-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--fp-gold);
    color: var(--fp-bg) !important;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 3px 9px;
    margin-bottom: 18px;
    font-weight: 700;
}

.fp-pkg-name  { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fp-muted); margin-bottom: 12px; }
.fp-pkg-price { font-size: 38px; font-weight: 800; color: var(--fp-white) !important; line-height: 1; margin-bottom: 5px; }
.fp-pkg-note  { font-size: 11px; color: rgba(255,255,255,0.3) !important; }

.fp-pkg-divider { height: 1px; background: var(--fp-gold-border); margin: 18px 0; }

.fp-pkg-items {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.fp-pkg-items li {
    font-size: 13px;
    color: var(--fp-text) !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-pkg-items li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--fp-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.fp-pkg-cta {
    background: none;
    border: 1px solid var(--fp-gold-border);
    color: var(--fp-gold) !important;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 13px;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    margin-top: auto;
}

.fp-pkg-cta:hover {
    background: var(--fp-gold-dim);
    border-color: var(--fp-gold);
    box-shadow: 0 0 12px var(--fp-gold-border);
}

.fp-pkg--featured .fp-pkg-cta {
    background: var(--fp-gold);
    color: var(--fp-bg) !important;
    border-color: var(--fp-gold);
    font-weight: 700;
}

.fp-pkg--featured .fp-pkg-cta:hover {
    background: #ffe9a4;
    box-shadow: 0 0 20px var(--fp-gold-glow);
}

/* ==========================================================
   TERMOS E CONDIÇÕES
   ========================================================== */

.fp-termos-text {
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.45) !important;
    font-family: 'DM Mono', 'Courier New', monospace;
    max-width: 760px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 960px) {
    .fp-sobre-layout      { grid-template-columns: 1fr; }
    .fp-sobre-img         { aspect-ratio: 16/9; max-height: 280px; }
}

@media (max-width: 768px) {
    .fp-wrap              { padding: 10px; }
    .fp-wrap::before      { inset: 4px; }
    .fp-frame             { min-height: 92vh; }
    .fp-frame.fp--content .fp-tab-strip { flex: 0 0 66px; min-height: 66px; }
    .fp-tab-label         { font-size: 6.5px; }
    .fp-panel-hero        { height: 150px; padding: 18px 20px; }
    .fp-panel-body        { padding: 22px 18px 30px; }
    .fp-hero-title        { font-size: clamp(30px, 10vw, 54px); padding: 0 24px; }
    .fp-content-header    { padding: 10px 14px; }
    .fp-packages          { grid-template-columns: 1fr; }
    .fp-gal-item          { flex: 0 0 calc(50% - 4px); }
}

@media (max-width: 480px) {
    .fp-gal-item          { flex: 0 0 calc(80% - 4px); }
    .fp-bottom-nav        { gap: 3px; padding-left: 12px; padding-right: 12px; }
    .fp-mini-tab          { font-size: 6.5px; padding: 4px 8px; }
}
