/* =====================================================
   BEAR CREEK MANOR
   Once upon the evergreens.
   ===================================================== */

:root {
  /* Brand palette — drawn from the property's stone, evergreens, and twilight */
  --evergreen:     #2c3a2e;   /* deep PNW forest */
  --evergreen-2:   #3d4f3f;
  --sage:          #8a9a7b;   /* matches the logo creek */
  --sage-soft:     #b7c1a8;
  --charcoal:      #2b2b2b;   /* matches the logo text */
  --stone:         #c9b89d;   /* warm stone manor */
  --sandstone:     #e8dfd0;
  --cream:         #f7f3ec;
  --ivory:         #fbfaf6;
  --gold:          #b08a4a;   /* warm interior light */
  --gold-soft:     #d4b885;

  --serif:    "Cormorant Garamond", "Garamond", serif;
  --display:  "Italiana", "Cormorant Garamond", serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --shadow-soft: 0 30px 60px -20px rgba(44,58,46,0.25);
  --shadow-img:  0 20px 50px -15px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--evergreen);
  letter-spacing: 0.005em;
  line-height: 1.15;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.eyebrow-light { color: var(--gold-soft); }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(247,243,236,0);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(247,243,236,0.96);
  box-shadow: 0 2px 30px -10px rgba(0,0,0,0.15);
  padding: 0.75rem 2.5rem;
  backdrop-filter: blur(8px);
}
.nav-logo img {
  height: 76px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease, height 0.4s ease;
}
.nav.scrolled .nav-logo img { filter: none; height: 60px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 400;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.nav.scrolled .nav-links a { color: var(--evergreen); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--ivory) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 0;
  transition: background 0.3s ease;
}
.nav.scrolled .nav-cta { color: var(--ivory) !important; }
.nav-cta:hover { background: var(--evergreen) !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ivory);
  transition: 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--evergreen); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  text-align: center;
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(44,58,46,0.35) 0%, rgba(44,58,46,0.15) 40%, rgba(44,58,46,0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
  animation: fadeUp 1.4s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-mark {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}
.hero-mark svg {
  width: 120px; height: 14px;
  stroke: var(--gold-soft);
  fill: var(--gold-soft);
  stroke-width: 0.8;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
}
.hero-scroll {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.9;
}
.hero-scroll span {
  display: block;
  margin-top: 0.5rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ===================== STORY ===================== */
.story {
  padding: 8rem 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-text h2 { margin-bottom: 1.5rem; }
.story-text p {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.85;
  font-weight: 300;
}
.btn-text {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s, border-color 0.3s, letter-spacing 0.3s;
}
.btn-text:hover {
  color: var(--evergreen);
  border-color: var(--evergreen);
  letter-spacing: 0.34em;
}
.story-images {
  position: relative;
  height: 560px;
}
.story-img {
  position: absolute;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-img);
}
.story-img.big {
  top: 0; left: 0;
  width: 75%; height: 75%;
}
.story-img.small {
  bottom: 0; right: 0;
  width: 55%; height: 50%;
  border: 6px solid var(--ivory);
}

/* ===================== RIBBON ===================== */
.ribbon {
  background: var(--evergreen);
  color: var(--ivory);
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.ribbon-item {
  text-align: center;
  min-width: 140px;
}
.ribbon-num {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.ribbon-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-soft);
}
.ribbon-sep {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.5;
}

/* ===================== AMENITIES ===================== */
.amenities {
  padding: 8rem 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.amenity {
  display: flex;
  flex-direction: column;
}
.amenity-img {
  height: 320px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  transition: transform 0.6s ease;
  box-shadow: var(--shadow-img);
}
.amenity:hover .amenity-img {
  transform: translateY(-6px);
}
.amenity-body h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--evergreen);
  margin-bottom: 0.75rem;
}
.amenity-body p {
  color: var(--charcoal);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ===================== COUNTRY CLUB ===================== */
.country-club {
  background: var(--cream);
  padding: 7rem 2.5rem;
}
.cc-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cc-image {
  position: relative;
  height: 580px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-img);
}
.cc-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--evergreen);
  color: var(--ivory);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(44,58,46,0.4);
  border: 4px solid var(--cream);
}
.cc-badge svg {
  width: 28px; height: 28px;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}
