/*
Theme Name: On Call Drivers
Theme URI: https://oncalldrivers.co.nz
Description: Professional website for On Call Drivers Ltd
Version: 1.0.0
Author: On Call Drivers
License: GPL v2 or later
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    background: white;
}

/* Header - FIXED POSITION ON TOP OF HERO */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    margin: 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.custom-logo-link img {
    height: 50px;
    width: auto;
    margin: 0;
}

.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.site-title a {
    color: #ff6b35;
    text-decoration: none;
    margin: 0;
}

.site-title a:hover {
    text-decoration: underline;
}

.site-description {
    display: none;
}

/* Navigation Menu */
nav {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    margin: 0;
}

nav a:hover {
    color: #ff6b35;
}

.menu-container {
    margin: 0;
    padding: 0;
}

.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-item {
    margin: 0;
    padding: 0;
}

.menu-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-item a:hover {
    color: #ff6b35;
}

.menu-item.current-menu-item a {
    color: #ff6b35;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: 60vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Posts/Pages */
.post, .page {
    margin-bottom: 40px;
}

.post-title, .page-title {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.post-content, .page-content {
    line-height: 1.8;
    color: #666;
}

/* Hero Section - HEADER FLOATS ON TOP */
.hero-section {
    position: relative;
    color: white;
    padding: 80px 20px;
    padding-top: 150px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    margin: 0;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero-section p {
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 30px;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: #f5f5f5;
    width: 100%;
    margin: 0;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 50px;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Why Choose Us Section */
.why-us-section {
    padding: 80px 20px;
    background: white;
    width: 100%;
    margin: 0;
}

.why-us-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    background: #f9f9f9;
    padding: 25px;
    border-left: 4px solid #ff6b35;
    border-radius: 4px;
}

.why-item h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.why-item p {
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    width: 100%;
    margin: 0;
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.contact-item h3 {
    color: #ff6b35;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1em;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-item a {
    color: #ff6b35;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn, .cta-button, button, input[type="button"], input[type="submit"] {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover, .cta-button:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: #e55a2b;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #ff6b35;
    width: 100%;
    margin: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-section {
        min-height: 350px;
        padding: 40px 20px;
        padding-top: 120px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .services-section h2,
    .why-us-section h2,
    .contact-section h2 {
        font-size: 1.8em;
    }

    /* Contact items responsive */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-item h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .contact-item p {
        font-size: 0.95em;
    }

    .contact-item a {
        font-size: 0.9em;
        word-break: break-word;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .contact-item {
        padding: 15px;
    }

    .contact-item p {
        font-size: 0.85em;
    }

    .contact-item a {
        font-size: 0.8em;
    }

    .contact-section {
        padding: 40px 15px;
    }

    .services-section,
    .why-us-section {
        padding: 40px 15px;
    }

    .site-title {
        font-size: 1.2em;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }
}
