/* =========================================
   R S THAI SPA - PREMIUM STYLESHEET
   ========================================= */

/* Variables */
:root {
    --color-charcoal: #2A312B;
    --color-ivory: #F3F1EC;
    --color-sage: #8A9A86;
    --color-forest: #4A5D4E;
    --color-gold: #C1A67B;
    --color-sand: #E6D5B8;
    --color-white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.bg-ivory { background-color: var(--color-ivory); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-sage); }
.text-link { color: var(--color-gold); font-weight: 500; }
.text-link:hover { color: var(--color-forest); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-large {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-forest);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-charcoal);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-forest);
    color: var(--color-forest);
}
.btn-outline:hover {
    background-color: var(--color-forest);
    color: var(--color-white);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}
.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-forest);
}

.btn-text {
    padding: 0;
    background: none;
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    border-radius: 0;
}
.btn-text:hover {
    color: var(--color-forest);
    border-color: var(--color-forest);
}
.btn-text i {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.btn-text:hover i {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-white);
    transition: var(--transition);
}
.logo-tagline {
    display: none;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
    opacity: 0.8;
    margin-top: 4px;
}
@media (min-width: 992px) {
    .logo-tagline {
        display: block;
    }
}
.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header.scrolled .logo {
    color: var(--color-forest);
}

.desktop-nav {
    display: none;
}
.desktop-nav a {
    margin: 0 15px;
    font-size: 0.875rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.header.scrolled .desktop-nav a {
    color: var(--color-charcoal);
}
.desktop-nav a:hover {
    color: var(--color-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-actions .btn {
    display: none;
}
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
}
.header.scrolled .mobile-menu-btn {
    color: var(--color-charcoal);
}

@media (min-width: 992px) {
    .desktop-nav { display: flex; }
    .header-actions .btn { display: inline-flex; }
    .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(23, 20, 20, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 24px;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}
.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-ivory);
}
.mobile-link:hover {
    color: var(--color-gold);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-forest);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(23, 20, 20, 0.4), rgba(23, 20, 20, 0.7));
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding-top: 140px;
}
.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-item i {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-ctas { flex-direction: column; width: 100%; padding: 0 20px;}
    .hero-ctas .btn { width: 100%; }
    .hero-meta { flex-direction: column; gap: 10px; }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--color-forest);
    color: var(--color-ivory);
    padding: 20px 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}
.trust-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
}
.trust-inner .dot {
    color: var(--color-gold);
}
@media (max-width: 768px) {
    .trust-inner { flex-direction: column; gap: 10px; }
    .trust-inner .dot { display: none; }
}

/* Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text p {
    font-size: 1.125rem;
    color: var(--color-sage);
    margin-bottom: 20px;
}
.intro-image-wrapper {
    position: relative;
    padding-bottom: 120%;
    overflow: hidden;
}
.intro-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-sand);
}
@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; }
    .intro-image-wrapper { padding-bottom: 80%; }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--color-white);
    padding-bottom: 30px;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.service-img-wrapper {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    margin-bottom: 24px;
}
.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: var(--color-sand);
}
.service-card:hover .service-img {
    transform: scale(1.05);
}
.service-content {
    padding: 0 24px;
    text-align: center;
}
.service-title {
    font-size: 1.75rem;
    color: var(--color-forest);
    margin-bottom: 12px;
}
.service-desc {
    color: var(--color-sage);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* Featured Parallax */
.featured-experience {
    position: relative;
    padding: 150px 0;
    color: var(--color-white);
    background-color: var(--color-forest);
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}
.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 53, 45, 0.8);
    z-index: 2;
}
.featured-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
}
.featured-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}
.featured-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}
.featured-text {
    font-size: 1.125rem;
    font-weight: 300;
}
@media (max-width: 768px) {
    .featured-title { font-size: 2.5rem; }
    .parallax-bg { background-attachment: scroll; } /* Fix for mobile */
}

/* Why Choose */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-sand);
    margin-bottom: 10px;
    line-height: 1;
}
.why-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-charcoal);
}
@media (max-width: 992px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-sand);
}
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}
.item-wide {
    grid-column: span 2;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .item-large, .item-wide {
        grid-column: span 2;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 20, 20, 0.95);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Location */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}
.info-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-sage);
    margin-bottom: 8px;
}
.dual-btn {
    display: flex;
    gap: 15px;
}
.map-container {
    background-color: var(--color-sand);
    min-height: 400px;
}
@media (max-width: 992px) {
    .location-grid { grid-template-columns: 1fr; gap: 40px;}
}

/* Booking CTA */
.booking-cta {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 80px 0;
}
.cta-subtitle {
    color: var(--color-ivory);
    opacity: 0.8;
}
@media (max-width: 576px) {
    .cta-buttons { display: flex; flex-direction: column; gap: 15px; }
}

/* Footer */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.footer-tagline {
    color: var(--color-gold);
    font-size: 0.875rem;
}
.footer-heading {
    font-size: 1.125rem;
    margin-bottom: 20px;
}
.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--color-sage);
}
.footer-links a:hover {
    color: var(--color-gold);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-sage);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1500;
}
.sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-charcoal);
    border-right: 1px solid var(--color-ivory);
}
.sticky-btn:last-child {
    border-right: none;
}
.sticky-btn i {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    color: var(--color-forest);
}

@media (max-width: 768px) {
    .mobile-sticky-cta { display: flex; }
    body { padding-bottom: 60px; } /* Space for sticky CTA */
    .floating-wa { display: none; }
}

/* Floating WA Desktop */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1500;
    transition: transform 0.3s;
}
.floating-wa:hover {
    transform: scale(1.1);
}
.floating-wa i {
    width: 32px;
    height: 32px;
}
@media (max-width: 768px) {
    .floating-wa { display: none; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
