/* ------------------ CSS VARIABLES ------------------ */
:root {
    --primary: #9d9093; /* about me section */
    --secondary: #f7f3ed; /* Brighter warm gold caption */
    --light: #ffffff; /* Pure white for better contrast */
    --dark: #717F76; /* Hero section background */
    --focus: #f0d78e; /* Brighter gold for focus states */
    --accent: #717F76; /* κουμπί κλείσε ραντεβού και αποστολή */
    --text-light: #f9f9f9; /* Light text color */
    --success: #27ae60; /* 1st page */
    --error: #e74c3c; /* Red for error messages */
}

/* ------------------ GLOBAL STYLES ------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Noto Sans Greek', sans-serif;
    background: var(--primary);
    color: var(--light);
    line-height: 1.8;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { 
    font-family: 'Noto Serif Display', serif; 
    color: var(--secondary); 
    line-height: 1.3;
    font-weight: 700;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin: 0 0 1.2rem;
    letter-spacing: -0.02em;
}

h2 { 
    font-size: clamp(1.75rem, 3.6vw, 2.6rem); 
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.8rem; 
}

p { 
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a { 
    color: var(--focus); 
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible { 
    outline: 3px dashed var(--secondary); 
    outline-offset: 3px; 
}

img { 
    width: 100%; 
    display: block; 
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ------------------ NAVIGATION ------------------ */

header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Add shadow effect when scrolling */
header.scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.navbar {
    max-width: 1250px; margin: 0 auto;
    padding: 0.6rem 1.2rem; /* Reduced vertical and horizontal padding to shrink header area */
    display: flex; justify-content: space-between; align-items: center;
}
.logo { 
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--light);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 60px; /* Make square so border-radius can form a circle */
    height: 60px; /* Enlarged logo */
    border-radius: 50%; /* Make the logo round */
    object-fit: cover; /* Crop/scale to fill the circle */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    display: inline-block;
}

@media (max-width: 576px) {
    .logo-text {
        display: none; /* Hide text on very small screens */
    }
    
    .logo-img {
    width: 150px; /* Bigger logo on small mobile screens */
    height: 150px; /* Bigger logo on small mobile screens */
        border-radius: 50%;
        object-fit: cover;
    }
}

.desktop-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.desktop-nav a { color: var(--light); font-weight: 600; transition: color 0.3s ease; }
.desktop-nav a:hover, .desktop-nav a:focus { color: var(--secondary); }

/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown via media query */
    /* Styled, larger toggle button for mobile — keeps a professional, calming look */
    background: var(--secondary);
    border: none;
    color: var(--dark);
    width: 56px; /* larger tap target */
    height: 56px;
    font-size: 1.4rem; /* hamburger glyph size */
    cursor: pointer;
    padding: 0; /* center content via flex */
    line-height: 1;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* soft, professional rounding */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    /* smoother, gentle easing for a professional feel */
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background 220ms ease;
    z-index: 1002; /* Ensure it's above the panel when closed, but clickable */
}

.mobile-nav-toggle:hover {
    /* preserve vertical centering from media query and only scale to avoid jump */
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

.mobile-nav-toggle:focus-visible {
    outline: 3px solid rgba(240,215,142,0.6);
    outline-offset: 3px;
}

/* enlarge the inner hamburger glyph so it's clear and professional */
.mobile-nav-toggle > span {
    display: inline-block;
    font-size: 1.9rem; /* larger glyph */
    line-height: 1; /* avoid extra height changes */
}

.mobile-nav-panel {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    position: fixed;
    top: 0;
    right: 0;
    width: 85%; /* Slightly wider */
    max-width: 320px; /* Max width */
    height: 100%;
    background: var(--dark); /* Consistent with header */
    z-index: 1001;
    padding: 1.5rem; /* Adjusted padding */
    box-shadow: -8px 0 25px rgba(0,0,0,0.3); /* More pronounced shadow */
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
}

.mobile-nav-panel.open {
    /* display: block; */ /* Not needed if using flex and transform */
    transform: translateX(0);
}

.mobile-nav-panel .panel-header { /* New class for header within panel */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(249, 249, 249, 0.1);
    margin-bottom: 1rem;
}

.mobile-nav-panel .panel-title { /* New class for title */
    font-family: 'Noto Serif Display', serif;
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 0;
}

.mobile-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Removed top margin, handled by panel-header */
    flex-grow: 1; /* Allow ul to take remaining space */
}

