/*
Theme Name: Shine Time Theme
Theme URI: https://shinetimeky.com/
Author: Shine Time
Author URI: https://shinetimeky.com/
Description: A fully custom, from-scratch theme for Shine Time Luxury Mobile Detailing.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-build, booking
Text Domain: shinetimetheme
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Variables
2.0 Global Resets & Typography
3.0 Basic Layout & Structure
4.0 Links & Buttons
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #E0E0E0;    /* Light Grey (from logo) for headings & primary text */
    --secondary-color: #444444; /* A dark grey for subtle borders */
    --accent-color: #E53935;     /* Vibrant Red (for pop) on buttons & links */
    --text-color: #E0E0E0;       /* Light Grey for body text */
    --background-color: #000000; /* Black background */
    --background-grey: #1c1c1c;  /* Our new Deep, Rich Grey for alternating sections */

    /* We can even add your original red as a variable to use later */
    --logo-red: #7d3037;

    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/*--------------------------------------------------------------
2.0 Global Resets & Typography
--------------------------------------------------------------*/
body {
    background-color: #000000; /* New: Pure Black Background */
    color: #f0f0f0;            /* New: Light Grey Text for readability */
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 1.2px;
    font-weight: 400; /* Bebas Neue is already bold */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; } /* 56px */
h2 { font-size: 2.5rem; } /* 40px */
h3 { font-size: 1.75rem; } /* 28px */

p {
    margin-bottom: 1.25em;
}

/*--------------------------------------------------------------
3.0 Basic Layout & Structure
--------------------------------------------------------------*/
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header,
.site-footer {
    padding: 1rem 2rem;
}

.site-header {
    border-bottom: 1px solid var(--secondary-color);
}

.site-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.site-main {
    padding: 2rem;
    width: 100%;
    max-width: 1200px; /* Constrains content width on large screens */
    margin: 0 auto; /* Centers the main content area */
}

/*--------------------------------------------------------------
4.0 Links & Buttons
--------------------------------------------------------------*/
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

a:hover,
a:focus {
    opacity: 0.8;
    text-decoration: underline;
}
/*--------------------------------------------------------------
5.0 Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 0 2rem; /* Remove top/bottom padding for vertical centering */
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Pushes logo and nav to opposite ends */
    align-items: center; /* Vertically aligns them */
    height: 90px; /* Give the header a fixed height */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Custom Logo Styling */
.custom-logo-link {
    display: inline-block;
}
.custom-logo {
    height: auto;
    max-height: 60px; /* Control the max height of your logo */
    width: auto;
}

/* Navigation Menu Styling */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; /* Space between menu items */
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    position: relative;
    padding: 0.5rem 0;
}

/* Simple underline effect on hover */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}
/*--------------------------------------------------------------
6.0 Services Page
--------------------------------------------------------------*/
.services-container {
    display: grid;
    gap: 2rem;
}

.service-card {
    background-color: #f9f9f9;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
}

.service-content {
    padding: 1.5rem 2rem;
}

.service-title {
    margin-top: 0;
    color: var(--accent-color);
}

.service-details {
    background-color: var(--primary-color);
    color: #f0f0f0;
    padding: 1.5rem 2rem;
}

.service-details h3 {
    color: #ffffff;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.service-details h3:first-child {
    margin-top: 0;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    padding: 0.25rem 0;
}

.button-book-now {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.button-book-now:hover,
.button-book-now:focus {
    background-color: #ffffff;
    color: var(--accent-color);
    text-decoration: none;
}

/* Make layout a two-column grid on larger screens */
@media (min-width: 768px) {
    .service-card {
        grid-template-columns: 2fr 1fr; /* 2/3 for content, 1/3 for details */
    }
}
/*--------------------------------------------------------------
7.0 Add-ons Section
--------------------------------------------------------------*/
.page-subtitle,
.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: -1em auto 2em auto;
    text-align: center;
    color: #555;
}

.addons-section-container {
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.addon-item {
    background-color: #f9f9f9;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.addon-item h4 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.addon-item .addon-price {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
}
/*--------------------------------------------------------------
8.0 Booking Form
--------------------------------------------------------------*/
.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
}

.booking-form .form-step {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2rem;
}

.booking-form .form-step:last-of-type {
    border-bottom: none;
}

.booking-form legend {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    padding: 0;
    margin-bottom: 1rem;
}

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form label {
    font-family: var(--font-body);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.booking-form .radio-group label,
.booking-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    margin-bottom: 0.75rem;
}

.booking-form input[type="radio"],
.booking-form input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-color);
}

