/*
Theme Name: The Velvet Sage Room
Theme URI: https://instagram.com/thevelvetsageroom
Author: Coffeecake
Description: A refined one-page WordPress theme for The Velvet Sage Room in Big Bear Lake.
Version: 2.2.0
Text Domain: velvet-sage-room
*/

:root {
  --black: #111211;
  --white: #ffffff;
  --warm: #eeebe5;
  --gold: #ddb84a;
  --forest: #315f40;
  --line: #1b1c1a;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  min-height: 108px;
  grid-template-columns: 220px 1fr;
  align-items: center;
  padding: 10px clamp(22px, 3vw, 46px);
  border-bottom: 1px solid rgba(17,18,17,0.08);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  width: 185px;
  height: 82px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.desktop-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 38px;
}
.nav-links, .nav-actions { display: flex; align-items: center; }
.nav-links { justify-content: center; gap: clamp(24px, 3vw, 52px); }
.nav-actions { justify-content: flex-end; gap: 18px; }
.nav-link {
  position: relative;
  padding: 9px 0;
  font-size: 0.98rem;
  text-decoration: none;
}
.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--black);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.pill:hover { background: var(--black); color: var(--white); transform: translateY(-1px); }
.pill--light { background: var(--white); }
.pill--dark { border-color: var(--white); background: var(--gold); }
.menu-toggle {
  display: none;
  justify-self: end;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 108px);
  place-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,6,5,0.56), rgba(5,6,5,0.34), rgba(5,6,5,0.57));
  content: "";
}
.hero-mark {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100vw - 44px));
  padding: 20px 34px;
  text-align: center;
}
.hero-mark img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 8px 22px rgba(0,0,0,0.28));
}
.hero-mark p {
  margin: 6px 0 0;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-book { position: absolute; z-index: 2; bottom: 34px; }

.services { padding: clamp(90px, 10vw, 150px) clamp(24px, 8vw, 140px) clamp(100px, 11vw, 170px); }
.centered-intro {
  max-width: 790px;
  margin: 0 auto clamp(60px, 7vw, 100px);
  text-align: center;
}
.kicker { margin: 0 0 12px; color: var(--forest); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 350; line-height: 1.07; }
.centered-intro h2 { margin-bottom: 25px; font-size: clamp(2.5rem, 4.5vw, 4.2rem); letter-spacing: -0.035em; }
.centered-intro p { margin-bottom: 13px; font-size: 1.04rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 22px; }
.service-card { display: block; text-decoration: none; }
.service-image { position: relative; aspect-ratio: 1.34 / 1; overflow: hidden; background: var(--warm); }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.service-card:hover .service-image img { transform: scale(1.025); }
.service-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 350;
  line-height: 1.2;
}
.arrow { font-size: 1.6rem; transition: transform 180ms ease; }
.service-card:hover .arrow { transform: translateX(6px); }
.service-card--wide { grid-column: 1 / -1; }
.service-card--wide .service-image { aspect-ratio: 2.45 / 1; }
.service-card--wide .service-image img { object-position: center 54%; }

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(45px, 6vw, 100px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 110px);
  background: var(--warm);
}
.about-copy h2 {
  max-width: 820px;
  margin-bottom: 30px;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  letter-spacing: -0.055em;
}
.about-copy p { max-width: 680px; margin-bottom: 21px; }
.about-copy .pill { margin-top: 12px; }
.brand-panel {
  display: grid;
  min-height: 660px;
  place-items: center;
  padding: clamp(34px, 6vw, 82px);
  border: 1px solid rgba(17,18,17,0.16);
  background: var(--white);
}
.brand-panel-inner { width: 100%; text-align: center; }
.brand-panel img { width: min(100%, 520px); margin: 0 auto 36px; }
.brand-panel-line { width: 64px; height: 2px; margin: 0 auto 30px; background: var(--gold); }
.brand-panel p { margin: 0; font-size: 1.15rem; }

.book-banner {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
  overflow: hidden;
  padding: 70px 24px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.book-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(0.74); }
.book-banner::after { position: absolute; inset: 0; background: rgba(7,8,7,0.68); content: ""; }
.book-banner-content { position: relative; z-index: 1; max-width: 800px; }
.book-banner .kicker { color: var(--gold); }
.book-banner h2 { margin-bottom: 22px; font-size: clamp(3rem, 6.5vw, 6rem); letter-spacing: -0.045em; }
.book-banner p { max-width: 610px; margin: 0 auto 32px; font-size: 1.08rem; }

