/*
 * home.css — Homepage-only styles
 * Enqueued only on the front page / homepage.
 */

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: #fff;
    padding: 60px 0 40px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(2, 97, 100, 0.1);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 18px;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 0.97rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 420px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    background: #fff;
    font-size: 0.95rem;
    transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Right: mosaic grid */
.hero-mosaic {
    display: flex;
    gap: 12px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
}

.mosaic-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mosaic-img {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.mosaic-col-left  { flex: 1.1; }
.mosaic-col-right { flex: 1; }
.mosaic-tall      { flex: 1.6; }
.mosaic-short     { flex: 1; }
.mosaic-tiny      { flex: 0.6; }
.mosaic-medium    { flex: 1.4; }

/* =====================================================
   TRUST STRIP
   ===================================================== */
.trust-strip {
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-right: 1px solid var(--color-border);
}

.trust-item--last { border-right: none; }

.trust-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: #e8f4f4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 2px;
    line-height: 1.3;
}

.trust-sub {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .trust-item { padding: 14px 16px; }
    .col-6:nth-child(2n) .trust-item { border-right: none; }
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    background: #f8f9fa;
    padding: 64px 0;
}

.faq-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 40px;
}

.faq-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 28px 24px;
    height: 100%;
    transition: box-shadow var(--transition);
}

.faq-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.faq-q {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-a {
    font-size: 0.87rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   DISTRIBUTION HUBS SECTION (homepage variant)
   ===================================================== */
.hubs-section {
    background: #fff;
    padding: 72px 0 80px;
}

.hubs-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.hubs-grid .hub-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(26, 28, 28, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hubs-grid .hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 28, 28, 0.1);
}

.hub-map {
    position: relative;
    flex-shrink: 0;
    height: 180px;
    background: #e8f0f0;
    overflow: hidden;
}

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

.hub-map iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
}

.hub-map-placeholder {
    height: 180px;
    background:
        radial-gradient(circle at 50% 45%, rgba(2, 97, 100, 0.18), transparent 45%),
        linear-gradient(135deg, #e8f4f4 0%, #d5e8e8 100%);
}

.hub-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.hub-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.hub-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--color-primary);
    color: #fff;
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hub-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--color-muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

.hub-address .hub-pin {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.hub-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.hub-btn-wa,
.hub-btn-directions {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    padding: 11px 12px;
    border-radius: var(--radius);
    font-weight: 600;
}

.hub-btn-wa {
    background: rgba(2, 97, 100, 0.08);
    color: #128c7e;
}

.hub-btn-wa:hover {
    background: #25d366;
    color: #fff;
}

.hub-btn-directions {
    background: var(--color-primary);
    color: #fff;
}

.hub-btn-directions:hover {
    background: #024a4c;
    color: #fff;
}

/* =====================================================
   TESTIMONIALS — Marquee
   ===================================================== */
.testimonials-section {
    background: #fff;
    padding: 60px 0 48px;
    overflow: hidden;
}

.testi-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
}

.testi-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    padding: 6px 16px;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
}

.testi-stars {
    color: #f4b400;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testi-score {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-dark);
}

.testi-marquee-wrap {
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.testi-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: testi-scroll 40s linear infinite;
    padding: 12px 10px 20px;
}

.testi-track.paused { animation-play-state: paused; }

@keyframes testi-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testi-card {
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 24px 28px;
    width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s;
}

.testi-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

.testi-stars-sm span { color: #f4b400; font-size: 0.95rem; }

.testi-quote {
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testi-name  { display: block; font-size: 0.88rem; font-weight: 700; color: var(--color-dark); }
.testi-company { display: block; font-size: 0.78rem; color: var(--color-muted); }

/* =====================================================
   PRECISION. PERFORMANCE. POWER.
   ===================================================== */
.ppp-section {
    display: flex;
    min-height: 480px;
}

.ppp-left {
    flex: 1;
    background: #061c1c;
    display: flex;
    overflow: hidden;
    padding: 80px;
}

.ppp-text-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

.ppp-row {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #fff;
}

.ppp-faded { opacity: 0.18; }
.ppp-bold  { opacity: 1; }

.ppp-text-stack .ppp-row:nth-child(2),
.ppp-text-stack .ppp-row:nth-child(4) { opacity: 0.40; }

.ppp-right {
    flex: 1;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.ppp-content { text-align: center; }

.ppp-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.ppp-content p {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin: 0 auto 32px;
    max-width: 380px;
}

.ppp-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition);
}

.ppp-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 767px) {
    .ppp-section { flex-direction: column; }
    .ppp-left  { padding: 32px 24px; min-height: 280px; }
    .ppp-right { padding: 40px 24px; }
    .testi-rating { display: none; }
}

