:root {
    interpolate-size: allow-keywords;

    --sys-font:
      system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
      Arial, sans-serif;

    /* Typography Settings */
    --font-family: var(--sys-font);
    --font-base-size: 18px;
    --line-height: 1.6;

    --branding: #a25f6c;
    --bg-color: #f7e2e1;
    --text-color: #333333;
    --accent-color: #7d7065;
    --soft-bg:  #ecdfe2;;
}

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


html,
body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--soft-bg);
  color: var(--text-color);

  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

html {
  font-family: var(--sys-font);
  font-size: 100%;
  line-height: 1.6;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-base-size);
  line-height: var(--line-height);
}

ul,
ol {
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-color);
}

/* --- Header Styling --- */
header {
    display: flex;
    justify-content: center;
    padding: 15px;

    img{
        width: auto;
        height: 75px;
    }
}
/*header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 5px;
    font-weight: normal;
    color: var(--branding);
}
header h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 0;
}*/

/* --- Sticky Navigation Bar --- */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 20px;

    /* Frosted glass effect */
    background-color: rgba(247, 226, 225, 0.85); /* Uses your var(--bg-color) with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(162, 95, 108, 0.15); /* Subtle branding-colored border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-bar a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--sys-font);
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-bar a:hover {
    color: var(--branding);
}

/* --- Responsive Adjustments for Tablets and Phones --- */
@media (max-width: 600px) {
    header {
        padding: 15px;

        img{
            width: auto;
            height: 55px;
        }
    }


    .nav-bar {
        gap: 15px; /* Brings links closer together */
        padding: 12px 10px;
    }

    .nav-bar a {
        font-size: 0.8rem; /* Scales text down to prevent wrapping on small phones */
        letter-spacing: 1px;
    }
}


/* --- Hero Section Styling --- */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center center; /* Explicitly centers the image vertically and horizontally */
    padding-bottom: 8%;
}


/* Content on top of the image */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px; /* Reduced top/bottom padding to allow padding-bottom in parent to control the spacing */
    max-width: 700px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

.hero-content p {
    font-family: var(--sys-font);
    color: var(--bg-color);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: bold;
}



.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    box-sizing: border-box;
}
.service-category {
    text-align: center;
    margin-bottom: 40px;
}
.category-title {
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    display: inline-block;
    padding: 10px 30px;
    margin-bottom: 20px;
}
.service-item {
    margin-bottom: 8px;
    font-family: var(--sys-font);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s, padding-left 0.2s, padding-right 0.2s;
}
.service-item:hover {
    background-color: rgba(162, 95, 108, 0.05);
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
}
.action-section {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
.btn {
    display: inline-block;
    background-color: var(--branding);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.3s;
    margin: 10px;
    box-sizing: border-box;
}
.btn:hover {
    background-color: var(--accent-color);
}
.btn-secondary {
    background-color: var(--accent-color);
}
.btn-secondary:hover {
    background-color: var(--branding);
}
.contact-link {
    display: block;
    margin-top: 20px;
    color: var(--accent-color);
    font-family: var(--sys-font);
    text-decoration: none;
    word-break: break-all;
}
.contact-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    padding: 15px;
    overflow-y: auto;
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
}
.modal-content h3 {
    margin-top: 0;
    color: var(--branding);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.close:hover {
    color: var(--text-color);
}

/* Responsive Modal Image Styling */
#modalImage {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#modalDescription {
    font-family: var(--sys-font);
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Tablet & Phone Adjustments */
@media (max-width: 600px) {

    .container {
        padding: 0 15px 30px 15px;
    }
    .modal-content {
        margin: 20% auto;
        padding: 20px 15px;
        width: 95%;
    }
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Responsive Square Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #fff;
    position: relative;
}
.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
}
.load-more {
    display: block;
    margin: 30px auto;
    background-color: var(--branding);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: background 0.3s;
}
.load-more:hover {
    background-color: var(--accent-color);
}
.load-more:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    user-select: none;
}
.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: color 0.3s;
    z-index: 2001; /* This brings the arrows in front of the image container */
}

.lb-nav:hover {
    color: var(--branding);
}
.lb-prev {
    left: 10px;
}
.lb-next {
    right: 10px;
}
#lb-counter {
    position: absolute;
    bottom: 20px;
    color: white;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
}

@media (max-width: 350px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

/* Booking Page Styles */
.booking-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--sys-font);
    font-size: 0.9rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--sys-font);
}
.addons-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    max-height: 150px;
    overflow-y: auto;
    font-family: var(--sys-font);
    font-size: 0.9rem;
}
.submit-btn {
    background-color: var(--branding);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: background 0.3s;
}
.submit-btn:hover {
    background-color: var(--accent-color);
}
.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}
.back-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--sys-font);
}
.back-link:hover {
    text-decoration: underline;
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.overlay-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.overlay-content h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
}
.close-btn {
    background-color: var(--branding);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
}


/* --- Mobile Styling --- */
@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: auto; /* Remove the 16:9 lock so the container can grow vertically */
        background-size: 100% auto; /* Image takes full width, scales height proportionally */
        background-position: top center; /* Pins the image to the top */
        background-repeat: no-repeat;

        /* 56.25% is exactly the 16:9 ratio (9 / 16 = 0.5625).
           This pushes the content exactly below the background image. */
        padding-top: 56.25%;
        padding-bottom: 20px;
        justify-content: flex-start;

        /* Add a background color so the area behind the text isn't transparent */
        background-color: #ffffff; /* Adjust to match your site's background */
    }

    .hero-content {
        padding: 30px 20px;
    }

    /* Since the text is no longer on the image, you may need to invert the text colors */
    .hero-content h2 {
        color: #333333; /* Dark text for a light background */
    }

    .hero-content p {
        color: #555555;
    }
}
