/* =========================================
   1. CSS VARIABLES (The Design System)
   ========================================= */
/* =========================================
   1. CSS VARIABLES (The Design System)
   ========================================= */
:root {
    --brand-blue: #1D428A;
    --brand-yellow: #FFCD00;
    --text-main: #111827;
    --text-light: #ffffff;
    --off-white: #f4f5f7;
    --muted-border: #e5e7eb;

    --font-main: 'Open Sans', Arial, sans-serif;
    --font-heading: 'Source Sans Pro', Arial, sans-serif;
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Ensures padding doesn't affect overall width */
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x:hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */

header {
    background-color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

/* Container & Link flex alignment */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Sizing for the SVG trace */
.logo-mark {
    height: 48px;
    width: auto;
    display: block;
}

/* Styling the brand name */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: normal;
}

/* Desktop Navigation Links */
#nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

#nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
}

#nav-links a:hover,
#nav-links a.active {
    color: var(--brand-yellow);
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

.logo img {
    max-height: 60px;
    /* Keeps the logo a sensible size */
}

/* --- Brand Group & Awards --- */
.brand-group {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.header-awards {
    display: flex;
    align-items: center;
    gap: 15px; /* Slightly more breathing room between badges */
    border-left: 1px solid rgba(255, 255, 255, 0.2); 
    padding-left: 20px;
}

.header-awards img {
    height: 55px; /* INCREASED from 40px to make text legible */
    width: auto;
    object-fit: contain;
    background-color: var(--text-light); /* Adds a white background if the badges are transparent */
    border-radius: 4px; /* Optional: smooths the edges */
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

#nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
}

#nav-links a:hover,
#nav-links a.active {
    color: var(--brand-yellow);
}

.hamburger {
    display: none;
    /* Hidden on desktop, shown on mobile via the media query */
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    /* We use a linear-gradient overlay to darken the image so white text is readable */
    background: linear-gradient(rgba(50, 50, 50, 0.6), rgba(50, 50, 50, 0.6)),
        url('assets/Photos/home1.JPG') center/cover no-repeat;
    min-height: 85vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px 40px 20px;
}

.hero-content {
    max-width: 800px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem; /* Keeps line count compact */
    }
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--brand-blue);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--brand-yellow);
    color: var(--text-main);
}

/* =========================================
   6. HAMBURGER ICON STYLING (Hidden by default)
   ========================================= */
.hamburger {
    display: none;
    /* Hide on desktop */
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* =========================================
   8. MAIN CONTENT SECTIONS
   ========================================= */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    /* Centers the content block on large screens */
}

h2 {
    font-family: var(--font-heading);
    color: var(--brand-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

/* --- We Help Treat List --- */
.treatment-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.treatments-tags h2 {
    text-align: center;
}

.tag {
    background-color: var(--off-white); /* Uses the #F4F5F7 from his palette */
    color: var(--brand-blue);
    padding: 10px 24px;
    border-radius: 50px; /* Creates the rounded 'pill' shape */
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--muted-border);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--brand-yellow);
    color: var(--text-main);
    border-color: var(--brand-yellow);
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- About Intro (Background Image Style) --- */
.about-intro {
    /* The dark overlay + the background image */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('assets/Photos/treatment_banner.jpg') center/cover fixed no-repeat;

    /* Make the default text white */
    color: var(--text-light);
    padding: 100px 20px;
    /* Extra padding top and bottom for a cinematic feel */
}

.intro-centered {
    max-width: 800px;
    /* Stops the text from stretching too wide on big screens */
    margin: 0 auto;
    /* Centers the text block perfectly */
    text-align: center;
    /* Centers the actual text inside the block */
}

/* Override the default blue h2 so it stands out on the dark background */
.about-intro h2 {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-intro p {
    font-size: 1.1rem;
}

.highlight-text {
    margin-top: 30px;
    color: var(--brand-yellow); 
    font-size: 1.2rem;
}

/* --- About Intro Grid --- */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Creates two equal columns (50% / 50%) */
    gap: 40px;
    align-items: center;
    /* Vertically centers the text next to the image */
}

.text-content p {
    margin-bottom: 15px;
}

.image-content img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Trust Banner --- */
.trust-banner {
    background-color: var(--off-white); /* Uses the Surface Gray from his palette */
    padding: 20px 0;
    border-bottom: 1px solid var(--muted-border);
}

.trust-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap; /* Allows it to stack on mobile */
}

