/**
 * Fixaroa.com - Main Stylesheet
 * Modern, Responsive, SEO-Optimized
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.main-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img,
.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-text {
    margin-left: 10px;
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
}

.search-input-group {
    display: flex;
    width: 100%;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
}

.search-city {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    background: var(--bg-color);
    min-width: 150px;
}

.search-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    position: relative;
}

.mobile-menu-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    border-radius: var(--radius);
    display: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
}

.search-box button {
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #d97706;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Businesses Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.business-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.business-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.business-card a {
    text-decoration: none;
    color: inherit;
}

.business-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: var(--text-light);
}

.emergency-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: bold;
}

.business-info {
    padding: 20px;
}

.business-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.business-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.business-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: var(--accent-color);
    font-size: 18px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.price-range {
    color: var(--success-color);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    font-size: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.disclaimer-text {
    font-size: 12px;
    margin-top: 10px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pagination .btn {
    min-width: 40px;
    text-align: center;
    padding: 10px 15px;
}

.pagination .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination span {
    padding: 10px;
    color: var(--text-light);
}

/* Search Page */
.search-page {
    padding: 40px 0;
}

.search-header {
    margin-bottom: 30px;
}

.search-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.search-filters {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    height: fit-content;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.filter-group select,
.filter-group input.filter-input,
.filter-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

/* Business Detail */
.business-detail-page {
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.business-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.business-gallery img {
    width: 100%;
    border-radius: var(--radius);
}

.business-info-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.business-rating-large {
    margin: 20px 0;
}

.stars-large {
    font-size: 24px;
    color: var(--accent-color);
}

.business-meta {
    margin: 20px 0;
}

.business-meta p {
    margin-bottom: 10px;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Related Businesses */
.related-businesses {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.related-businesses h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.related-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.related-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.related-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 24px;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.related-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.related-rating .stars {
    color: var(--accent-color);
    font-size: 14px;
}

.related-rating .rating-text {
    color: var(--text-light);
}

/* Legal Pages */
.legal-page {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page section {
    margin-bottom: 30px;
}

.legal-page h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: left;
}

.legal-page h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Responsive - Mobile First Approach */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .search-layout {
        grid-template-columns: 200px 1fr;
    }
    
    .business-content {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .main-header {
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }
    
    .main-header .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-top {
        flex-direction: column;
        padding: 10px 0;
        gap: 10px;
    }
    
    .logo {
        order: 0;
        width: 100%;
        text-align: center;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 0;
    }
    
    .search-input,
    .search-city,
    .search-btn {
        width: 100%;
        border-radius: var(--radius);
        margin-bottom: 5px;
    }
    
    .search-input {
        border-radius: var(--radius) var(--radius) 0 0;
        border: 2px solid var(--border-color);
    }
    
    .search-city {
        border-top: none;
        border-left: 2px solid var(--border-color);
        border-right: 2px solid var(--border-color);
        border-bottom: none;
        border-radius: 0;
    }
    
    .search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .header-actions {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .main-nav {
        display: block;
        position: relative;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 20px;
        cursor: pointer;
        z-index: 10000;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .mobile-menu-toggle:hover {
        background: var(--secondary-color);
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 300px;
        max-width: 90vw;
        padding: 20px 0;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        overflow-y: auto;
        list-style: none;
        margin: 0;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Desktop Menu */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        display: block !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        padding: 15px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .nav-menu li {
        width: auto !important;
    }
    
    .nav-menu a {
        padding: 5px 0 !important;
        border-bottom: none !important;
    }
    
    .nav-menu .dropdown-menu {
        position: absolute !important;
        display: none !important;
        box-shadow: var(--shadow-lg) !important;
        background: var(--bg-color) !important;
        border-radius: var(--radius) !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        list-style: none !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block !important;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: none !important;
    }
    
    .nav-menu .dropdown-menu li {
        border-bottom: none !important;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 10px 20px !important;
        font-size: inherit !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
        padding: 0 10px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .search-box {
        flex-direction: column;
        margin: 0 10px;
        border-radius: var(--radius);
        overflow: hidden;
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .search-box button {
        border-bottom: none;
    }
    
    .search-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-filters {
        position: sticky;
        top: 0;
        z-index: 100;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .business-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-content {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-item a {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
        margin: 0 auto;
    }
    
    .business-gallery {
        order: 1;
    }
    
    .business-info-header {
        order: 2;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-card-horizontal {
        flex-direction: column;
    }
    
    .business-card-horizontal .business-image {
        width: 100%;
        height: 200px;
    }
    
    .business-card-horizontal .business-details {
        width: 100%;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
    }
    
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        font-size: 32px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

