/* ══════════════════════════════════════════════
   Ren Head Spa — Home Page Styles
   assets/css/home.css
   ══════════════════════════════════════════════ */
/* ── BOOKING BUTTON PULSE ── */
.btn-primary {
    display: inline-block;
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

.btn-primary:hover {
    animation: none;
    transform: scale(1.1);
}



.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%; /* ← thêm dòng này */
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%; /* ← thêm dòng này */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

    .hero-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

/* hero-glow phải nằm trên slides */
.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* hero-content bên trong slide */
.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
}

    .hero-slide .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,12,8,0.2) 0%, rgba(20,12,8,0.5) 100%);
    z-index: 1;
}



@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sTrack .service-card {
    animation: fadeUp 0.6s ease both;
}
/* ── HERO ── */
.hero {
  height: 100vh; min-height: 700px;
  position: relative; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.glow-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(220,170,130,0.35) 0%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}
.glow-orb.g1 { width: 500px; height: 200px; bottom: 12%; left: 3%; animation-delay: 0s; }
.glow-orb.g2 { width: 380px; height: 280px; bottom: 20%; left: 10%; animation-delay: 1.8s; }
.glow-orb.g3 { width: 340px; height: 340px; bottom: 8%; right: 8%; animation-delay: 3.2s; }
.glow-orb.g4 { width: 320px; height: 320px; bottom: 16%; right: 14%; animation-delay: 1s; }
@keyframes pulse { 0%,100%{ opacity:0.55; transform: scale(1); } 50%{ opacity:0.9; transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,12,8,0.2) 0%, rgba(20,12,8,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  animation: fadeUp 1.2s ease both;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 90px);
  font-weight: 400; color: var(--cream);
  line-height: 1.15; letter-spacing: 0.01em;
  text-shadow: 0 2px 48px rgba(0,0,0,0.5);
  margin-bottom: 44px;
}

