/* ================================================================
   RingchanTours Layout v3.0
   Font  : Cormorant Garamond
   Header: Oval pill, glass/blur, floats 10px from top on scroll
   Accent: #F6D61A
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&display=swap');

/* ── Scoped reset ─────────────────────────────────────────── */
.rct-header *,
.rct-header *::before,
.rct-header *::after,
.rct-footer *,
.rct-footer *::before,
.rct-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rct-header,
.rct-footer {
    font-family: 'Cormorant Garamond', serif;
}

.rct-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   LOGO
   ================================================================ */
.rct-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.rct-logo__img {
    display: block;
    width: 150px;
    height: auto;
}

/* ================================================================
   HEADER — Oval pill, glass blur, floats above page
   ================================================================ */

/*
   Outer wrapper — full-width fixed strip that holds the pill.
   Starts at top:0 (hidden via transform), transitions to top:10px
   once the user scrolls. JS adds .is-scrolled.
*/
.rct-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9999;
    /* no own background — the pill handles all visuals */
    background: transparent;
    pointer-events: none;             /* clicks pass through the gap */
    padding: 0 1.5rem;
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* After first scroll, drop the pill 10px from top */
.rct-header.is-scrolled {
    top: 10px;
}

/* The pill itself */
.rct-header__inner {
    pointer-events: auto;             /* re-enable clicks on the pill */
    max-width: 1180px;
    margin: 0 auto;
    height: 62px;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    /* Oval shape */
    border-radius: 100px;

    /* Glass effect */
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Thin glass border */
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Soft glow shadow */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;

    /* Smooth all glass transitions */
    transition:
        background    0.35s ease,
        border-color  0.35s ease,
        box-shadow    0.35s ease;
}

/* When scrolled — slightly lighter glass, stronger glow */
.rct-header.is-scrolled .rct-header__inner {
    background: rgba(10, 10, 10, 0.72);
    border-color: rgba(246, 214, 26, 0.18);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(246, 214, 26, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ── Nav ──────────────────────────────────────────────────── */
.rct-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.rct-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.rct-nav__list li a {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-radius: 100px;
    letter-spacing: 0.02em;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.rct-nav__list li a:hover {
    color: #F6D61A;
    background: rgba(246, 214, 26, 0.08);
}

/* ── Plan Trip (outlined pill, header) ────────────────────── */
.rct-btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.35rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #F6D61A;
    background: transparent;
    border: 1.5px solid #F6D61A;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.15s;
    cursor: pointer;
}
.rct-btn-plan:hover {
    background: #F6D61A;
    color: #000000;
    box-shadow: 0 4px 18px rgba(246, 214, 26, 0.35);
    transform: translateY(-1px);
}

/* ── Hamburger ────────────────────────────────────────────── */
.rct-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.rct-burger span {
    display: block;
    width: 100%;
    height: 1.8px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s;
}
.rct-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.8px) rotate(45deg);
}
.rct-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.rct-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.8px) rotate(-45deg);
}

/* ── Mobile drawer ────────────────────────────────────────── */
@media (max-width: 860px) {
    .rct-header {
        padding: 0 1rem;
    }
    .rct-header__inner {
        height: 58px;
        padding: 0 1.25rem;
        border-radius: 100px;  /* keep oval on mobile too */
    }
    /* Show burger, hide desktop nav items */
    .rct-burger { display: flex; }
    .rct-nav__list { display: none; }
    .rct-nav > .rct-btn-plan { display: none; }

    /* Mobile drawer — drops BELOW the pill */
    .rct-nav {
        position: fixed;
        /* aligns under the pill — pill is at top:0 or top:10px + 58px height */
        top: 78px;
        left: 1rem;
        right: 1rem;
        background: rgba(8, 8, 8, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: 0 12px 40px rgba(0,0,0,0.55);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.3s ease, top 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
        pointer-events: none;
    }
    .rct-header.is-scrolled .rct-nav {
        top: 88px; /* 10px offset + 58px pill + 20px gap */
    }
    .rct-nav.is-open {
        max-height: 420px;
        padding: 0.75rem 0 1rem;
        pointer-events: auto;
    }
    .rct-nav__list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .rct-nav__list li a {
        display: block;
        padding: 0.8rem 1.5rem;
        border-radius: 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .rct-nav__list li:last-child a {
        border-bottom: none;
    }
    /* Show CTA inside mobile drawer */
    .rct-nav > .rct-btn-plan {
        display: flex;
        margin: 0.75rem 1.5rem 0;
    }
}

/* Page spacer so content isn't hidden under pill */
.rct-spacer {
    display: block;
    height: 80px;
}

/* ================================================================
   FOOTER — pure black, same as before
   ================================================================ */
.rct-footer {
    background: #000000;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rct-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem 5rem;
    align-items: start;
}

/* ── Brand + socials ──────────────────────────────────────── */
.rct-footer__brand {
    display: flex;
    flex-direction: column;
}

.rct-footer__brand .rct-logo {
    margin-bottom: 2rem;
}

.rct-footer__socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rct-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s, filter 0.2s;
}
.rct-social:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}
.rct-social svg {
    width: 18px;
    height: 18px;
}
.rct-social--ig { background: transparent; border: 2px solid rgba(255,255,255,0.35); color: #ffffff; }
.rct-social--fb { background: #1877F2; color: #ffffff; }
.rct-social--tw { background: #1DA1F2; color: #ffffff; }
.rct-social--yt { background: #FF0000; color: #ffffff; }

/* ── Main footer content ──────────────────────────────────── */
.rct-footer__tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.rct-footer__actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Solid yellow CTA — footer */
.rct-btn-plan--solid {
    background: #F6D61A;
    color: #000000;
    border-color: #F6D61A;
    font-weight: 700;
}
.rct-btn-plan--solid:hover {
    background: #e0c215;
    border-color: #e0c215;
    color: #000000;
}

/* Phone */
.rct-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.rct-footer__phone:hover { color: #F6D61A; }

.rct-footer__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F6D61A;
    color: #000000;
    flex-shrink: 0;
}
.rct-footer__phone-icon svg { width: 16px; height: 16px; }

/* Link columns */
.rct-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.rct-footer__col-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.rct-footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rct-footer__col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.2s;
}
.rct-footer__col ul li a:hover { color: #F6D61A; }

.rct-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
}
.rct-arrow-icon svg { width: 20px; height: 20px; }
.rct-footer__col ul li a:hover .rct-arrow-icon { color: #F6D61A; }

/* Bottom bar */
.rct-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.25rem 2rem;
    text-align: center;
}
.rct-footer__bottom p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.28);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .rct-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.75rem 2rem;
    }
}

@media (max-width: 600px) {
    .rct-footer__inner  { padding: 2.5rem 1.25rem 1.75rem; }
    .rct-footer__tagline { font-size: 1.3rem; }
    .rct-footer__cols   { grid-template-columns: 1fr; gap: 1.5rem; }
    .rct-footer__actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .rct-footer__bottom  { padding: 1rem 1.25rem; }
}

@media (max-width: 380px) {
    .rct-logo__img { width: 120px; }
}