.mobile-nav-panel li a {
    display: block;
    padding: 0.9rem 0.5rem; /* Adjusted padding */
    color: var(--light);
    font-size: 1.15rem; /* Slightly adjusted font size */
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 249, 249, 0.05); /* Softer border */
    transition: color 0.2s ease, background-color 0.2s ease; /* Added background transition */
    border-radius: 4px; /* Subtle rounding */
    margin-bottom: 0.25rem; /* Space between items */
}

.mobile-nav-panel li a:hover,
.mobile-nav-panel li a:focus {
    color: var(--dark); /* Dark text on hover */
    background-color: var(--secondary); /* Gold background on hover */
}

.mobile-nav-panel li:last-child a {
    border-bottom: none; /* Remove border from last item */
}

.mobile-nav-close {
    /* position: absolute; */ /* No longer absolute, part of panel-header */
    /* top: 1.5rem; */
    /* right: 1.5rem; */
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem; /* Larger close icon */
    cursor: pointer;
    padding: 0.25rem; /* Minimal padding */
    line-height: 1;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus {
    color: var(--secondary);
}

.body.no-scroll { /* Optional: to prevent body scroll when panel is open */
    overflow: hidden;
}

/* Media Query for Mobile Navigation */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }

    /* Slightly reduce the header area on mobile while keeping logo intact */
    header {
        padding: 0.6rem 0; /* reduce vertical space */
        min-height: 60px; /* slightly smaller header height on mobile */
    }

    /* Center the logo in mobile layout while keeping the hamburger usable */
    .navbar {
        justify-content: center; /* center the .logo */
        position: relative; /* allow absolute positioning of the toggle */
        padding: 0.8rem 0.8rem; /* tighter internal spacing for mobile */
    }

    /* Make the logo larger on phones/tablets for better presence */
    .logo-img {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-nav-toggle {
    position: absolute;
    right: 1rem; /* keep toggle on the right edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002; /* ensure it's above header content */
        /* Slightly increase visual scale on smaller devices */
        width: 56px;
        height: 56px;
        font-size: 1.45rem;
    }
    /* Pull hero content up on mobile so the H1 starts higher on the page */
    .hero {
        padding-top: 0; /* remove extra top padding so headline moves up */
        min-height: 78vh; /* slightly reduce to compensate visually */
        display: grid; /* ensure centering still works */
        place-items: start center; /* align content to top-center */
    }
    /* Nudge the inner hero content upward so the H1 starts much closer to the top on mobile */
    .hero > div {
        transform: translateY(-50px); /* stronger upward nudge */
    }
    /* .navbar ul { */ /* This was a previous rule, might conflict or be redundant */
        /* flex-direction: column; */ /* Remove if using panel */
        /* align-items: center; */ /* Remove if using panel */
    /* } */
}

/* ------------------ BUTTONS ------------------ */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: var(--focus);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Primary CTA button - more attention-grabbing */
.btn-primary {
    background: var(--accent); /* Orange accent color */
    color: var(--light);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.25);
}

.btn-primary:hover {
    background: #d35400; /* Darker orange */
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.35);
}

/* Secondary CTA button - more subtle */
.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(230, 200, 122, 0.15);
}

.btn-secondary:hover {
    background: rgba(240, 215, 142, 0.15);
    color: var(--light);
    border-color: var(--focus);
    box-shadow: 0 6px 18px rgba(240, 215, 142, 0.25);
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 1.1em;
}

/* ------------------ SECTIONS ------------------ */
section { padding: 4rem 1.2rem; }

#services,
#gallery,
#testimonials {
    background: var(--dark);
}

.container { max-width: 1200px; margin: 0 auto; }

