/* AI-assisted (Cursor) — review before merge */
/* Salt Shack — Norfolk Bay cool + amber fire accents */

:root {
  --bay-deep: #1a2a32;
  --bay-mid: #2c4450;
  --bay-mist: #8aa0ab;
  --fog: #e8eef1;
  --foam: #f5f8f9;
  --charcoal: #12181c;
  --ink: #1e2a30;
  --amber: #c4782a;
  --amber-hot: #e08a32;
  --amber-soft: rgba(196, 120, 42, 0.18);
  --white: #ffffff;
  --overlay: rgba(18, 24, 28, 0.55);
  --overlay-strong: rgba(18, 24, 28, 0.72);

  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) clamp(1rem, 4vw, 2.5rem);
  color: var(--foam);
}

.site-header__book {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.site-header__book:hover {
  border-bottom-color: var(--amber-hot);
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  background: var(--amber-hot);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(245, 248, 249, 0.45);
}

.btn--ghost:hover {
  border-color: var(--foam);
  background: rgba(245, 248, 249, 0.08);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--foam);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  animation: kenburns 28s var(--ease) forwards;
  /* Soften bright whites; keep fire/sunset warmth */
  filter: brightness(0.88) contrast(1.06) saturate(1.08);
}

body.season-summer .hero__media img {
  object-position: center 40%;
  filter: brightness(0.96) contrast(1.04) saturate(1.06);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 24, 28, 0.42) 0%,
      rgba(42, 28, 16, 0.28) 40%,
      rgba(18, 24, 28, 0.82) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 70% 55%,
      rgba(196, 120, 42, 0.12),
      transparent 65%
    );
  z-index: 1;
}

body.season-summer .hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 28, 0.28) 0%,
    rgba(18, 24, 28, 0.18) 38%,
    rgba(18, 24, 28, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 0 var(--space-sm);
  color: var(--fog);
}

.hero__lede {
  font-size: 1.05rem;
  max-width: 36ch;
  margin: 0 0 var(--space-md);
  color: rgba(232, 238, 241, 0.88);
}

@keyframes kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* —— Sections —— */
.section {
  padding: var(--space-2xl) clamp(1rem, 4vw, 2.5rem);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--charcoal);
}

.section__lede {
  margin: 0;
  max-width: 42ch;
  color: var(--bay-mid);
  font-size: 1.1rem;
}

.section--fires {
  background: linear-gradient(165deg, var(--bay-deep) 0%, var(--bay-mid) 100%);
  color: var(--foam);
}

.section--fires .section__title {
  color: var(--foam);
}

.section--fires .section__lede {
  color: rgba(232, 238, 241, 0.85);
}

.fires-layout {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: center;
}

@media (min-width: 800px) {
  .fires-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.fires-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fires-list h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.fires-list p {
  margin: 0;
  color: rgba(232, 238, 241, 0.8);
  max-width: 36ch;
}

.fires-media {
  display: grid;
  gap: 0.5rem;
}

.fires-media__shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.fires-media__shot--portrait {
  aspect-ratio: 3 / 4;
  max-height: 22rem;
  justify-self: stretch;
}

.fires-media__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section--place {
  background: var(--foam);
}

.place-layout {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (min-width: 800px) {
  .place-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.place-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--explore {
  background: var(--bay-deep);
  color: var(--foam);
  position: relative;
  overflow: hidden;
}

.section--explore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bay-path.jpg") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.section--explore .section__inner {
  position: relative;
  z-index: 1;
}

.section--explore .section__title {
  color: var(--foam);
}

.section--explore .section__lede {
  color: rgba(232, 238, 241, 0.88);
  max-width: 48ch;
}

.explore-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--fog);
}

.explore-points li {
  position: relative;
  padding-left: 1rem;
}

.explore-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
}

/* —— Gallery —— */
.section--gallery {
  background: var(--charcoal);
  color: var(--foam);
  padding-bottom: var(--space-xl);
}

.section--gallery .section__title {
  color: var(--foam);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 12rem;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 2;
  }
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 10rem;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* —— Guest quotes —— */
.section--guests {
  background: var(--foam);
}

.guest-quotes {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (min-width: 800px) {
  .guest-quotes {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.guest-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.guest-quote p {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--charcoal);
}

.guest-quote footer {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bay-mid);
}

.guest-more {
  margin: var(--space-lg) 0 0;
  font-size: 0.9375rem;
}

.guest-more a {
  color: var(--bay-mid);
  text-underline-offset: 3px;
}

.guest-more a:hover {
  color: var(--amber);
}

/* —— Book strip —— */
.section--book {
  background: linear-gradient(120deg, var(--bay-mid), var(--bay-deep));
  color: var(--foam);
  text-align: center;
  padding: var(--space-xl) clamp(1rem, 4vw, 2.5rem);
}

.section--book .section__title {
  color: var(--foam);
}

.section--book .section__lede {
  margin-left: auto;
  margin-right: auto;
  color: rgba(232, 238, 241, 0.85);
}

.section--book .btn-group {
  justify-content: center;
  margin-top: var(--space-md);
}

.location-line {
  margin: var(--space-md) 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bay-mist);
}

/* —— Footer —— */
.site-footer {
  background: var(--charcoal);
  color: var(--bay-mist);
  padding: var(--space-md) clamp(1rem, 4vw, 2.5rem);
  font-size: 0.8125rem;
  text-align: center;
}

.site-footer a {
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary:hover,
  .gallery__item:hover img {
    transform: none;
  }
}
