/* Base Styles */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --color-primary: #333333;
    --color-bg: #ffffff;
    --shadow-default: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.2);
    --border-radius: 4px;
    --max-width: 1400px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography Base */
body {
    font-family: var(--font-primary);
    font-style: italic;
    line-height: 1.6;
    background: var(--color-bg);
}

/* Common Text Styles */
.text-styles {
    font-family: var(--font-primary);
    font-style: italic;
}

/* Card Styles (shared between price and staff) */
.card-base {
    position: relative;
    aspect-ratio: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Grid Layouts */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 75%;
    margin: 0;
}

/* Typography adjustments */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
}

.hero-text {
    font-style: italic;
    font-weight: 300; /* Lighter weight for hero text */
    font-size: 2rem; /* Restricting font size command */
}

.price-card .service-name {
    font-style: italic;
    font-weight: 400;
}

.price-card .service-price {
    font-style: italic;
    font-weight: 600;
}

.staff-card .name {
    font-style: italic;
    font-weight: 500;
}

.book-now {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
}

.contact-info {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 400;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
}

.book-now {
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logo {
    max-height: 40px;
    margin-right: 2rem;
}

/* Hero Section with Slider */
.hero {
    margin-top: 60px;
    position: relative;
}

.hero-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 75vw; /* Adjusted to take up 75% of the browser width */
    text-align: center;
    text-transform: lowercase;
    z-index: 2;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Pricing Section */
.pricing-section {
    padding: 0;
    width: 100%;
}

.pricing-section h2 {
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    color: #333;
}

.price-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 4px;
    padding-bottom: 8px;
}

.price-card {
    position: relative;
    aspect-ratio: 1;
    background: white;
    padding: 1.2rem; /* Slightly reduced padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    padding: 4px;
    padding-bottom: 8px;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    z-index: 1;
}

.price-card .service-name {
    font-size: clamp(0.7rem, 2vw, 1rem); /* Dynamic font sizing */
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-align: center;
    width: 100%; /* Ensure full width for text wrapping */
    min-height: 2.4em; /* Maintain consistent height for 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card .service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.price-card .service-duration {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Staff Section */
.people-section {
    padding: 0;
    width: 100%;
}

.people-section h2 {
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    color: #333;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 75%;
    margin: 0;
    padding: 4px;
    padding-bottom: 8px;
}

.staff-card {
    position: relative;
    aspect-ratio: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 4px;
    padding-bottom: 8px;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    z-index: 1;
}

.staff-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    border-radius: var(--border-radius);
}

.staff-card .name {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-transform: lowercase;
    color: #333;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 1rem;
    border-radius: 2px;
    z-index: 2;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .price-table,
    .staff-grid {
        width: 85%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .price-table,
    .staff-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Location Section */
.location-section {
    padding: 0;
    position: sticky;
    top: 80px; /* Accounts for fixed header */
    height: fit-content;
}

.map-container {
    aspect-ratio: 1;
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.map-container iframe {
    border-radius: var(--border-radius);
}

.map-container small {
    position: absolute;
    bottom: -25px;
    left: 0;
}

.map-container small a {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 2rem;
    background: #f9f9f9;
    text-align: center;
}

.contact-info {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.9rem;
    color: #666;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        height: auto;
        min-height: 50vh;
    }
    
    .map-section {
        height: 100%;
    }
}

@media (max-width: 968px) {
    .top-nav {
        height: auto;
        padding: 1rem 0;
    }
    
    .top-nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .book-now {
        width: 100%;
    }
    
    .logo {
        height: 45px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-section {
        aspect-ratio: 1.5/1;
    }
    
    .map-container {
        position: relative;
        top: 0;
        height: 120px;
        width: 100%;
        min-height: unset;
        aspect-ratio: unset;
        margin: 1rem 0;
    }

    #map {
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 60vh;
    }
    
    .hero-text {
        display: none;
    }
}

/* Slider-specific styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Changed from 80vh to 60vh to match requirement */
    max-height: 60vh; /* Added to ensure it never exceeds 60% */
    overflow: hidden;
    margin-top: -60px; /* Compensates for fixed header */
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Overlay text styling to match mockup */
.hero-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    text-align: center;
    z-index: 20;
    width: 100%;
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* Mobile Responsiveness for Slider */
@media (max-width: 768px) {
    .slider-container {
        height: 60vh; /* Maintain 60% height on mobile */
    }
    
    .hero-text {
        display: none;
    }
}

/* Container for map and info sections */
.content-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 2rem;
    max-width: var(--max-width);
    min-height: 75vh;
    margin: 4rem auto;
    padding: 0 2rem;
    padding-bottom: 4rem;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .slider-container {
        margin-bottom: 1rem;
    }

    #map {
        margin-top: 0;
    }
}