/* ------------------ HERO ------------------ απολαύστε*/
.hero {
    min-height: 92vh; 
    display: grid; 
    place-items: center; 
    text-align: center; 
    padding: 2rem;
    position: relative; /* Add relative positioning to create a stacking context */
    z-index: 1; /* Ensure it's in the base stacking layer */
    isolation: isolate; /* Prevent children from creating a single compositing layer with the background */
    /* Use taupe overlay (#9d9093) instead of green */
    background: linear-gradient(rgba(157,144,147,0.85), rgba(157,144,147,0.85)), 
                url('https://images.unsplash.com/photo-1589274933413-adf30c64a4ef?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
}
.hero p { font-size: clamp(1rem, 2.3vw, 1.3rem); max-width: 680px; margin: 0 auto 2rem; }

/* ------------------ ABOUT ------------------ */
.about-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); align-items: center; }

/* Mobile: make portrait a bit larger and align nicely with text */
@media (max-width: 767px) {
    /* Use two balanced columns on most phones so image sits beside text */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: center; /* vertically center text and image */
    }

    .about-grid img.parallax {
        /* Allow the portrait to be larger but keep it contained */
        width: 100%;
        max-width: 220px; /* a bit bigger on mobile */
        height: auto;
        justify-self: center;
        margin: 0; /* remove extra spacing */
        border-radius: 12px;
        transform: none; /* avoid unexpected parallax transform during layout */
    }

    /* Ensure text block aligns vertically and doesn't shift under the image */
    .about-grid .slide-in-left,
    .about-grid .slide-in-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Very small phones: slightly reduce portrait max-width so layout doesn't break */
@media (max-width: 360px) {
    .about-grid img.parallax { max-width: 160px; }
    .about-grid { grid-template-columns: 1fr; gap: 1rem; }
    .about-grid .slide-in-left, .about-grid .slide-in-right { align-items: center; text-align: center; }
}

/* Desktop: make portrait slightly smaller so it doesn't dominate the about area */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Equal columns for balance */
        align-items: center;
        gap: 3rem; /* Increased gap */
        max-width: 1100px; /* Widen the container */
        margin: 0 auto;
        justify-items: center; /* Center items in their grid cells */
    }

    .about-grid .slide-in-left {
        max-width: 500px; /* Constrain text width */
    }

    .about-grid img.parallax {
        width: auto; /* override global img width:100% */
        max-width: 280px; /* Slightly larger image */
        height: auto;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transition: transform 0.3s ease;
    }
}

/* ------------------ SERVICES ------------------ */
      .services-grid { 
    display: grid; 
    gap: 2rem; /* Increased gap for better separation */
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* Adjusted minmax for content */
}
.service-card {  
    /* Service card base color (taupe) with subtle gold sheen; page background remains #717F76 */
    background-color: #9d9093; /* taupe */
    background-image: linear-gradient(180deg, rgba(219,200,147,0.06), rgba(219,200,147,0.02));
    background-blend-mode: overlay;
    padding: 2rem 1.5rem; 
    border-radius: 15px; 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(219, 200, 147, 0.25); /* Slightly more visible gold border */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes space, helps align price at bottom */
    min-height: 260px; /* Ensures cards have a consistent minimum height */
}
.service-card:hover { 
    transform: translateY(-8px); /* Enhanced hover effect */
    box-shadow: 0 8px 25px rgba(219, 200, 147, 0.25); /* Softer, more prominent gold shadow */
}
.service-card h3 {
    color: var(--secondary);
    font-size: 1.6rem; /* Slightly larger title */
    margin-top: 0;
    margin-bottom: 0.75rem; 
}
.service-card .service-duration,
.service-card .service-description {
    color: var(--light);
    font-size: 1rem; /* Standardized font size for details */
    line-height: 1.6;
    margin-bottom: 1rem; /* Space below description/duration */
    flex-grow: 1; /* Allows this section to take available space */
}
.service-card .service-price-tag {
    font-size: 2.2rem; /* Significantly larger price */
    font-weight: 700;
    color: var(--focus); /* Brighter gold for price, using --focus */
    margin-top: auto; /* Pushes price to the bottom of the card */
    padding-top: 1rem; /* Space above the price */
    border-top: 1px dashed rgba(219, 200, 147, 0.4); /* Decorative separator line */
}

/* ------------------ HOURS TABLE ------------------ */
table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
table th, table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #2a8f83; }

/* ------------------ TESTIMONIALS ------------------ */
.testimonial { 
    background: var(--dark); 
    padding: 2rem 2rem 3rem; 
    border-radius: 20px; 
    position: relative;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(230, 200, 122, 0.1);
}

