/*
Theme Name: 312transfer Theme
Theme URI: https://312transfer.com
Author: Antigravity
Author URI: https://google.com
Description: A custom, high-performance single-page WordPress theme for VIP transfer services.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 312transfer
*/

:root {
    /* Colors */
    --color-primary: #bb1020;
    --color-primary-dark: #8a0c18;
    --color-secondary: #000000;
    --color-dark-gray: #111111;
    --color-light-gray: #f8f9fa;
    --color-white: #ffffff;
    --color-text-main: #2d3436;
    --color-text-light: #636e72;
    --color-border: #e9ecef;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --section-padding: 70px;
    --card-radius: 12px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark-gray);
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(187, 16, 32, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
    background: var(--color-dark-gray);
    color: #999;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #bbb;
}

.top-bar a:hover {
    color: var(--color-white);
}

.top-bar-left a {
    margin-right: 20px;
}

.top-bar-right a {
    margin-left: 15px;
}

.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-main);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 5px;
}

/* Mobile Drawer */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--color-white);
    z-index: 1003;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.drawer-header img {
    height: 35px;
}

.drawer-close {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.drawer-content {
    padding: 25px 20px;
    flex: 1;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.drawer-contact {
    padding: 20px 20px 40px 20px;
    /* Extra padding at bottom */
    border-top: 1px solid var(--color-border);
    background: #fff;
    /* Ensure background is solid */
}

.drawer-contact .btn {
    margin-bottom: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card .card-image {
    height: 180px;
    overflow: hidden;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 20px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fef0f1;
    color: var(--color-primary);
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   FLEET SECTION
   ========================================================================== */
.fleet-section {
    background: var(--color-light-gray);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: start;
}

.fleet-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.fleet-card .card-image {
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.fleet-card .card-body {
    padding: 20px;
}

.fleet-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.fleet-card ul {
    margin: 0;
}

.fleet-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.fleet-card li i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
#about {
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: var(--color-dark-gray);
    color: #ddd;
}

.contact-section h2 {
    color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 5px;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-card .read-more:hover {
    gap: 8px;
    gap: 8px;
    /* animation effect */
}

/* ==========================================================================
   SINGLE POST & ARCHIVE
   ========================================================================== */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-content .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.single-post-content .entry-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.single-post-content .entry-meta i {
    margin-right: 5px;
    color: var(--color-primary);
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-text p {
    margin-bottom: 25px;
}

.entry-text h2,
.entry-text h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* Pagination */
.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    overflow: hidden;
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 300;
}

.faq-item details[open] summary::after {
    content: '-';
}

.faq-item details[open] summary {
    border-bottom: 1px solid var(--color-border);
    background: #fafafa;
}

.faq-content {
    padding: 20px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #000;
    color: #666;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a {
    color: #888;
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   MOBILE STICKY BAR
   ========================================================================== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    display: none;
    z-index: 999;
}

.mobile-sticky-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-white);
}

.sticky-call {
    background: var(--color-primary);
}

.sticky-whatsapp {
    background: #25D366;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    /* Darker WhatsApp Green */
    color: #FFF;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .top-bar {
        display: none;
    }

    .site-header {
        position: fixed;
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-hidden {
        display: none !important;
    }

    .hero-section {
        height: 450px;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 56px;
    }

    .floating-whatsapp {
        display: none;
        /* Hidden on mobile - sticky bar is used instead */
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}