/* =====================================================
   ct-shared.css — Shared styles for CiroTechs homepage blocks
   Loaded ONCE instead of being duplicated in each HTML block
   ===================================================== */

/* ----- CSS VARIABLES (shared across all blocks) ----- */
:root {
    --ct-orange: #E85D04;
    --ct-orange-dark: #C74E02;
    --ct-orange-light: #FFF0E6;
    --ct-blue: #0F3D5C;
    --ct-blue-light: #3E7CA6;
    --ct-blue-lighter: #E8F0F7;
    --ct-teal: #0E9488;
    --ct-teal-light: #E3F5F3;
    --ct-bg: #F5F7FA;
    --ct-surface: #FFFFFF;
    --ct-ink: #0B1A2F;
    --ct-ink-soft: #4A5B6E;
    --ct-ink-light: #8A9AAE;
    --ct-line: #E2E8F0;
    --ct-radius: 20px;
    --ct-shadow: 0 12px 40px rgba(15, 61, 92, 0.08);
    --ct-shadow-hover: 0 24px 56px rgba(15, 61, 92, 0.16);
    --ct-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ----- LAYOUT ----- */
.ct-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ----- UTILITY TAG ----- */
.ct-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ct-orange);
    background: var(--ct-orange-light);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* ----- BUTTONS ----- */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 34px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
    background: transparent;
    color: var(--ct-ink);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.ct-btn-primary {
    background: var(--ct-orange);
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(232, 93, 4, 0.4);
}
.ct-btn-primary:hover {
    background: var(--ct-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -6px rgba(232, 93, 4, 0.5);
}
.ct-btn-secondary {
    background: var(--ct-blue);
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(15, 61, 92, 0.3);
}
.ct-btn-secondary:hover {
    background: #0b3049;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -6px rgba(15, 61, 92, 0.4);
}
.ct-btn-ghost {
    background: transparent;
    border: 2px solid var(--ct-line);
    color: var(--ct-ink);
}
.ct-btn-ghost:hover {
    border-color: var(--ct-blue);
    color: var(--ct-blue);
    transform: translateY(-3px);
    background: rgba(15, 61, 92, 0.04);
}
.ct-btn-white {
    background: #fff;
    color: var(--ct-blue);
    border: 2px solid transparent;
}
.ct-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.15);
}
.ct-btn-small {
    padding: 10px 22px;
    font-size: 13px;
}

/* ----- SECTION HEAD ----- */
.ct-section-head {
    max-width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.ct-section-head .ct-head-text h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-top: 4px;
}
.ct-section-head .ct-head-text p {
    color: var(--ct-ink-soft);
    font-size: 17px;
    margin-top: 10px;
}
.ct-section-head .ct-view-all {
    font-weight: 700;
    color: var(--ct-blue);
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}
.ct-section-head .ct-view-all:hover {
    color: var(--ct-orange);
    gap: 12px;
}

/* ----- REVEAL ANIMATIONS ----- */
.ct-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    transition-delay: var(--ct-delay, 0s);
}
.ct-reveal.ct-in {
    opacity: 1;
    transform: translateY(0);
}

.ct-reveal3 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
    transition-delay: var(--ct-delay, 0s);
}
.ct-reveal3.ct-in3 {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ct-reveal,
    .ct-reveal3 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ----- CAROUSEL ----- */
.ct-carousel-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 -12px;
    padding: 8px 0 16px;
}
.ct-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 12px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ct-line) transparent;
}
.ct-carousel::-webkit-scrollbar {
    height: 6px;
}
.ct-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.ct-carousel::-webkit-scrollbar-thumb {
    background: var(--ct-line);
    border-radius: 10px;
}
.ct-carousel-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 280px;
    max-width: 85vw;
}
@media (min-width: 768px) {
    .ct-carousel-item { width: 300px; }
}
@media (min-width: 1024px) {
    .ct-carousel-item { width: 340px; }
}

/* ----- SHARED RESPONSIVE ----- */
@media (max-width: 1024px) {
    .ct-carousel-item { width: 260px; }
}

@media (max-width: 768px) {
    .ct-section-head .ct-head-text h2 { font-size: 26px; }
    .ct-section-head .ct-head-text p { font-size: 15px; }
    .ct-wrap { padding: 0 18px; }
    .ct-carousel-item { width: 240px; }
    .ct-carousel { gap: 16px; }
}

@media (max-width: 480px) {
    .ct-btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }
    .ct-wrap { padding: 0 14px; }
    .ct-carousel-item { width: 200px; }
    .ct-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
