/* Casa Paloma Beach Club: shared styles (tokens, nav, footer, common pieces) */
:root {
  --cream: #FBF1E6;
  --cream-light: #FFF6EC;
  --brown: #4A2E1F;
  --tan: #9A6440;
  --terracotta: #C46B4A;
  --rust: #B05E3F;
  --rust-dark: #97492D;
  --coral: #EFA290;
  --mustard: #E3A245;
  --sand: #D9B48F;
  --peach: #FBD9B0;
  --divider: #F0DCC8;
  --gutter: clamp(20px, 4vw, 56px);
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Figtree', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); font-family: var(--body); color: var(--brown); overflow-x: hidden; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
img { display: block; }
main { flex: 1; overflow-x: clip; }

.container { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.h2 { font-size: clamp(48px, 5.5vw, 72px); line-height: 0.9; color: var(--tan); margin: 0; }
.accent { color: var(--terracotta); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.text-link { color: var(--brown); font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.text-link:hover { color: var(--terracotta); }
.btn { display: inline-block; background: var(--brown); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--rust); color: #fff; }

/* Nav */
.site-header { position: relative; z-index: 40; background: var(--cream); }
.nav { display: flex; align-items: center; gap: 12px 32px; padding: 12px var(--gutter); }
.nav-logo { margin-right: auto; }
.nav-logo img { height: 80px; width: auto; }
.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav-menu a { color: var(--brown); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--terracotta); }
.nav-menu a[aria-current="page"] { color: var(--terracotta); border-bottom-color: var(--coral); }
.nav-cta { flex: none; background: var(--rust); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 999px; }
.nav-cta:hover { background: var(--rust-dark); color: #fff; }
.nav-toggle { display: none; }

/* Mobile: sticky header with logo, Book direct and a menu button; links drop down below */
@media (max-width: 780px) {
  .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--divider); }
  .nav { gap: 10px; padding: 8px var(--gutter); }
  .nav-logo img { height: 52px; }
  .nav-cta { font-size: 15px; padding: 11px 20px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--divider); background: #fff; cursor: pointer; padding: 0; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--brown); transition: transform .2s, background .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--cream); box-shadow: 0 16px 30px rgba(74, 46, 31, 0.12); }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-menu a[aria-current="page"] { border-bottom-color: var(--divider); }
}

/* Reviews */
.reviews { padding-bottom: 88px; }
.reviews .section-head { margin-bottom: 20px; }
.placeholder-note { font-size: 13px; opacity: 0.7; }

/* Footer */
.footer { background: var(--coral); color: var(--brown); }
.footer-wave { display: block; width: 100%; height: 40px; background: var(--cream); }
.footer-grid { padding: 32px var(--gutter) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: end; }
.footer-brand { font-size: 64px; line-height: 0.9; }
.footer-brand span { font-size: 22px; letter-spacing: 0.3em; }
.footer-address { font-size: 15px; margin-top: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.footer-links a { color: var(--brown); text-decoration: none; }
.footer-links a:hover { color: var(--brown); text-decoration: underline; }
.footer-cta-title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared page pieces */
.page-head { padding-top: 40px; }
.page-title { font-size: clamp(56px, 11vw, 160px); line-height: 0.84; color: var(--tan); margin: 0; }
.h2-lg { font-size: clamp(48px, 6vw, 80px); line-height: 0.9; color: var(--tan); margin: 0; }
.btn-rust { background: var(--rust); }
.btn-rust:hover { background: var(--rust-dark); }
.waves { display: block; width: 120px; height: 24px; }
.star-list { list-style: none; margin: 0; padding: 0; }
.star-list li { display: flex; gap: 12px; break-inside: avoid; }
.star-list li::before { content: "✹"; color: var(--terracotta); flex: none; }

/* ---------- Phone layout ---------- */
@media (max-width: 780px) {
  html { scroll-padding-top: 80px; }
  .h2, .h2-lg { font-size: 42px; }
  .section-head { margin-bottom: 24px; }
  .page-head { padding-top: 24px; }
  .footer-grid { gap: 28px; padding: 24px var(--gutter) 36px; }
  .footer-brand { font-size: 48px; }
  .footer-brand span { font-size: 18px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }

  /* Swipe rows: grids become horizontal, edge-to-edge, snap-scrolling rows */
  .rail-mobile { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .rail-mobile::-webkit-scrollbar { display: none; }
  .rail-mobile > * { flex: 0 0 var(--rail-item, 76%); min-width: 0; scroll-snap-align: start; }
}
