/**
 * Rosewood Industrial Platform — Homepage Styles
 *
 * @package Rosewood
 * @version 2.0.0
 */

/* ═══════ HERO SLIDESHOW ═══════ */

.rw-hero {
    position: relative;
    height: 92vh;
    min-height: 600px;
    overflow: hidden;
    background: #1C1C1E;
}

.rw-hero-slides { position: absolute; inset: 0; }

.rw-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
.rw-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.rw-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    animation: rwHeroZoom 6s ease forwards;
}
.rw-hero-slide.active .rw-hero-bg {
    animation: rwHeroZoom 6s ease forwards;
}

@keyframes rwHeroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.rw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(28,28,30,0.88) 35%, transparent 100%);
}

.rw-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.rw-hero-content {
    max-width: 600px;
    animation: rwFadeUp 0.8s ease;
}

@keyframes rwFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rw-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 20px;
}

.rw-hero-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    max-width: 460px;
    line-height: 1.7;
    margin: 0 0 36px;
}

.rw-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero dots */
.rw-hero-dots {
    position: absolute;
    bottom: 40px;
    left: 48px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.rw-hero-dot {
    width: 12px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}
.rw-hero-dot.active {
    width: 40px;
    background: #E63329;
}

.rw-hero-counter {
    position: absolute;
    bottom: 40px;
    right: 48px;
    z-index: 3;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.rw-hero-current {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* ═══════ SHARED ═══════ */

.rw-home-section {
    padding: 80px 0;
}

.rw-section-header { margin-bottom: 40px; }
.rw-section-header--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}
.rw-section-header--center {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.rw-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #1C1C1E;
    line-height: 1.15;
    margin: 0;
}
.rw-section-title--white { color: #fff; }

.rw-section-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin-top: 10px;
    max-width: 460px;
}
.rw-section-header--center .rw-section-sub {
    max-width: 100%;
    margin: 10px auto 0;
}

/* ═══════ BUTTONS ═══════ */

.rw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.rw-btn-primary { background: #E63329; color: #fff; }
.rw-btn-primary:hover { background: #cc2920; color: #fff; }

.rw-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.rw-btn-ghost:hover { border-color: #fff; color: #fff; }

.rw-btn-dark { background: #1C1C1E; color: #fff; }
.rw-btn-dark:hover { background: #333; color: #fff; }

.rw-btn-outline-dark { background: transparent; color: #1C1C1E; border: 1px solid #1C1C1E; }
.rw-btn-outline-dark:hover { background: #1C1C1E; color: #fff; }

.rw-btn-full { width: 100%; }

.rw-section-tag {
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
    border: 1px solid #E63329;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E63329;
    line-height: 1.6;
}

/* ═══════ ECOSYSTEM GRID ═══════ */

.rw-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rw-eco-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    border: 1px solid #e8e6e3;
    transition: border-color 0.3s ease;
}
.rw-eco-card:hover { border-color: #E63329; }

.rw-eco-card-img {
    position: absolute;
    inset: 0;
}
.rw-eco-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.rw-eco-card:hover .rw-eco-card-img img {
    transform: scale(1.04);
}

.rw-eco-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,28,30,0.85) 0%, transparent 55%);
}

.rw-eco-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}
.rw-eco-family {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.rw-eco-count {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.rw-eco-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2c 0%, #3a3a3c 100%);
}

/* ═══════ SERVICES STRIP ═══════ */

.rw-services-strip {
    background: #f4f3f1;
    border-top: 1px solid #e8e6e3;
    border-bottom: 1px solid #e8e6e3;
}

.rw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rw-service-card--image {
    background: #fff;
    border: 1px solid #e8e6e3;
    text-decoration: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rw-service-card--image:hover {
    border-color: #E63329;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.rw-service-card-img {
    width: 120px;
    min-height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eee;
}
.rw-service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rw-service-card--image:hover .rw-service-card-img img {
    transform: scale(1.05);
}

.rw-service-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f8f7f5, #eeedeb);
}

.rw-service-card-text {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rw-service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1E;
    margin: 0 0 6px;
    line-height: 1.3;
}

.rw-service-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.55;
    margin: 0 0 10px;
}

.rw-service-link {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #E63329;
    letter-spacing: 0.04em;
}

/* ═══════ FEATURED PRODUCTS SCROLL ═══════ */

.rw-products-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rw-product-card-hp {
    text-decoration: none;
    display: block;
    border: 1px solid #e8e6e3;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.rw-product-card-hp:hover {
    border-color: #E63329;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.rw-product-card-hp-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eee;
}
.rw-product-card-hp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.rw-product-card-hp:hover .rw-product-card-hp-img img {
    transform: scale(1.03);
}

.rw-product-card-hp-info {
    padding: 18px 20px 22px;
}

.rw-product-card-hp-cat {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E63329;
    margin-bottom: 4px;
}

.rw-product-card-hp-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1E;
    margin: 0 0 10px;
    line-height: 1.3;
}

.rw-product-card-hp-link {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #E63329;
    letter-spacing: 0.04em;
}

/* ═══════ CASE STUDIES ═══════ */

.rw-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rw-case-card {
    text-decoration: none;
    display: block;
    color: inherit;
}

.rw-case-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 18px;
    background: #eee;
}
.rw-case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.rw-case-card:hover .rw-case-card-img img {
    transform: scale(1.03);
}

.rw-case-sector {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #E63329;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rw-case-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1C1C1E;
    margin: 6px 0 8px;
}

.rw-case-excerpt {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* ═══════ FACTORY / KAIZEN ═══════ */

.rw-home-factory {
    background: #1C1C1E;
    overflow: hidden;
}

.rw-factory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.rw-factory-text {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.rw-factory-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 32px;
}

.rw-factory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 360px;
}

.rw-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #E63329;
    line-height: 1;
}
.rw-stat-unit {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    margin-left: 3px;
}
.rw-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.rw-factory-image {
    position: relative;
}
.rw-factory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.rw-factory-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #1C1C1E 0%, transparent 30%);
}

/* ═══════ RFQ SECTION ═══════ */

.rw-rfq-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.rw-rfq-intro {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 32px;
}

.rw-rfq-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.rw-rfq-step {
    display: flex;
    gap: 14px;
    align-items: center;
}
.rw-rfq-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
}
.rw-rfq-step--active .rw-rfq-step-num {
    background: #E63329;
    border-color: #E63329;
    color: #fff;
}
.rw-rfq-step-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1C1C1E;
}

