/*
 * Main stylesheet for Dorset Elite Taxis Ltd.
 * This stylesheet implements a modern, dark‑themed look with responsive
 * layouts. It pairs well with the static HTML and JavaScript in this project.
 */

/* Global reset and base styles */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111; /* dark backdrop */
    color: #f5f5f5;
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header styles */
header {
    background-color: #000;
    border-bottom: 1px solid #333;
    }
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #faa61a; /* gold accent */
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
nav a {
    color: #f5f5f5;
    transition: color 0.2s ease;
}
nav a:hover {
    color: #faa61a;
}
.call-btn {
    background-color: #faa61a;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.call-btn:hover {
    background-color: #e69515;
}

/* Hero section */
.hero {
    background: url('https://images.unsplash.com/photo-1503377989185-d12f07a1b1ac?auto=format&fit=crop&w=1980&q=80') center/cover no-repeat;
    text-align: center;
    padding: 100px 20px;
    color: #fff;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.primary-btn {
    background-color: #faa61a;
    color: #000;
}
.primary-btn:hover {
    background-color: #e69515;
}
.secondary-btn {
    background-color: transparent;
    border: 1px solid #faa61a;
    color: #faa61a;
}
.secondary-btn:hover {
    background-color: #faa61a;
    color: #000;
}

/* Shared section styles */
section {
    padding: 60px 0;
}
section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Services section */
.services .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.service {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.service:hover {
    transform: translateY(-5px);
}
.service h3 {
    margin-bottom: 0.5rem;
    color: #faa61a;
}
.service p {
    margin: 0;
    font-size: 0.95rem;
}

/* Areas, Fleet, Contact sections */
.areas p, .fleet p, .contact p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    text-align: center;
}

/* Booking form */
.booking form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.booking input, .booking textarea, .booking button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}
.booking input {
    background-color: #222;
    color: #f5f5f5;
}
.booking input::placeholder {
    color: #888;
}
.booking button {
    background-color: #faa61a;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.booking button:hover {
    background-color: #e69515;
}

/* Contact section */
.contact a {
    color: #faa61a;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive adjustments */
@media (min-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
}

.booking textarea {
    background-color: #222;
    color: #f5f5f5;
    min-height: 100px;
    resize: vertical;
}
.booking textarea::placeholder {
    color: #888;
}


/* Top right actions: WhatsApp + Call */
.top-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-actions .whatsapp-btn {
    background-color: #22c55e;
    border-color: #15803d;
}

.top-actions .whatsapp-btn:hover {
    background-color: #16a34a;
}

@media (max-width: 720px) {
    .top-actions {
        flex-direction: column-reverse;
        align-items: flex-end;
    }
}


/* Logo block with status and meta info */
.logo-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.logo-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #16a34a;
    background: radial-gradient(circle at left, rgba(34,197,94,0.32), rgba(15,23,42,0.8));
    font-size: 0.8rem;
    color: #e5e5e5;
    width: fit-content;
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.9);
}
.status-text {
    font-weight: 600;
}
.status-meta {
    font-size: 0.78rem;
    opacity: 0.9;
}
.logo-meta {
    font-size: 0.8rem;
    color: #d4d4d4;
    line-height: 1.4;
}
.logo-meta strong {
    color: #fef9c3;
    font-weight: 600;
}

@media (max-width: 720px) {
    .logo-block {
        max-width: 260px;
    }
    .logo-meta {
        font-size: 0.75rem;
    }
}


/* Why ride with Dorset Elite Taxis */
.why-ride {
    background: radial-gradient(circle at top, #1f2933, #050608);
}
.why-ride p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.pill {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    border: 1px solid #4b5563;
    font-size: 0.9rem;
    color: #e5e5e5;
    background: rgba(15,23,42,0.9);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.7);
    white-space: nowrap;
}
.pill:hover {
    border-color: #facc15;
    color: #fef9c3;
}


.areas-image {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.areas-image img {
    width: 100%;
    max-width: 640px;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    object-fit: cover;
}
@media (max-width: 720px) {
    .areas-image img {
        max-width: 100%;
        border-radius: 0.75rem;
    }
}


@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .top-actions {
        align-self: stretch;
        justify-content: flex-start;
    }
    .top-actions .call-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }
}