.booking {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(45px, 8vw, 120px);
  padding: clamp(85px, 10vw, 150px) clamp(24px, 7vw, 110px);
  background: var(--warm);
}
.booking-intro { align-self: start; position: sticky; top: 145px; }
.booking-intro h2 {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  letter-spacing: -0.055em;
}
.booking-intro > p:not(.kicker) { max-width: 570px; font-size: 1.05rem; }
.booking-details { margin-top: 42px; border-top: 1px solid rgba(17,18,17,0.18); }
.booking-details p {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid rgba(17,18,17,0.18);
}
.booking-details span { color: var(--forest); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; }
.booking-card { padding: clamp(28px, 4vw, 58px); border: 1px solid rgba(17,18,17,0.15); background: var(--white); }
.booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.form-field label span { color: rgba(17,18,17,0.55); font-weight: 500; text-transform: none; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(17,18,17,0.28);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
}
.form-field textarea { min-height: 105px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--forest); }
.form-field select:disabled { color: rgba(17,18,17,0.48); background: #f4f2ee; }
.field-note { color: rgba(17,18,17,0.62); font-size: 0.75rem; }
.field-note.is-error { color: #9d2d24; font-weight: 600; }
.booking-submit { grid-column: 1 / -1; width: 100%; margin-top: 5px; cursor: pointer; font-family: inherit; }
.booking-disclaimer { grid-column: 1 / -1; margin: -10px 0 0; color: rgba(17,18,17,0.58); font-size: 0.77rem; text-align: center; }
.booking-success {
  grid-column: 1 / -1;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(49,95,64,0.09);
}
.booking-success strong, .booking-success span { display: block; }
.booking-success strong { color: var(--forest); font-size: 1.08rem; }
.booking-success span { margin-top: 4px; }

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.visit-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vw, 140px); }
.visit-copy h2 { margin-bottom: 25px; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.04em; }
.address { margin-bottom: 30px; font-size: 1.25rem; line-height: 1.45; }
.visit-art {
  display: grid;
  min-height: 480px;
  place-items: center;
  padding: 55px;
  background-color: var(--forest);
  background-image: linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.06) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-position: 0 0, 0 32px, 32px -32px, -32px 0;
  background-size: 64px 64px;
}
.visit-card { width: min(500px, 100%); padding: 50px; border: 1px solid rgba(221,184,74,0.72); background: rgba(9,28,16,0.16); text-align: center; }
.visit-card img { width: 100%; margin: 0 auto 26px; filter: brightness(0) invert(1); }
.visit-card p { margin: 0; color: var(--gold); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 58px clamp(24px, 5vw, 72px);
  background: var(--black);
  color: var(--white);
}
.footer-name { margin-bottom: 8px; font-size: 1.65rem; font-weight: 350; }
.footer-meta { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.floating-book { display: none; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 190px 1fr; }
  .nav-links { gap: 22px; }
  .nav-actions .pill--light { display: none; }
}

@media (max-width: 840px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { min-height: 84px; grid-template-columns: 1fr auto; padding: 7px 20px; }
  .brand { width: 155px; height: 68px; }
  .menu-toggle { display: block; }
  .desktop-nav { display: none; }
  .desktop-nav.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    padding: 18px 22px 26px;
    border-top: 1px solid rgba(17,18,17,0.08);
    border-bottom: 1px solid rgba(17,18,17,0.1);
    background: var(--white);
  }
  .nav-links, .nav-actions { display: grid; gap: 0; }
  .nav-links { margin-bottom: 14px; }
  .nav-link { padding: 12px 0; }
  .nav-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-actions .pill--light { display: inline-flex; }
  .hero { min-height: calc(100svh - 84px); }
  .about, .booking, .visit { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  .brand-panel { min-height: 520px; }
  .visit-art { order: -1; }
}

@media (max-width: 620px) {
  .hero-mark { width: calc(100vw - 38px); padding: 20px 24px 18px; }
  .hero-mark img { max-height: 190px; }
  .hero-mark p { font-size: 0.67rem; letter-spacing: 0.15em; }
  .hero-book { bottom: 24px; }
  .service-grid { grid-template-columns: 1fr; gap: 42px; }
  .service-card--wide { grid-column: auto; }
  .service-card--wide .service-image { aspect-ratio: 1.34 / 1; }
  .about-copy h2 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .brand-panel { min-height: 430px; padding: 34px; }
  .booking-form { grid-template-columns: 1fr; }
  .form-field--full, .booking-submit, .booking-disclaimer, .booking-success { grid-column: auto; }
  .visit-art { min-height: 420px; padding: 26px; }
  .visit-card { padding: 34px 26px; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 108px; }
  .footer-links { flex-wrap: wrap; }
  .floating-book {
    position: fixed;
    z-index: 70;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
