/* =================================================================
   CODENOSYS BRANDING SERVICE PAGE STYLES
   ================================================================= */

/* --- Global Section Headers --- */
.section-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f72585;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
}

/* Header Alignments */
.brand-pillars__header, .brand-deliverables__header {
    text-align: center;
    margin-bottom: 60px;
}

.brand-pillars__header .section-desc, .brand-deliverables__header .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* --- 1. Hero Section --- */
.brand-hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at top, rgba(247, 37, 133, 0.08) 0%, var(--color-bg) 75%);
    overflow: hidden;
}

.brand-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.holo-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(247, 37, 133, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 37, 133, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    transform: perspective(600px) rotateX(60deg) translateY(-80px) scale(1.8);
    opacity: 0.5;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.holo-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.brand-hero__layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.brand-hero__content {
    max-width: 680px;
}

.brand-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid rgba(247, 37, 133, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f72585;
    margin-bottom: 24px;
}

.brand-hero__badge .live-dot {
    width: 6px;
    height: 6px;
    background: #f72585;
    border-radius: 50%;
    box-shadow: 0 0 10px #f72585;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.brand-hero .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-hero .subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.65;
}

.brand-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button Classes Override */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f72585, #7209b7);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(247, 37, 133, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: none;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(247, 37, 133, 0.45);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f9f9f9;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* --- Brand Book Mockup --- */
.brand-book-mockup {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-sheet {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mock-sheet:hover {
    border-color: rgba(247, 37, 133, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(247, 37, 133, 0.08);
}

.sheet-tag {
    display: block;
    font-family: monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.mock-sheet h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 16px;
}

/* Typography Sheet Details */
.spec-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.font-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-spec small {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.font-spec strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
}

.font-spec .weights {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Geometry Sheet Details */
.geometry-svg-container {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.preview-geometry-svg {
    height: 100%;
}

/* Swatches Sheet Details */
.swatches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.color-preview {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch-item strong {
    font-family: monospace;
    font-size: 0.74rem;
    color: var(--color-text-muted);
}

/* --- 2. The Strategic Pillars --- */
.brand-pillars {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.pillar-card .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(247, 37, 133, 0.15);
    margin-bottom: 20px;
    line-height: 1;
}

.pillar-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.pillar-card:hover {
    border-color: rgba(247, 37, 133, 0.25);
    background: rgba(247, 37, 133, 0.01);
    transform: translateY(-5px);
}

/* --- 3. The Brand Book Deliverables --- */
.brand-deliverables {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.deliverable-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s;
}

.deliverable-card .icon-box {
    width: 56px;
    height: 56px;
    background: rgba(247, 37, 133, 0.05);
    border: 1px solid rgba(247, 37, 133, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f72585;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.deliverable-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
}

.deliverable-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.deliverable-card:hover {
    border-color: rgba(247, 37, 133, 0.25);
    transform: translateY(-3px);
}

/* --- 4. Color & Typography Systems (Spec Sheet) --- */
.brand-specs-section {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-specs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.spec-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.spec-point strong {
    display: block;
    font-family: monospace;
    font-size: 0.82rem;
    color: #f72585;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.spec-point p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.specs-table-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.table-row:first-child {
    padding-top: 0;
}

.col-label {
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.col-val {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.col-val.font-outfit {
    font-family: var(--font-heading);
}

.col-val.font-inter {
    font-family: 'Inter', sans-serif;
}

.color-token {
    font-family: monospace;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.color-token.pink-token {
    background: rgba(247, 37, 133, 0.1);
    color: #f72585;
}

.color-token.teal-token {
    background: rgba(6, 214, 160, 0.1);
    color: #06d6a0;
}

.color-token.slate-token {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* --- 5. FAQ & CTA --- */
.brand-faq {
    padding: 120px 0;
}

.ui-faq__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: flex-start;
}

.ui-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s;
}

.faq-trigger i {
    font-size: 1.4rem;
    color: #f72585;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-content p {
    padding-top: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* CTA Card */
.brand-cta-box {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.03), rgba(181, 23, 158, 0.03));
    border: 1px solid rgba(247, 37, 133, 0.15);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(247, 37, 133, 0.05);
}

.brand-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.brand-cta-box p {
    font-size: 0.98rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* --- Entrance & Scroll Animations (FOUC-Proof CSS) --- */
.brand-hero__badge, 
.brand-hero .title, 
.brand-hero .subtitle, 
.brand-hero__actions, 
.mock-sheet {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-page-loaded .brand-hero__badge { opacity: 1; transform: translateY(0); }
.brand-page-loaded .brand-hero .title { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.brand-page-loaded .brand-hero .subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.brand-page-loaded .brand-hero__actions { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.brand-page-loaded .mock-sheet:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.brand-page-loaded .mock-sheet:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.brand-page-loaded .mock-sheet:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Scroll entrance animations */
.pillar-card, 
.deliverable-card, 
.brand-specs__grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-visible .pillar-card,
.section-visible .deliverable-card,
.section-visible .brand-specs__grid > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggers for scroll areas */
.section-visible .pillar-card:nth-child(1) { transition-delay: 0.1s; }
.section-visible .pillar-card:nth-child(2) { transition-delay: 0.25s; }
.section-visible .pillar-card:nth-child(3) { transition-delay: 0.4s; }

.section-visible .deliverable-card:nth-child(1) { transition-delay: 0.1s; }
.section-visible .deliverable-card:nth-child(2) { transition-delay: 0.2s; }
.section-visible .deliverable-card:nth-child(3) { transition-delay: 0.3s; }
.section-visible .deliverable-card:nth-child(4) { transition-delay: 0.4s; }

.section-visible .brand-specs__grid > *:nth-child(1) { transition-delay: 0.1s; }
.section-visible .brand-specs__grid > *:nth-child(2) { transition-delay: 0.3s; }

/* --- 6. Responsive Adaptations --- */
@media (max-width: 1024px) {
    .brand-hero__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .brand-hero__visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-specs__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ui-faq__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .brand-hero {
        padding: 140px 0 80px;
    }

    .deliverable-card {
        flex-direction: column;
        gap: 15px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .brand-cta-box {
        padding: 35px 20px;
    }

    .spec-detail {
        grid-template-columns: 1fr;
    }

    .swatches-grid {
        grid-template-columns: 1fr;
    }

    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .table-row .col-val {
        width: 100%;
        text-align: left;
    }
}