.trust-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 1.1rem;
    margin: 0;
}

.trust-badges {
    display: flex;
    gap: 20px;
    align-items: center;
}

.trust-badges img {
    height: 110px; /* Much larger, ensuring the text stays crisp */
    width: auto;
}

/* =========================================
   9. QUALIFICATIONS (CERTIFICATE CARDS)
   ========================================= */
.qualifications-section {
    background-color: var(--brand-blue);
    text-align: center;
    padding: 60px 20px;
}

.qualifications-section h2 {
    color: var(--text-light);
}

/* --- Tighter Flex Container --- */
.cert-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced from 25px */
    margin-top: 30px;
}

/* --- Scaled-Down Certificate Cards --- */
.cert-card {
    background-color: var(--text-light);
    padding: 20px; /* Reduced from 30px */
    border-radius: 8px;
    border-left: 5px solid var(--brand-blue); /* Slightly thinner border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

/* Desktop Sizing */
@media (min-width: 768px) {
    .cert-card {
        width: calc(50% - 10px); /* Adjusts for the smaller gap */
    }
}

/* Large Desktop Sizing */
@media (min-width: 1024px) {
    .cert-card {
        max-width: 380px; /* Reduced from 420px */
    }
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-left-color: var(--brand-yellow);
}

/* --- Smaller Logo Styling --- */
.cert-logo {
    height: 40px; /* Reduced from 55px */
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* --- Adjusted Typography --- */
.cert-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem; /* Reduced from 1.15rem */
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-card .awarding-body {
    font-size: 0.75rem; /* Reduced from 0.85rem */
    font-weight: bold;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; 
}

/* --- The Logo Fix --- */
.invert-logo {
    /* This forces the white text and light blue icon to turn dark grey/black */
    filter: brightness(0) opacity(0.8); 
}

/* =========================================
   10. GLOBAL FOOTER
   ========================================= */
.site-footer {
    background-color: var(--text-main);
    color: var(--text-light);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.site-footer h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-brand p {
    margin-bottom: 20px;
    color: #cccccc;
    /* Slightly dimmed text so it isn't glaringly bright */
}

/* --- Social Media Icon Buttons --- */
.footer-socials {
    display: flex;
    gap: 15px;
    /* Creates even spacing between the icons */
    margin-top: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Perfect circular size */
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle transparent background */
    color: var(--text-light);
    border-radius: 50%;
    /* Makes them perfect circles */
    transition: all 0.3s ease;
    margin-right: 0;
    /* Removing the old margin from the text links */
}

/* Hover State: Subtle glow with a yellow icon */
.footer-socials a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Just slightly brighter than the resting state */
    color: var(--brand-yellow);
    /* Makes the icon turn yellow, rather than the background */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Softened the shadow slightly */
}

.footer-socials svg {
    /* Ensures the SVG scales nicely inside the 40px circle */
    width: 20px;
    height: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #cccccc;
}

/* Hover effects to make it feel interactive */
.footer-links a:hover,
.footer-contact a:hover,
.footer-socials a:hover {
    color: var(--brand-yellow);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #cccccc;
}

/* --- The Bottom Copyright Bar --- */
.footer-bottom {
    background-color: #222222;
    /* Slightly darker than the main footer */
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888888;
    border-top: 1px solid #444444;
}

/* --- Bottom Bar Flexbox (Splits the copyright and the admin link) --- */
.bottom-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Ensures it stacks neatly on very small phone screens */
    gap: 10px;
}

/* --- The Admin Link --- */
.temp-admin-link {
    color: #1D428A;
    /* Keeps it dim and unobtrusive */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.temp-admin-link:hover {
    color: var(--brand-yellow);
    /* Lights up when hovered */
}

/* =========================================
   11. TREATMENTS & PRICING PAGE
   ========================================= */

/* --- Treatments Hero Banner --- */
.treatments-hero {
    /* Uses a Leeds Blue overlay (rgb 29, 66, 138) to keep it on-brand */
    background: linear-gradient(rgba(29, 66, 138, 0.75), rgba(29, 66, 138, 0.75)),
        url('assets/Photos/treattb.jpg') center/cover no-repeat;
    
    /* Slightly shorter than the homepage hero */
    height: 40vh; 
    min-height: 350px;
    
    /* Keeps the Leeds Yellow accent at the bottom */
    border-bottom: 5px solid var(--brand-yellow); 
}

/* Ensure the heading size matches the inner-page vibe */
.treatments-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}



.pricing-card {
    background: #ffffff;
    border-radius: 12px; /* Slightly softer corners */
    padding: 40px 30px; /* Increased padding for breathing room */
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05); /* Very soft, elegant shadow */
    border-top: 5px solid var(--brand-blue);
    text-align: center;
}

