/*
Theme Name: Aus Speedy Services
Description: Professional services website for Aus Speedy Services with customizable yellow, red, and black color scheme
Version: 1.0
*/

/* CSS Variables - Default Yellow, Red, Black Theme */
:root {
    --primary-color: #FFD700;    /* Gold/Yellow */
    --secondary-color: #DC143C;  /* Crimson Red */
    --accent-color: #000000;     /* Black */
    --header-bg: #FFFFFF;        /* White */
    --footer-bg: #000000;        /* Black */
    --text-light: #666666;
    --border-light: #E0E0E0;

    /* Logo Size Variables */
    --logo-max-height: 60px;
    --logo-max-width: 300px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section .custom-logo-link {
    display: inline-block;
    line-height: 1; /* Prevents extra space below logo */
}

.logo-section .custom-logo {
    max-height: var(--logo-max-height); /* Controlled by Customizer */
    max-width: var(--logo-max-width);   /* Controlled by Customizer */
    height: auto; /* Maintain aspect ratio */
    width: auto;  /* Maintain aspect ratio */
    object-fit: contain; /* Ensures the entire image fits within the bounds */
    display: block; /* Ensures proper sizing behavior */
    transition: transform 0.3s ease;
}

.logo-section .custom-logo:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.main-nav {
    overflow: visible; /* Ensure sub-menus are not clipped */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    overflow: visible; /* Ensure sub-menus are not clipped */
}

.main-nav ul li {
    position: relative; /* Crucial for sub-menu positioning */
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.contact-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-info div {
    margin-bottom: 0.2rem;
}

/* Main Navigation Sub-menu Styling */
.main-nav ul ul { /* Targets sub-menus */
    display: none; /* Hide sub-menus by default */
    position: absolute;
    background: var(--header-bg); /* Use header background for sub-menu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001; /* Ensure it's above other content */
    border-top: 3px solid var(--primary-color);
    left: 0; /* Align sub-menu with parent */
    top: 100%; /* Position below parent */
    pointer-events: none; /* Prevent interaction when hidden */
    opacity: 0; /* For smooth fade-in */
    transition: opacity 0.3s ease;
}

.main-nav ul li:hover > ul {
    display: block; /* Show sub-menu on hover */
    pointer-events: auto; /* Allow interaction when visible */
    opacity: 1; /* Fade in */
}

.main-nav ul ul li {
    padding: 0; /* Reset padding for sub-menu items */
}

.main-nav ul ul li a {
    padding: 10px 20px; /* Padding for sub-menu links */
    display: block;
    white-space: nowrap; /* Prevent text wrapping */
    color: #333; /* Default text color */
}

.main-nav ul ul li a:hover {
    background: #f0f0f0; /* Light background on hover */
    color: var(--secondary-color);
}

.main-nav ul ul li a::after {
    display: none; /* Remove underline animation for sub-menu items */
}

/* Adjust main content margin for fixed header */
.site-main {
    margin-top: 80px; /* Ensure content starts below the fixed header */
}

/* Styling for the Smart Slider 3 container */
.homepage-hero-slider {
    /* Smart Slider 3 will handle its own height and content styling */
    /* It will also handle its own margin/padding, so no specific margin-top here */
    /* Removed: margin-top: 80px; */ /* This was causing double spacing with .site-main */
}

/* Page Hero Section (for inner pages) */
.page-hero {
    padding: 8rem 0 4rem; /* More padding top for fixed header */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Default fallback background, overridden by inline styles from functions.php */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1920&h=1080&fit=crop&q=80');
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* General Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Service Card / Type Card General Styles */
.service-card, .security-type-card, .renovation-service-card, .cleaning-service-card, .shop-fitting-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover, .security-type-card:hover, .renovation-service-card:hover, .cleaning-service-card:hover, .shop-fitting-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon, .security-type-icon, .renovation-service-icon, .cleaning-service-icon, .shop-fitting-icon {
    margin-bottom: 1.5rem;
}

.service-icon img, .security-type-icon img, .renovation-service-icon img, .cleaning-service-icon img, .shop-fitting-icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img, .security-type-card:hover .security-type-icon img, .renovation-service-card:hover .renovation-service-icon img, .cleaning-service-card:hover .cleaning-service-icon img, .shop-fitting-card:hover .shop-fitting-icon img {
    transform: scale(1.05);
}

.service-card h3, .security-type-card h3, .renovation-service-card h3, .cleaning-service-card h3, .shop-fitting-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card p, .security-type-card p, .renovation-service-card p, .cleaning-service-card p, .shop-fitting-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allows paragraphs to take up available space */
}

/* Services Section (Homepage) */
.services-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* About Section (Homepage) */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
    position: relative;
    padding-left: 2rem;
}

.features-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
    color: #cccccc;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-logo .custom-logo {
    max-height: 50px; /* Default for footer, can be adjusted if needed */
    filter: brightness(0) invert(1);
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    color: #999;
    text-align: center;
}

/* Contact Form 7 Styles */
.wpcf7-form p {
    margin-bottom: 1rem;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-light); /* Corrected from 2:px */
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.wpcf7-form input[type="submit"] {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* General Content Sections for Inner Pages */
.content-section {
    padding: 5rem 0;
    background: #fff;
}

.content-section.bg-light {
    background: #f8f9fa;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
    color: #555;
}

.content-section ul li {
    margin-bottom: 0.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-grid.reverse-order {
    grid-template-columns: 1fr 1fr;
}

.content-grid.reverse-order .text-content {
    order: 2;
}

.content-grid.reverse-order .image-content {
    order: 1;
}

.image-content img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .logo-section, .main-nav, .contact-info {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .main-nav ul {
        justify-content: center;
        gap: 1rem;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-hero {
        padding: 6rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .overview-content, .why-choose-content, .content-grid {
        grid-template-columns: 1fr;
    }

    .overview-text, .why-choose-text, .text-content {
        order: 2;
    }

    .overview-image, .why-choose-image, .image-content {
        order: 1;
        margin-bottom: 2rem;
    }

    .content-grid.reverse-order .text-content {
        order: 1;
    }

    .content-grid.reverse-order .image-content {
        order: 2;
    }

    .services-grid, .security-types-grid, .renovation-services-grid, .cleaning-services-grid, .shop-fitting-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section ul {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .main-nav a {
        padding: 0.5rem 0;
    }

    .contact-info {
        font-size: 0.8rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card, .security-type-card, .renovation-service-card, .cleaning-service-card, .shop-fitting-card {
        padding: 1.5rem;
    }

    .service-card h3, .security-type-card h3, .renovation-service-card h3, .cleaning-service-card h3, .shop-fitting-card h3 {
        font-size: 1.3rem;
    }

    .service-card p, .security-type-card p, .renovation-service-card p, .cleaning-service-card p, .shop-fitting-card p {
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h3 {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid, .security-types-grid, .renovation-services-grid, .cleaning-services-grid, .shop-fitting-grid {
        grid-template-columns: 1fr;
    }

    .about-text h2, .content-section h2 {
        font-size: 1.8rem;
    }

    .features-list li {
        font-size: 1rem;
    }

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-form h3 {
        font-size: 1.2rem;
    }
}