/* ===========================================================
   Thai Afrik Massage & Spa - shared site styles
   =========================================================== */

:root {
    --color-primary: #2b6656;
    --color-primary-dark: #1c4a3e;
    --color-accent: #c99a4b;
    --color-cream: #faf6f0;
    --color-text: #2b2b2b;
    --color-muted: #6b6b6b;
    --color-border: #e4ddd1;
    --color-white: #ffffff;
    --color-danger: #b3261e;
    --color-success: #1e6b3f;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --radius: 10px;
    --shadow: 0 6px 24px rgba(43, 43, 43, 0.08);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--color-primary-dark);
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(43, 102, 86, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 12px 28px rgba(43, 102, 86, 0.4);
}

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

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-accent);
    color: #2b2b2b;
    box-shadow: 0 8px 20px rgba(201, 154, 75, 0.35);
}

.btn-secondary:hover {
    background: #b5883f;
    box-shadow: 0 12px 28px rgba(201, 154, 75, 0.45);
}

.btn-outline-dark {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(17, 46, 38, 0.88), rgba(17, 46, 38, 0.78));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(14, 38, 32, 0.97), rgba(14, 38, 32, 0.93));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled .nav {
    padding: 8px 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.nav__brand img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    transition: height 0.3s ease;
}

.site-header.is-scrolled .nav__brand img {
    height: 46px;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #fff;
    padding: 6px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__links a {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.nav__links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease;
}

.nav__links a:not(.btn):hover::after,
.nav__links a.is-active:not(.btn)::after {
    width: 100%;
}

.nav__links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav__links a.is-active {
    color: #fff;
}

.nav__links .btn {
    padding: 10px 22px;
}

@media (max-width: 860px) {
    .nav__toggle {
        display: block;
    }

    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 38, 32, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__links a {
        padding: 14px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav__links a:not(.btn)::after {
        display: none;
    }

    .nav__links .btn {
        margin: 14px 24px;
    }
}

/* ---------- Hero slider ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 150px 24px 120px;
    text-align: center;
    margin-top: -78px; /* slide in under the transparent-at-top nav */
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease;
}

.hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 41, 34, 0.8), rgba(15, 41, 34, 0.55) 55%, rgba(15, 41, 34, 0.85));
}

.hero__slide.is-active {
    opacity: 1;
    animation: hero-kenburns 9s ease-in-out forwards;
}

@keyframes hero-kenburns {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 14px;
    opacity: 0;
    animation: hero-fade-up 0.9s ease 0.15s forwards;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    max-width: 820px;
    margin: 0 auto 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: hero-fade-up 0.9s ease 0.3s forwards;
}

.hero p.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    animation: hero-fade-up 0.9s ease 0.45s forwards;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-fade-up 0.9s ease 0.6s forwards;
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__badge {
    display: inline-block;
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    opacity: 0;
    animation: hero-fade-up 0.9s ease 0.75s forwards;
}

.hero__dots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero__dot.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide.is-active {
        animation: none;
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 130px 20px 90px;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 80px 0;
}

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

/* ---------- Scroll-reveal motion ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > * {
    animation: reveal-stagger-item 0.7s ease forwards;
}

.reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.55s; }

.reveal-stagger > * {
    opacity: 0;
}

@keyframes reveal-stagger-item {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}

.section__header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.grid {
    display: grid;
    gap: 28px;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(28, 74, 62, 0.18);
}

.card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card__body p {
    color: var(--color-muted);
    font-size: 0.95rem;
    flex: 1;
}

.home-intro__gallery {
    gap: 16px;
}

.home-intro__gallery img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.home-intro__gallery img:hover {
    transform: translateY(-6px);
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.pill {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.pill.is-selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ---------- Expertise / features ---------- */
.feature {
    text-align: center;
    padding: 20px;
}

.feature__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--color-primary);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
    border-radius: var(--radius);
}

.cta-banner h2 {
    color: #fff;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 26px;
}

/* ---------- Location / hours block ---------- */
.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 720px) {
    .info-strip {
        grid-template-columns: 1fr;
    }
}

.info-strip h4 {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* ---------- Forms (shared) ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.form-group .hint {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
}

.form-control:focus {
    border-color: var(--color-primary);
}

.form-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: var(--color-danger);
}

.form-group.has-error .form-error {
    display: block;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #e6f4ea;
    color: var(--color-success);
    border: 1px solid #b7ddc4;
}

.alert-error {
    background: #fbeae9;
    color: var(--color-danger);
    border: 1px solid #f0c4c1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 130px 24px 70px;
    text-align: center;
    margin-top: -78px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 41, 34, 0.82), rgba(15, 41, 34, 0.75)), url('../images/spa-relaxation-relax-4962696-768x511.jpg') center/cover no-repeat;
    animation: hero-kenburns 12s ease-in-out forwards;
    z-index: 0;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 6px;
    opacity: 0;
    animation: hero-fade-up 0.8s ease 0.15s forwards;
}

.page-header .breadcrumb {
    opacity: 0;
    animation: hero-fade-up 0.8s ease 0s forwards;
}

.page-header p {
    opacity: 0;
    animation: hero-fade-up 0.8s ease 0.3s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .page-header::before {
        animation: none;
    }
}

.page-header--services::before {
    background: linear-gradient(180deg, rgba(15, 41, 34, 0.82), rgba(15, 41, 34, 0.75)), url('../images/Ten-health.jpeg') center/cover no-repeat;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Utility ---------- */
.text-center {
    text-align: center;
}

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

.rounded {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-label {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.pull-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: 18px;
    font-style: italic;
    color: var(--color-muted);
    margin: 20px 0 0;
}

.mt-lg {
    margin-top: 40px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
