/* =============================================================
   home.css — All homepage section styles
   Loaded on front-page only via functions.php is_front_page() check.
   Global classes (.container-xl, .section-*, .btn, .card) come
   from the global CSS files — never re-define them here.
   ============================================================= */

/* -------------------------------------------------------------
   .hero — Full-width canvas animation hero
   ------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 6rem;
    text-align: center;
    background-color: var(--color-navy);
}

/* Canvas background (particle animation target) */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Red gradient overlay on canvas */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-md);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand-red);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Highlighted word inside hero title */
.hero-title mark {
    background: none;
    color: var(--color-brand-red);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 52rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-footer-text {
    font-size: 0.875rem;
    color: var(--color-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }
}


/* =============================================================
   SERVICES SECTION
   5 service cards on light background
   ============================================================= */
.services-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(5, 1fr); }
}

.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(3, 28, 72, 0.1);
    transform: translateY(-3px);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.service-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.service-card__list li {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    padding-left: 0.875rem;
    position: relative;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-brand-red);
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-brand-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    transition: gap var(--transition-fast);
}

.service-card__link:hover { gap: 0.625rem; }


/* =============================================================
   CTA BAND (homepage)
   Full-width navy band with headline + button
   ============================================================= */
.cta-band {
    padding: 5rem 0;
    background-color: var(--color-navy);
    position: relative;
    overflow: hidden;
}

/* Subtle red gradient accent */
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220, 20, 60, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-band__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-band__title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-band__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}


/* =============================================================
   ANNOUNCEMENT BAR
   Below hero — "Exciting News / OneSix and CTI Data Join Forces"
   ============================================================= */
.announcement-bar {
    padding: 2.5rem 0;
    background: transparent;
}

.announcement-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 60%, #fef2f2 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.announcement-bar__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-brand-red);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.announcement-bar__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-brand-red);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.announcement-bar__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-red);
    margin: 0 0 0.5rem;
}

.announcement-bar__title {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.announcement-bar__text {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    line-height: 1.65;
    margin: 0;
    max-width: 600px;
}

.announcement-bar__content { flex: 1; }

.announcement-bar__btn { flex-shrink: 0; }

@media (max-width: 768px) {
    .announcement-bar__inner { flex-direction: column; align-items: flex-start; }
}


/* =============================================================
   VIDEO & TESTIMONIAL SECTION
   Vimeo interview left, CIEE quote right — 2-column split
   ============================================================= */
.video-testimonial {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
}

.video-testimonial__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .video-testimonial__inner { grid-template-columns: 1fr 1fr; }
}

/* 16:9 responsive iframe container */
.video-testimonial__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(3, 28, 72, 0.1);
}

.video-testimonial__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-testimonial__quote {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-testimonial__blockquote {
    font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
    font-style: italic;
    color: var(--color-navy);
    line-height: 1.7;
    margin: 0;
    border-left: 4px solid var(--color-brand-red);
    padding-left: 1.5rem;
}

.video-testimonial__attribution {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.video-testimonial__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

.video-testimonial__role {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0;
}

.video-testimonial__link {
    padding-left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-brand-red);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.video-testimonial__link:hover { gap: 0.625rem; }


/* =============================================================
   CASE STUDIES (homepage) — Swiper carousel with scrollbar
   Replaces the previous static 3-card grid
   ============================================================= */
.cs-home {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
    overflow: hidden;
}

/* Swiper container */
.cs-home .case_boxes {
    padding-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Each slide's anchor/box */
.case_boxes .box {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
}

.case_boxes .box .img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    display: block;
    transition: transform 0.5s ease;
}

.case_boxes .box:hover .img img { transform: scale(1.03); }

/* Text overlay at bottom of each slide */
.case_boxes .box .content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1.125rem 1.375rem;
}

.case_boxes .box .content h2 {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Scrollbar strip */
.case_boxes .swiper-scrollbar {
    background: var(--color-gray-200);
    height: 4px;
    border-radius: 2px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    right: 0;
    position: absolute;
}

.case_boxes .swiper-scrollbar-drag {
    background: var(--color-brand-red);
    border-radius: 2px;
}


/* =============================================================
   INDUSTRIES SECTION — jQuery hover accordion
   .indus_boxes: flex row; inactive = 14% wide (vertical text);
   active = 58% wide (horizontal text + description revealed)
   ============================================================= */
.industries-home {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-gray-50);
}

.industries-home .section-head {
    margin-bottom: 3rem;
}

/* Flex row — contained & centered like Case Studies */
.indus_boxes {
    display: flex;
    align-items: stretch;
    height: 560px;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.indus_boxes .box {
    width: 14%;
    position: relative;
    cursor: pointer;
    transition: width 0.6s ease;
    overflow: hidden;
    flex-shrink: 0;
}

/* Active panel is 58%; the remaining 3 inactive divide the rest equally */
.indus_boxes .box.active { width: 58%; }

/* Background image fills the panel */
.indus_boxes .box .img {
    position: absolute;
    inset: 0;
}

.indus_boxes .box .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content sits over image */
.indus_boxes .box .content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
}

/* Dark gradient — always present */
.indus_boxes .box .content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
    pointer-events: none;
}

