
/* =================================
   TING RAI BAY RESORT
   Tropical Island Design
================================= */

:root {
    --forest: #294C40;
    --forest-dark: #1C382F;
    --sand: #F4EFE3;
    --terracotta: #C98B65;
    --sage: #DCE5DC;
    --white: #FFFFFF;
    --text: #343D36;
    --muted: #777D73;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--sand);
    color: var(--text);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

section {
    scroll-margin-top: 75px;
}

/* NAVIGATION */

.navbar {
    background: var(--sand) !important;
    padding: 15px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    letter-spacing: 2px;
    color: var(--forest) !important;
}

.nav-link {
    color: var(--forest) !important;
    font-size: 13px;
    font-weight: 500;
    transition: .3s;
}

.nav-link:hover {
    color: var(--terracotta) !important;
}

/* HERO */

.hero {
    min-height: 88vh;

    background:
        linear-gradient(
            90deg,
            rgba(20, 43, 34, .72),
            rgba(20, 43, 34, .12)
        ),
        url('img/home.jpeg');

    background-position: center;
    background-size: cover;

    color: white;
}

.hero-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    max-width: 550px;
    line-height: 1.9;
}

.subtitle {
    color: var(--terracotta);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero .subtitle {
    color: #E6B58D;
}

/* BUTTONS */

.btn {
    border-radius: 2px;
    padding: 13px 27px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .3s;
}

.btn-gold {
    background: var(--terracotta);
    border: 1px solid var(--terracotta);
    color: white;
}

.btn-gold:hover {
    background: #AE704F;
    border-color: #AE704F;
    color: white;
    transform: translateY(-2px);
}

.btn-dark-custom {
    background: var(--forest);
    color: white;
    border: 1px solid var(--forest);
}

.btn-dark-custom:hover {
    background: var(--forest-dark);
    color: white;
}

/* RETURNING GUEST */

#returning-guest {
    background: var(--sand);
}

.section-heading {
    max-width: 700px;
}

.section-heading h2,
.feedback-section h2 {
    color: var(--forest);
    font-size: clamp(36px, 5vw, 54px);
    margin-bottom: 20px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* BENEFIT CARDS */

.benefit-card {
    background: var(--white);
    padding: 50px 30px;
    border: none;
    transition: .35s ease;
    box-shadow: 0 5px 25px rgba(41, 76, 64, .05);
}

.benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(41, 76, 64, .12);
}

.benefit-icon {
    color: var(--terracotta);
    font-size: 38px;
    margin-bottom: 22px;
}

.benefit-card h3 {
    color: var(--forest);
    font-size: 25px;
    margin-bottom: 17px;
}

.benefit-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* FEEDBACK */

.feedback-section {
    background: var(--sage);
    padding: 40px 0;
}

.feedback-section h2 {
    color: var(--forest);
}

.feedback-section p:not(.subtitle) {
    line-height: 2;
    font-size: 15px;
}

/* BOOKING */

.booking-section {
    min-height: 480px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(25, 55, 44, .70),
            rgba(25, 55, 44, .75)
        ),
        url('img/book.jpeg');

    background-position: center;
    background-size: cover;

    color: white;
}

.booking-section h2 {
    font-size: clamp(38px, 5vw, 58px);
}

.booking-section p:not(.subtitle) {
    line-height: 1.9;
    color: rgba(255,255,255,.85);
}

/* FOOTER */

.footer {
    background: var(--forest-dark);
    color: white;
}

.footer h3 {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer p,
.footer small {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: white;
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #E6B58D;
}

.footer hr {
    border-color: rgba(255,255,255,.2);
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .hero {
        min-height: 75vh;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-content {
        padding: 60px 15px;
    }

    .benefit-card {
        padding: 35px 25px;
    }

    .booking-section {
        min-height: 420px;
    }

    .footer-links {
        gap: 18px;
    }
}

@media (max-width: 576px) {

    .hero .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 46px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

}

.logo img {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .logo img {
        height: 55px;
    }
}

/* Bootstrap accordion */
.accordion-button:not(.collapsed) {
    background-color: #DCE5DC;
    color: #294C40;
}

.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(41, 76, 64, .15);
}


/* =================================
   THANK YOU MODAL
================================= */


.thai-greeting {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 45px;
    padding-top: 15px;
    min-height: 175px;
}

.thai-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: greetingEnter 2s ease forwards;
}

.thai-person.male {
    animation-delay: 0.2s;
}

.thai-person.female {
    animation-delay: 0.4s;
}

.person-emoji {
    font-size: 65px;
    line-height: 1.2;
}

.wai-hands {
    font-size: 38px;
    margin-top: -12px;
    transform-origin: center bottom;
    animation: waiGesture 2s ease forwards;
}

.thai-person span {
    color: #294C40;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

/* Character enters and settles lower */

@keyframes greetingEnter {
    0% {
        opacity: 0;
        transform: translateY(-25px);
    }

    45% {
        opacity: 1;
        transform: translateY(0);
    }

    70% {
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(15px);
    }
}

/* Wai greeting and gentle bow */

@keyframes waiGesture {
    0%, 20% {
        transform: translateY(15px) scale(0.7);
    }

    45% {
        transform: translateY(-8px) scale(1.15);
    }

    65% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
    .thai-person,
    .wai-hands {
        animation: none;
        opacity: 1;
        transform: translateY(15px);
    }
}


.thankyou-thai {
    color: #C98B65;
    font-size: 25px;
    font-weight: 600;
    animation: fadeUp .8s ease both;
}

.thankyou-title {
    color: #294C40;
    font-size: clamp(30px, 5vw, 42px);
    animation: fadeUp 1s ease both;
}

.thankyou-message {
    color: #777D73;
    font-size: 14px;
    line-height: 1.9;
    animation: fadeUp 1.2s ease both;
}

.thankyou-divider {
    width: 55px;
    height: 2px;
    background: #C98B65;
    margin: 25px auto;
}

.thankyou-modal .btn {
    border-radius: 3px;
}


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

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: #F4EFE3;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

.footer-logo img {
    height: 65px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* TEMP */

/* Initial hidden state */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional staggered animation */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Contact Modal */
#contactModal .modal-content {
    background-color: #F4EFE3;
}

#contactModal .modal-title {
    color: #294C40;
    font-weight: 600;
}

#contactModal .form-label {
    color: #294C40;
    font-weight: 500;
}

#contactModal .form-control {
    border: 1px solid #DCE5DC;
    border-radius: 8px;
    padding: 11px 14px;
}

#contactModal .form-control:focus {
    border-color: #294C40;
    box-shadow: 0 0 0 0.2rem rgba(41, 76, 64, 0.12);
}

#contactModal .btn-success {
    background-color: #294C40;
    border-color: #294C40;
    padding: 12px;
    border-radius: 8px;
}

#contactModal .btn-success:hover {
    background-color: #1C382F;
}