/**
 * Blueprint Pagebuilder – Stitch Layouts
 * Hero Philosophy + Mission Visual
 *
 * @package Blueprint
 * @version 1.0.0
 */

/* ==========================================================================
   Shared
   ========================================================================== */

/* Kicker / Eyebrow Label */
.pb-hero-philosophy__kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent, #d95f00);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Philosophy
   ========================================================================== */

.pb-hero-philosophy {
    width: 100%;
}

.pb-hero-philosophy__text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Headline */
.pb-hero-philosophy__headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-heading, #0d1c2f);
    margin: 0 0 2rem;
}

/* Highlight span (secondary color) */
.pb-hero-philosophy__highlight {
    color: var(--color-secondary, #515f74);
}

/* Body text */
.pb-hero-philosophy__text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-text-muted, #45464d);
    max-width: 640px;
    margin: 0 0 2rem;
}

/* CTA Button – inherits Blueprint button system */
.pb-hero-philosophy__cta {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Stat Column – align right on large */
.pb-hero-philosophy__stat-col {
    display: flex;
    justify-content: flex-start;
}

@media (min-width: 64em) {
    .pb-hero-philosophy__stat-col {
        justify-content: flex-end;
    }
}

/* Stat Card */
.pb-hero-philosophy__stat-card {
    background: var(--color-surface, #ffffff);
    border-radius: 0.75rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 32px rgba(25, 28, 30, 0.08);
    max-width: 280px;
    width: 100%;
}

.pb-hero-philosophy__stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-accent, #d95f00);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pb-hero-philosophy__stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary, #515f74);
}

/* Mobile: Stack stat card below text */
@media (max-width: 63.9375em) {
    .pb-hero-philosophy__stat-col {
        margin-top: 2.5rem;
    }
    .pb-hero-philosophy__stat-card {
        max-width: 100%;
    }
}

/* Dark mode */
[data-theme="dark"] .pb-hero-philosophy__headline {
    color: var(--color-dark-heading, #e8eaf0);
}
[data-theme="dark"] .pb-hero-philosophy__text {
    color: var(--color-dark-text-muted, #9aa0aa);
}
[data-theme="dark"] .pb-hero-philosophy__stat-card {
    background: var(--color-dark-surface, #1e2330);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Mission Visual
   ========================================================================== */

.pb-mission-visual {
    width: 100%;
}

/* Full-bleed within pagebuilder section */
.pagebuilder-section .pb-mission-visual {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.pb-mission-visual__inner {
    position: relative;
    height: var(--mission-height, 500px);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(25, 28, 30, 0.08);
}

/* When full-bleed, remove border radius */
.pagebuilder-section .pb-mission-visual__inner {
    border-radius: 0;
}

.pb-mission-visual__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s ease;
}

.pb-mission-visual__inner:hover .pb-mission-visual__img {
    transform: scale(1.04);
}

/* Gradient overlay – bottom heavy */
.pb-mission-visual__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 28, 47, 0.65) 0%,
        rgba(13, 28, 47, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Quote positioning */
.pb-mission-visual__quote-wrap {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    max-width: 560px;
}

.pb-mission-visual__quote {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    padding: 0;
    border: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Mobile */
@media (max-width: 640px) {
    .pb-mission-visual__quote-wrap {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
    .pb-mission-visual__inner {
        height: calc(var(--mission-height, 500px) * 0.65);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pb-mission-visual__img { transition: none; }
}
