/* Shared animations for rich Growmatic themes */
@keyframes siteFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes siteFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes siteScaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

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

.site-animate {
    opacity: 0;
    animation: siteFadeUp 0.7s ease forwards;
}

body.site-anim-fade-in .site-animate { animation-name: siteFadeIn; }
body.site-anim-scale .site-animate { animation-name: siteScaleIn; }
body.site-anim-slide-left .site-animate { animation-name: siteSlideLeft; }
body.site-anim-none .site-animate { opacity: 1; animation: none; }

@keyframes siteSlideLeft {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

.site-animate-delay-1 { animation-delay: 0.1s; }
.site-animate-delay-2 { animation-delay: 0.2s; }
.site-animate-delay-3 { animation-delay: 0.3s; }
.site-animate-delay-4 { animation-delay: 0.4s; }

.site-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--accent, var(--brand));
}

.site-section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.site-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.site-stat {
    text-align: center;
    padding: 1.5rem;
}

.site-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent, var(--brand));
}

.site-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.site-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--accent, var(--brand));
    color: #fff;
    margin-bottom: 0.75rem;
}

.site-cta-band {
    background: var(--cta-bg, linear-gradient(135deg, #0f172a, #1e293b));
    color: #fff;
    padding: 4rem 0;
}

.site-cta-band .btn-brand {
    background: #fff;
    border-color: #fff;
    color: #0f172a;
}

.site-bento-grid .site-card,
.site-bento-grid .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.site-bento-grid .site-card > *,
.site-bento-grid .service-card > * {
    width: 100%;
}

.site-bento-grid [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.site-section-title,
.site-section-label {
    text-align: center;
    width: 100%;
}

.color-style-growmatic {
    --accent-soft: #C4B5FD;
    --section-alt-bg: #F8F7FF;
}

.site-pricing-grid .col-md-4,
.site-pricing-grid .col-md-6,
.site-pricing-grid .col-lg-3 {
    display: flex;
}

[data-site-section].editor-highlight {
    outline: 2px solid #8BC34A;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Click-to-edit in preview */
.site-preview-edit-mode [data-site-section] {
    cursor: pointer;
    position: relative;
    transition: outline-color 0.15s ease;
}

.site-preview-edit-mode [data-site-section]:hover {
    outline: 2px dashed rgba(139, 195, 74, 0.85);
    outline-offset: 4px;
}

.site-preview-edit-mode [data-site-section]::before {
    content: attr(data-edit-label);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
    background: #8BC34A;
    color: #1a2e05;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.site-preview-edit-mode [data-site-section]:hover::before {
    opacity: 1;
}

.site-testimonial {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-testimonial-avatar-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

.site-testimonial-quote {
    font-style: italic;
    color: #475569;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.site-testimonial-author {
    font-weight: 600;
    font-size: 0.875rem;
}

.site-testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-soft, #f1f5f9);
}

.site-pricing-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.site-pricing-card.is-highlighted {
    border-color: var(--accent, var(--brand));
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    transform: scale(1.02);
}

.site-pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent, var(--brand));
    line-height: 1;
}

.site-pricing-period {
    font-size: 0.875rem;
    color: #64748b;
}

.site-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.site-pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: #475569;
}

.site-pricing-features li::before {
    content: '✓';
    color: var(--accent, var(--brand));
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Equal-height rows & cards */
.site-row-equal {
    align-items: stretch;
}

.site-row-equal > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.site-card-equal {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-card-inner {
    min-height: 220px;
}

.site-card-desc {
    min-height: 3rem;
}

.site-card-media {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.site-card-media-square {
    aspect-ratio: 1;
    height: auto;
}

.site-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft, #f1f5f9);
    color: var(--accent, var(--brand));
    font-size: 2rem;
}

.site-card-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
}

.min-vh-50 {
    min-height: 50vh;
}

.site-section-alt {
    background: var(--section-alt-bg, #f8fafc);
}

.site-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft, #f1f5f9);
    color: var(--accent, var(--brand));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.layout-fintech .site-page-hero-fintech { background: linear-gradient(135deg, #0f172a, #334155); color: #f8fafc; padding: 3.5rem 0; }
.layout-fintech .site-page-hero-fintech .text-secondary { color: #94a3b8 !important; }
.layout-spa .site-page-hero-spa { background: linear-gradient(180deg, #fdf4ff, #fff); padding: 3.5rem 0; }
.layout-studio .site-page-hero-studio { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 3.5rem 0; }
.layout-agency .site-page-hero-agency { background: linear-gradient(135deg, var(--accent, #0d9488), #134e4a); color: #fff; padding: 3.5rem 0; }
.layout-agency .site-page-hero-agency .site-section-label { color: rgba(255,255,255,0.85); }
.layout-bistro .site-page-hero-bistro { background: #fff7ed; padding: 3.5rem 0; }
.layout-classic .site-page-hero-classic { background: #f0f9ff; padding: 3.5rem 0; }
