:root {
  --sand: #f7f1e6;
  --sun: #f3bd19;
  --sea: #28bac4;
  --sea-dark: #1d98a1;
  --sea-text: #16707a;
  --ink: #23323a;
  --muted: #5d6b72;
  --white: #ffffff;
  --radius: 4px;
  --display: "Bayon", "Oswald", Impact, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rubik", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--sea-text); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1, h2, h3, .site-nav a, .nav-toggle-label { text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sun);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
}
.logo img { height: 64px; width: auto; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.02em; color: #000; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: #000;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-nav a:hover { color: var(--white); }
.nav-social { margin-left: -8px; }
.nav-social + .nav-social { margin-left: -12px; }
.nav-social a { display: block; padding: 4px; }
.nav-social svg { display: block; }
.site-nav li:last-child { margin-left: 16px; }
.site-nav .button { font-size: 1.05rem; padding: 10px 20px 8px; }

.button {
  display: inline-block;
  background: var(--sea);
  color: var(--white) !important;
  padding: 12px 26px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.button:hover { background: var(--sea-dark); }

@media (max-width: 1060px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--sun);
    border-top: 1px solid rgba(0,0,0,0.12);
  }
  .site-nav ul { flex-wrap: wrap; align-items: center; padding: 8px 16px 20px; gap: 18px 12px; }
  .site-nav li { width: 100%; }
  .site-nav li.nav-social { width: auto; }
  .nav-social, .nav-social + .nav-social, .site-nav li:last-child { margin-left: 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.25)),
              url("../images/hero-sunset.jpg") center / cover no-repeat #4a6a8f;
  color: var(--white);
  text-align: center;
  min-height: calc(100vh - 88px);
  min-height: calc(100svh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.5vw, 6.25rem);
  letter-spacing: -0.01em;
  position: relative;
  top: -30px;
  line-height: 1;
  margin: 0 0 20px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.hero h1 span { display: inline-block; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 760px; margin: 0 auto 36px; }
.hero .button { background: var(--sun); color: #000 !important; padding: 18px 36px 16px; }
.hero .button:hover { background: #e0aa08; }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 88px; }
#about, #amenities, #comeandbeachit { background: var(--sun); }
#photogallery { background: #000; }
#photogallery h2 { color: var(--sun); }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink);
}
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.04); }

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}
.columns ul { padding-left: 20px; margin: 0; }

.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d5dde0;
  padding: 40px 0;
  font-size: 0.9rem;
}
.site-footer a { color: #d5dde0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo img { height: 64px; width: auto; }
.social { display: flex; gap: 16px; }

#thingstodo { border-top: 1px solid #e6e1d8; }

/* Photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 18, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: calc(100vw - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  max-height: calc(100svh - 100px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
}
.lightbox figcaption { color: #d5dde0; font-size: 0.9rem; margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 3.5rem;
  line-height: 1;
  padding: 8px 16px;
  opacity: 0.85;
}
.lightbox button:hover, .lightbox button:focus-visible { color: var(--sun); opacity: 1; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox figure { max-width: 100vw; }
  .lightbox img { border-radius: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
}
.lightbox button:focus:not(:focus-visible) { outline: none; }