.rw-rfq-contact p {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0 0 4px;
}
.rw-rfq-phone {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1C1C1E;
    text-decoration: none;
}
.rw-rfq-phone:hover { color: #E63329; }

.rw-rfq-form-wrap {
    background: #f4f3f1;
    border: 1px solid #e8e6e3;
    padding: 40px;
}

/* Form styles — shared with single product RFQ */
.rw-file-upload {
    position: relative;
}
.rw-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.rw-file-upload-label {
    display: block;
    padding: 24px;
    border: 2px dashed #ddd;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
}
.rw-file-upload:hover .rw-file-upload-label {
    border-color: #E63329;
}

/* ═══════ LOCATIONS / DISAMBIGUATION ═══════ */

/* ═══════ OVERRIDE: Remove Theratio page header on this template ═══════ */

.page-template-homepage-industrial .page-header,
.page-template-homepage-industrial .breadcrumbs,
.page-template-homepage-industrial #page-header {
    display: none !important;
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 1024px) {
    .rw-ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
    .rw-products-scroll { grid-template-columns: repeat(2, 1fr); }
    .rw-factory-grid { grid-template-columns: 1fr; }
    .rw-factory-image { min-height: 300px; }
    .rw-rfq-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .rw-hero { height: 80vh; min-height: 500px; }
    .rw-hero-dots { left: 24px; bottom: 24px; }
    .rw-hero-counter { right: 24px; bottom: 24px; }
    .rw-home-section { padding: 56px 0; }
    .rw-ecosystem-grid { grid-template-columns: 1fr; }
    .rw-cases-grid { grid-template-columns: 1fr; }
    .rw-products-scroll { grid-template-columns: 1fr 1fr; }
    .rw-factory-text { padding: 48px 32px; }
    .rw-rfq-form-wrap { padding: 28px 20px; }
    .rw-section-header--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .rw-products-scroll { grid-template-columns: 1fr; }
    .rw-services-grid { grid-template-columns: 1fr; }
    .rw-hero-title { font-size: 32px; }
}
