/**
 * Kasteel Lunenburg theme — Bootstrap5 subtheme styles.
 * Palette and components from the homepage design.
 */

:root {
  --lb-forest: #3f6b46;
  --lb-forest-dark: #2b4d31;
  --lb-ink: #233326;
  --lb-muted: #3d4a3f;
  --lb-soft: #5c6a5e;
  --lb-gold: #8a6a3d;
  --lb-cream: #fbfaf6;
  --lb-sand: #f1eee2;
  --lb-hero-eyebrow: #e7d9b8;
}

body.lunenburg-body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--lb-ink);
  background: var(--lb-cream);
}

h1,
h2,
h3,
.brandfont {
  font-family: "Cormorant Garamond", serif;
}

a {
  color: var(--lb-forest);
}

a:hover {
  color: var(--lb-forest-dark);
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

/* Navbar */
.lunenburg-navbar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.lunenburg-brand {
  color: var(--lb-ink) !important;
}

.fs-3 {
  font-size: 2.1rem !important;
}

.nav-link-custom {
  color: var(--lb-ink) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--lb-forest) !important;
}

/* Buttons */
.btn-forest {
  background: var(--lb-forest);
  border-color: var(--lb-forest);
  color: #fff;
}

.btn-forest:hover,
.btn-forest:focus {
  background: var(--lb-forest-dark);
  border-color: var(--lb-forest-dark);
  color: #fff;
}

.btn-outline-forest {
  border-color: var(--lb-forest);
  color: var(--lb-forest);
  background: transparent;
}

.btn-outline-forest:hover,
.btn-outline-forest:focus {
  background: var(--lb-forest);
  border-color: var(--lb-forest);
  color: #fff;
}

.section-eyebrow {
  color: var(--lb-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.divider-leaf {
  width: 56px;
  height: 3px;
  background: var(--lb-gold);
  border-radius: 2px;
}

.card-nav {
  border: none;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(35, 51, 38, 0.06);
  background: #fff;
}

.card-nav:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(35, 51, 38, 0.12);
}

.card-nav .bi {
  font-size: 1.8rem;
  color: var(--lb-forest);
}

/* Hero */
.page-hero {
  position: relative;
  height: min(88vh, 780px);
  min-height: 520px;
  overflow: hidden;
  background: #141c14;
}

.page-hero__media,
.page-hero__placeholder {
  position: absolute;
  inset: 0;
}

.page-hero__placeholder {
  background:
    linear-gradient(135deg, #2a3a2c 0%, #1a241c 45%, #3a4d36 100%);
}

.page-hero__iframe-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  min-height: 56.25vw;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-hero__iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 20, 0.15) 0%, rgba(20, 28, 20, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.page-hero__inner {
  max-width: 640px;
  pointer-events: auto;
}

.page-hero__eyebrow {
  color: var(--lb-hero-eyebrow);
}

.page-hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero__lead {
  color: #eef1e9;
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

/* Legacy hero class kept for older markup */
.page-hero-video {
  position: relative;
  width: 100%;
  height: min(88vh, 780px);
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.page-hero-video__media {
  position: absolute;
  inset: 0;
}

.page-hero-video__iframe-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  min-height: 56.25vw;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-hero-video__iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-hero-video__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

/* Homepage content sections (seed HTML) */
.lunenburg-main--front {
  flex-grow: 1;
}

.lunenburg-main--front .region-highlighted,
.lunenburg-main--front .block-system-main-block,
.lunenburg-main--front article {
  margin: 0;
}

.lunenburg-main--front .block-page-title-block,
.homepage .block-page-title-block {
  display: none;
}

.lb-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.lb-section--sand {
  background: var(--lb-sand);
}

.lb-section__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, #d9d2c0, #b7c2b0 55%, #8a9a86);
}

.lb-section__media--map {
  aspect-ratio: 16 / 9;
}

.lb-section__media--map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lb-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-section h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-section p {
  font-size: 1.05rem;
  color: var(--lb-muted);
}

.lb-discover-title {
  font-size: 2rem !important;
}

.lb-card-text {
  color: var(--lb-soft) !important;
  font-size: 0.95rem !important;
}

/* Footer */
.lunenburg-footer {
  background: var(--lb-ink);
  color: #e9ede6;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.lunenburg-footer__brand {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lunenburg-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lunenburg-footer__text,
.lunenburg-footer__links a {
  color: #c3cbc2;
  font-size: 0.95rem;
}

.lunenburg-footer__links a:hover,
.lunenburg-footer__text a:hover {
  color: #fff;
}

.lunenburg-footer__rule {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1rem;
}

.lunenburg-footer__copy {
  color: #8fa091;
  font-size: 0.85rem;
}

/* Forms / chrome */
.skip-link {
  position: absolute;
  left: -999px;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tabs a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  text-decoration: none;
}

.tabs a.is-active {
  background: var(--lb-forest);
  border-color: var(--lb-forest);
  color: #fff;
}

.lunenburg-contact .form-item {
  margin-bottom: 1rem;
}

.lunenburg-contact .form-control,
.lunenburg-contact input[type="text"],
.lunenburg-contact input[type="email"],
.lunenburg-contact textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.lunenburg-contact .btn-success {
  background: var(--lb-forest);
  border-color: var(--lb-forest);
}

/* Season gallery tabs */
.lb-season-tabs {
  border-bottom-color: rgba(63, 107, 70, 0.25);
  gap: 0.25rem;
}

.lb-season-tabs .nav-link {
  color: var(--lb-ink);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 0.5rem 0.5rem 0 0;
}

.lb-season-tabs .nav-link:hover {
  color: var(--lb-forest);
  border-color: rgba(63, 107, 70, 0.2);
}

.lb-season-tabs .nav-link.active {
  color: #fff;
  background: var(--lb-forest);
  border-color: var(--lb-forest);
}

.visually-hidden,
.visually-hidden.focusable:not(:focus) {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}