/* =====================================================
   CONTRACTOR & BULK PRICING BANNER (homepage)
   Styles live in style.css — keep this as thin override only if needed
   ===================================================== */
.bulk-banner-wrap {
    background: #fff;
    padding: 48px 0;
}

/* =====================================================
   WHY PROFESSIONALS CHOOSE EBH
   ===================================================== */
.why-ebh {
    background: #fff;
    padding: 64px 0;
}

.why-ebh-header {
    text-align: center;
    margin-bottom: 48px;
}

.why-ebh-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.why-ebh-line {
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 0 auto;
}

.why-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}

.why-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--color-primary);
}

.why-card h5 { font-size: 0.97rem; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.why-card p  { font-size: 0.85rem; color: var(--color-muted); line-height: 1.65; margin: 0; }

/* =====================================================
   FEATURED PRODUCTS SECTION
   ===================================================== */
.featured-products-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.fp-title { font-size: 1.8rem; font-weight: 800; color: var(--color-dark); margin: 0 0 4px; }
.fp-sub   { font-size: 0.88rem; color: var(--color-muted); margin: 0; }

.fp-view-all {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 1px;
    transition: opacity var(--transition);
}

.fp-view-all:hover { opacity: 0.75; }

/* Featured cards use shared .ebh-product-card styles from style.css */
.featured-products-section .fp-card.ebh-product-card {
    display: flex;
}

/* =====================================================
   PRODUCT SHOWCASE SECTION
   ===================================================== */
.product-showcase {
    background: #fff;
    padding: 64px 0;
    overflow: hidden;
}

.showcase-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    margin-bottom: 12px;
    overflow: visible;
}

.showcase-img-bg {
    display: none; /* keep markup, hide circle so can blends flat */
}

.showcase-product-img {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    max-width: 460px;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0;
    filter: none;
}

.showcase-swatch-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 4px;
    text-align: center;
}

.showcase-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start; /* last incomplete row aligns left */
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: transform var(--transition), box-shadow var(--transition), outline-color var(--transition);
}

.swatch:hover,
.swatch.is-active {
    transform: scale(1.18);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.showcase-color-name {
    margin: 0;
    min-height: 1.3em;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    text-align: center;
}

.showcase-content { padding: 0 0 0 48px; }

.showcase-label { font-size: 2rem; font-weight: 500; color: var(--color-text); margin-bottom: 4px; }
.showcase-title { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 16px; line-height: 1.2; }

.showcase-desc {
    font-size: 0.93rem;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 420px;
}

.showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
    font-weight: 500;
}

.showcase-features li svg { color: var(--color-primary); flex-shrink: 0; }

.showcase-btn { padding: 12px 28px; font-size: 0.95rem; }

@media (max-width: 767px) {
    .showcase-content { padding: 32px 0 0; }
    .showcase-img-wrap { min-height: 380px; }
    .showcase-product-img { width: min(100%, 320px); max-width: 320px; }
    .showcase-swatches { max-width: 300px; }
}

/* =====================================================
   MASTER YOUR CRAFT — Category Cards
   ===================================================== */
.craft-section {
    background: #f3f4f6;
    padding: 56px 0;
}

.craft-header { margin-bottom: 32px; }

.craft-title { font-size: 1.9rem; font-weight: 800; color: var(--color-dark); margin-bottom: 6px; }
.craft-sub   { font-size: 0.92rem; color: var(--color-muted); margin: 0; }

.craft-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
    min-height: 400px;
}

.craft-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.craft-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 24px 22px 20px;
}

.craft-cat-name { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); margin: 0; line-height: 1.3; }

.craft-explore { font-size: 0.88rem; font-weight: 600; color: var(--color-primary); margin: 0; }

.craft-explore span { display: inline-block; transition: transform var(--transition); }

.craft-card:hover .craft-explore span { transform: translateX(4px); }

.craft-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: hidden;
    pointer-events: none;
}

.craft-img img {
    width: 84%;
    height: 88%;
    object-fit: contain;
    object-position: bottom right;
    transform: translate(7%, 7%);
}

/* =====================================================
   CATEGORY STRIP
   ===================================================== */
.category-strip {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.category-strip h2 { text-align: center; font-size: 1.4rem; margin-bottom: 24px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.category-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.category-card .icon { font-size: 2rem; margin-bottom: 8px; }
.category-card h3    { font-size: 0.95rem; font-weight: 600; }

/* =====================================================
   RESPONSIVE — Home-specific breakpoints
   ===================================================== */
@media (min-width: 768px) {
    .hero-inner          { grid-template-columns: 1fr 1fr; }
    .hero-title          { font-size: 2.6rem; }
    .category-grid       { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .hero-title  { font-size: 3rem; }
    .hero-mosaic { height: 420px; }
}

