/**
 * Theme Name: Van Gone Today
 * Theme URI: https://vangonetoday.co.uk
 * Author: Georgios Emmanouilidis
 * Author URI: https://kappadigital.co.uk
 * Description: A professional van buying service theme for Sussex, Surrey, and London. Features customizable header contact details, responsive design with Tailwind CSS, and modern UI components.
 * Version: 1.0.0
 * Requires at least: 5.9
 * Tested up to: 6.4
 * Requires PHP: 7.4
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: van-gone-today
 * Tags: one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready
 *
 * Copyright (c) 2025 Georgios Emmanouilidis
 * Company: KappaDigital (kappadigital.co.uk)
 * All rights reserved.
 */

/* ==========================================================================
   Base Styles - Inter Font & Reset
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */

.mobile-menu {
    transform: translateX(100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ==========================================================================
   Scrolling Animation for Location Badges
   ========================================================================== */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-container {
    animation: scroll 30s linear infinite;
}

.scroll-container:hover {
    animation-play-state: paused;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    padding: 0.5em 0;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   WordPress Navigation Menu Styles
   ========================================================================== */

/* Desktop Navigation */
.wp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.wp-nav-menu li {
    margin: 0;
    padding: 0;
}

.wp-nav-menu a {
    color: #4B5563;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-nav-menu a:hover,
.wp-nav-menu .current-menu-item a,
.wp-nav-menu .current_page_item a {
    color: #FF6B4A;
}

/* Mobile Navigation */
.mobile-wp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-wp-nav-menu li {
    margin: 0;
}

.mobile-wp-nav-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-wp-nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-wp-nav-menu .current-menu-item a,
.mobile-wp-nav-menu .current_page_item a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-right: 4px solid #FF6B4A;
}

/* ==========================================================================
   Footer Navigation
   ========================================================================== */

.footer-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-menu li {
    margin-bottom: 0.75rem;
}

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

.footer-nav-menu a:hover {
    color: #fff;
}

/* ==========================================================================
   Page Content Styles
   ========================================================================== */

.page-content {
    max-width: 65ch;
    margin: 0 auto;
}

.page-content p {
    margin-bottom: 1.5em;
    line-height: 1.75;
    color: #4B5563;
}

.page-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #2C2C2C;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.page-content li {
    margin-bottom: 0.5em;
    color: #4B5563;
}

.page-content a {
    color: #FF6B4A;
    text-decoration: underline;
}

.page-content a:hover {
    color: #ff5535;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.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.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    ring: 2px;
    ring-color: #FF6B4A;
    border-color: transparent;
}

.wpcf7-form input[type="submit"] {
    background-color: #FF6B4A;
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #ff5535;
}

/* ==========================================================================
   WordPress Admin Bar Support
   ========================================================================== */

/* Adjust fixed navigation when admin bar is present */
.admin-bar nav.fixed {
    top: 32px;
}

/* Adjust mobile menu when admin bar is present */
.admin-bar .mobile-menu {
    top: 32px;
    height: calc(100% - 32px);
}

/* Mobile admin bar adjustments (admin bar is 46px on mobile) */
@media screen and (max-width: 782px) {
    .admin-bar nav.fixed {
        top: 46px;
    }

    .admin-bar .mobile-menu {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* When admin bar is not fixed (small screens in WP) */
@media screen and (max-width: 600px) {
    .admin-bar nav.fixed {
        top: 0;
    }

    .admin-bar .mobile-menu {
        top: 0;
        height: 100%;
    }
}
