/* ===================================================
   Beachwalk — style.css
   Minimalist, elegant, fully responsive
   =================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-ink: #1a1a1a;
  --color-body: #444444;
  --color-muted: #888888;
  --color-line: #e6e6e6;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f1;
  --color-accent: #1c3a6b;
  --color-accent-dark: #102544;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1100px;
  --max-width-narrow: 680px;
  --radius: 6px;
  --gap: 24px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.1;
  font-weight: 500;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.center {
  text-align: center;
}

.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--color-bg-soft);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  color: var(--color-body);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-ink);
}

.nav-cta {
  background: var(--color-accent);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-accent-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("https://via.placeholder.com/1600x900") center / cover no-repeat;
  z-index: -1;
}

.hero-inner {
  padding: 80px 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-size: 64px;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-feature {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

/* ---------- Prose / description ---------- */
.prose {
  font-size: 17px;
  color: var(--color-body);
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Booking CTA ---------- */
.section-cta {
  background: var(--color-bg);
}

.cta-text {
  font-size: 17px;
  color: var(--color-body);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-accent);
  color: #ffffff;
  padding: 56px 0 32px;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 24px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-contact p {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-contact a {
  font-size: 16px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 46px;
  }

  .nav {
    gap: 16px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature {
    aspect-ratio: 4 / 3;
  }
}