.testimonial:before { 
    content:"\201C"; 
    font-family: serif; 
    position: absolute; 
    top: -20px; 
    left: 20px; 
    font-size: 4rem; 
    color: var(--secondary); 
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
    overflow: visible; /* allow nav arrows positioned outside to remain visible */
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0.5rem;
    display: none;
}

.testimonial-slide.active {
    opacity: 1;
    display: block;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.testimonial-arrow:hover {
    background: var(--focus);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow.prev {
    left: -20px;
}

.testimonial-arrow.next {
    right: -20px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(230, 200, 122, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Responsive adjustments for testimonial carousel */
@media (max-width: 767px) {
    .testimonial-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .testimonial-arrow.prev {
        left: -10px;
    }
    
    .testimonial-arrow.next {
        right: -10px;
    }
}

/* ------------------ GALLERY ------------------ */
.gallery-grid { 
    display: grid; 
    gap: 1.5rem; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: var(--light);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--light);
}

.gallery-info p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-btn {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-btn:hover {
    background: var(--focus);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 90vw; /* Use viewport width for max-width */
    max-height: 85vh; /* Use viewport height for max-height */
    width: auto; /* Let the browser determine width based on height */
    height: auto; /* Let the browser determine height based on width */
    object-fit: contain; /* Ensure the entire image is visible without cropping */
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

/* ------------------ CONTACT FORM ------------------ */
form { display: grid; gap: 1rem; max-width: 650px; margin: 0 auto; }
/* Form fields: use a tint slightly lighter than --dark (#717F76) so they're not dark green */
input, textarea { width: 100%; padding: 0.9rem 1rem; border-radius: 10px; border: none; background: #85938A; color: var(--light); }
textarea { resize: vertical; min-height: 160px; }
/* Form labels and placeholders: make labels white and bold, placeholders strongly readable */
form label,
.contact-form label,
.contact-us label {
    color: var(--light); /* white */
    font-weight: 700; /* bold */
}

/* Placeholder styling — white and strong for legibility on tinted inputs */
input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    opacity: 0.95;
}

/* ------------------ ACCESSIBILITY BADGE ------------------ */
.accessible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem; /* Increased gap for better spacing */
    background: rgba(28, 53, 38, 0.7); /* Slightly transparent background */
    padding: 0.6rem 1.2rem; /* Increased padding for a more substantial look */
    border-radius: 50px; /* Pill shape for a modern feel */
    font-size: 0.95rem; /* Slightly larger font */
    font-weight: 500; /* Medium weight for clarity */
    color: var(--light); /* Ensure text is light */
    border: 1px solid rgba(240, 215, 142, 0.3); /* Subtle gold border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Soft shadow for depth */
    transition: all 0.3s ease;
}

.accessible-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: rgba(28, 53, 38, 0.9);
}

.accessible-badge svg {
    width: 22px; /* Slightly larger icon */
    height: 22px;
    fill: var(--secondary);
}

/* Responsive adjustments for the badge */
@media (max-width: 768px) {
    .accessible-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    .accessible-badge svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .about-grid .slide-in-left {
        /* On small screens, allow the badge to wrap if needed */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items including the badge */
        text-align: center;
    }
    .accessible-badge {
        /* Ensure it doesn't stretch too wide */
        max-width: 90%;
        justify-content: center;
    }
}

/* ------------------ FOOTER ------------------ */
footer { background: #717F76; text-align: center; padding: 2rem 1rem; color: var(--light); font-size: 0.95rem; }

/* ------------------ BACK TO TOP ------------------ */
#topBtn { display:none; position:fixed; /* use safe-area inset so controls stay above mobile UI */
    bottom: calc(30px + constant(safe-area-inset-bottom));
    bottom: calc(30px + env(safe-area-inset-bottom));
    right: 30px; background:var(--secondary); color:var(--dark); padding:0.75rem 1.05rem; border:none; border-radius:50px; cursor:pointer; font-size:1rem; box-shadow:0 4px 10px rgba(0,0,0,0.35); transition:transform 0.3s ease; }
#topBtn:hover { transform:translateY(-4px); }

/* ------------------ DISCOVER REFLEXOLOGY (NEW STYLES) ------------------ */
#discover-reflexology {
    background: #9d9093; /* ensured taupe color as requested (replaces var(--dark) which showed green) */
    padding: 5rem 1.2rem;
}

.discover-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.discover-header #discover-heading { /* More specific selector */
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.discover-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--light);
    max-width: 750px;
    margin: 0 auto 2rem;
}

