/* ==========================================================================
   RiYo Point – Tangalle · Site styles
   Palette taken from the logo: deep teal, sunset gold and warm cream.
   ========================================================================== */

:root {
  --teal-900: #0F3433;
  --teal-800: #154645;
  --teal-700: #1F5F5E;   /* main logo teal */
  --teal-500: #2F7F7C;
  --teal-100: #E3EFEC;
  --sun-600: #8A6020;    /* gold – text-safe (AA) on cream */
  --sun-500: #C9963F;    /* logo sun */
  --sun-300: #E7C27C;
  --cream: #FAF5EB;      /* logo background */
  --cream-200: #F2EADA;
  --ink: #23302F;
  --muted: #5A6866;
  --wa: #1FA855;
  --wa-dark: #0F7A40;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(15, 52, 51, .08);
  --shadow-md: 0 14px 40px rgba(15, 52, 51, .14);
  --nav-h: 76px;
}

/* Smooth scrolling is handled by jQuery (see main.js); padding keeps headings clear of the fixed nav */
html { scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body:focus { outline: none; }

h1, h2, h3, h4, .brand-name, .footer-name { font-family: var(--font-head); }

a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; border-radius: 4px; }

.text-teal { color: var(--teal-700); }
.text-sun-light { color: var(--sun-300) !important; }
.text-white-soft { color: rgba(255, 255, 255, .88); }

.skip-link {
  position: absolute; z-index: 2000; top: 10px; left: 10px;
  background: var(--teal-700); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .02em; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }

.btn-sun { background: var(--sun-500); color: var(--teal-900); border: 2px solid var(--sun-500); }
.btn-sun:hover, .btn-sun:focus { background: var(--sun-300); border-color: var(--sun-300); color: var(--teal-900); box-shadow: 0 10px 24px rgba(201, 150, 63, .35); }

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { color: var(--teal-900); }

.btn-teal { background: var(--teal-700); color: #fff; border: 2px solid var(--teal-700); }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }

.btn-whatsapp { background: var(--wa-dark); color: #fff; border: 2px solid var(--wa-dark); }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #0B6534; border-color: #0B6534; color: #fff; box-shadow: 0 10px 24px rgba(18, 140, 74, .3); }

/* ---------- Navigation ---------- */
.site-nav {
  min-height: var(--nav-h);
  padding: .6rem 0;
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
  background: linear-gradient(to bottom, rgba(10, 35, 34, .55), rgba(10, 35, 34, 0));
}
.site-nav.scrolled {
  background: rgba(250, 245, 235, .96);
  box-shadow: 0 6px 24px rgba(15, 52, 51, .1);
  padding: .35rem 0;
  backdrop-filter: blur(8px);
}
.navbar-brand img { border-radius: 50%; background: var(--cream); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.brand-sub { font-size: .7rem; letter-spacing: .38em; text-transform: uppercase; color: var(--sun-300); margin-top: 3px; }
.site-nav.scrolled .brand-name { color: var(--teal-700); }
.site-nav.scrolled .brand-sub { color: var(--sun-600); }

.site-nav .nav-link {
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  padding: .5rem .9rem !important;
  position: relative;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px; background: var(--sun-500); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav.scrolled .nav-link { color: var(--ink); }
.site-nav.scrolled .nav-link:hover, .site-nav.scrolled .nav-link.active { color: var(--teal-700); }

.navbar-toggler { border: 0; padding: .5rem; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.site-nav.scrolled .toggler-bar, .site-nav.menu-open .toggler-bar { background: var(--teal-700); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-nav.menu-open { background: rgba(250, 245, 235, .98); box-shadow: var(--shadow-sm); }
  .site-nav.menu-open .brand-name { color: var(--teal-700); }
  .site-nav.menu-open .brand-sub { color: var(--sun-600); }
  .site-nav.menu-open .nav-link { color: var(--ink); }
  .navbar-collapse { padding: .5rem 0 1rem; }
  .site-nav .nav-link::after { display: none; }
  .site-nav.menu-open .nav-link.active { color: var(--teal-700); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--nav-h) + 2rem) 0 7rem;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img { object-fit: cover; object-position: center 55%; animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 38, 37, .88) 0%, rgba(15, 52, 51, .7) 45%, rgba(15, 52, 51, .25) 100%),
    linear-gradient(to top, rgba(10, 38, 37, .55), rgba(10, 38, 37, 0) 40%);
}
.hero-content { z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sun-300); background: rgba(255,255,255,.08); border: 1px solid rgba(231,194,124,.4);
  padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero-title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; line-height: 1.02; margin-bottom: .6rem; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-title .dash { color: var(--sun-300); }
.hero-tagline { font-family: var(--font-head); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: var(--sun-300); margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 600px; color: rgba(255,255,255,.92); margin-bottom: 2rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); color: #fff; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--sun-300); border-color: var(--sun-300); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 2; }
.hero-wave path { fill: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-teal {
  background:
    radial-gradient(circle at 12% 18%, rgba(201,150,63,.18), transparent 38%),
    radial-gradient(circle at 92% 85%, rgba(47,127,124,.55), transparent 45%),
    var(--teal-800);
  color: #fff;
}
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sun-600); margin-bottom: .6rem;
}
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 700; color: var(--teal-700); line-height: 1.1; margin-bottom: 1rem; }
.title-rule { display: flex; align-items: center; gap: 10px; width: 120px; margin-bottom: 1.6rem; }
.title-rule::before, .title-rule::after { content: ""; flex: 1; height: 1px; background: var(--sun-500); }
.title-rule span { width: 10px; height: 10px; border-radius: 50%; background: var(--sun-500); }
.lead-text { font-size: 1.22rem; color: var(--teal-900); }

/* About */
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--cream-200); color: var(--teal-800);
  padding: .4rem .9rem; border-radius: 999px; font-size: .93rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.chip-list i { color: var(--sun-600); }

