/**
 * Theme Base CSS
 *
 * Utility styles, scrollbar customization, animations,
 * and component base classes for the starter-landing theme.
 *
 * @package starter-landing
 */

/* Icon system — consistent sizing for starter_icon() */
.starter-icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--sm {
    width: 1.125rem;
    height: 1.125rem;
}
.starter-icon--md {
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}
.starter-icon--xl {
    width: 2rem;
    height: 2rem;
}

/* Scroll carousel — card width from data-visible (supports decimals e.g. 2.5 for peek) */
.starter-carousel-track {
    --carousel-visible: 1;
    --carousel-gap: 0px;
}

.starter-carousel-track > .starter-carousel-item,
.starter-carousel-track > [data-carousel-item] {
    flex: 0 0 calc(
        (100% - var(--carousel-gap) * (var(--carousel-visible) - 1)) / var(--carousel-visible)
    );
    min-width: 0;
}

/* Hero title — shared look for <h1> (first slide / split) and <p> (later slides) */
.starter-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Card / grid item titles — keep class so Customizer h3 scale is skipped via :not(.starter-card-title) */
.starter-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.35;
    color: hsl(var(--heading-foreground));
}
@media (min-width: 768px) {
    .starter-card-title {
        font-size: 1.25rem;
    }
}
.starter-card-title--sm {
    font-size: 1rem;
    line-height: 1.4;
}
.starter-card-title--lg {
    font-size: 1.25rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .starter-card-title--lg {
        font-size: 1.375rem;
    }
}

/* Accent card — primary background (starter-card forces white bg; never rely on bg-primary alone) */
.starter-card--primary {
    background-color: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary));
    color: #ffffff;
}
.starter-card--primary .starter-card-title {
    color: #ffffff;
}
.starter-card--primary .starter-card-muted {
    color: rgb(255 255 255 / 0.88);
}
.starter-card--primary .starter-card-link {
    color: #ffffff;
}
.starter-card--primary .starter-card-link:hover {
    color: rgb(255 255 255 / 0.85);
}
.starter-card--primary h1,
.starter-card--primary h2,
.starter-card--primary h3 {
    color: #ffffff;
}

/* Soft accent card — light tinted background */
.starter-card--soft {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    ) !important;
    border-color: hsl(var(--primary) / 0.15);
}

/* Deep accent card — darker primary tint */
.starter-card--deep {
    background: linear-gradient(
        145deg,
        hsl(var(--primary) / 0.88) 0%,
        hsl(var(--primary) / 0.72) 100%
    ) !important;
    border-color: hsl(var(--primary));
    color: #ffffff;
}
.starter-card--deep .starter-card-title {
    color: #ffffff;
}
.starter-card--deep .starter-card-muted,
.starter-card--deep p {
    color: rgb(255 255 255 / 0.88);
}
.starter-card--deep .starter-icon-box {
    background: rgb(255 255 255 / 0.15);
    color: #ffffff;
}
.starter-card--deep .starter-btn.bg-secondary {
    background: rgb(255 255 255 / 0.95);
    color: hsl(var(--heading-foreground));
}

.starter-hero .starter-hero-content h1,
.starter-hero .starter-hero-content p {
    color: #fff;
}
.starter-hero .starter-hero-content p {
    color: rgb(255 255 255 / 0.8);
}

/* Decorative section backgrounds */
.starter-section-decor {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.starter-section-decor::before,
.starter-section-decor::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.starter-section-decor--hero::before {
    width: min(42rem, 80vw);
    height: min(42rem, 80vw);
    top: -18%;
    right: -12%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, transparent 68%);
}

.starter-section-decor--hero::after {
    width: min(28rem, 60vw);
    height: min(28rem, 60vw);
    bottom: -8%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
}

.starter-section-decor--muted::before {
    width: min(36rem, 70vw);
    height: min(36rem, 70vw);
    top: -20%;
    left: -8%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 65%);
}

.starter-section-decor--muted::after {
    width: min(24rem, 50vw);
    height: min(24rem, 50vw);
    bottom: -12%;
    right: -6%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 68%);
}

.starter-section-inner {
    position: relative;
    z-index: 1;
}

/* Hero gradient band */
.starter-hero-band {
    background: linear-gradient(
        135deg,
        hsl(var(--accent)) 0%,
        hsl(var(--background)) 45%,
        hsl(var(--muted)) 100%
    );
}

