:root {
    --primary-color: #C5A059; /* Gold */
    --secondary-color: #1a1a1a; /* Soft Black / Charcoal */
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 120px; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky; /* Sticks to the top */
    top: 0;
    z-index: 1000; /* Ensures it stays above other content */
}
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; width: 100%; }
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo img {
    height: 70px;
    width: auto;
    mix-blend-mode: multiply;
}
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

main { flex: 1; display: flex; flex-direction: column; width: 100%; padding: 0; }

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    width: 100%;
}
h1 { margin-bottom: 1rem; color: var(--primary-color); font-size: 2.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.cta-button:hover { background-color: #b08d48; }

/* Services Section */
.services { padding: 5rem 2rem; background-color: var(--white); text-align: center; }
.services h2 { color: var(--primary-color); margin-bottom: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.carousel-container .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem; /* Space for shadow/scroll */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE */
}
.carousel-container .services-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}
.carousel-container .card {
    min-width: 320px;
    flex: 0 0 320px;
    scroll-snap-align: center;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.carousel-btn:hover { background: var(--primary-color); color: var(--white); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden; /* Keeps the image within the card's rounded corners */
    text-align: left;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures image covers the space without distortion */
    flex-shrink: 0;
}
.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    color: var(--text-color);
    text-align: left;
    border-bottom: none;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-description {
    margin-bottom: 1rem;
    color: #555;
    text-align: left;
    line-height: 1.7;
    min-height: 5rem; /* Enforces consistent height for alignment */
    font-size: 0.95rem;
}

.service-includes {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    text-align: left;
    flex: 1;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    display: none;
}
.service-includes.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}
.service-includes strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}
.service-includes ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.service-includes li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
.service-includes li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.6em;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.toggle-content-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    margin-top: 0.5rem;
    text-decoration: underline;
    text-align: left;
}
.toggle-content-btn:hover {
    color: var(--primary-color);
}

.book-now-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 1rem;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.book-now-btn:hover {
    background-color: #b08d48;
    color: white;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    padding-top: 0.5rem;
    text-align: right;
    border-top: none;
    letter-spacing: 0;
}

.card-footer {
    margin-top: auto;
    width: 100%;
}

.sub-services {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    display: none; /* Hidden by default */
}
.sub-services.visible {
    display: block;
}
.sub-services li {
    font-size: 0.9rem;
    color: #555;
    padding: 2px 0;
}
.sub-services li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 8px;
}

.see-more-btn {
    background: #f9f9f9;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    padding: 12px 30px;
    margin: auto auto 0;
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
    width: fit-content;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.see-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}
.see-more-btn:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Back Link */
.back-link-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}
.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.back-link:hover { text-decoration: underline; }

/* Team Section */
.team { padding: 5rem 2rem; background-color: #f9f9f9; text-align: center; }
.team h2 { color: var(--primary-color); margin-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.team-card:hover { transform: translateY(-5px); }
.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--white);
    color: var(--text-color);
    text-align: center;
}
.contact h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.contact p {
    color: var(--text-color);
    margin-bottom: 3rem;
}
address {
    font-style: normal;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}
.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.contact-item a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline {
    margin-top: 1rem;
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

footer { text-align: center; padding: 2rem 1rem; background: var(--secondary-color); color: var(--white); font-size: 0.9rem; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--primary-color);
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Skip to main content (accessibility) */
.skip-to-main {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-to-main:focus { top: 0; }

/* Hamburger toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Active nav link */
.nav-links a.active { color: var(--primary-color); }
.nav-links a.active::after { width: 100%; }

/* Carousel loader */
.carousel-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    width: 100%;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(197, 160, 89, 0.25);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Carousel pagination dots (mobile only) */
.carousel-dots { display: none; }

/* Services error state */
.services-error {
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-size: 1rem;
}
.services-error a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 999;
}
.scroll-to-top.visible { display: flex; }
.scroll-to-top:hover { background-color: #b08d48; transform: translateY(-3px); }

/* Section heading decorative underlines */
.services > h2,
.team > h2,
.contact > h2 {
    position: relative;
    padding-bottom: 0.75rem;
}
.services > h2::after,
.team > h2::after,
.contact > h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero service tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-tags span {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Contact two-column layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}
.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    height: 280px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Scroll-reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Responsive Design for Mobile & Tablets */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 4rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-map {
        height: 220px;
    }

    .services, .team, .contact {
        padding: 3rem 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .carousel-btn { display: none; } /* Hide arrows on mobile, use swipe */
    .carousel-container { padding: 0; }
    .carousel-container .card {
        min-width: 85vw; /* Show partial next card */
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 1.25rem;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(197, 160, 89, 0.3);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
        flex-shrink: 0;
    }
    .carousel-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-color);
    }
}
