/* ==========================================================================
   Social Media Redesign Styles (The Social Catalyst)
   ========================================================================== */

/* Variables / Theme overrides for this section */
:root {
    --sm-primary-glow: rgba(0, 0, 0, 0.03);
    --instagram-glow: rgba(225, 48, 108, 0.08);
    --tiktok-glow: rgba(0, 0, 0, 0.08);
    --linkedin-glow: rgba(10, 102, 194, 0.08);
    --youtube-glow: rgba(255, 0, 0, 0.08);
}

/* Service Detail Wrapper */
.sm-page {
    background-color: #ffffff;
    color: var(--color-text-primary);
    overflow: hidden;
    padding-top: 80px; /* Header spacing */
}

.sm-section {
    padding: 6rem 0;
    position: relative;
}

/* Section Headers */
.sm-section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.sm-section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.sm-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.sm-hero {
    background: radial-gradient(circle at 90% 10%, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
    padding: 6rem 0 8rem;
}

.sm-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.sm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f3f5;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.sm-hero__badge i {
    color: #0a0a0a;
}

.sm-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.sm-hero__title span {
    background: linear-gradient(135deg, #0a0a0a 30%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sm-hero__desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.sm-hero__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero Mockups Layout (Premium Rotated Slots) */
.sm-hero__visual {
    position: relative;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-hero-mockup {
    position: relative;
    width: 100%;
    height: 100%;
}

.sm-image-slot {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sm-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-image-slot--hero-1 {
    width: 280px;
    height: 380px;
    left: 10%;
    top: 0;
    transform: rotate(-6deg);
    z-index: 2;
}

.sm-image-slot--hero-2 {
    width: 250px;
    height: 340px;
    right: 10%;
    bottom: 0;
    transform: rotate(4deg);
    z-index: 1;
}

.sm-image-slot:hover {
    transform: scale(1.03) rotate(0deg);
    z-index: 5;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

/* Placeholder Styling */
.sm-placeholder-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

.sm-placeholder-card i {
    font-size: 2.5rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

.sm-placeholder-card span {
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 500;
}

.sm-placeholder-card code {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: #495057;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

/* ==========================================================================
   2. WORKS GRID SHOWCASE
   ========================================================================== */
.sm-works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.sm-work-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.sm-work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
}

.sm-work-card__image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.sm-work-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-work-card:hover .sm-work-card__img {
    transform: scale(1.04);
}

.sm-work-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #adb5bd;
}

.sm-work-card__placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.sm-work-card__placeholder span {
    font-size: 0.78rem;
    text-align: center;
}

.sm-work-card__placeholder code {
    background: rgba(0,0,0,0.04);
    padding: 2px 6px;
    border-radius: 4px;
    color: #495057;
}

.sm-work-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.sm-work-card:hover .sm-work-card__overlay {
    opacity: 1;
}

.sm-work-card__overlay span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-work-card__content {
    padding: 2rem;
}

.sm-work-card__tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.sm-work-card__title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a0a0a;
}

/* ==========================================================================
   3. BENTO PLATFORM GRID
   ========================================================================== */
.sm-bento__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.sm-bento__card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sm-bento__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.sm-bento__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.sm-bento__card:hover::after {
    opacity: 1;
}

/* Platform Spans */
.sm-bento__card--instagram {
    grid-column: span 7;
}

.sm-bento__card--instagram::after {
    border: 2px solid rgba(225, 48, 108, 0.15);
    background: radial-gradient(circle at 100% 0%, var(--instagram-glow) 0%, transparent 50%);
}

.sm-bento__card--tiktok {
    grid-column: span 5;
}

.sm-bento__card--tiktok::after {
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: radial-gradient(circle at 100% 0%, var(--tiktok-glow) 0%, transparent 50%);
}

.sm-bento__card--linkedin {
    grid-column: span 5;
}

.sm-bento__card--linkedin::after {
    border: 2px solid rgba(10, 102, 194, 0.15);
    background: radial-gradient(circle at 100% 0%, var(--linkedin-glow) 0%, transparent 50%);
}

.sm-bento__card--youtube {
    grid-column: span 7;
}

.sm-bento__card--youtube::after {
    border: 2px solid rgba(255, 0, 0, 0.15);
    background: radial-gradient(circle at 100% 0%, var(--youtube-glow) 0%, transparent 50%);
}

/* Card Content styling */
.sm-bento__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.sm-bento__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.sm-bento__badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sm-bento__badge--instagram { background: rgba(225, 48, 108, 0.06); color: #e1306c; }
.sm-bento__badge--tiktok { background: rgba(0, 0, 0, 0.06); color: #000000; }
.sm-bento__badge--linkedin { background: rgba(10, 102, 194, 0.06); color: #0a66c2; }
.sm-bento__badge--youtube { background: rgba(255, 0, 0, 0.06); color: #ff0000; }

.sm-bento__body {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.sm-bento__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.75rem;
}

.sm-bento__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.sm-bento__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.sm-bento__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.sm-bento__feature i {
    color: #0a0a0a;
    flex-shrink: 0;
}

/* ==========================================================================
   4. PROCESS CARD GRID
   ========================================================================== */
.sm-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sm-process-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.01);
}

.sm-process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.04), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.4s ease;
}

.sm-process-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.sm-process-card:hover::before {
    background: linear-gradient(135deg, #0a0a0a, transparent 60%);
}

.sm-process-card__num {
    position: absolute;
    right: 1.5rem;
    top: 0rem;
    font-family: var(--font-display);
    font-size: 7.5rem;
    line-height: 0.8;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.025);
    user-select: none;
    pointer-events: none;
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.sm-process-card:hover .sm-process-card__num {
    color: rgba(0, 0, 0, 0.05);
    transform: translateY(4px) scale(1.02);
}

.sm-process-card__step {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.sm-process-card__icon {
    font-size: 1.3rem;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.sm-process-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    line-height: 1.2;
    color: var(--color-text-primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.sm-process-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ==========================================================================
   5. SSS / FAQ SECTION
   ========================================================================== */
.sm-faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.sm-faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sm-faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a0a0a;
    list-style: none;
}

.sm-faq__item summary::-webkit-details-marker {
    display: none;
}

.sm-faq__arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sm-faq__item[open] .sm-faq__arrow {
    transform: rotate(180deg);
}

.sm-faq__answer {
    padding: 0 0 1.75rem;
}

.sm-faq__answer p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* ==========================================================================
   6. PREMIUM CTA CARD
   ========================================================================== */
.sm-cta__wrapper {
    background: #0a0a0a;
    border-radius: 32px;
    padding: 5rem 4rem;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sm-cta__glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.sm-cta__content {
    position: relative;
    z-index: 2;
}

.sm-cta__tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 1rem;
}

.sm-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.sm-cta__desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.sm-cta__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sm-cta__btn--primary {
    background: #ffffff;
    color: #0a0a0a;
}

.sm-cta__btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.sm-cta__btn--outline {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sm-cta__btn--outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Floating Mock graphics inside CTA - Social Media style */
.sm-cta__visual {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.sm-cta__float {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-cta__float--1 {
    top: -15px;
    right: 130px;
    transform: rotate(-3deg);
    z-index: 3;
}

.sm-cta__float--1:hover {
    transform: rotate(-1deg) translateY(-5px);
}

.sm-cta__float--2 {
    top: 85px;
    right: 60px;
    transform: rotate(4deg);
    z-index: 2;
}

.sm-cta__float--2:hover {
    transform: rotate(2deg) translateY(-5px);
}

.sm-cta__float--3 {
    top: 195px;
    right: 110px;
    transform: rotate(-2deg);
    z-index: 1;
}

.sm-cta__float--3:hover {
    transform: rotate(0deg) translateY(-5px);
}

/* Social Mock Cards */
.sm-cta__mock {
    width: 220px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1rem;
    color: #0a0a0a;
}

.sm-cta__mock--sm {
    width: 170px;
    padding: 0.85rem;
}

/* Profile Post Mockup */
.sm-cta__mock-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sm-cta__mock-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e9ecef;
    border: 1.5px solid #0a0a0a;
}

.sm-cta__mock-user {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sm-cta__mock-user strong {
    font-size: 0.72rem;
    font-weight: 700;
}

.sm-cta__mock-user span {
    font-size: 0.6rem;
    color: #666;
}

.sm-cta__mock-image {
    height: 110px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.sm-cta__mock-actions {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #333;
}

/* Follower Growth Mockup */
.sm-cta__mock-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    display: block;
    margin-bottom: 0.25rem;
    text-align: left;
}

.sm-cta__mock-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.sm-cta__mock-val i {
    font-size: 0.95rem;
    color: #22c55e;
}

.sm-cta__mock-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    padding-top: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sm-cta__mock-graph span {
    flex: 1;
    background: #0a0a0a;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    transition: height 0.3s ease;
}

/* Notification Balloon */
.sm-cta__mock-notif {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sm-cta__mock-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sm-cta__mock-notif-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sm-cta__mock-notif-text strong {
    font-size: 0.72rem;
    font-weight: 700;
}

.sm-cta__mock-notif-text span {
    font-size: 0.62rem;
    color: #666;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .sm-hero__grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .sm-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .sm-hero__actions {
        justify-content: center;
    }

    .sm-hero__visual {
        height: 380px;
    }

    .sm-hero-mockup {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .sm-image-slot {
        position: static;
        transform: none !important;
    }

    .sm-image-slot--hero-1 {
        width: 48%;
        height: 320px;
    }

    .sm-image-slot--hero-2 {
        width: 48%;
        height: 320px;
    }

    .sm-works__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sm-bento__grid {
        grid-template-columns: 1fr;
    }

    .sm-bento__card--instagram,
    .sm-bento__card--tiktok,
    .sm-bento__card--linkedin,
    .sm-bento__card--youtube {
        grid-column: span 12;
    }

    .sm-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sm-cta__wrapper {
        grid-template-columns: 1fr;
        padding: 4rem 2.5rem;
        text-align: center;
        gap: 3rem;
    }

    .sm-cta__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .sm-cta__actions {
        justify-content: center;
    }

    .sm-cta__visual {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .sm-hero-mockup {
        flex-direction: column;
        align-items: center;
    }

    .sm-image-slot--hero-1,
    .sm-image-slot--hero-2 {
        width: 100%;
        max-width: 320px;
        height: 360px;
    }

    .sm-process-grid {
        grid-template-columns: 1fr;
    }
}