/* Inactive state: title rotated vertically */
.indus_boxes .box .content h3 {
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    margin: 0;
    transition: writing-mode 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

/* .hide block is only used by the hover JS to re-target the title */
.indus_boxes .box .content .hide { display: none; }

/* Hide description + link by default */
.indus_boxes .content p,
.indus_boxes .content a {
    display: none;
    position: relative;
    z-index: 1;
}

/* ── Active panel overrides ── */
.indus_boxes .box.active .content {
    padding: 2rem 2rem;
}

.indus_boxes .box.active .content h3 {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.625rem;
    white-space: normal;
    margin-bottom: 1rem;
}

.indus_boxes .box.active .content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.indus_boxes .box.active .content a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 4px;
    transition: border-color var(--transition-fast);
}

.indus_boxes .box.active .content a:hover { border-color: #fff; }

/* Tablet */
@media (max-width: 1024px) {
    .indus_boxes {
        height: 450px;
        padding: 0 24px;
    }
}

/* Mobile: stack panels vertically */
@media (max-width: 767px) {
    .indus_boxes {
        flex-direction: column;
        height: auto;
        padding: 0 16px;
        border-radius: var(--radius-md);
    }

    .indus_boxes .box {
        width: 100% !important;
        height: 320px;
        flex-shrink: 0;
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .indus_boxes .box:last-child {
        margin-bottom: 0;
    }

    .indus_boxes .box .content h3 {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.25rem;
    }

    .indus_boxes .content p,
    .indus_boxes .content a {
        display: block;
    }

    .indus_boxes .box .content p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.875rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }

    .indus_boxes .box .content a {
        display: inline-flex;
        color: #fff;
        font-size: 0.8125rem;
        font-weight: 600;
        text-transform: uppercase;
        text-decoration: none;
    }
}


/* =============================================================
   PARTNERS SECTION — Slick carousel of tech partner cards
   Light background; each card: logo + name + desc + link
   ============================================================= */
.partners-home {
    padding: var(--section-padding-y) 0;
    background-color: var(--color-white);
}

.partners-home .section-head {
    margin-bottom: 2.5rem;
}

/* Slick container */
.partners_boxes {
    position: relative;
}

/* Individual partner card */
#partners_slide .box {
    padding: 1.75rem 1.5rem;
    background-color: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin: 0 0.75rem;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    min-height: 260px;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

#partners_slide .box:hover {
    box-shadow: 0 8px 24px rgba(3, 28, 72, 0.1);
    transform: translateY(-3px);
}

/* Logo area */
#partners_slide .box .img {
    height: 52px;
    display: flex;
    align-items: center;
}

#partners_slide .box .img img {
    max-height: 44px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter var(--transition-fast);
}

#partners_slide .box:hover .img img { opacity: 0.8; }

/* Partner name */
#partners_slide .box .content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

/* Partner description */
#partners_slide .box .content p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Learn More link */
#partners_slide .box .content a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-brand-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    transition: gap var(--transition-fast);
}

#partners_slide .box .content a:hover { gap: 0.5rem; }


/* =============================================================
   RESPONSIVE — Tablet & Mobile optimizations
   ============================================================= */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .cta-band {
        padding: 3.5rem 0;
    }

    .cta-band__title {
        font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    }

    .case_boxes .box .img img {
        height: 360px;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .announcement-bar {
        padding: 1.5rem 0;
    }

    .announcement-bar__inner {
        padding: 1.5rem 1.25rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .announcement-bar__title {
        font-size: 1.125rem;
    }

    .announcement-bar__text {
        font-size: 0.875rem;
    }

    .video-testimonial {
        padding: 3rem 0;
    }

    .video-testimonial__blockquote {
        font-size: 1rem;
    }

    .services-section {
        padding: 3rem 0;
    }

    .cs-home {
        padding: 3rem 0;
    }

    .case_boxes .box .img img {
        height: 280px;
    }

    .case_boxes .box .content {
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .case_boxes .box .content h2 {
        font-size: 0.9375rem;
    }

    .industries-home {
        padding: 3rem 0 0;
    }

    .partners-home {
        padding: 3rem 0;
    }

    .cta-band {
        padding: 3rem 0;
    }

    .cta-band__title {
        font-size: 1.375rem;
    }

    .cta-band__text {
        font-size: 0.9375rem;
    }

    .section-eyebrow {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .hero-footer-text {
        font-size: 0.75rem;
    }

    .case_boxes .box .img img {
        height: 240px;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .section-heading {
        font-size: 1.375rem;
    }

    .cta-band__title {
        font-size: 1.25rem;
    }

    #partners_slide .box {
        margin: 0 0.375rem;
        min-height: 220px;
        padding: 1.25rem 1rem;
    }
}