.about-collage { position: relative; padding: 0 0 3rem 0; }
.collage-main img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.collage-accent {
  position: absolute; right: -10px; bottom: 0; width: 46%;
}
.collage-accent img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: var(--shadow-md); }
.collage-badge {
  position: absolute; left: 18px; bottom: 1rem; display: flex; align-items: center; gap: .75rem;
  background: var(--teal-700); color: #fff; padding: .8rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-md);
  font-weight: 700; line-height: 1.25; font-size: .92rem;
}
.collage-badge i { font-size: 1.7rem; color: var(--sun-300); }
@media (max-width: 575.98px) {
  .collage-accent { right: 0; width: 50%; }
  .collage-badge { left: 8px; font-size: .82rem; }
}

.highlights { margin-top: 4.5rem; }
.highlight-card {
  height: 100%; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.1rem;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid rgba(31,95,94,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.highlight-card p { margin: 0; font-weight: 700; color: var(--teal-900); line-height: 1.35; }
.hl-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(145deg, var(--teal-100), #fff); color: var(--teal-700);
  border: 1px solid rgba(201,150,63,.35);
  transition: background .3s ease, color .3s ease;
}
.highlight-card:hover .hl-icon { background: var(--teal-700); color: var(--sun-300); }

.attractions {
  margin-top: 4.5rem; padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  border-radius: calc(var(--radius) + 6px); color: #fff; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.attractions::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(231,194,124,.35), transparent 70%);
}
.attractions-title { font-size: 2.2rem; font-weight: 700; margin-bottom: .6rem; }
.attractions-note { color: rgba(255,255,255,.85); }
.attraction-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; position: relative; z-index: 1; }
.attraction-list li {
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  transition: background .3s ease;
}
.attraction-list li:hover { background: rgba(255,255,255,.14); }
.attraction-list i { font-size: 1.35rem; color: var(--sun-300); flex-shrink: 0; }
.attraction-list span { display: flex; flex-direction: column; line-height: 1.3; }
.attraction-list small { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-item {
  display: block; margin-bottom: 1rem; break-inside: avoid; position: relative;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cream-200);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.gallery-item::after {
  content: "View photo"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff;
  background: rgba(15, 52, 51, .45); opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
@media (max-width: 575.98px) { .gallery-grid { columns: 2 140px; column-gap: .6rem; } .gallery-item { margin-bottom: .6rem; border-radius: 10px; } }

/* Lightbox */
.lightbox .modal-content { background: rgba(8, 26, 25, .96); border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.lb-figure { margin: 0; max-width: 92vw; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .25s ease; }
.lb-img.loading { opacity: .2; }
.lb-caption { color: rgba(255,255,255,.88); margin-top: 1rem; text-align: center; max-width: 720px; padding: 0 1rem; font-size: .98rem; }
.lb-count { display: block; color: var(--sun-300); font-size: .82rem; letter-spacing: .15em; margin-top: .3rem; }
.lb-btn {
  position: absolute; z-index: 5; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem; transition: background .2s ease;
}
.lb-btn:hover { background: var(--sun-500); color: var(--teal-900); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-img { max-height: 70vh; }
}

/* ---------- Booking ---------- */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; color: rgba(255,255,255,.92); }
.steps span {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sun-500); color: var(--teal-900);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.notice {
  display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 14px;
  background: rgba(231,194,124,.14); border: 1px solid rgba(231,194,124,.5); color: #fff; line-height: 1.55;
}
.notice i { color: var(--sun-300); font-size: 1.35rem; line-height: 1.2; }

.booking-card { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.booking-card .form-label { font-weight: 700; color: var(--teal-900); margin-bottom: .35rem; font-size: .95rem; }
.req { color: #B3261E; }
.optional { font-weight: 400; color: var(--muted); }
.booking-card .form-control {
  border-radius: 12px; border: 1.5px solid #D6DEDC; padding: .7rem .95rem; background-color: #FCFBF8;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.booking-card .form-control:focus { border-color: var(--teal-500); box-shadow: 0 0 0 .22rem rgba(47,127,124,.2); background-color: #fff; }
.booking-card .form-text { color: var(--muted); }
.booking-card .text-muted { color: var(--muted) !important; }
.nights-info { color: var(--teal-700); font-weight: 700; min-height: 0; }
.nights-info:empty { display: none; }
.form-alert { background: #FDECEA; color: #8C1D18; border: 1px solid #F3C2BE; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--cream-200); }
.contact-list li:last-child { border-bottom: 0; }
.c-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font-size: 1.25rem; flex-shrink: 0; }
.c-icon-wa { background: #E3F6EA; color: var(--wa-dark); }
.c-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.c-value { display: block; font-weight: 700; color: var(--teal-900); font-size: 1.08rem; word-break: break-word; text-decoration: none; }
a.c-value:hover { color: var(--teal-500); text-decoration: underline; }

.map-wrap { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: var(--teal-800);
  background:
    repeating-linear-gradient(45deg, rgba(31,95,94,.05) 0 14px, transparent 14px 28px),
    var(--teal-100);
  border: 2px dashed var(--teal-500); border-radius: var(--radius);
}
.map-placeholder i { font-size: 3rem; color: var(--sun-600); }
.map-ph-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: .5rem 0; }
.map-ph-text { max-width: 420px; color: var(--teal-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.85); padding: 3.5rem 0 2rem; padding-bottom: 5.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun-300); text-decoration: underline; }
.footer-logo { display: inline-block; background: var(--cream); padding: .6rem 1rem; border-radius: 16px; }
.footer-logo img { width: 150px; height: auto; display: block; }
.footer-name { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.footer-tag { color: var(--sun-300); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .4rem; }
.footer-contact i { color: var(--sun-300); margin-right: .3rem; }
.site-footer hr { border-color: rgba(255,255,255,.2); opacity: 1; margin: 2rem 0 1.2rem; }

/* ---------- Floating buttons ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  display: flex; align-items: center; gap: .55rem; height: 60px; padding: 0 18px;
  border-radius: 999px; background: var(--wa-dark); color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 140, 74, .45); font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float i { font-size: 1.75rem; }
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.03); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: pulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 575.98px) {
  .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
}

.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 1039; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-700); color: #fff; display: grid; place-items: center; text-decoration: none;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sun-500); color: var(--teal-900); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .scroll-cue, .wa-float::before { animation: none; }
}
