/* ==========================================
   JOMAM's Engineering — Solar Website
   Color Theme: Deep Blue, Solar Gold, White
========================================== */

/* ---------- Base Reset & Global Styles ---------- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #0c4a6e;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p {
    color: #475569;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

/* Logo */
.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

#menu-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

#eng h1 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

#eng h2 {
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Desktop Menu — Horizontal */
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-item > a:hover,
.menu-item > a.active {
    color: #fbbf24;
}

/* Submenu */
.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.has-submenu i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.submenu li a:hover {
    background: #fef3c7;
    color: #d97706;
    padding-left: 24px;
}

/* Hamburger Toggle — Mobile Only */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('Images/bg.jpeg') no-repeat center center/cover;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.88) 0%, rgba(17, 94, 89, 0.82) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 5px 20px 60px 20px;
}

.hero-content h1 {
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h2 {
    color: #fef3c7;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-content p {
    color: #e0f2fe;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flexbox;
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
    -ms-flex-wrap: wrap;
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.92) 0%, rgba(17, 94, 89, 0.88) 100%), 
                url('Images/bg.jpeg') no-repeat center center/cover;
    padding: 130px 0 70px;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #bae6fd;
    max-width: 600px;
    margin: 0 auto;
}

.section-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    display: block;
    margin-bottom: 12px;
}

/* ---------- Section Headings ---------- */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 15px auto 0;
}

/* ---------- Cards Grid ---------- */
.feature-grid,
.services-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card,
.service-card,
.product-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.35s ease;
    text-align: center;
}

.feature-card:hover,
.service-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(12, 74, 110, 0.12);
    border-color: #bfdbfe;
}

.feature-card i,
.service-icon i,
.product-icon i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3,
.service-card h3,
.product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p,
.service-card p,
.product-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ---------- Background Sections ---------- */
.bg-light {
    background: linear-gradient(to bottom, #f8fafc, #f0f9ff);
}

.services-page-section,
.products-page-section {
    padding: 70px 0;
}

/* ---------- Stats Section ---------- */
.stats {
    background: linear-gradient(135deg, #0c4a6e 0%, #0f766e 100%);
    padding: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: #fef3c7;
    margin-bottom: 8px;
}

.stat-item p {
    color: #e0f2fe;
    font-size: 0.95rem;
}


/* ---------- Gallery Section ---------- */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.gallery-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(12, 74, 110, 0.12);
    background: #000;
    aspect-ratio: 16 / 9;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    font-size: 0.95rem;
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 25px auto 0;
    padding: 0 20px;
}

.gallery-prev,
.gallery-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #0c4a6e;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #f59e0b;
    color: #ffffff;
}

.gallery-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #f59e0b;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .slide-caption {
        font-size: 0.85rem;
        padding: 30px 15px 15px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 38px;
        height: 38px;
    }
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, #0c4a6e 0%, #0f766e 100%);
    padding: 70px 0;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: #bae6fd;
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Calculator Page ---------- */
/* ---------- Solar Calculator Page Styles ---------- */
.calculator-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.08);
}

.calculator-card h2 {
    font-size: 1.4rem;
    color: #0c4a6e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-card h2 i {
    color: #f59e0b;
}

.calculator-card h3 {
    font-size: 1.1rem;
    color: #0f766e;
    margin: 30px 0 15px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.setting-group select,
.add-appliance-form select,
.add-appliance-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-appliance-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.add-appliance-form button {
    height: 42px;
}

/* Appliance List */
.appliance-list-section h3 {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 15px;
}

.empty-message {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-style: italic;
}

.appliance-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.appliance-item {
    display: grid;
    grid-template-columns: 50px 2fr 100px 130px 130px 40px;
    align-items: center;
    padding: 14px 15px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.appliance-item:last-child {
    border-bottom: none;
}

.appliance-item:hover {
    background: #f8fafc;
}

.item-number {
    font-weight: 700;
    color: #0c4a6e;
    text-align: center;
}

.item-name {
    font-weight: 500;
    color: #1e293b;
}

.item-detail {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.item-energy {
    text-align: right;
    font-weight: 600;
    color: #0f766e;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.remove-item:hover {
    opacity: 1;
}

.list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.done-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
}

.checkbox-label input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
}

.result-item h4 {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 5px;
}

.result-value.highlight {
    color: #d97706;
}

.result-detail {
    font-size: 0.8rem;
    color: #64748b;
}

.disclaimer-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #78350f;
}

