/* Green Home Systems — shared styles for subpages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9ACD32;
    --primary-dark: #7ab400;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --accent: #0f766e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #1a1a1a;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.offer-bar {
    position: relative;
    background: linear-gradient(90deg, #7ab400 0%, #9ACD32 50%, #7ab400 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}

.offer-bar a {
    color: #1a1a1a;
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.offer-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: shimmerSweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% { left: -140px; }
    60%, 100% { left: 110%; }
}

.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(154, 205, 50, 0.2);
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #9ACD32;
    border-bottom-color: #9ACD32;
}

.mobile-menu-btn {
    display: none;
}

/* ===== Home dropdown ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link i {
    font-size: 0.7em;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover > .nav-link i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid rgba(154, 205, 50, 0.2);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(154, 205, 50, 0.15);
    color: #9ACD32;
}

.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 20px;
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
}

/* ===== Buttons ===== */
.btn-primary {
    background: #9ACD32;
    color: #1a1a1a;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #7ab400;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(154, 205, 50, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #9ACD32;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #9ACD32;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #9ACD32;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* ===== Page hero banner ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(15, 118, 110, 0.88) 100%), #1a1a1a;
    color: white;
    text-align: center;
    padding: 200px 20px 80px;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-hero h1 span {
    color: #9ACD32;
}

.page-hero p {
    font-size: 1.15rem;
    color: #d1d5db;
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Layout helpers ===== */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: #f5f5f5;
}

.section-badge {
    display: inline-block;
    background: rgba(154, 205, 50, 0.2);
    color: #9ACD32;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-sub {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

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

/* ===== Product catalog ===== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}

.filter-tab {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover {
    border-color: #9ACD32;
}

.filter-tab.active {
    background: #9ACD32;
    border-color: #9ACD32;
    color: #1a1a1a;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 24px;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    border-color: #9ACD32;
}

.product-card-icon {
    border-radius: 10px;
    padding: 22px 15px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
    font-size: 1.9rem;
}

.product-card-icon.cat-inverter { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.product-card-icon.cat-battery { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.product-card-icon.cat-panel { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.product-card-icon.cat-accessory { background: linear-gradient(135deg, #ea580c 0%, #f97316 100%); }
.product-card-icon.cat-kit { background: linear-gradient(135deg, #9ACD32 0%, #7ab400 100%); color: #1a1a1a; }

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #f0f0f0;
    padding: 8px;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-spec {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 14px;
    flex: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #7ab400;
}

.product-price-old {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}

.product-price-row {
    margin-bottom: 16px;
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #dc2626;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}

.product-card .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 11px 20px;
}

/* ===== Content cards ===== */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(154, 205, 50, 0.12);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #9ACD32;
    margin-bottom: 20px;
}

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

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #9ACD32;
    box-shadow: 0 0 10px rgba(154, 205, 50, 0.2);
}

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(90deg, #111827, #1f2937);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.cta-band h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-band p {
    color: #d1d5db;
    margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 60px 0 20px;
    border-top: 2px solid rgba(154, 205, 50, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: #9ACD32;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ===== Floating buttons ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #9ACD32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(154, 205, 50, 0.4);
    animation: btnBob 3.5s ease-in-out infinite;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes btnBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border: 2px solid #9ACD32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ACD32;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    font-size: 18px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn {
        display: inline-block;
        background: #9ACD32;
        border: none;
        color: #1a1a1a;
        padding: 10px 16px;
        border-radius: 50px;
        font-size: 1rem;
        cursor: pointer;
    }
    .page-hero h1 { font-size: 2.1rem; }
    .page-hero { padding: 170px 16px 60px; }
    .section-title { font-size: 1.9rem; }
    .offer-bar { padding: 8px 10px; font-size: 0.7rem; }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .floating-btn { width: 50px; height: 50px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-bar::after, .floating-btn { animation: none !important; }
}