/* Map Section */
.map-section {
    position: relative;
    height: 100%;
}

.map-container {
    position: sticky;
    top: 120px;
    width: 100%;
    height: calc(100vh - 180px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    gap: 0.5rem;
}

/* Parking info text */
.parking-info p {
    margin: 0;
    font-style: italic;
}

/* Hero Section with Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Changed from 80vh to 60vh to match requirement */
    max-height: 60vh; /* Added to ensure it never exceeds 60% */
    overflow: hidden;
    margin-top: -60px; /* Compensates for fixed header */
}

/* Hero Text Styling - adjusted positioning for new container height */
.hero-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    color: white;
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 700;
    font-size: calc(2rem + 1.5vw);
    text-align: center;
    text-transform: lowercase;
    z-index: 20;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        height: 60vh; /* Maintain 60% height on mobile */
    }
    
    .hero-text {
        display: none;
    }
}
/* Section headers - ensure left alignment */
.pricing-section,
.people-section,
.parking-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.custom-popup {
    font-family: var(--font-primary);
    font-style: italic;
    padding: 5px;
    text-align: center;
}

/* Customize popup container */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

/* Customize popup tip */
.leaflet-popup-tip {
    background: white;
}

/* Navigation container */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto; /* Changed from fixed height */
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.top-nav-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid; /* Changed from flex to grid */
    grid-template-columns: 35% 65%; /* Match content split */
    align-items: center;
    gap: 2rem;
}

/* Logo container */
.logo-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 100%;
    height: auto; /* Allow height to be determined by content */
    max-height: 150px;
    object-fit: contain;
}

/* Book Now button */
.book-now {
    width: 100%;
    height: 100%;
    min-height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-style: italic;
    font-size: calc(min(40px, 0.8 * 50px)); /* 80% of min-height */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Update mobile styles */
@media (max-width: 968px) {
    .top-nav-content {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo-container {
        width: 100%; /* Ensure container takes full width */
    }
    
    .logo {
        max-height: 45px;
    }
    
    .book-now {
        min-height: 45px;
        font-size: 1.5rem;
    }
}

/* Hours Section */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 4px;
    padding-bottom: 8px;
}

.hours-card {
    position: relative;
    aspect-ratio: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 4px;
    padding-bottom: 8px;
}

.hours-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    z-index: 1;
}

.hours-card .days {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--color-primary);
    text-transform: lowercase;
}

.hours-card .time {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Mobile adjustments */
@media (max-width: 968px) {
    .hours-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hours-card {
        padding: 1rem;
    }

    .hours-card .days {
        font-size: 1rem;
    }

    .hours-card .time {
        font-size: 0.9rem;
    }
}

/* Hours Section */
.hours-section {
    margin-bottom: 4rem;
}

/* Mobile adjustments */
@media (max-width: 968px) {
    .content-grid {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hours-section {
        margin-bottom: 2rem;
    }
}

/* Update section headers styling */
.pricing-section h2,
.people-section h2,
.hours-section h2 {
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    color: var(--color-primary);
    background-color: #f5f5f5;
    padding: 0.5rem 0;
    padding-left: 10px;
    position: relative;
    width: 100%;
}

/* Create the extending background effect */
.pricing-section h2::after,
.people-section h2::after,
.hours-section h2::after {
    content: "";
    position: absolute;
    top: 0;
    right: -100vw;
    bottom: 0;
    width: 100vw;
    background-color: #f5f5f5;
    z-index: -1;
}

/* Update section containers to handle overflow */
.pricing-section,
.people-section,
.hours-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding: 4px;
    padding-bottom: 8px;
}

/* Mobile adjustments */
@media (max-width: 968px) {
    .price-card .service-name {
        font-size: clamp(0.7rem, 3vw, 0.9rem); /* Slightly different scaling for mobile */
    }
}

/* Breadcrumb styles */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.breadcrumb-item {
    font-family: var(--font-primary);
    font-style: italic;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-text);
}


