/* styles.css (Shared CSS) */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f5f2;
    overflow-x: hidden;
}
h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}
a {
    text-decoration: none;
    color: #5a1300;
    transition: color 0.3s ease;
}
a:hover {
    color: #a8caba;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
button {
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo {
    font-size: 1.8rem;
    font-family: "Playfair Display", serif;
    color: #5a1300;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.nav-links li a:hover {
    color: #a8caba;
    border-bottom: 2px solid #5a1300;
    padding-bottom: 0.5rem;
}
.days {
    text-align: left;
}
.hours {
    text-align: right;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    border: none; /* Remove default border */
    background: none; /* Transparent background */
    padding: 0; /* No extra padding */
    outline: none; /* Remove default outline (we'll style focus separately) */
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #e8b4b8;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
/* Active state for hamburger (optional animation to 'X') */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* Custom focus state for accessibility */
.hamburger:focus-visible {
    outline: 2px solid #e8b4b8; /* Visible ring on focus (keyboard users) */
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("https://via.placeholder.com/1920x600?text=Spa+Interior") center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.cta {
    background-color: #5a1300;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}
.cta:hover {
    background-color: #d7b7a5;
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    background: linear-gradient(to right, #f8e1f4, #e6f2ff);
    text-align: center;
    padding: 6rem 2rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #5a3e69;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #b48eae;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #a07b9a;
}

.signature {
    font-style: italic;
}

/* Sections General */
section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333333;
}

/* Services Grid */
.services {
    background-color: #f8f5f2;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5a1300;
}
.service-card-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits text color */
}
.service-card-link:hover .service-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hover effect */
}

/* About */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 0;
}
.about-text {
    max-width: 600px;
    margin-bottom: 2rem;
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.about-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Privacy Policy */
.privacy-policy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 5rem 0;
}
.privacy-policy-text {
    max-width: 600px;
    margin-bottom: 2rem;
}
.privacy-policy-text p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.privacy-policy-links {
    list-style: none;
    gap: 2rem;
    margin-bottom: 1.2rem;
}
.privacy-policy-links li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.privacy-policy-links li a:hover {
    color: #5a1300;
    border-bottom: 1px solid #5a1300;
}
.privacy-policy li {
    font-size: 0.8rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    background-color: #ededed;
}
.testimonial {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-style: italic;
    color: #666;
}
.testimonial-author {
    font-weight: 600;
    color: #5a1300;
    margin-top: 0.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact */
/*.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
} */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #a8caba;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form button {
    background-color: #5a1300;
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background-color: #a8caba;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info h3 {
    color: #5a1300;
}

/* Gift Ideas Grid (for gifts.html) */
.gifts {
    background-color: #f8f5f2;
}
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.gift-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.gift-card:hover {
    transform: translateY(-5px);
}
.gift-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.gift-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5a1300;
}
.gift-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Voucher Form (for gifts.html) */
.voucher-section {
    background-color: #ededed;
}
.voucher-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.voucher-form input,
.voucher-form textarea {
    padding: 1rem;
    border: 1px solid #a8caba;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.voucher-form button {
    background-color: #5a1300;
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
}
.voucher-form button:hover {
    background-color: #a8caba;
}
.voucher-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #ededed;
    padding: 2rem 0;
    text-align: center;
    color: #666;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about,
    .contact {
        grid-template-columns: 1fr;
    }
    section {
        padding: 3rem 0;
    }
    .hero {
        height: 60vh;
    }
    .section-title {
        font-size: 2rem;
    }
}

#exciting {
    background: linear-gradient(to bottom, #ffe8d4, #f69d3c);
    border: 1px solid dimgrey;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 1px black;
}

/*PriceList*/
/* Basic reset for the list */
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px; /* Optional: Limit width for demo */
}

/* Each item is a flex container */
.item {
    display: flex;
    justify-content: space-between; /* Left-align description, right-align price */
    align-items: baseline; /* Align text baselines for better visual */
    padding: 10px 0; /* Some vertical spacing */
    border-bottom: 0px solid #ddd; /* Optional: Separator line */
}