/* Target the second card specifically */
.pricing-card.addons {
    border-top: 5px solid var(--brand-yellow);
    text-align: left;
}

.price {
    font-size: 3.5rem; /* Make the £50 massive and bold */
    color: var(--brand-blue);
    font-weight: 800;
    margin: 20px 0;
}

.price .duration {
    font-size: 1.2rem;
    color: #666;
}

.pricing-card p {
    margin-bottom: 25px;
}

/* --- Pricing Layout --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two equal-width columns */
    gap: 30px; /* Adds clean spacing between the two cards */
    max-width: 1000px; /* Prevents the cards from stretching too wide on massive monitors */
    margin: 40px auto; /* Centers the whole grid on the page */
    align-items: stretch; /* FIX: Changed from 'start' to 'stretch' */
}

.addon-list {
    list-style: none;
    margin-top: 20px;
}

.addon-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.addon-list li:last-child {
    border-bottom: none;
}

/* --- Services Breakdown Grid --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* --- Alternating Services Layout --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between each service block */
    max-width: 1000px;
    margin: 40px auto;
}

.service-row {
    display: flex;
    align-items: center; /* Centers the text vertically with the image */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

/* This is the magic rule that flips every 2nd, 4th, 6th row */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* The Image Half */
.service-image {
    flex: 1; /* Takes up exactly 50% of the row */
    height: 350px; /* Locks the height so all rows are perfectly uniform */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    filter: contrast(105%) brightness(102%);
}

.service-image img.taping-img {
    object-position: center 30%; /* Locks the crop onto the hands and upper back */
}

/* The Text Half */
.service-content {
    flex: 1; /* Takes up the other 50% */
    padding: 40px 50px;
}

.service-content h3 {
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* =========================================
   12. CONTACT & BOOKING PAGE
   ========================================= */

/* --- Contact Hero Banner --- */
.contact-hero {
    /* Uses the Leeds Blue overlay to keep the white text readable */
    background: linear-gradient(rgba(29, 66, 138, 0.75), rgba(29, 66, 138, 0.75)),
        url('assets/Photos/contact1.JPG') center/cover no-repeat;
    
    /* Matches the height of the inner-page banners */
    height: 40vh; 
    min-height: 350px;
    
    /* Keeps the Leeds Yellow accent at the bottom */
    border-bottom: 5px solid var(--brand-yellow); 
}

.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}


/* --- The Booking Widget --- */
.booking-widget {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--brand-blue);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--brand-blue);
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

/* --- Time Slot Buttons --- */
.time-grid {
    display: grid;
    /* We changed minmax to 80px so they easily form neat columns of 3 or 4 */
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin: 15px 0 25px 0;
}

