/* Hessel Bay Cabins - subpage styles
   Matches the look of the home page: yellow body, dark green hero band,
   Dela Gothic One headings and Epilogue body text. */

:root {
  --hb-yellow: #ebb600;
  --hb-green: #0e3000;
  --hb-white: #ffffff;
  --hb-black: #000000;
  --hb-gutter: clamp(20px, 4vw, 56px);
  --hb-max: 1100px;
}

/* ---------- Active state in the header navigation ---------- */
.header-nav-item--active > a,
.header-menu-nav-item--active > a {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ---------- Hero ---------- */
.hb-hero {
  background: var(--hb-green);
  padding: 0 var(--hb-gutter) var(--hb-gutter);
}
.hb-hero__media {
  position: relative;
  min-height: clamp(260px, 42vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1d4a10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hb-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}
.hb-hero__text {
  position: relative;
  max-width: 900px;
  padding: 40px 20px;
}
.hb-hero h1 {
  margin: 0;
  color: var(--hb-white);
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hb-hero--plain .hb-hero__media {
  min-height: clamp(180px, 24vw, 280px);
  background-image: none !important;
  background-color: transparent;
}
.hb-hero--plain .hb-hero__media::before { display: none; }

/* ---------- Generic sections ---------- */
.hb-section {
  background: var(--hb-yellow);
  color: var(--hb-black);
  padding: clamp(40px, 7vw, 88px) var(--hb-gutter);
  font-family: "Epilogue", sans-serif;
}
.hb-section--green {
  background: var(--hb-green);
  color: var(--hb-white);
}
.hb-wrap {
  max-width: var(--hb-max);
  margin: 0 auto;
}
.hb-wrap--narrow { max-width: 760px; }

.hb-section h2,
.hb-section h3,
.hb-hero h1,
.hb-cta h2 { color: inherit; }
.hb-hero h1,
.hb-cta h2 { color: var(--hb-white); }
.hb-section h2 {
  margin: 0 0 0.6em;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hb-section h3 {
  margin: 0 0 0.4em;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hb-section p,
.hb-section li {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
.hb-section p { margin: 0 0 1em; }
.hb-section a:not(.hb-btn) {
  color: inherit;
  text-underline-offset: 3px;
}
.hb-section p.hb-lead {
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  line-height: 1.5 !important;
  max-width: 760px;
  margin: 0 auto;
}
.hb-center { text-align: center; }

/* ---------- Split layout (image + text) ---------- */
.hb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hb-split--reverse .hb-split__media { order: 2; }
.hb-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Cards ---------- */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 36px);
}
.hb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hb-card {
  background: var(--hb-white);
  color: var(--hb-black);
  padding: clamp(20px, 3vw, 32px);
}
.hb-section--green .hb-card { background: rgba(255, 255, 255, 0.08); color: var(--hb-white); }
.hb-card p:last-child { margin-bottom: 0; }
.hb-card img {
  display: block;
  width: calc(100% + clamp(40px, 6vw, 64px));
  margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px)) 1.2em;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Lists ---------- */
.hb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hb-list li {
  position: relative;
  padding: 0.55em 0 0.55em 1.6em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.hb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.6em;
  height: 0.6em;
  background: var(--hb-green);
}
.hb-section--green .hb-list li { border-color: rgba(255, 255, 255, 0.25); }
.hb-section--green .hb-list li::before { background: var(--hb-yellow); }

/* ---------- Buttons ---------- */
.hb-btn {
  display: inline-block;
  padding: 1.1em 2.2em;
  background: var(--hb-white);
  color: var(--hb-green) !important;
  font-family: "Cabin", "Epilogue", sans-serif;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid var(--hb-white);
  transition: background 0.2s, color 0.2s;
}
.hb-btn:hover { background: var(--hb-green); color: var(--hb-white) !important; border-color: var(--hb-green); }
.hb-section--green .hb-btn:hover { background: transparent; color: var(--hb-white) !important; border-color: var(--hb-white); }
.hb-btn--dark { background: var(--hb-green); color: var(--hb-white) !important; border-color: var(--hb-green); }
.hb-btn--dark:hover { background: transparent; color: var(--hb-green) !important; }
.hb-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hb-center .hb-btns { justify-content: center; }

/* ---------- Call to action band ---------- */
.hb-cta {
  background: var(--hb-green);
  color: var(--hb-white);
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--hb-gutter);
}
.hb-cta h2 {
  margin: 0 0 0.8em;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hb-cta .hb-btn:hover { background: transparent; color: var(--hb-white) !important; border-color: var(--hb-white); }

/* ---------- Contact box ---------- */
.hb-contact {
  background: var(--hb-white);
  padding: clamp(24px, 4vw, 44px);
}
.hb-contact dt {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1.05rem;
  margin-top: 1.2em;
}
.hb-contact dt:first-child { margin-top: 0; }
.hb-contact dd { margin: 0.2em 0 0; font-size: 1.1rem; line-height: 1.5; }

/* ---------- Legal text ---------- */
.hb-legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.hb-legal h2:first-child { margin-top: 0; }

/* ---------- Footer site links ---------- */
.hb-footer-nav {
  background: var(--hb-yellow);
  padding: 0 var(--hb-gutter) clamp(28px, 4vw, 48px);
  font-family: "Epilogue", sans-serif;
}
.hb-footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 auto;
  padding: 0;
  max-width: 1500px;
}
.hb-footer-nav a {
  color: #000;
  font-size: 1rem;
  text-decoration: none;
}
.hb-footer-nav a:hover,
.hb-footer-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hb-split,
  .hb-grid,
  .hb-grid--2 { grid-template-columns: 1fr; }
  .hb-split--reverse .hb-split__media { order: 0; }
}