/* Cut-out person visual */
.starter-cutout-visual {
    position: relative;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.starter-cutout-visual__glow {
    position: absolute;
    inset: 8% 10% 0;
    background: radial-gradient(
        ellipse at center bottom,
        hsl(var(--primary) / 0.22) 0%,
        transparent 72%
    );
    pointer-events: none;
}

.starter-cutout-visual__rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.starter-cutout-visual__ring {
    position: absolute;
    border: 1px solid hsl(var(--primary) / 0.18);
    border-radius: 50%;
    animation: starter-ring-pulse 6s ease-in-out infinite;
}

.starter-cutout-visual__ring:nth-child(1) {
    width: 88%;
    height: 88%;
    animation-delay: 0s;
}

.starter-cutout-visual__ring:nth-child(2) {
    width: 68%;
    height: 68%;
    animation-delay: 1s;
}

.starter-cutout-visual__ring:nth-child(3) {
    width: 48%;
    height: 48%;
    animation-delay: 2s;
}

@keyframes starter-ring-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.starter-cutout-visual__person {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px hsl(var(--primary) / 0.18));
}

.starter-cutout-visual__person img {
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    object-position: bottom center;
}

/* Floating UI cards */
.starter-float-card {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: hsl(var(--card) / 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 12px 32px hsl(var(--primary) / 0.12);
    animation: starter-float 5s ease-in-out infinite;
}

.starter-float-card--delay {
    animation-delay: 1.5s;
}

@keyframes starter-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.starter-avatar-stack {
    display: flex;
    align-items: center;
}

.starter-avatar-stack img,
.starter-avatar-stack__item {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid hsl(var(--card));
    object-fit: cover;
    margin-left: -0.5rem;
}

.starter-avatar-stack img:first-child,
.starter-avatar-stack__item:first-child {
    margin-left: 0;
}

/* Promo banner strip */
.starter-promo-band {
    background: linear-gradient(
        110deg,
        hsl(var(--accent)) 0%,
        hsl(var(--primary) / 0.12) 50%,
        hsl(var(--accent)) 100%
    );
    border-top: 1px solid hsl(var(--primary) / 0.12);
    border-bottom: 1px solid hsl(var(--primary) / 0.12);
}

.starter-promo-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: hsl(var(--card) / 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--primary) / 0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.starter-promo-feature:hover {
    border-color: hsl(var(--primary) / 0.35);
    box-shadow: 0 12px 28px hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.starter-promo-feature__step {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: hsl(var(--primary) / 0.45);
    line-height: 1;
}

.starter-promo-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: calc(var(--radius) * 0.75);
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.starter-promo-feature:hover .starter-promo-feature__icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.starter-promo-features {
    position: relative;
}

@media (min-width: 1024px) {
    .starter-promo-features::before {
        content: '';
        position: absolute;
        top: 2.35rem;
        left: 12.5%;
        right: 12.5%;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            hsl(var(--primary) / 0.25) 15%,
            hsl(var(--primary) / 0.25) 85%,
            transparent 100%
        );
        pointer-events: none;
        z-index: 0;
    }
}

.starter-promo-features > * {
    position: relative;
    z-index: 1;
}

/* Internal page header */
.starter-page-header--default .starter-page-header__inner {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .starter-page-header--default .starter-page-header__inner {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
}

.starter-page-header__breadcrumbs {
    margin-bottom: 0.75rem;
}

.starter-page-header--default .starter-page-header__crumb-link,
.starter-page-header--default .starter-page-header__crumb-sep {
    color: hsl(var(--muted-foreground));
}

.starter-page-header--default .starter-page-header__crumb-link:hover {
    color: hsl(var(--primary));
}

.starter-page-header--default .starter-page-header__crumb-current {
    color: hsl(var(--heading-foreground));
}

.starter-page-header__title {
    font-size: 1.5rem !important;
    color: hsl(var(--heading-foreground));
}

@media (min-width: 768px) {
    .starter-page-header__title {
        font-size: 1.875rem !important;
    }
}

.starter-page-header--default .starter-page-header__subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .starter-page-header--default .starter-page-header__subtitle {
        font-size: 1rem;
    }
}

/* Hero page header */
.starter-page-header--hero {
    display: flex;
    align-items: flex-end;
    min-height: 22rem;
}

@media (min-width: 768px) {
    .starter-page-header--hero {
        min-height: 31.25rem;
    }
}

.starter-page-header--hero .starter-page-header__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 22rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .starter-page-header--hero .starter-page-header__inner {
        min-height: 31.25rem;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }
}

