/* ============================================================
   SOLAR-PRODUCTS.CSS
   Shared page-specific styles for off-grid.html, on-grid.html,
   and hybrid.html. Builds on top of css/style.css, css/sections.css,
   and css/shop-category.css (same tokens, same components).
   ============================================================ */

body { background: #060b14; }

/* ── Page hero ── */
.page-hero {
    background: linear-gradient(135deg,#060b14,#0d1e40 60%,#060b14);
    border-bottom: 1px solid rgba(37,99,235,.2);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(37,99,235,.18) 0%, transparent 65%),
                radial-gradient(ellipse 40% 60% at 20% 80%, rgba(251,191,36,.06) 0%, transparent 60%);
}
.page-hero .section-container { padding: 100px 30px 80px; position: relative; }
.page-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 22px;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.page-hero__breadcrumb a:hover { color: #2563eb; }
.page-hero__breadcrumb span { color: #fff; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 18px; }
.page-hero h1 span { color: #2563eb; }
.page-hero__sub { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 620px; line-height: 1.7; }

/* ── Product introduction ── */
.product-intro { background: #07101f; }
.product-intro .section-container { max-width: 900px; text-align: center; }
.product-intro .section-label, .product-intro .section-title { text-align: center; }
.product-intro p { font-size: .95rem; color: #94a3b8; line-height: 1.85; margin: 0 auto; }

/* ── Product categories / cards (reuses shop-category.css) ── */
.solar-categories .category-block__header { margin-bottom: 24px; }
.product-card__desc {
    font-size: .82rem; color: #5b6472; line-height: 1.7;
    margin: 0 0 18px; flex: 1;
}
.product-card__actions--single { grid-template-columns: 1fr; }

/* Real product photo, layered over the vector icon inside .product-card__media.
   If the file is missing, onerror hides the <img> and the icon shows through
   underneath — same fallback pattern as battery-products.css / inverter-products.css. */
.product-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card__photo { transform: scale(1.06); }

/* ── Features / Benefits grids (reuse .why-card from sections.css) ── */
.solar-features, .solar-benefits { background: #060b14; }
.solar-benefits { background: #07101f; }
.solar-grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }

/* ── Applications ── */
.applications { background: #060b14; }
.applications-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.app-tag {
    background: #0d1526; border: 1px solid rgba(37,99,235,.2); border-radius: 10px;
    padding: 14px 18px; display: flex; align-items: center; gap: 10px;
    font-size: .875rem; font-weight: 600; color: #e2e8f0;
    transition: border-color .25s, background .25s, color .25s, transform .25s;
    cursor: default;
}
.app-tag:hover { border-color: #2563eb; background: rgba(37,99,235,.08); color: #fff; transform: translateY(-3px); }
.app-tag::before { content: '☀️'; font-size: .8rem; flex-shrink: 0; }

/* ── FAQ wrapper spacing (uses shared .faq-section) ── */
.solar-faq { background: #07101f; }

/* ── CTA (shared pattern) ── */
.solar-cta { background: #060b14; }
.cta-inner {
    background: linear-gradient(135deg,#102045,#1a3a8f 50%,#102045);
    border: 1px solid rgba(37,99,235,.4); border-radius: 20px;
    padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%);
}
.cta-inner h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; }
.cta-inner p { font-size: .9rem; color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; position: relative; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.cta-btn { display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 50px; font-size: .9rem; font-weight: 700; transition: all .25s; }
.cta-btn--primary { background: #fbbf24; color: #07101f; }
.cta-btn--primary:hover { background: #fcd34d; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(251,191,36,.4); }
.cta-btn--secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.cta-btn--secondary:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ── Related products ── */
.related-products { background: #07101f; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.related-card {
    background: #0d1526; border: 1px solid rgba(37,99,235,.2); border-radius: 16px;
    padding: 28px; display: flex; flex-direction: column; gap: 10px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-6px); border-color: #2563eb; box-shadow: 0 20px 44px rgba(37,99,235,.18); }
.related-card h4 { color: #fff; font-size: 1.05rem; font-weight: 700; }
.related-card p { color: #94a3b8; font-size: .85rem; line-height: 1.6; flex: 1; }
.related-card__link { color: #2563eb; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.related-card:hover .related-card__link { gap: 10px; }

/* ── Contact strip ── */
.solar-contact { background: #ffffff; }
.contact-strip {
    background: linear-gradient(135deg,#102045,#1a3a8f 50%,#102045);
    border: 1px solid rgba(37,99,235,.4); border-radius: 20px; padding: 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.contact-strip__text h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.contact-strip__text p { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 420px; line-height: 1.6; }
.contact-strip__actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media(max-width:1200px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:1024px) {
    .solar-grid-5 { grid-template-columns: repeat(3,1fr); }
    .applications-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:767px) {
    .solar-grid-5 { grid-template-columns: repeat(2,1fr); }
    .applications-grid { grid-template-columns: repeat(2,1fr); }
    .related-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 36px 24px; }
    .contact-strip { padding: 32px 24px; justify-content: center; text-align: center; }
    .contact-strip__actions { justify-content: center; }
}
@media(max-width:480px) {
    .solar-grid-5 { grid-template-columns: 1fr; }
    .applications-grid { grid-template-columns: 1fr; }
}