.discover-main-content {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
}
.discover-image-wrapper {
    max-width: 500px; /* Reduced max-width for a smaller image */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive chart image styling */
.reflexology-chart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Remove border-radius since wrapper handles it */
    box-shadow: none; /* Remove shadow since wrapper handles it */
    transition: transform 0.3s ease;
}

.discover-image-wrapper:hover .reflexology-chart {
    transform: scale(1.02);
}

/* Mobile adjustments for chart */
@media (max-width: 767px) {
    .discover-image-wrapper {
        max-width: 100%;
        margin: 15px auto;
    }
    .reflexology-chart {
        border-radius: 0;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .discover-image-wrapper {
        max-width: 450px;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .discover-image-wrapper {
        max-width: 500px;
    }
}

.discover-text h3 {
    color: var(--secondary);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 1rem;
}
.discover-text p {
    margin-bottom: 1rem;
}
.discover-text p:last-child {
    margin-bottom: 0;
}

.reflexology-benefits-section .benefits-title { /* New class for this h3 */
    text-align: center;
    color: var(--secondary);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 2.5rem;
}

.discover-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}
.discover-cta-btn { /* New class for this button */
    background-color: var(--focus);
    color: var(--primary);
}

@media (min-width: 768px) {
    #discover-reflexology .discover-main-content {
        grid-template-columns: 1fr 1.2fr; /* Image | Text */
        gap: 3.5rem;
        align-items: center; /* Vertically align items if they have different heights */
    }
     #discover-reflexology .discover-main-content.image-right {
        grid-template-columns: 1.2fr 1fr; /* Text | Image */
    }
    #discover-reflexology .discover-main-content.image-right .discover-image-wrapper {
        order: 1; /* Moves image to the right in a CSS grid */
    }
}

.benefits-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; /* Increased gap */
}

.benefit-card-new {
    /* Benefit cards match services color and keep a subtle gold sheen */
    background-color: #717F76; /* match requested services/benefits box color */
    background-image: linear-gradient(180deg, rgba(219,200,147,0.06), rgba(219,200,147,0.02));
    background-blend-mode: overlay;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(219, 200, 147, 0.2); /* Subtle gold border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure SVG icons inside benefit cards are consistent size and color */
.benefit-icon-new svg {
    width: 44px; /* preserves approximate size of previous emoji */
    height: 44px;
    color: var(--secondary);
    flex: 0 0 44px;
}
.benefit-icon-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; /* space around icon */
    height: 64px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

/* Bullet lists inside benefit cards */
.benefit-list {
    list-style: none;
    padding-left: 0;
    margin: 0.6rem 0 0 0;
    color: var(--light);
    line-height: 1.6;
}
.benefit-list li::before {
    content: "•";
    color: var(--focus);
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
    font-weight: 700;
}

.benefits-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

.benefit-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(219, 200, 147, 0.15);
}

.benefit-icon-new {
    font-size: 2.5rem; /* Larger icons */
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1;
}

.benefit-card-new h4 {
    color: var(--secondary);
    font-size: 1.3rem; /* Slightly adjusted size */
    margin-bottom: 0.75rem;
    font-family: 'Noto Serif Display', serif;
}

.benefit-card-new p {
    color: var(--light);
    font-size: 0.95rem; /* Slightly smaller for card content */
    line-height: 1.6;
    flex-grow: 1; /* Helps align content if cards have varying text length */
}

/* ------------------- ANIMATIONS AND EFFECTS ------------------- */

