/* =========================================================
   Payu Ubud Villa — microsite styles
   Palette taken from payuubudvilla.com/css/style.css:
   neutral greys + tropical greens, plus that site's dark mode.
   ========================================================= */

:root {
    /* Neutrals — source: --body-bg-color / --body-color / #efefef */
    --ivory: #efefef;
    --ivory-2: #d8e0c7;       /* source: --nav-bg-color (pale sage) */
    --surface: #ffffff;
    --ink: #2f3732;           /* source: .footer-bottom background */
    --ink-2: #4d4a4a;         /* source: --body-color */
    --muted: #7d817a;
    --line: rgba(47, 55, 50, .14);
    --line-strong: rgba(47, 55, 50, .26);

    /* Greens — source: #facilities, footer, --nav-scrolled-bg-color */
    --brass: #688269;         /* source: #facilities gradient end */
    --brass-2: #8ba58e;       /* source: #facilities gradient start */
    --olive: #a2bb6b;         /* source: --nav-scrolled-bg-color */
    --forest: #2f4338;        /* source: footer gradient start */
    --forest-2: #486951;      /* source: footer gradient end */
    --night: #2f3732;         /* source: .footer-bottom */
    --night-2: #486951;
    --darkest: #1d1713;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(24, 20, 15, .05), 0 10px 24px -16px rgba(24, 20, 15, .32);
    --shadow-md: 0 2px 4px rgba(24, 20, 15, .04), 0 22px 48px -26px rgba(24, 20, 15, .42);
    --shadow-lg: 0 30px 70px -34px rgba(24, 20, 15, .5);

    --wrap: 1080px;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Dark mode — mirrors the source theme (--body-bg-color:#303e3c, --body-color:#d3d3d3) */
@media (prefers-color-scheme: dark) {
    :root {
        --ivory: #303e3c;
        --ivory-2: #46554f;
        --surface: #3a4744;
        --ink: #eef1ec;
        --ink-2: #d3d3d3;
        --muted: #a6aea8;
        --line: rgba(255, 255, 255, .14);
        --line-strong: rgba(255, 255, 255, .26);
        --brass: #8ba58e;
        --brass-2: #a2bb6b;
        --night: #1d1713;
        --night-2: #3a4744;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -16px rgba(0, 0, 0, .6);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 48px -26px rgba(0, 0, 0, .7);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink-2);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    display: block;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Shared bits ---------- */

.eyebrow {
    margin: 0;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--brass-2);
}

.eyebrow--dark {
    color: var(--brass);
}

.rule {
    display: block;
    width: 56px;
    height: 2px;
    margin: 22px auto;
    background: linear-gradient(90deg, transparent, var(--olive), transparent);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 100;
    padding: 10px 18px;
    background: var(--forest);
    color: #fff;
    border-radius: 0 0 10px 10px;
    font-size: .85rem;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
}

:where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .92em 1.6em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: .94rem;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn .icon {
    font-size: 1.05rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brass-2), var(--brass));
    color: #fff;
    box-shadow: 0 12px 30px -14px rgba(47, 67, 56, .95);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -14px rgba(47, 67, 56, 1);
}

.btn--ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}

.btn--soft {
    background: var(--ivory-2);
    border-color: transparent;
    color: var(--forest);
    width: 100%;
    padding: .85em 1.2em;
    font-size: .9rem;
}

.btn--soft:hover {
    background: var(--forest);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 88px 20px 96px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-align: center;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.04);
    animation: heroPan 22s ease-out forwards;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(47, 55, 50, .62) 0%, rgba(47, 55, 50, .26) 30%, rgba(47, 55, 50, .58) 68%, rgba(29, 23, 19, .93) 100%),
        radial-gradient(130% 70% at 50% 12%, rgba(47, 67, 56, 0) 42%, rgba(47, 67, 56, .55) 100%);
}

.hero__inner {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.hero .eyebrow {
    color: #d8e0c7;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.hero__title {
    margin-top: 14px;
    font-size: clamp(2.7rem, 11vw, 4.4rem);
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}

.hero__tagline {
    margin: 0 auto;
    max-width: 30rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.05rem, 4.2vw, 1.3rem);
    color: rgba(255, 255, 255, .94);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 330px;
    margin: 34px auto 0;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    animation: floatY 2.6s ease-in-out infinite;
}

.scroll-cue:hover {
    color: #fff;
    border-color: #fff;
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(56px, 11vw, 96px) 0;
}

.section--alt {
    background: var(--ivory-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__head {
    max-width: 46rem;
    margin: 0 auto clamp(32px, 6vw, 48px);
    text-align: center;
}

.section__title {
    margin-top: 12px;
    font-size: clamp(1.85rem, 6.4vw, 2.5rem);
    color: var(--ink);
}

.section__sub {
    margin: 14px auto 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: .98rem;
}

/* ---------- Link cards ---------- */

.cards {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(104, 130, 105, .55);
    box-shadow: var(--shadow-md);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 13px;
    background: var(--ivory-2);
    color: var(--brass);
    font-size: 1.2rem;
    transition: background-color .3s ease, color .3s ease;
}

.card:hover .card__icon {
    background: var(--night);
    color: var(--brass-2);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.card__label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
}

.card__desc {
    font-size: .85rem;
    color: var(--muted);
}

.card__arrow {
    flex: none;
    color: var(--muted);
    font-size: 1.15rem;
    transition: transform .3s ease, color .3s ease;
}

.card:hover .card__arrow {
    transform: translate(2px, -2px);
    color: var(--brass);
}

/* ---------- Contacts ---------- */

.contacts {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 22px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}

.contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact__avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brass-2), var(--brass));
    color: var(--night);
    font-size: 1.35rem;
}

.contact__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
}

.contact__role {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact__phone {
    margin: 6px 0 18px;
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--ink-2);
    border-bottom: 1px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}

.contact__phone:hover {
    color: var(--brass);
    border-color: var(--brass);
}

/* ---------- Footer ---------- */

.footer {
    background: linear-gradient(to top left, var(--forest), var(--forest-2));
    color: rgba(255, 255, 255, .8);
    padding: 54px 0 40px;
}

.footer__inner {
    text-align: center;
}

.footer__brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
}

.footer__tagline {
    margin: 8px auto 24px;
    max-width: 30rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
}

.footer__nav a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .88);
    transition: color .25s ease;
}

.footer__nav a:hover {
    color: #d8e0c7;
}

.footer__legal {
    margin: 0;
    padding: 24px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Dark-mode component tweaks ---------- */

@media (prefers-color-scheme: dark) {
    .card:hover {
        border-color: rgba(162, 187, 107, .5);
    }

    .btn--soft {
        color: #d8e0c7;
    }
}

/* ---------- Motion ---------- */

.reveal {
    animation: reveal .8s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroPan {
    to {
        transform: scale(1);
    }
}

@keyframes floatY {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

/* ---------- Responsive ---------- */

@media (min-width: 680px) {
    .wrap {
        padding-inline: 32px;
    }

    .hero__actions {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cards > li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 860px) {
    .contacts {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 108px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .hero__media img {
        transform: none;
    }
}