/* Description takes up available space */
.description {
    flex: 1; /* Grow to fill space, pushing price to the right */
}

/* Price styling */
.price {
    text-align: right; /* Ensure right alignment */
}

/* Media query for smaller screens (e.g., mobile) */
@media (max-width: 600px) {
    .item {
        flex-direction: column; /* Stack vertically */
        align-items: flex-start; /* Left-align both elements */
    }

    .price {
        text-align: left; /* Left-align price when stacked */
        margin-top: 5px; /* Optional: Add some space above price */
    }
}

/*Responsive Image Styling */

/* General responsive image rule */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Block */
.hero-block {
    position: relative;
    /*  height: 100vh;*/
    overflow: hidden;
    color: white;
}

/* Optional: style for hero/banner images */
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px; /* soften edges */
    object-fit: cover; /* crops nicely if inside a fixed-height container */
}

/* Optional: gallery images */
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.03);
}

/* Media queries for fine-tuning */
@media (min-width: 768px) {
    .hero-image {
        max-height: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-image {
        max-height: 600px;
    }
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    object-fit: cover;
    display: block;
}

/* Overlay text styling (from previous setup) */
.hero-text {
    position: relative;
    top: 10%;

    transform: translateY(-50%);
    text-align: center;
    color: white;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4); /* subtle overlay for readability */
    border-radius: 8px;
    animation: fadeSlideUp 1.2s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #b48eae;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 1.3s ease;
}

.cta-button:hover {
    background-color: #a07b9a;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 1.5rem;
    }
}

/* Keyframes for fade-in and slide-up */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animate the hero image */
.hero-image {
    animation: fadeSlideUp 1.2s ease-out forwards;
}

/* Animate the overlay text with a slight delay */
.hero-text {
    animation: fadeSlideUp 1.2s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0; /* ensures it starts hidden */
}

/* Keyframes for zoom-in */
@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Apply zoom to hero image */
.hero-image {
    animation:
        fadeSlideUp 1.2s ease-out forwards,
        zoomIn 8s ease-in-out forwards;
    animation-delay: 0s, 0.4s; /* fade starts immediately, zoom starts just after */
    transform-origin: center;
}

/* Keep the text fade/slide as before */
.hero-text {
    animation: fadeSlideUp 1.2s ease-out forwards;
    animation-delay: 0.6s; /* appears after image starts moving */
    opacity: 0;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hero-image {
    animation:
        fadeSlideUp 1.2s ease-out forwards,
        zoomInOut 12s ease-in-out infinite;
}

/* Scroll Indicator Container */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

/* The animated arrow/line */
.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
    opacity: 0.8;
}

/* Bounce animation */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(6px) rotate(45deg);
    }
    60% {
        transform: translateY(3px) rotate(45deg);
    }
}

/* Optional: make it more visible on small screens */
@media (max-width: 768px) {
    .scroll-indicator span {
        width: 20px;
        height: 20px;
    }
}

/* Hero container */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Parallax background wrapper */
.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* behind text */
}

/* Image styling with zoom + parallax */
.hero-image {
    width: 100%;
    height: 120%; /* slightly taller for smooth movement */
    object-fit: cover;
    transform: translateY(0);
    animation: zoomInOut 10s ease-in-out infinite;
    will-change: transform;
}

/* Scroll indicator stays the same */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
    opacity: 0.8;
}

/* Keyframes for fade/slide and zoom (from earlier) */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(6px) rotate(45deg);
    }
    60% {
        transform: translateY(3px) rotate(45deg);
    }
}

/* Carousel styling */

#testimonials {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

#testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #5a3e69;
}

.carousel {
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.testimonial {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #b48eae;
}

/* Testimonals from Grok */
#testimonials {
    text-align: center;
    padding: 20px;
}

.carousel {
    position: relative;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    flex: 0 0 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: left; /* Or center, as preferred */
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 94%;
    transform: translateY(-50%);
    background-color: white;
    color: 5a1300;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