.starter-page-header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.starter-page-header__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.starter-page-header__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        hsl(var(--heading-foreground) / 0.92) 0%,
        hsl(var(--primary) / 0.78) 48%,
        hsl(var(--heading-foreground) / 0.88) 100%
    );
}

.starter-page-header--hero .starter-page-header__crumb-link,
.starter-page-header--hero .starter-page-header__crumb-sep {
    color: rgb(255 255 255 / 0.72);
}

.starter-page-header--hero .starter-page-header__crumb-link:hover {
    color: #ffffff;
}

.starter-page-header--hero .starter-page-header__crumb-current {
    color: #ffffff;
}

.starter-page-header--hero .starter-page-header__title {
    font-size: 1.625rem !important;
    color: #ffffff;
}

@media (min-width: 768px) {
    .starter-page-header--hero .starter-page-header__title {
        font-size: 2.25rem !important;
    }
}

.starter-page-header--hero .starter-page-header__subtitle {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.88);
    max-width: 36rem;
}

@media (min-width: 768px) {
    .starter-page-header--hero .starter-page-header__subtitle {
        font-size: 1.0625rem;
    }
}

/* Differential cards — Sobre page */
.starter-diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-diff-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
    }
}

.starter-diff-card {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.starter-diff-card:hover {
    border-color: hsl(var(--primary) / 0.35);
    box-shadow: 0 16px 40px hsl(var(--primary) / 0.12);
    transform: translateY(-2px);
}

.starter-diff-card--featured {
    border-color: hsl(var(--primary) / 0.2);
}

@media (min-width: 768px) {
    .starter-diff-card--wide {
        grid-column: span 7;
    }

    .starter-diff-card--tall {
        grid-column: span 5;
    }

    .starter-diff-card--banner {
        grid-column: span 12;
    }
}

.starter-diff-card__media {
    position: relative;
    overflow: hidden;
}

.starter-diff-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.starter-diff-card:hover .starter-diff-card__media img {
    transform: scale(1.05);
}

.starter-diff-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.55) 0%,
        hsl(var(--heading-foreground) / 0.1) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.starter-diff-card--split {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .starter-diff-card--split {
        grid-template-columns: 42% 1fr;
    }
}

.starter-diff-card--split .starter-diff-card__media {
    min-height: 14rem;
}

@media (min-width: 640px) {
    .starter-diff-card--split .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card--vertical .starter-diff-card__media {
    height: 11rem;
}

@media (min-width: 768px) {
    .starter-diff-card--vertical .starter-diff-card__media {
        height: 13.5rem;
    }
}

.starter-diff-card--banner .starter-diff-card__media {
    min-height: 12rem;
}

@media (min-width: 640px) {
    .starter-diff-card--banner {
        grid-template-columns: 38% 1fr;
    }

    .starter-diff-card--banner .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card__icon {
    position: absolute;
    bottom: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: calc(var(--radius) * 0.75);
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.35);
}

.starter-diff-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .starter-diff-card__body {
        padding: 1.75rem 2rem;
    }
}

.starter-diff-card--featured .starter-diff-card__body {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    );
}

.starter-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-benefit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.starter-promo-feature--accent {
    background: linear-gradient(
        160deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card) / 0.9) 100%
    ) !important;
    border-color: hsl(var(--primary) / 0.22);
}

/* Blog card image overlay */
.starter-post-card__media {
    position: relative;
    overflow: hidden;
    height: 13.75rem;
}

.starter-post-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.45) 0%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.starter-post-card:hover .starter-post-card__media::after {
    opacity: 1;
}

.starter-post-card__category {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius-full);
}

/* Hide native scrollbar on carousel tracks */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for main page */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.3);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.6);
}

/* Transition utilities for lightbox image */
#lightbox-img {
    transition: opacity 0.15s ease-in-out;
}

/* WhatsApp FAB animation */
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.whatsapp-fab {
    animation: fab-pulse 2s ease-in-out infinite;
}

/* Section fade-in animation (optional, applied via JS Intersection Observer) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Scale utility for group-hover */
.scale-98 { transform: scale(0.98); }
.scale-102 { transform: scale(1.02); }
.scale-103 { transform: scale(1.03); }

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
}


#studio-companion-notice {
    display: none !important;
}