/* Info Card — Mounting */
.info-card h4 {
    font-size: 1rem;
    color: #0c4a6e;
    margin-bottom: 8px;
}

.highlight-text {
    font-size: 1.05rem;
    color: #d97706;
    font-weight: 600;
    margin: 10px 0 20px;
    display: block;
}

.mounting-types {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.mount-type {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #0d9488;
}

.mount-type h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mount-type h4 i {
    color: #0d9488;
}

.mount-type p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .appliance-item {
        grid-template-columns: 40px 1fr 1fr;
        gap: 8px;
    }
    
    .item-detail, .item-energy {
        grid-column: span 2;
        text-align: left;
    }
    
    .list-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .done-section {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- About Page ---------- */
.about-section {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text h3 {
    margin: 30px 0 15px;
    font-size: 1.15rem;
}

.about-text p {
    margin-bottom: 18px;
}

.about-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li i {
    color: #10b981;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ---------- Contact Page ---------- */
.contact-section {
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.3rem;
    color: #0c4a6e;
    margin-bottom: 25px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-info p i {
    color: #f59e0b;
    width: 20px;
    text-align: center;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Products Page ---------- */
.product-card .product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-card .product-icon i {
    margin-bottom: 0;
    color: #d97706;
    font-size: 1.8rem;
}

.product-card .price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c4a6e;
    margin: 15px 0;
}

.btn-card {
    display: inline-block;
    padding: 8px 20px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 5px;
        font-weight: 600;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: #0369a1;
    color: #ffffff;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-about p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #f59e0b;
    color: #ffffff;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.9rem;
}

/* ---------- Mobile Responsive Styles ---------- */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 25px 30px;
        gap: 5px;
        transition: right 0.35s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        align-items: flex-start;
    }

    .menu.active {
        right: 0;
    }

    .menu-item {
        width: 100%;
    }

    .menu-item > a {
        color: #334155;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .menu-item > a:hover,
    .menu-item > a.active {
        color: #d97706;
    }

    .has-submenu > a {
        justify-content: space-between;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background: #f8fafc;
        padding-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.open .submenu {
        max-height: 300px;
    }

    .stats-grid,
    .steps-grid,
    .calculator-wrapper,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .stats-grid,
    .steps-grid,
    .calculator-wrapper,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .home-logo {
        gap: 8px;
    }

    #menu-logo {
        height: 40px;
    }

    #eng h1 {
        font-size: 1.15rem;
    }

    section {
        padding: 50px 0;
    }

    .page-header {
        padding: 110px 0 50px;
    }
}

/* ---------- System Connection Diagram Section ---------- */
.system-diagram-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f0f9ff, #ffffff);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.system-flow-container {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.flow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.flow-row--center {
    justify-content: center;
    position: relative;
}

.flow-component {
    flex: 1;
    min-width: 160px;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(12, 74, 110, 0.08);
    border: 2px solid #e0f2fe;
    transition: all 0.3s ease;
}

.flow-component:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

.flow-component--battery {
    border-color: #bfdbfe;
    background: #f0f9ff;
}

.flow-component--inverter {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.flow-component--end {
    border-color: #fef3c7;
    background: #fffbeb;
}

.component-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    color: #d97706;
}

.flow-component h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #0c4a6e;
}

.flow-component p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    font-size: 1.2rem;
    min-width: 60px;
}

.flow-arrow span {
    font-size: 0.7rem;
    margin-top: 3px;
}

.flow-arrow--updown {
    transform: rotate(90deg);
}

.system-legend {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.system-legend h4 {
    margin-bottom: 25px;
    color: #0c4a6e;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.legend-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: left;
}

.legend-item h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.cta-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.08);
}

.cta-note p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Product Detail Sections */
.product-detail-section {
    padding: 50px 0;
    border-bottom: 1px solid #e2e8f0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.product-icon-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: #d97706;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.product-detail-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0c4a6e;
}

.product-detail-info h4 {
    font-size: 1.1rem;
    margin: 25px 0 12px;
    color: #0f766e;
}

.product-detail-info > p {
    color: #475569;
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.95rem;
}

.feature-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

.spec-table {
    display: grid;
    gap: 8px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: #64748b;
}

.spec-row strong {
    color: #0c4a6e;
    font-weight: 600;
}

.product-price-cta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-price-cta .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d97706;
}

@media (max-width: 900px) {
    .flow-row {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .flow-arrow--updown {
        transform: rotate(0deg);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-list {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .flow-component {
        min-width: 140px;
        padding: 18px 12px;
    }
    
    .component-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .product-icon-large {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }
}
