/* ============================================================
   FLEXTRIBE — Our Story / About Page
   Loads on: is_page(397) only
   ============================================================ */

/* ── HERO SECTION ─────────────────────────────────────────── */
.fxt-about-hero {
    background: #fff;
    border-bottom: 1px solid rgba(209,211,212,0.25);
    padding: 4rem 0 3.5rem;
    position: relative; overflow: hidden;
}
@media (max-width: 767px) { .fxt-about-hero { padding: 3rem 0 2.5rem; } }

.fxt-about-hero-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px)  { .fxt-about-hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .fxt-about-hero-inner { padding: 0 2rem; } }

/* Radial gradient bg glow top-center */
.fxt-about-hero::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at top, rgba(243,146,77,0.06) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}

.fxt-about-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative; z-index: 1;
}
@media (min-width: 1024px) {
    .fxt-about-hero-grid {
        grid-template-columns: 7fr 5fr;
        align-items: end;
        gap: 4rem;
    }
}

.fxt-about-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #414042;
    margin: 0.75rem 0 0;
}
.fxt-about-hero h1 em {
    color: #F3924D;
    font-style: italic;
    position: relative;
}
.fxt-about-hero-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    padding-bottom: 0.5rem;
}
@media (min-width: 1024px) { .fxt-about-hero-desc { max-width: 30rem; } }

/* ── BREADCRUMB — uses .flex-breadcrumb from style.css ──────
   Classes: flex-breadcrumb, flex-breadcrumb-sep, flex-breadcrumb-current
   No redefinition needed — only spacing override below          */
.fxt-about-hero .flex-breadcrumb { margin-bottom: 1.75rem; }

/* ── SHARED SECTION WRAPPER ───────────────────────────────── */
.fxt-about-section {
    padding: 5rem 0;
}
@media (max-width: 767px) { .fxt-about-section { padding: 3.5rem 0; } }

.fxt-about-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px)  { .fxt-about-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .fxt-about-container { padding: 0 2rem; } }

.fxt-about-section-white  { background: #fff; border-bottom: 1px solid rgba(209,211,212,0.2); }
.fxt-about-section-offwhite { background: #F8F9FA; border-bottom: 1px solid rgba(209,211,212,0.2); }

/* ── SECTION LABEL — uses .flex-section-label from style.css ─
   No redefinition needed — just use class="flex-section-label"
   in Elementor HTML widget for the orange dot + label          */

/* ── SECTION HEADING ──────────────────────────────────────── */
.fxt-about-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #414042;
    margin: 0 0 1.25rem;
}
.fxt-about-heading em { color: #F3924D; font-style: italic; }

.fxt-about-subtext {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem; color: #6b7280;
    line-height: 1.7; margin: 0;
}

/* ── FOUNDER SECTION ──────────────────────────────────────── */
.fxt-about-founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .fxt-about-founder-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.fxt-about-founder-img-wrap {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid rgba(209,211,212,0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.fxt-about-founder-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.fxt-about-founder-img-wrap:hover img { transform: scale(1.04); }
.fxt-about-founder-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(65,64,66,0.35) 0%, transparent 55%);
    pointer-events: none;
}

/* Stamp badge on image */
.fxt-about-founder-stamp {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(209,211,212,0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: #414042;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 2; line-height: 1.6;
}
.fxt-about-founder-stamp span {
    display: block; color: #9ca3af; margin-top: 0.1rem;
}

/* Founder text side */
.fxt-about-founder-text { padding-top: 0.5rem; }

.fxt-about-founder-body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem; color: #6b7280;
    line-height: 1.75; margin-bottom: 1.25rem;
}
.fxt-about-founder-body:last-of-type { margin-bottom: 0; }

.fxt-about-founder-quote {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; font-style: italic;
    color: #414042;
}

/* Signature row */
.fxt-about-signature {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(209,211,212,0.4);
}
.fxt-about-avatar {
    width: 3.5rem; height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3924D 0%, #d97529 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.5rem;
    color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243,146,77,0.35);
}
.fxt-about-sig-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 0.9375rem;
    color: #414042; margin: 0 0 0.2rem;
}
.fxt-about-sig-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: #9ca3af;
    margin: 0;
}

