/* Global Styles */
:root {
    --background-color: #ECEAE4;
    --sidebar-footer-color: #D6CFC4;
    --button-link-color: #FF9900;
    --accent-color: #8B5E3C;
    --text-color: #333333;
    --white: #FFFFFF;
    --spacing-small: 10px;
    --spacing-medium: 20px;
    --spacing-large: 40px;
    --header-height: 100px;
    --footer-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-medium);
    color: var(--accent-color);
}

p {
    margin-bottom: var(--spacing-large);
}

ul, ol {
    margin-bottom: var(--spacing-large);
    padding-left: var(--spacing-large);
}

a {
    color: var(--button-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--sidebar-footer-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo with new font */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Pacifico', cursive;
    margin-right: 80px;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo span {
    color: var(--button-link-color);
    margin-right: 5px;
}

/* Improved Navigation */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu {
    display: flex;
    list-style: none;
    margin-right: 80px;
    height: 100%;
    align-items: center;
}

.menu li {
    margin-right: var(--spacing-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    height: 40px;
}

.menu a:hover {
    color: var(--white);
    background-color: var(--button-link-color);
}

/* Categories Dropdown */
.categories {
    position: relative;
    margin-right: 80px;
    display: flex;
    align-items: center;
    height: 100%;
}

.categories-btn {
    background-color: var(--button-link-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 40px;
}

.categories-btn::after {
    content: "▼";
    margin-left: 10px;
    font-size: 12px;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 250px;
    z-index: 10;
    display: none;
}

.categories:hover .categories-dropdown {
    display: block;
}

.categories-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-dropdown li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.categories-dropdown li:last-child {
    border-bottom: none;
}

.categories-dropdown a {
    color: var(--text-color);
    display: block;
}

.categories-dropdown a:hover {
    color: var(--button-link-color);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    height: 100%;
}

.search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 200px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.search-btn {
    background-color: var(--button-link-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    height: 40px;
}

/* Hero Section */
.hero {
    height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-medium);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: var(--spacing-medium);
    color: var(--white);
}

.hero p {
    font-size: 18px;
    margin-bottom: var(--spacing-large);
}

/* Main Content */
main {
    flex: 1;
    padding: var(--spacing-large) 0;
}

.content {
    margin-bottom: var(--spacing-large);
}

.content h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-small);
    margin-bottom: var(--spacing-large);
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-footer-color);
    padding: var(--spacing-medium);
    border-radius: 5px;
    margin-bottom: var(--spacing-large);
}

.sidebar h3 {
    margin-bottom: var(--spacing-medium);
}

/* Search Results Layout */
.search-results-container {
    display: flex;
    gap: var(--spacing-large);
}

.search-filters {
    width: 250px;
    flex-shrink: 0;
}

.results-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-medium);
}

/* Redesigned Footer */
footer {
    background-color: var(--sidebar-footer-color);
    color: var(--text-color);
    padding: var(--spacing-large) 0;
    height: var(--footer-height);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.contact-info p {
    margin: 0 20px;
    text-align: center;
    white-space: nowrap;
}

.contact-info a {
    font-weight: bold;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }
    
    .contact-info p {
        margin-bottom: 8px;
    }
    
    .contact-info p:last-child {
        margin-bottom: 0;
    }
}

/* FAQ Styles */
.faq-item {
    margin-bottom: var(--spacing-large);
}

.faq-item h3 {
    margin-bottom: var(--spacing-small);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-right: var(--spacing-medium);
    }
    
    .menu {
        margin-right: var(--spacing-medium);
    }
    
    .categories {
        margin-right: var(--spacing-medium);
    }
    
    .search-results-container {
        flex-direction: column;
    }
    
    .search-filters {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        width: 90%;
        max-width: 350px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    header {
        height: auto;
    }
    
    .header-container {
        flex-direction: column;
        padding: var(--spacing-medium) 0;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: var(--spacing-medium);
    }
    
    nav {
        flex-direction: column;
        width: 100%;
    }
    
    .menu {
        margin-right: 0;
        margin-bottom: var(--spacing-medium);
        justify-content: center;
        width: 100%;
    }
    
    .categories {
        margin-right: 0;
        margin-bottom: var(--spacing-medium);
        width: 100%;
    }
    
    .categories-btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-dropdown {
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
    }
    
    .search-filters {
        display: none;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    /* Two-row header for mobile */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: var(--spacing-medium);
    }
    
    .header-bottom {
        display: flex;
        width: 100%;
    }
}