/**
 * Brand Story Page — luxury storytelling layout
 *
 * @package Sestito_Template
 * @version 1.0.0
 */

/* ===== HERO ===== */
.sestito-brand-hero {
    background: var(--ssc-brand-green);
    padding: clamp(100px, 15vw, 180px) clamp(20px, 5vw, 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sestito-brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M30 30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm-20 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/G%3E%3C/svg%3E");
    opacity: 0.5;
}

.sestito-brand-hero__content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes ssc-brandFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .sestito-brand-hero__subtitle,
    .sestito-brand-hero__title,
    .sestito-brand-hero__description { animation: none; }
}

.sestito-brand-hero__subtitle {
    font-family: var(--font-nav);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ssc-color-background) 70%, transparent);
    margin: 0 0 20px;
    animation: ssc-brandFadeUp 0.6s ease-out;
}

.sestito-brand-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 400;
    color: var(--ssc-color-background);
    margin: 0 0 28px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    animation: ssc-brandFadeUp 0.6s ease-out 0.1s both;
}

.sestito-brand-hero__description {
    font-family: var(--font-nav);
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    color: color-mix(in srgb, var(--ssc-color-background) 85%, transparent);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 700px;
    animation: ssc-brandFadeUp 0.6s ease-out 0.2s both;
}

/* ===== STORY SECTIONS ===== */
.sestito-brand-main {
    background: var(--ssc-brand-cream-page);
}

.sestito-brand-section {
    padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 60px);
    position: relative;
}

.sestito-brand-section:nth-child(even) {
    background: var(--ssc-color-background);
}

.sestito-brand-section__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 100px);
    align-items: center;
}

.sestito-brand-section:nth-child(even) .sestito-brand-section__container {
    direction: rtl;
}

.sestito-brand-section:nth-child(even) .sestito-brand-section__container > * {
    direction: ltr;
}

/* ===== SECTION IMAGE ===== */
.sestito-brand-section__visual {
    position: relative;
}

.sestito-brand-section__image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--ssc-black-08);
    display: block;
}

.sestito-brand-section__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg,
        var(--ssc-color-surface) 0%,
        color-mix(in srgb, var(--ssc-color-border) 70%, var(--ssc-color-surface)) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.sestito-brand-section__image-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--ssc-color-text-muted);
    stroke-width: 1;
    fill: none;
}

.sestito-brand-section__image-placeholder-hint {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    color: var(--ssc-color-text-muted);
    text-align: center;
    max-width: 160px;
    line-height: 1.4;
}

/* ===== YEAR BADGE ===== */
.sestito-brand-section__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--ssc-color-secondary-800, #0f2942);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ssc-color-background);
    box-shadow: 0 8px 30px var(--ssc-brand-green-30, rgba(29,61,47,.30));
}

.sestito-brand-section__badge-year {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.sestito-brand-section__badge-text {
    font-family: var(--font-nav);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ===== SECTION TEXT ===== */
.sestito-brand-section__content { padding: 20px 0; }

.sestito-brand-section__label {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ssc-color-text-muted);
    margin: 0 0 16px;
}

.sestito-brand-section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--ssc-color-heading, var(--ssc-brand-text-dark));
    margin: 0 0 24px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.sestito-brand-section__text {
    font-family: var(--font-nav);
    font-size: 1rem;
    color: var(--ssc-color-text-muted);
    line-height: 1.9;
    margin: 0 0 24px;
}

.sestito-brand-section__text:last-of-type { margin-bottom: 0; }

/* ===== VALUES GRID ===== */
.sestito-brand-values {
    padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 60px);
    background: var(--ssc-color-secondary-800, #0f2942);
}

.sestito-brand-values__container { max-width: 1200px; margin: 0 auto; }

.sestito-brand-values__header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.sestito-brand-values__subtitle {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ssc-color-background) 60%, transparent);
    margin: 0 0 16px;
}

.sestito-brand-values__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--ssc-color-background);
    margin: 0;
    letter-spacing: 0.02em;
}

.sestito-brand-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.sestito-brand-value {
    text-align: center;
    padding: 40px 32px;
}

.sestito-brand-value__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: color-mix(in srgb, var(--ssc-color-background) 10%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sestito-brand-value__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--ssc-color-background);
    stroke-width: 1.5;
    fill: none;
}

.sestito-brand-value__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--ssc-color-background);
    margin: 0 0 12px;
}

.sestito-brand-value__text {
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    color: color-mix(in srgb, var(--ssc-color-background) 75%, transparent);
    line-height: 1.7;
    margin: 0;
}

/* ===== QUOTE ===== */
.sestito-brand-quote {
    padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 60px);
    background: var(--ssc-color-background);
}

.sestito-brand-quote__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sestito-brand-quote__mark {
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--ssc-color-border);
    line-height: 0.5;
    margin-bottom: 20px;
}

.sestito-brand-quote__text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--ssc-color-text);
    line-height: 1.6;
    margin: 0 0 32px;
}

.sestito-brand-quote__author {
    font-family: var(--font-nav);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ssc-color-text-muted);
    letter-spacing: 0.05em;
}

/* ===== CTA ===== */
.sestito-brand-cta {
    padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 60px);
    background: var(--ssc-brand-cream-page);
}

.sestito-brand-cta__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sestito-brand-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--ssc-color-text);
    margin: 0 0 20px;
    letter-spacing: 0.01em;
}

.sestito-brand-cta__text {
    font-family: var(--font-nav);
    font-size: 1.0625rem;
    color: var(--ssc-color-text-muted);
    line-height: 1.7;
    margin: 0 0 36px;
}

.sestito-brand-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sestito-brand-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.sestito-brand-cta__button--primary {
    color: var(--ssc-color-background);
    background: var(--ssc-color-secondary-800, #0f2942);
}

.sestito-brand-cta__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--ssc-black-25);
}

.sestito-brand-cta__button--secondary {
    color: var(--ssc-color-secondary-800, #0f2942);
    background: transparent;
    border: 1.5px solid var(--ssc-brand-green-20, rgba(29,61,47,.20));
}

.sestito-brand-cta__button--secondary:hover {
    background: var(--ssc-brand-green-08, rgba(29,61,47,.08));
    border-color: var(--ssc-brand-green-30, rgba(29,61,47,.30));
}

.sestito-brand-cta__button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sestito-brand-section__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sestito-brand-section:nth-child(even) .sestito-brand-section__container {
        direction: ltr;
    }

    .sestito-brand-section__badge {
        bottom: -16px;
        right: auto;
        left: 24px;
        width: 80px;
        height: 80px;
    }

    .sestito-brand-section__badge-year { font-size: 1.5rem; }

    .sestito-brand-values__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sestito-brand-value {
        padding: 32px 24px;
        background: color-mix(in srgb, var(--ssc-color-background) 5%, transparent);
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .sestito-brand-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .sestito-brand-cta__button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
