/* ===================================
   GLOBAL RESET
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #111;
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
=================================== */

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow-x: auto; /* prevent horizontal scroll on mobile */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap; /* allow wrapping on narrow screens */
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* wrap links on mobile if needed */
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s ease;
    white-space: nowrap; /* prevent breaking of links */
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a.active {
    font-weight: 600;
    opacity: 1;
    border-bottom: 2px solid #111;
    padding-bottom: 4px;
}

/* ===================================
   HERO SECTION
=================================== */

.hero {
    padding: 80px 20px 60px;
    text-align: center;
    background: #f5f6f7;
}

.hero h1,
.hero h2 {
    font-size: 34px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #444;
}

/* Hero image responsive */
.hero-img {
    display: block;
    margin: 20px auto; /* centers image with some spacing */
    max-width: 300px; /* desktop max width */
    width: 80%; /* scales nicely on mobile */
    height: auto; /* maintain aspect ratio */
}

/* Hero button centered under image */
.hero-btn {
    display: block;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #333;
}

/* ===================================
   PRODUCTS / CARDS SECTION
=================================== */

.products, .section {
    padding: 60px 20px;
}

.product-grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card .btn {
    align-self: flex-start;
}

/* ===================================
   PAGE SECTIONS (About, Contact, Lightning)
=================================== */

.page-section, .section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-section h2, .section h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.page-section p, .section p, .section ul {
    margin-bottom: 15px;
    color: #444;
}

.section ul {
    padding-left: 20px;
}

.section img {
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 100%;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}

.specs-table th,
.specs-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.catalog-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.2s ease;
}

.catalog-btn:hover {
    background: #333;
}

/* ===================================
   FOOTER
=================================== */

footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #e5e5e5;
    color: #666;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 768px) {

    .nav-links {
        gap: 15px;
        font-size: 13px;
    }

    .hero h1, .hero h2 {
        font-size: 26px;
    }

    .card img {
        height: 180px;
    }
}