/* ── THREE RULES SECTION ──────────────────────────────────── */
.fxt-about-rules-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
    margin-top: 3rem;
}
@media (min-width: 640px)  { .fxt-about-rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fxt-about-rules-grid { grid-template-columns: repeat(3, 1fr); } }

.fxt-about-rule-card {
    background: #F8F9FA;
    border: 1px solid rgba(209,211,212,0.4);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s ease;
}
/* hover-lift handled by adding flex-hover-lift class in Elementor */
.fxt-about-rule-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: #F3924D;
    margin-bottom: 1.25rem; display: block;
}
.fxt-about-rule-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.25rem;
    color: #414042; margin: 0 0 0.875rem;
    line-height: 1.3;
}
.fxt-about-rule-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem; color: #6b7280;
    line-height: 1.65; margin: 0;
}

/* ── TIMELINE SECTION ─────────────────────────────────────── */
.fxt-about-timeline-wrap { max-width: 56rem; margin: 0 auto; }

.fxt-about-timeline-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 2.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(209,211,212,0.4);
    transition: background 0.2s;
    border-radius: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem; padding-right: 1rem;
}
@media (min-width: 640px) {
    .fxt-about-timeline-row {
        grid-template-columns: 9rem 1fr;
        align-items: start;
    }
}
.fxt-about-timeline-row:hover { background: #fff; }
.fxt-about-timeline-row:last-child { border-bottom: 1px solid rgba(209,211,212,0.4); }

.fxt-about-timeline-year {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    color: rgba(65,64,66,0.35);
    line-height: 1.2;
    padding-top: 0.2rem;
}
.fxt-about-timeline-year.fxt-year-active {
    color: #F3924D;
    font-weight: 700;
}
.fxt-about-timeline-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.1875rem;
    color: #414042; margin: 0 0 0.5rem;
    line-height: 1.3;
}
.fxt-about-timeline-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem; color: #6b7280;
    line-height: 1.65; margin: 0;
}

/* ── TEAM SECTION ─────────────────────────────────────────── */
.fxt-about-team-header {
    display: flex; flex-direction: column;
    gap: 1.5rem; margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .fxt-about-team-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.fxt-about-team-header-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; color: #6b7280;
    line-height: 1.7; margin: 0;
    max-width: 22rem;
    padding-bottom: 0.5rem;
}

.fxt-about-team-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px)  { .fxt-about-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fxt-about-team-grid { grid-template-columns: repeat(3, 1fr); } }

.fxt-about-team-card { cursor: default; }

.fxt-about-team-photo {
    aspect-ratio: 1 / 1;
    background: #F8F9FA;
    border: 1px solid rgba(209,211,212,0.4);
    border-radius: 2rem;
    position: relative; overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
}
.fxt-about-team-photo::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #fff 0%, rgba(209,211,212,0.3) 100%);
    transition: transform 0.5s ease;
}
.fxt-about-team-card:hover .fxt-about-team-photo::before {
    transform: scale(1.05);
}

/* Big letter placeholder */
.fxt-about-team-letter {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(5rem, 12vw, 7.5rem);
    color: rgba(209,211,212,0.8);
    line-height: 1;
    letter-spacing: -0.05em;
    position: relative; z-index: 1;
    transition: color 0.3s ease;
    user-select: none;
}
.fxt-about-team-card:hover .fxt-about-team-letter {
    color: rgba(243,146,77,0.6);
}

/* Badge bottom-left of photo */
.fxt-about-team-badge {
    position: absolute; bottom: 1.25rem; left: 1.25rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
}

.fxt-about-team-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.125rem;
    color: #414042; margin: 0 0 0.3rem;
}
.fxt-about-team-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: #9ca3af;
    margin: 0;
}

