/**
 * Coverbox Builder — Legacy Preset Stylesheet
 *
 * Loaded conditionally by CB_Service_Renderer whenever any rendered section
 * uses preset = "legacy". Do NOT enqueue globally.
 *
 * Contains all CSS classes shared across the legacy service page layout that
 * are referenced by builder templates. Keep this file in sync with the
 * inline <style> block in single-services.php.
 *
 * @package Coverbox
 * @since   1.2.0
 */

/* ============================================================
   Hero Icon Container
   ============================================================ */
.hero-icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.hero-icon-container:hover {
    transform: scale(1.05) translateY(-3px) rotate(3deg);
    box-shadow: var(--shadow-md);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   Hero Badge
   ============================================================ */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ============================================================
   Section Header (shared utility)
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header .section-desc {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 12px auto 0;
    line-height: 1.7;
}

/* ============================================================
   Checked List (used in Overview card)
   ============================================================ */
.checked-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checked-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}
.checked-list li i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   Why Choose Grid
   ============================================================ */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.why-choose-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}
.why-choose-card:hover {
    transform: translateY(-5px);
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.why-choose-card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    transition: transform var(--transition-base);
}
.why-choose-card:hover .why-choose-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ============================================================
   Timeline / Process Grid
   ============================================================ */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.timeline-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.timeline-card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(var(--primary-rgb), 0.08);
    transition: color var(--transition-base);
}
.timeline-card:hover .timeline-card-number {
    color: rgba(var(--primary-rgb), 0.18);
}
.timeline-card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform var(--transition-base);
}
.timeline-card:hover .timeline-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================================
   Tech Stack Cards
   ============================================================ */
.tech-card {
    transition: all var(--transition-base) !important;
}
.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}
.tech-card:hover i {
    transform: scale(1.1);
}

/* ============================================================
   Industry Tags
   ============================================================ */
.industry-tag {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
}
.industry-tag:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   Portfolio Showcase Grid
   ============================================================ */
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.portfolio-showcase-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.portfolio-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.portfolio-showcase-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.portfolio-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-showcase-card:hover .portfolio-showcase-image {
    transform: scale(1.05);
}
.portfolio-showcase-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
    z-index: 2;
}
.portfolio-showcase-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ============================================================
   Blog Showcase Grid
   ============================================================ */
.blogs-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.blogs-showcase-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.blogs-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.2);
}
.blogs-showcase-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.blogs-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blogs-showcase-card:hover .blogs-showcase-image {
    transform: scale(1.04);
}
.blogs-showcase-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
