/*
Theme Name: Norwich Taxi Directory
Description: Custom theme for Norfolk taxi directory website
Version: 1.0
Author: Norwich.Taxi
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #2C5AA0;
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #FFD700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2C5AA0, #4A90E2);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Search Box */
.search-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 150px;
    gap: 1.5rem;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C5AA0;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #2C5AA0;
}

.search-btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #e55a2b;
}

/* Featured Cities Section */
.featured-cities {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2C5AA0;
    font-weight: 700;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.city-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.city-card h3 {
    color: #2C5AA0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.city-card p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.city-btn {
    background: #2C5AA0;
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.city-btn:hover {
    background: #1e3f73;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: #2C5AA0;
    transform: translateY(-3px);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h4 {
    color: #2C5AA0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Company Listings */
.companies-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.company-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.company-card h4 {
    color: #2C5AA0;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.company-meta {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.company-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

.contact-btn {
    background: #FF6B35;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    flex: 1;
}

.contact-btn:hover {
    background: #e55a2b;
}

.view-profile-btn {
    background: transparent;
    color: #2C5AA0;
    border: 2px solid #2C5AA0;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.view-profile-btn:hover {
    background: #2C5AA0;
    color: white;
}

/* Footer */
footer {
    background: #2C5AA0;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4A90E2;
    color: rgba(255,255,255,0.8);
}

.tonorwich-link {
    color: #FFD700 !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .cities-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .search-container {
        padding: 1.5rem;
    }

    .city-card,
    .company-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
select:focus,
input:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}