/* ── ABOUT ── */
.about { background: var(--cream); padding: 110px 60px; }
.about-inner { max-width: 1160px; margin: 0 auto; }
.about-text { max-width: 740px; margin: 0 auto 56px; }
.about-photos {
  display: grid;
  grid-template-columns: 462fr 393fr 462fr 394fr;
  gap: 10px; margin-bottom: 44px; align-items: center;
}
.about-photo { background: #c4b0a0; overflow: hidden; position: relative; }
.about-photo:nth-child(odd)  { aspect-ratio: 462/616; }
.about-photo:nth-child(even) { aspect-ratio: 393/492; }
.about-photo-inner { width: 100%; height: 100%; transition: transform 0.6s ease; display: flex; align-items: center; justify-content: center; }
.about-photo:hover .about-photo-inner { transform: scale(1.05); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap1 { background: linear-gradient(145deg, #3a2820 0%, #6a4530 60%, #4a3828 100%); }
.ap2 { background: linear-gradient(145deg, #2e3a28 0%, #4d5e3e 60%, #3a4830 100%); }
.ap3 { background: linear-gradient(145deg, #4a3828 0%, #7a5840 60%, #5a4030 100%); }
.ap4 { background: linear-gradient(145deg, #303828 0%, #526040 60%, #3e4e30 100%); }
.about-photo-inner svg { width: 44px; height: 44px; fill: rgba(255,243,234,0.18); }
.about-cta { text-align: center; }

/* ── OUR SERVICES ── */
.services {
    background-image: url('../images/ourservice_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 110px 60px;
    position: relative;
    overflow: hidden;
}
.services::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,243,234,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.services-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.services-slider { position: relative; margin-top: 56px; }


.services-track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; cursor: grab;
}
.services-track:active { cursor: grabbing; }
.services-track::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 280px; scroll-snap-align: start;
  border: 1px solid rgba(255,243,234,0.12);
  background: rgba(255,243,234,0.04); overflow: hidden;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-8px); background: rgba(255,243,234,0.09); border-color: rgba(175,117,95,0.4); }
.service-thumb { height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st1 { background: linear-gradient(145deg, #5a3828 0%, #8a5840 100%); }
.st2 { background: linear-gradient(145deg, #3a4828 0%, #5e7040 100%); }
.st3 { background: linear-gradient(145deg, #503020 0%, #7a5038 100%); }
.st4 { background: linear-gradient(145deg, #283830 0%, #4a6050 100%); }
.service-thumb svg { width: 52px; height: 52px; fill: rgba(255,243,234,0.2); }
.service-info { padding: 22px 24px 24px; display: flex; flex-direction: column; }
.service-tag { font-family: var(--font-sans); font-size: 11.5px; color: var(--terracotta); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.service-name { font-family: var(--font-serif); font-size: 22px; color: var(--cream); font-weight: 400; line-height: 1.3; margin-bottom: 18px; }
.service-discover-btn {
  display: block;
  border: 1px solid rgba(255,243,234,0.55);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  padding: 11px 20px;
  text-align: center;
  transition: background 0.25s, border-color 0.25s;
  margin: 0 4px;
}
.service-discover-btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.services-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.snav-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,243,234,0.3); background: transparent;
  color: var(--cream); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s;
}
.snav-btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.services-cta { text-align: center; margin-top: 44px; }

/* ── GALLERY ── */
.gallery {
    background-image: url('../images/gallery_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 110px 0;
}

.gallery-head {
    text-align: center;
    padding: 0 60px;
    margin-bottom: 56px;
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
    padding: 0 60px;
}

.gallery-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    transition: none;
}

.gallery-item {
    flex: 0 0 200px;
    height: 300px;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.88);
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
}

    .gallery-item.active {
        flex: 0 0 320px;
        height: 420px;
        opacity: 1;
        transform: scale(1);
        z-index: 2;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,243,234,0.4);
    background: transparent;
    color: var(--cream);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

    .gallery-prev:hover, .gallery-next:hover {
        background: var(--terracotta);
        border-color: var(--terracotta);
    }

.gallery-cta {
    text-align: center;
    margin-top: 44px;
    padding: 0 60px;
}
.gallery-track {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

    .gallery-track::-webkit-scrollbar {
        display: none;
    }
/* ── LOCATION ── */
.location { background: var(--cream); padding: 110px 60px; }
.location-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.location-map { aspect-ratio: 5/4; background: #d8cfc4; overflow: hidden; position: relative; }
.map-ph {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #cfc4b5 0%, #b8aa98 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.map-ph svg { width: 52px; height: 52px; fill: var(--terracotta); opacity: 0.7; }
.map-ph p { font-size: 13px; color: var(--dark); opacity: 0.55; letter-spacing: 0.04em; text-align: center; padding: 0 24px; }
.loc-line { font-family: var(--font-sans); font-size: 16px; color: var(--dark); line-height: 1.8; margin-bottom: 10px; }
.loc-line strong { font-weight: 500; }

/* ── HOME RESPONSIVE ── */
@media (max-width: 1024px) {
  .about, .location { padding: 80px 40px; }
  .services { padding: 80px 40px; }
  .gallery { padding: 80px 0; }
  .gallery-head { padding: 0 40px; }
  .gallery-strip { padding: 0 40px; }
  .gallery-cta { padding: 0 40px; }
}
@media (max-width: 900px) {
  .hero-content h1 { font-size: clamp(38px, 8vw, 64px); }
  .btn-primary { padding: 13px 38px; font-size: 12px; }
  .about { padding: 72px 32px; }
  .about-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-photo:nth-child(odd),
  .about-photo:nth-child(even) { aspect-ratio: 4/5; }
  .services { padding: 72px 32px; }
  .service-card { flex: 0 0 240px; }
  .gallery { padding: 72px 0; }
  .gallery-head { padding: 0 32px; }
  .gallery-strip { padding: 0 32px; }
  .gallery-cta { padding: 0 32px; }
  .location { padding: 72px 32px; }
  .location-inner { grid-template-columns: 1fr; gap: 40px; }
    .gallery-item {
        flex: 0 0 100px;
        height: 220px;
    }

        .gallery-item.active {
            flex: 0 0 240px;
            height: 340px;
        }
}
@media (max-width: 480px) {
  .hero { min-height: 600px; }
  .hero-content h1 { font-size: clamp(32px, 9vw, 48px); margin-bottom: 32px; }
  .glow-orb.g1 { width: 260px; height: 120px; }
  .glow-orb.g2 { width: 200px; height: 160px; }
  .glow-orb.g3 { width: 180px; height: 180px; }
  .glow-orb.g4 { width: 160px; height: 160px; }
  .about { padding: 60px 20px; }
  .about-photos { grid-template-columns: 1fr 1fr; gap: 6px; }
  .about-photo:nth-child(odd),
  .about-photo:nth-child(even) { aspect-ratio: 1/1; }
  .section-label { font-size: clamp(28px, 7vw, 40px); }
  .section-body { font-size: 15px; }
  .services { padding: 60px 20px; }
  .service-card { flex: 0 0 200px; }
  .service-thumb { height: 160px; }
  .gallery { padding: 60px 0; }
  .gallery-head { padding: 0 20px; margin-bottom: 36px; }
  .gallery-strip { padding: 0 20px; gap: 4px; }
  .gallery-cta { padding: 0 20px; }
    .gallery-item {
        flex: 0 0 80px;
        height: 200px;
    }

        .gallery-item.active {
            flex: 0 0 200px;
            height: 300px;
        }
  .location { padding: 60px 20px; }
  .location-inner h2 { font-size: 36px !important; }
}

/* ── Grand Opening Popup ── */
.go-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  animation: goFadeIn 0.4s ease;
}
.go-overlay.hidden { display: none; }
@keyframes goFadeIn { from { opacity:0 } to { opacity:1 } }

.go-modal {
  position: relative;
  background: linear-gradient(145deg, #c9952a 0%, #f5d47a 40%, #e8b83c 60%, #b87d15 100%);
  border-radius: 12px;
  padding: 48px 56px 40px;
  max-width: 400px; width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: goSlideUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes goSlideUp { from { transform: translateY(40px); opacity:0 } to { transform: translateY(0); opacity:1 } }

.go-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 18px; color: #5a3a00; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.go-close:hover { opacity: 1; }

.go-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.go-grand {
  font-family: 'Caudex', Georgia, serif;
  font-style: italic; font-size: 42px;
  color: #fff; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1;
}
.go-opening {
  font-family: 'Caudex', Georgia, serif;
  font-size: 52px; font-weight: 700;
  color: #1a0e00; margin: 0 0 12px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.go-offer-box {
  background: #1a0e00;
  border-radius: 6px;
  padding: 10px 32px;
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 8px;
}
.go-percent { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; }
.go-percent sup { font-size: 24px; vertical-align: super; }
.go-off { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 3px; }

.go-or-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin: 4px 0;
}
.go-line { flex: 1; height: 1px; background: #5a3a00; opacity: 0.5; }
.go-or-text { font-size: 13px; font-weight: 700; color: #5a3a00; letter-spacing: 2px; }

.go-free-box {
  background: #1a0e00;
  border-radius: 6px;
  padding: 10px 32px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.go-free { font-size: 36px; font-weight: 900; color: #f5d47a; letter-spacing: 2px; }
.go-addon { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 3px; }

.go-date {
  font-size: 11px; letter-spacing: 2px; color: #5a3a00;
  margin: 6px 0 0; opacity: 0.8;
}
