/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Design tokens */
:root {
    --primary: #0056b3;
    --primary-dark: #00408a;
    --secondary: #ff6b00;
    --dark: #222;
    --light: #f8f9fa;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 6px;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background-color: #f3f4f6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

/* Page content wrapper */
.page-content {
    padding: 40px 0;
}

.page-content-inner {
    margin-top: 16px;
}

/* Header */
header {
    background-color: #0f172a;
    color: #ffffff;
}

/* Header top bar */
.header-top {
    background: #020617;
    font-size: 0.875rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 16px;
}

.header-contact a {
    color: #ffffff;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
}

.header-contact i {
    margin-right: 6px;
}

.header-login a {
    color: #ffffff;
    margin-left: 12px;
}

/* Header main */
.header-main {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

/* Logo */
.site-logo img {
    display: block;
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 8px;
}

/* Search bar */
.search-bar {
    flex: 1 1 auto;
    max-width: 480px;
}

.search-bar form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
}

.search-bar input[type="search"] {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 0.95rem;
}

.search-bar input[type="search"]:focus {
    outline: none;
}

.search-bar button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 0 12px;
    cursor: pointer;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn i {
    margin-right: 6px;
    font-size: 0.9em;
}

.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.btn-primary:hover {
    background: #e05c00;
    border-color: #e05c00;
}

.btn-outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.btn-outline:hover {
    border-color: #9ca3af;
}

/* Navigation */
.main-nav {
    background: #0b1220;
}

.main-nav .container {
    padding-top: 4px;
    padding-bottom: 4px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 18px;
    padding: 10px 0;
}

.nav-menu > li > a {
    color: #ffffff;
    font-size: 0.95rem;
    padding: 4px 0;
    display: inline-block;
}

.nav-menu > li > a:hover {
    color: var(--secondary);
}

/* Hero */
.hero {
    background: linear-gradient(120deg, #0f172a, #020617);
    color: #ffffff;
    padding: 48px 0;
}

.hero-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.hero-content {
    flex: 2;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 18px;
    max-width: 520px;
}

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

.hero-aside {
    flex: 1.2;
    background: rgba(15, 23, 42, 0.75);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.9rem;
}

.hero-aside h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-aside p {
    margin-bottom: 10px;
    color: #e5e7eb;
}

/* Card-style panels on pages (used for catalog info, etc.) */
.info-panel {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.info-panel h2,
.info-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* Sections */
.section {
    padding: 32px 0 8px;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    background: #ffffff;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.category-img {
    font-size: 1.6rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.category-body h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-body p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    background: #ffffff;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* CTA row */
.cta-row {
    display: flex;
    gap: 12px;
}

/* Footer */
footer {
    background: #020617;
    color: #e5e7eb;
    padding: 32px 0 18px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 18px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-column p {
    color: #cbd5f5;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li + li {
    margin-top: 4px;
}

.footer-column a {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.footer-contact i {
    font-size: 0.95rem;
}

.social-links {
    margin-top: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    margin-right: 6px;
    font-size: 0.8rem;
}

.social-links a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 10px;
    color: #9ca3af;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive */

/* Tablets and small laptops */
@media (max-width: 960px) {
    .header-main-inner {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
    }

    .header-actions {
        order: 2;
    }

    .hero-inner {
        flex-direction: column;
    }

    .categories-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones */
@media (max-width: 640px) {
    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .main-nav .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-main-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .header-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .nav-menu {
        flex-direction: column;
        padding: 0 0 12px;
        display: none;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .hero {
        padding: 32px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        max-width: none;
    }

    .hero-aside {
        padding: 14px 14px 12px;
    }

    .categories-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-row {
        flex-direction: column;
    }
}
