/* Global Styles */
:root {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-black: #ffffff;
    /* Swapped for dark mode */
    --color-white: #000000;
    /* Swapped for dark mode */
    --color-grey-light: #333333;
    /* Darker grey for borders/backgrounds */
    --color-grey-medium: #888888;
    --color-grey-dark: #cccccc;
    /* Lighter grey for text */
    --spacing-container: 1200px;
    --spacing-padding: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: var(--color-black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    display: block;
    filter: grayscale(100%);
    /* Black and white filter */
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-padding);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 2px solid var(--color-black);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    opacity: 1;
}

.section-padding {
    padding: 5rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* Dark background */
    border-bottom: 1px solid var(--color-grey-light);
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    line-height: 0;
    /* Remove extra space below image */
}

.logo img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-desktop .btn-book {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-white);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-black);
    border-left: 1px solid var(--color-grey-light);
    padding: 2rem;
    padding-top: 4rem;
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

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

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-grey-light);
}

.mobile-menu .btn {
    margin-top: 1rem;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    /* Header height */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--color-grey-dark);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-details {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    color: var(--color-grey-dark);
    border-top: 1px solid var(--color-grey-light);
    padding-top: 1.5rem;
}

.hero-image {
    height: 100%;
    min-height: 600px;
    background-color: var(--color-grey-light);
    background-size: cover;
    background-position: center;
}

/* Why Blessed */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Team Preview */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    background-color: var(--color-grey-light);
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.role {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-grey-medium);
    margin-bottom: 0.5rem;
    display: block;
}

.team-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-grey-dark);
    margin-bottom: 1rem;
    display: block;
}

.team-link {
    font-size: 0.8rem;
    text-decoration: underline;
    font-weight: 600;
}

/* Services Snapshot */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-top: 1px solid var(--color-grey-light);
    border-bottom: 1px solid var(--color-grey-light);
    padding: 3rem 0;
}

.service-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-item {
    margin-bottom: 1rem;
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    padding: 2rem;
    border: 1px solid var(--color-grey-light);
    font-style: italic;
}

/* Footer */
footer {
    background-color: #111111;
    color: var(--color-black);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-grey-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.footer-col p,
.footer-col li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 1.5rem;
}

/* Pages Specifics */

/* About Page */
.about-story {
    text-align: left;
}

.about-story p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-full-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-member-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.team-member-row img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Pricing Page */
.staff-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.staff-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.staff-btn.active {
    background-color: var(--color-black);
    color: var(--color-white);
}

.pricing-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.pricing-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.price-table tr {
    border-bottom: 1px solid var(--color-grey-light);
}

.price-table td {
    padding: 1.5rem 0;
    vertical-align: top;
}

.price-service {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    width: 30%;
}

.price-desc {
    width: 40%;
    color: var(--color-grey-dark);
}

.price-duration {
    width: 15%;
    color: var(--color-grey-medium);
}

.price-cost {
    width: 15%;
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Gallery Page */
.gallery-filters {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.filter-btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.filter-btn.active {
    background-color: var(--color-black);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    background-color: var(--color-grey-light);
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-grey-light);
    font-family: var(--font-body);
    background: transparent;
    color: #ffffff !important;
    border-radius: 0;
    -webkit-text-fill-color: #ffffff;
}

.contact-form select option {
    background-color: #111111;
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-grey-dark);
}

/* Autofill styling overrides */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form select:-webkit-autofill,
.contact-form select:-webkit-autofill:hover,
.contact-form select:-webkit-autofill:focus,
.contact-form select:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #000000 !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Booking Page */
.booking-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem;
    border: 1px solid var(--color-grey-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: #ffffff !important;
        z-index: 1001;
    }

    .mobile-toggle span {
        color: #ffffff !important;
        font-size: 1.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        min-height: 300px;
        order: 1;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .why-grid,
    .services-grid,
    .reviews-grid,
    .footer-grid,
    .contact-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .price-table tr {
        padding: 1rem 0;
        display: block;
    }

    .price-cost {
        text-align: left;
    }

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

    .review-card-grid {
        grid-template-columns: 1fr;
    }

    .review-card-item {
        width: 300px;
        min-width: 300px;
    }

    .gallery-filters {
        flex-wrap: wrap;
    }
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.amenities-grid>div {
    text-align: center;
}

.amenities-grid i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Review Cards */
.reviews-section {
    margin-top: 4rem;
}

.review-scroll-container {
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
}

.review-scroll-track {
    display: flex;
    gap: 1.5rem;
    animation: reviewScroll 100s linear infinite;
    width: max-content;
}

.review-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes reviewScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.review-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card-item {
    background-color: #111111;
    padding: 1.5rem;
    /* Reduced padding */
    border: 1px solid var(--color-grey-light);
    min-width: 350px;
    width: 350px;
    height: auto;
    /* Allow height to fit content */
    min-height: 220px;
    /* Minimum height for consistency */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    margin-bottom: 0.75rem;
    /* Reduced margin */
    color: #ffffff;
}

.review-stars i {
    margin-right: 0.25rem;
    font-size: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    line-height: 1.4;
    /* Tighter line height */
    flex-grow: 1;
    /* Allow text to take available space */
}

.review-meta {
    font-size: 0.85rem;
    color: var(--color-grey-dark);
}

.review-service {
    display: block;
    margin-bottom: 0.25rem;
}

.review-client {
    font-weight: 600;
    color: var(--color-black);
}

/* Icon Spacing */
.fas,
.fab {
    margin-right: 0.5rem;
}

/* Booksy Popup Overrides */
/* Hide the widget root container (powered by section) */
#booksy-widget-root {
    position: fixed !important;
    bottom: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* But allow the popup/modal to display when triggered */
#booksy-widget-root [class*="modal"],
#booksy-widget-root [class*="popup"],
#booksy-widget-root [class*="overlay"],
#booksy-widget-root iframe {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
    overflow-x: hidden !important;
}

/* Hide the floating button */
.booksy-widget-button {
    display: none !important;
    visibility: hidden !important;
}

body {
    overflow-y: auto !important;
}

/* Prevent horizontal scroll when Booksy popup is open */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fixes for Mobile Layout */
@media (max-width: 768px) {

    /* Hero Spacing */
    .hero {
        align-items: flex-start;
        padding-top: 140px;
    }

    /* Review Card Width Fix for scrolling */
    .review-card-item {
        width: 300px;
        min-width: 300px;
    }

    /* Hero Details Stacking */
    .hero-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}