/*
 * Stylesheet for Taxi Hähnel's corporate website
 *
 * Colour palette is inspired by German taxis: a warm yellow for primary
 * actions, contrasted with dark grey tones for text and backgrounds. A light
 * grey background is used to separate sections. Feel free to adjust the
 * variables below to fine‑tune the look and feel. All layout elements are
 * responsive so the site works on mobile, tablet and desktop without the
 * need for a separate mobile site.
 */

/* CSS variables for easy theme changes */
:root {
    --primary-color: #f7b500; /* warm taxi yellow */
    --primary-dark: #d49900;
    --dark-color: #1f1f1f; /* almost black for text */
    --light-color: #f9f9f9; /* pale background */
    --accent-color: #3c3c3c; /* subtle dark for cards */
    --border-radius: 6px;
    --max-width: 1200px;
    --transition-fast: 0.25s ease;
    --transition-slow: 0.5s ease;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Reset some browser defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--dark-color);
}

/* Container utility class for page width */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
}

/* Navigation bar */
header {
    background-color: var(--dark-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.brand {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.05rem;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

nav a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
    position: absolute;
    left: 0;
    bottom: -4px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 22px;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    background-color: white;
    height: 2px;
    width: 100%;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-open nav {
    display: block;
}

/* Hero section */
.hero {
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.65) 100%), url('images/hero2.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

/* Section headings */
section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section {
    padding: 3rem 0;
}

/* Services grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Fleet cards */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fleet-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fleet-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.fleet-card .fleet-content {
    padding: 1.5rem;
}

.fleet-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.fleet-card p {
    font-size: 0.95rem;
    color: var(--accent-color);
}

/* Tariff table */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.tariff-table th, .tariff-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tariff-table th {
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: bold;
}

.tariff-table tr:nth-child(even) {
    background-color: #fef7e9;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.contact-form button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

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

footer h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

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

footer a {
    color: var(--primary-color);
    font-size: 0.95rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        background-color: var(--dark-color);
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        padding: 1rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    .nav-open nav {
        display: flex;
    }
    .hero {
        padding: 5rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
