/* Kaaya Thai Spa Styles */
:root {
    --cream: #fdfaf7;
    --charcoal: #2c2c2c;
    --gold: #d4a574;
    --olive: #8b7355;
}

body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Lora', serif;
}

.script-font {
    font-family: 'Great Vibes', cursive;
}

.heading-font {
    font-family: 'Playball', cursive;
}

.body-font {
    font-family: 'Montserrat', sans-serif;
}

.serif-font {
    font-family: 'Lora', serif;
}

.gold-accent {
    color: var(--gold);
}

.olive-accent {
    color: var(--olive);
}

.bg-cream {
    background-color: var(--cream);
}

.text-charcoal {
    color: var(--charcoal);
}

.header-transparent {
    background-color: rgba(253, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* Section z-index management */
section {
    position: relative;
    z-index: 1;
}

#about {
    z-index: 1;
}

#services {
    z-index: 1;
}

#products {
    z-index: 1;
}

#contact {
    z-index: 1;
}

#booking {
    z-index: 1;
}

footer {
    z-index: 1;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure proper stacking for animated elements */
.fade-in.visible {
    z-index: inherit;
}

/* Specific fixes for about section */
#about {
    overflow: visible;
}

#about .fade-in {
    transform: translateY(15px);
}

#about h2 {
    position: relative;
}

#about .grid > div {
    position: relative;
}

/* Prevent script font from overlapping */
.script-font {
    font-family: 'Great Vibes', cursive;
    line-height: 1.2;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Call and WhatsApp buttons */
.cta-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.call-button {
    background-color: #25d366;
}

.whatsapp-button {
    background-color: #128c7e;
}

/* Footer fix */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Footer alignment improvements */
footer {
    padding: 3rem 1.5rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer .grid {
    gap: 2rem;
    align-items: start;
}

footer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold);
}

footer .space-y-3 > div {
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

footer .space-y-3 > div:hover {
    color: var(--gold);
}

footer .border-t {
    margin-top: 2rem;
    padding-top: 2rem;
}

footer .text-gray-400 {
    line-height: 1.6;
}

/* Footer brand left alignment */
.footer-brand-section {
    text-align: left;
}

.footer-brand {
    justify-content: flex-start;
}

/* Footer sections alignment */
.footer-links-section,
.footer-contact-section {
    text-align: left;
}

/* Contact info alignment */
footer .flex.items-start {
    align-items: flex-start;
}

footer .flex.items-center {
    align-items: center;
}

footer .space-x-3 {
    gap: 0.75rem;
}

footer .space-y-3 {
    gap: 0.75rem;
}

/* Enhanced hero section */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-cta {
    background-color: var(--gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta:hover {
    background-color: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-cta.secondary {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.hero-cta.secondary:hover {
    background-color: var(--gold);
    color: white;
}