.booking-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.booking-form .total-price-container {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
}
/*--------------------------------------------------------------
9.0 Form Status Messages
--------------------------------------------------------------*/
.notice {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    border-left: 5px solid;
}
.notice.success {
    background-color: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
}
.notice.error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}
/* Make date and time grid */
.form-group-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .form-group-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/*--------------------------------------------------------------
10.0 Admin Calendar
--------------------------------------------------------------*/
.calendar-container {
    max-width: 100%;
    background: #fff;
    padding: 2rem;
    border: 1px solid #ccd0d4;
    margin-top: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.calendar-header h2 {
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-name {
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
}

.calendar-day {
    border: 1px solid #e0e0e0;
    min-height: 120px;
    padding: 8px;
    position: relative;
    background: #f9f9f9;
}
.calendar-day.blank {
    background: #fdfdfd;
}
.calendar-day.today {
    border-color: #f0b849;
    background-color: #fff9e9;
}
.calendar-day .day-number {
    font-weight: bold;
}

.bookings-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
}

.booking-event {
    background-color: #7d3037; /* Accent color */
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
    cursor: help;
}
.booking-event small {
    opacity: 0.8;
}
/*--------------------------------------------------------------
11.0 Homepage Styles
--------------------------------------------------------------*/

/* --- Hero Section --- */
.hero-section .hero-title {
    font-size: 4.5rem; /* Larger font for the main title */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 1rem auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-button a.wp-block-button__link {
    font-size: 1.2rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 5px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.hero-button a.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
12.0 Global & Header Customizations
--------------------------------------------------------------*/

/* 1. Change the main page background color */
body {
    background-color: #4a4444; /* Your primary color */
}

/* Make the header transparent by default and add a smooth transition */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Default transparent background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle transparent border */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Define the new 'scrolled' state with the blurry effect */
.site-header.is-scrolled {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Adjust menu link colors for the new black header */
.main-navigation a {
    color: #ffffff; /* White menu links */
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    background-color: #ffffff; /* Make the underline hover effect white */
}


/* 4. Remove side margins for a full-width feel */
.site-main {
    max-width: none; /* Removes the container width limit */
    padding: 0;      /* Removes the side padding */
}

/* This adds padding back ONLY to sections that are not full-width, which is a robust solution */
.site-main > *:not(.alignfull) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 3rem; /* Add some space between sections */
    padding-bottom: 3rem;
}


/* 5. Hide the default page title on the homepage */
body.home .site-main > .page-header {
    display: none;
}
/*--------------------------------------------------------------
13.0 Style Overrides & Fixes
--------------------------------------------------------------*/

/* Force the button background color using our CSS variable */
.wp-block-button.hero-button .wp-block-button__link {
    background-color: var(--accent-color);
}
/* Pull the homepage content up behind the transparent header */
body.home #primary {
    margin-top: -91px; /* Must match the header's height (90px) + border (1px) */
}
/*--------------------------------------------------------------
14.0 On-Scroll Animations
--------------------------------------------------------------*/
/* Initially, our elements are invisible and slightly moved down */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When the 'visible' class is added by JavaScript, they fade in to full view */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/*--------------------------------------------------------------
15.0 "Why Us" Section Overhaul
--------------------------------------------------------------*/
.section-why-us {
    /* Create some space from the hero section */
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-why-us .wp-block-columns {
    gap: 2rem; /* Adds space between the cards */
}

.section-why-us .wp-block-column {
    /* The "Frosted Glass" effect */
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Styling */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* --- HOVER OPTION A: Accent Glow --- */
.section-why-us .wp-block-column:hover {
    border-color: var(--accent-color); /* Border turns red */
    box-shadow: 0 0 25px rgba(229, 57, 53, 0.5); /* A glow matching the accent color */
    transform: translateY(-5px); /* A more subtle lift */
}
/*--------------------------------------------------------------
16.0 Final CTA Section Overhaul
--------------------------------------------------------------*/
.section-cta {
    /* Set the background to our new grey variable */
    background-color: var(--background-grey);
    padding: 6rem 2rem;
}

/* Ensure text is white for high contrast */
.section-cta .section-title,
.section-cta h2,
.section-cta p {
    color: #ffffff;
}
/*--------------------------------------------------------------
17.0 Footer Enhancement
--------------------------------------------------------------*/
.site-footer {
    background-color: #0a0a0a; /* A slightly off-black for contrast with the page */
    color: #a0a0a0;
    padding: 4rem 2rem;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-areas:
        "branding"
        "nav"
        "social"
        "copyright";
    gap: 2rem;
    text-align: center;
}

.footer-branding { grid-area: branding; }
.footer-navigation { grid-area: nav; }
.footer-social { grid-area: social; }
.footer-copyright { grid-area: copyright; }

/* Invert the logo color to be light grey so it's visible on the dark background */
.footer-branding .custom-logo {
    max-height: 50px;
    filter: brightness(0) invert(0.8);
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-navigation a {
    color: #a0a0a0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.footer-navigation a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: #a0a0a0;
    transition: color 0.2s ease-in-out;
}
.footer-social a:hover {
    color: var(--accent-color); /* The vibrant red */
}

/* On larger screens, create a multi-column layout */
@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr auto 1fr; /* Create 3 columns */
        grid-template-areas:
            "branding nav social"
            "copyright copyright copyright";
        text-align: left;
        align-items: center;
    }
    .footer-branding {
        justify-self: start; /* Align logo to the left */
    }
    .footer-navigation ul {
        justify-content: center;
    }
    .footer-social {
        justify-self: end; /* Align social icons to the right */
    }
    .footer-copyright {
        margin-top: 2rem;
        text-align: center;
        border-top: 1px solid var(--secondary-color);
        padding-top: 2rem;
    }
}
/*--------------------------------------------------------------
19.0 Animated Section Title
--------------------------------------------------------------*/

/* This is the "Contained Title Box" style */
.section-why-us .section-title {
    background-color: var(--background-grey);
    padding: 1rem 2rem;
    border-radius: 8px;
    /* border-left: 5px solid var(--accent-color);  <-- This line is now removed */
}

/* Define the pulsating heartbeat animation */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    color: var(--primary-color);
  }
  50% {
    transform: scale(1.1);
    color: var(--accent-color);
  }
  100% {
    transform: scale(1);
    color: var(--primary-color);
  }
}

/* Style for the spans we added */
.pulsate-1,
.pulsate-2 {
    display: inline-block;
    margin: 0 0.3em; /* CHANGED: Reduced margin for closer spacing */
    /* Apply the animation */
    animation-name: heartbeat;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

/* This is the key: we delay the second span's animation by half the duration */
.pulsate-2 {
    animation-delay: 2s;
}