.cc-badge span {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--gold-soft);
}
.cc-text h2 { margin-bottom: 1.5rem; }
.cc-text p { font-size: 1.05rem; line-height: 1.85; }
.cc-text em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--evergreen);
  font-weight: 500;
}
.cc-link {
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.cc-link:hover { color: var(--gold); border-color: var(--gold); }
.cc-list {
  list-style: none;
  margin: 1.5rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.cc-list li {
  font-size: 0.95rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cc-list li span {
  color: var(--gold);
  font-size: 0.85rem;
}
.cc-note {
  font-style: italic;
  font-family: var(--serif);
  color: var(--sage);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ===================== OCCASIONS ===================== */
.occasions {
  padding: 7rem 2.5rem 8rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.occasions-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.occasion {
  background: var(--ivory);
  border: 1px solid var(--sandstone);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.occasion:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.occasion-img {
  height: 280px;
  background-size: cover;
  background-position: center;
}
.occasion-body {
  padding: 2rem 2rem 2.25rem;
}
.occasion-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.occasion-body h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  color: var(--evergreen);
}
.occasion-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ===================== GALLERY ===================== */
.gallery {
  padding: 8rem 2.5rem;
  background: var(--cream);
}
.masonry {
  max-width: 1400px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 1.5rem;
}
.m-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.25);
}
.m-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}
.m-item:hover img {
  transform: scale(1.04);
}

/* Logo card in gallery */
.m-logo {
  background: var(--evergreen);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2.5rem 1.5rem;
  cursor: default;
  text-align: center;
}
.m-logo:hover img { transform: none; }
.m-logo-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.m-logo img {
  display: block;
  width: 80%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1) opacity(0.92);
}
.m-logo p {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 4rem 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: var(--ivory);
  background: none;
  border: none;
  cursor: pointer;
}

/* ===================== BOOK ===================== */
.book {
  padding: 7rem 2.5rem;
  background:
    linear-gradient(rgba(44,58,46,0.85), rgba(44,58,46,0.92)),
    url('images/BCMnightfront.png') center / cover fixed;
  color: var(--ivory);
  text-align: center;
}
.book-inner {
  max-width: 900px;
  margin: 0 auto;
}
.book h2 { color: var(--ivory); }
.book-sub {
  color: var(--sage-soft);
  font-size: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 3rem;
}
.pms-widget {
  background: var(--ivory);
  border: 1px solid rgba(212,184,133,0.35);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.pms-iframe {
  width: 100%;
  height: 920px;
  border: 0;
  display: block;
  background: var(--ivory);
}
.pms-fallback {
  margin: 0 !important;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem !important;
  color: var(--charcoal) !important;
  background: var(--cream);
  border-top: 1px solid var(--sandstone);
}
.pms-fallback a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-left: 0.25rem;
}
.pms-fallback a:hover { color: var(--evergreen); border-color: var(--evergreen); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ivory);
  padding: 1rem 2.25rem;
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 1.5rem;
}
.btn:hover {
  background: var(--evergreen);
  transform: translateY(-1px);
}
.btn-block {
  width: 100%;
  padding: 1.15rem;
}

/* ===================== CONTACT ===================== */
.contact {
  padding: 8rem 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-text p { font-size: 1.05rem; line-height: 1.85; }
.contact-meta {
  margin-top: 2.5rem;
  border-top: 1px solid var(--sandstone);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-meta strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-meta a { color: var(--evergreen); border-bottom: 1px solid var(--sage); }

.contact-form {
  background: var(--cream);
  padding: 3rem;
  border: 1px solid var(--sandstone);
}
.field { margin-bottom: 1.5rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sandstone);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,138,74,0.12);
}
textarea { resize: vertical; }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--sage);
  text-align: center;
}
.form-note.success { color: var(--evergreen); font-weight: 500; }
.form-note.error   { color: #a04545; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--evergreen);
  color: var(--cream);
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}
.footer-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 0.5rem;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 2rem;
}
.footer-meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 75%;
    max-width: 320px;
    flex-direction: column;
    background: var(--ivory);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--evergreen) !important; }
  .nav-toggle { display: flex; }

  .story-grid,
  .contact-grid,
  .cc-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cc-image { height: 380px; }
  .cc-badge {
    width: 130px; height: 130px;
    right: -12px; bottom: -16px;
  }
  .cc-badge span { font-size: 0.85rem; }
  .occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .occasion-img { height: 240px; }
  .story-images { height: 480px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .amenity-img { height: 260px; }
  .masonry { column-count: 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.5rem; }
  .contact-form { padding: 2rem; }
  .contact-meta { grid-template-columns: 1fr; gap: 1.25rem; }
  .ribbon { gap: 1.5rem; padding: 2.5rem 1.5rem; }
  .ribbon-sep { display: none; }
  .book { padding: 5rem 1.5rem; }
}
@media (max-width: 600px) {
  .story, .amenities, .gallery, .contact, .country-club, .occasions { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: 5rem; padding-bottom: 5rem; }
  .amenity-grid { grid-template-columns: 1fr; }
  .occasion-grid { grid-template-columns: 1fr; }
  .cc-list { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .hero-title { letter-spacing: 0.02em; }
  .story-img.small { width: 60%; }
}
