/* Root Variables */
:root {
    --primary-bg: #1A1F2C;
    --footer-bg: #222222;
    --primary-red: #dc3545;
    --primary-red-hover: #c82333;
    --text-white: #ffffff;
    --text-gray: #6c757d;
    --tag-blue: #0ea5e9;
    --tag-blue-hover: #38bdf8;
    --border-gray: #444444;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Navigation */
.header-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    z-index: 10;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
    color: var(--text-white);
}

/* Hero Section */
.hero-section {
    height: 45vh;
    background-image: url('../img/plumb.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Title */
.hero-title {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle .find {
    background-color: var(--primary-red);
    padding: 0.25rem 1rem;
}

/* Search Form */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    background-color: var(--text-white);
    border-radius: 4px;
    overflow: hidden;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper:first-child .search-input {
    border-radius: 4px 0 0 4px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-gray);
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0.5rem 0.75rem 0.5rem 40px;
    border: none;
    border-right: 1px solid #dee2e6;
    outline: none;
    font-size: 1rem;
}

.search-button {
    padding: 0 2rem;
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--primary-red-hover);
}

/* Features Icons */
.features-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white);
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

/* Popular Searches */
.popular-searches {
    padding: 2rem 4rem;
    min-height: calc(35vh - 20px);
}

.popular-searches h2 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tag-blue);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--tag-blue-hover);
    text-decoration: none;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-white);
    text-decoration: none;
}

.footer-links .separator {
    color: var(--text-gray);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .popular-searches {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .header-nav {
        padding: 1rem;
    }

    .logo-img {
        height: 30px;
    }

    .hero-title h1 {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input-wrapper:first-child .search-input {
        border-radius: 4px 4px 0 0;
    }

    .search-button {
        height: 48px;
        border-radius: 0 0 4px 4px;
    }

    .features-icons {
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .feature-icon-item {
        flex: 0 0 calc(50% - 1rem);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .features-icons {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .popular-searches {
        padding: 1.5rem;
    }

    .footer-links .separator {
        margin: 0 0.5rem;
    }
}