/*
Theme Name: Fast Food Restaurant in USA
Description: A modern, responsive WordPress theme for fast food restaurant directory listings in the USA.
Version: 1.0
Author: Custom Theme
*/

/* CSS Variables for Color Palette */
:root {
    --primary-color: #1e152a;
    --secondary-color: #4e6766;
    --accent-color: #5AB1BB;
    --highlight-color: #A5C882;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --border-color: #e9ecef;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.main-navigation ul,
.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--highlight-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 1rem;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--light-gray);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 21, 42, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--light-gray);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumbs li {
    margin-right: 0.5rem;
}

.breadcrumbs li:after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

.breadcrumbs li:last-child:after {
    display: none;
}

/* Rating Styles */
.rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
    margin-right: 0.5rem;
}

.rating-text {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Work Hours Styles */
.work-hours {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.work-hours-day {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.work-hours-day:last-child {
    border-bottom: none;
}

/* Contact Info Styles */
.contact-info {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Topics/Tags Styles */
.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-tag {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Attributes Styles */
.attributes-section {
    margin-bottom: 2rem;
}

.attributes-list {
    list-style: none;
}

.attributes-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.attributes-list li:last-child {
    border-bottom: none;
}

.attribute-icon {
    margin-right: 0.5rem;
    color: var(--highlight-color);
}

/* Desktop Navigation - ensure it's always visible */
@media (min-width: 769px) {
    .main-navigation {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        background-color: transparent !important;
        box-shadow: none !important;
        width: auto !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .header-content {
        position: relative;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        z-index: 10001;
    }
    
    .site-logo {
        order: 1;
        z-index: 10001;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        z-index: 10000 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        order: 3;
        width: 100% !important;
        opacity: 0;
    }
    
    .main-navigation.active {
        max-height: 500px !important;
        overflow: visible !important;
        display: block !important;
        opacity: 1;
    }
    
    .main-navigation ul,
    .main-navigation .nav-menu {
        flex-direction: column !important;
        text-align: center;
        padding: 1rem 0 !important;
        margin: 0 !important;
        display: flex !important;
        list-style: none !important;
        width: 100%;
    }
    
    .main-navigation li {
        margin: 0 !important;
        border-bottom: 1px solid var(--secondary-color);
        width: 100%;
        display: block !important;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 1rem !important;
        display: block !important;
        margin: 0;
        color: var(--white) !important;
        text-decoration: none;
        width: 100%;
        transition: background-color 0.3s ease;
    }
    
    .main-navigation a:hover {
        background-color: var(--secondary-color);
        color: var(--white) !important;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1rem;
    }
}


/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