.time-slot {
    padding: 12px 5px;
    /* Slightly taller for mobile tapping, tighter sides */
    border: 2px solid var(--brand-blue);
    background: transparent;
    color: var(--brand-blue);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    /* Forces the time to sit perfectly in the middle */
    transition: all 0.2s ease;
}

.time-slot:hover {
    background: var(--brand-blue);
    color: var(--text-light);
}

.time-slot.selected {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--text-main);
}

/* State for when a slot is already taken in the database */
.time-slot.disabled {
    border-color: #eaeaea;
    /* Very faint border */
    color: #bbbbbb;
    /* Faded grey text */
    background: #f9f9f9;
    cursor: not-allowed;
    text-decoration: line-through;
    /* Crosses the time out perfectly */
}

/* Make the confirm button span the full width of its container */
.w-100 {
    width: 100%;
    margin-top: 10px;
}

/* --- The Booking Widget (Centered) --- */
.booking-container {
    max-width: 700px;
    /* Stops the form from stretching too wide on large screens */
    margin: 0 auto 50px auto;
    /* Centers it and adds 50px gap below it */
}

/* --- The Bottom Cards (Side-by-Side) --- */
.bottom-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    /* Centers the whole block of cards */
}

/* Ensure the text inside the location card spaces nicely */
.location-card p {
    margin-bottom: 10px;
}

.vip-card,
.location-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.vip-card {
    border-left: 6px solid var(--brand-yellow);
}

.location-card {
    border-left: 6px solid var(--brand-blue);
}

.vip-card h3,
.location-card h3 {
    color: var(--brand-blue);
    margin-bottom: 15px;
}

/* --- Sidebar Contact Icons --- */
.contact-icon-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-icon {
    background-color: #25D366;
    /* Official WhatsApp Green */
}

.email-icon {
    background-color: var(--brand-blue);
    /* Joey's Brand Blue */
}

/* Lift and glow effect on hover */
.icon-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* --- Month Navigation --- */
.month-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-selector h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.btn-secondary {
    background-color: var(--off-white);
    color: var(--brand-blue);
    border: 1px solid var(--muted-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-blue);
    color: var(--text-light);
}

.btn-danger {
    color: #c62828;
    border-color: #ef9a9a;
}

.btn-danger:hover {
    background-color: #c62828;
    color: var(--text-light);
}

/* --- Calendar Month Grid --- */
/* --- Calendar Month Grid --- */
.calendar-header-grid {
    /* Using minmax(0, 1fr) stops the columns from blowing out past the screen width */
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    text-align: center;
    font-weight: bold;
    color: var(--brand-blue);
    padding: 10px 0;
    border-bottom: 2px solid var(--brand-blue);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
}

.cal-day {
    min-height: 85px;
    background-color: var(--off-white);
    border: 1px solid var(--muted-border);
    border-radius: 6px;
    padding: 5px; /* Reduced padding slightly to give text more room */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    overflow: hidden; /* Prevents contents from spilling out */
}

.cal-day:hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cal-day.active-day {
    border: 2px solid var(--brand-blue);
    background-color: #fff;
}

.day-number {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-main);
}