/* Fade-in animation */
.fade-in { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Slide-in animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Rotate animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Parallax effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Chat Interface */
.chat-icon {
    position: fixed;
    /* anchor above mobile UI using safe-area inset */
    bottom: calc(30px + constant(safe-area-inset-bottom));
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.chat-icon .notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--error);
    color: var(--light);
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.chat-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-container.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--primary);
    color: var(--light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.chat-logo {
    width: 40px; /* Reverted to original compact avatar */
    height: 40px;
    border-radius: 50%; /* Circular avatar */
    object-fit: cover;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.chat-close:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f5f5f5;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: messageAppear 0.3s forwards;
}

.message.bot {
    background: var(--primary);
    color: var(--light);
    border-top-left-radius: 5px;
    align-self: flex-start;
}

.message.user {
    background: var(--secondary);
    color: var(--dark);
    border-top-right-radius: 5px;
    align-self: flex-end;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-options {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.chat-option {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-option:hover {
    background: var(--primary);
    color: var(--light);
}

.chat-input-container {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: var(--light);
}

#chatInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
    background: #f5f5f5;
    color: #333;
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
}

#chatSend {
    background: var(--primary);
    color: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#chatSend:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Typing indicator animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--primary);
    color: var(--light);
    border-radius: 15px;
    border-top-left-radius: 5px;
    max-width: fit-content;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Visually hidden labels for accessibility */
.visually-hidden { 
    position: absolute !important; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0 0 0 0); 
    white-space: nowrap; 
    border: 0; 
}

/* ------------------- RESPONSIVE DESIGN & MOBILE OPTIMIZATION ------------------- */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .slide-in-left, .slide-in-right, .scale-in, .rotate-in, .parallax {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}

/* Small phones (360px) */
@media (max-width: 360px) {
    h1 { 
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.6rem;
    }
    
    .gallery-info h3 {
        font-size: 1.1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
    }
    
    .gallery-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .chat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: calc(50px + constant(safe-area-inset-bottom));
    bottom: calc(50px + env(safe-area-inset-bottom));
    left: 18px; /* a bit more to the left */
    }
    
    #topBtn {
        bottom: 20px;
        right: 20px;
        padding: 0.6rem 0.9rem;
    }
    
    /* Ensure gallery zoom works well on small screens */
    .gallery-item:hover .gallery-image {
        transform: scale(1.12); /* Slightly reduced scale for small screens */
    }
}

/* Medium phones (375px) */
@media (min-width: 361px) and (max-width: 375px) {
    h1 { 
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* Larger phones (414px) */
@media (min-width: 376px) and (max-width: 414px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
}

/* General mobile optimizations */
@media (max-width: 767px) {
    /* Increase touch targets */
    .btn, button, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimize form elements */
    input, textarea, select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px 16px;
    }
    
    /* Adjust spacing */
    section {
        padding: 3rem 1rem;
    }
    
    /* Ensure no horizontal scrolling */
    .container {
        width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Adjust gallery for mobile */
    .gallery-grid {
        gap: 1rem;
    }
    
    /* Ensure chat icon doesn't overlap with content */
    .chat-icon {
    bottom: calc(50px + constant(safe-area-inset-bottom));
    bottom: calc(50px + env(safe-area-inset-bottom));
    left: 18px; /* shift a bit to the left for mobile */
    }
    
    /* Ensure lightbox controls are easily tappable */
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.8rem;
        padding: 10px;
    }
}

/* Form status messages */
#formStatusMessage {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
}

.status-success {
    background-color: rgba(39, 174, 96, 0.15); /* Light green using success variable */
    color: var(--success); /* Success green */
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
}

.status-error {
    background-color: rgba(231, 76, 60, 0.15); /* Light red using error variable */
    color: var(--error); /* Error red */
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.1);
}

/* ------------------ GIFT CARD SECTION ------------------ */
#gift-card {
    padding: 4rem 0;
    background-color: var(--primary);
    text-align: center;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--light);
    font-size: 1.1rem;
}

.gift-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    perspective: 1000px; /* Enable 3D perspective */
}

.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 500px; /* Adjust based on your image aspect ratio */
    aspect-ratio: 1.586; /* Standard credit card ratio, adjust if needed */
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth "wow" transition */
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 15px;
}

/* The flip effect */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.gift-card-cta {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-card-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Add a subtle hover effect to indicate interactivity */
.flip-card:hover .flip-card-inner {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: scale(1.02) rotateY(0deg); /* Slight scale up */
}

.flip-card.flipped:hover .flip-card-inner {
    transform: scale(1.02) rotateY(180deg); /* Maintain rotation on hover if flipped */
}