.day-badge {
    font-size: 0.65rem; /* Slightly smaller to fit mobile screens */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    
    /* Forces long words to truncate with '...' if they don't fit */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Style all form inputs uniformly */
input[type="email"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't break the layout width */
    font-family: inherit;
    font-size: 16px; /* Prevents iOS Safari from auto-zooming on the input */
}

.day-blocked .day-badge {
    background-color: #e5e7eb;
    color: #6b7280;
}

.badge-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-booked {
    background-color: #fff3e0;
    color: #e65100;
}

.day-editor-panel {
    background-color: var(--off-white);
    border: 1px solid var(--muted-border);
    border-radius: 8px;
    padding: 20px;
}

.day-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* =========================================
   13. ADMIN DASHBOARD
   ========================================= */

.admin-body {
    background-color: #f0f2f5;
    /* A slightly darker grey to make the white panel pop */
}

.admin-header {
    background-color: var(--brand-blue);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logout-btn {
    background-color: var(--brand-blue);
    color: #fff;
    font-size: 0.9rem;
}

.logout-btn:hover {
    color: var(--brand-yellow);
}

.admin-main {
    padding: 40px 20px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-panel {
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-top: 6px solid var(--brand-blue);
}

.admin-controls {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-controls label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
}

.admin-controls input[type="date"] {
    max-width: 300px;
    /* Keeps the date picker neat */
}

/* --- The Admin Slot Grid --- */
.instruction {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.admin-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Wider cards for admin view */
    gap: 15px;
}

.admin-slot {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-slot .slot-time {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.admin-slot .slot-label {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Status: Available (Green) */
.status-available {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.status-available:hover {
    background-color: #c8e6c9;
}

/* Status: Blocked (Red) */
.status-blocked {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.status-blocked:hover {
    background-color: #ffcdd2;
}

/* Status: Booked (Grey/Disabled) */
.status-booked {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #757575;
    cursor: not-allowed;
}

.block-day-btn {
    background-color: #f44336;
}

.block-day-btn:hover {
    background-color: #d32f2f;
    color: white;
}

/* --- Admin Tabs --- */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background-color: #e0e0e0;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--brand-blue);
    color: var(--text-light);
}

.tab-content {
    display: none;
    /* Hide all tabs by default */
}

.tab-content.active {
    display: block;
    /* Only show the active one */
}

/* --- Settings Form Layout --- */
.settings-form h3 {
    margin: 30px 0 15px 0;
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 5px;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Side-by-side inputs on desktop */
    gap: 20px;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4caf50;
    /* Success Green */
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Animation setup */
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Creates a nice 'bouncy' spring effect */
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 768px) {

    /* 1. Resize and wrap the brand name cleanly */
    .logo-text {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2;
        max-width: 160px; /* Prevents it from stretching into the hamburger menu */
    }

    /* 2. FORCE the desktop links to hide */
    #nav-links {
        display: none !important; /* The !important tag nukes any conflicts */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand-blue);
        text-align: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    }

    /* 3. Show them ONLY when the hamburger is clicked */
    #nav-links.active {
        display: flex !important;
    }

    /* 4. Ensure the hamburger icon is visible */
    .hamburger {
        display: block;
    }

    /* 3. Space out the links so they are easy to tap with a finger */
    .nav-links a {
        display: block;
        padding: 15px 0;
        /* The text stays white, but is now readable against the blue background */
        color: var(--text-light);
    }

    /* 4. Ensure the hamburger menu is visible on mobile */
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* 5. Style the 3 little lines of the hamburger */
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-light);
        /* Makes the hamburger lines white */
        transition: all 0.3s ease;
    }
    /* Shrink the awards so they fit side-by-side on phones */
    .trust-badges img {
        height: auto;
        max-width: 140px; 
    }
    /* Center the bottom footer bar on phones */
    .bottom-bar-flex {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    .cal-day {
        min-height: 60px; /* Makes the boxes shorter so the calendar fits on screen */
    }
    
    .calendar-header-grid {
        font-size: 0.8rem; /* Shrinks the Mon, Tue, Wed text slightly */
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .bottom-info-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr; /* Forces them back to stacked (1 column) on mobile phones */
    }
    .trust-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .layout-grid {
        grid-template-columns: 1fr;
        /* On mobile, stack text and image into 1 column */
    }
}

/* =========================================
   14. CUSTOM MODALS
   ========================================= */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.85); /* Dark charcoal overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* Animation defaults */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background-color: var(--text-light);
    border-top: 6px solid var(--brand-blue);
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    
    /* Slide up animation */
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0);
}

.custom-modal-title {
    color: var(--brand-blue);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.custom-modal-text {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.custom-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-modal-buttons .btn-danger {
    background-color: #d32f2f;
    color: white;
    border: none;
}

.custom-modal-buttons .btn-danger:hover {
    background-color: #b71c1c;
}