/* ============================================================
   Sand Castle — Brooklyn Location Page
   Scoped BEM prefix: scb-
   ============================================================ */

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

.scb-page {
  --scb-main: #8B6C39;
  --scb-second: #9B8155;
  --scb-cream: #F4EEE6;
  --scb-white: #FFFFFF;
  --scb-ink: #2E2620;
  --scb-body: #58504a;
  --scb-line: rgba(139, 108, 57, 0.22);

  --scb-display: 'Playfair Display', Georgia, serif;
  --scb-text: 'Nunito Sans', Helvetica, Arial, sans-serif;

  margin: 0;
  padding: 0;
  background: var(--scb-white);
  color: var(--scb-body);
  font-family: var(--scb-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.scb-page h1,
.scb-page h2,
.scb-page h3,
.scb-page h4 {
  font-family: var(--scb-display);
  font-weight: 700;
  color: var(--scb-ink);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.scb-page p { margin: 0 0 1.1em; }
.scb-page p:last-child { margin-bottom: 0; }
.scb-page img { max-width: 100%; display: block; }

.scb-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.scb-section { padding: 92px 0; }
.scb-section--cream { background: var(--scb-cream); }

.scb-eyebrow {
  font-family: var(--scb-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--scb-second);
  margin: 0 0 18px;
}

.scb-rule {
  width: 54px;
  height: 1px;
  background: var(--scb-main);
  border: 0;
  margin: 22px 0 26px;
}
.scb-rule--center { margin-left: auto; margin-right: auto; }

.scb-head { max-width: 760px; }
.scb-head--center { margin: 0 auto; text-align: center; }
.scb-head__title { font-size: clamp(28px, 3.6vw, 43px); }
.scb-head__sub { margin-top: 18px; font-size: 18px; color: var(--scb-second); }

/* ---------- Button ---------- */
.scb-btn {
  display: inline-block;
  font-family: var(--scb-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 40px;
  background: var(--scb-main);
  color: var(--scb-white);
  border: 1px solid var(--scb-main);
  border-radius: 2px;
  cursor: pointer;
  transition: background .28s ease, color .28s ease;
}
.scb-btn:hover { background: var(--scb-second); border-color: var(--scb-second); }
.scb-btn:focus-visible { outline: 2px solid var(--scb-ink); outline-offset: 3px; }

.scb-btn--lg { padding: 19px 46px; }

/* ---------- Hero ---------- */
.scb-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-color: #2E2620;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}
.scb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,38,32,.55) 0%, rgba(46,38,32,.35) 40%, rgba(46,38,32,.86) 100%);
}
.scb-hero__inner { position: relative; z-index: 2; width: 100%; padding: 120px 0 64px; }
.scb-hero__eyebrow {
  color: #E9DCC6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.scb-hero__title {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 66px);
  max-width: 16ch;
}
.scb-hero__text {
  color: rgba(255,255,255,.9);
  max-width: 54ch;
  margin: 24px 0 0;
  font-size: 18px;
}
.scb-hero__cta { margin-top: 34px; }

.scb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.scb-stats__item {
  padding: 26px 20px 4px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.scb-stats__item:last-child { border-right: 0; }
.scb-stats__num {
  font-family: var(--scb-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--scb-white);
  line-height: 1;
}
.scb-stats__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E4D6BE;
}

/* ---------- Intro ---------- */
.scb-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.scb-intro__figure { position: relative; }
.scb-intro__figure img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 3px;
}
.scb-intro__figure::before {
  content: "";
  position: absolute;
  top: -18px; left: -18px;
  width: 130px; height: 130px;
  border-top: 1px solid var(--scb-main);
  border-left: 1px solid var(--scb-main);
}
.scb-intro__pull {
  font-family: var(--scb-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--scb-ink);
  line-height: 1.4;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--scb-line);
}

/* ---------- Spaces ---------- */
.scb-space {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--scb-line);
}
.scb-space:last-of-type { border-bottom: 0; padding-bottom: 0; }
.scb-space--flip .scb-space__media { order: 2; }
.scb-space__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 3px;
}
.scb-space__title { font-size: clamp(23px, 2.4vw, 30px); }
.scb-space__note {
  margin-top: 22px;
  padding: 22px 26px;
  background: var(--scb-white);
  border-left: 3px solid var(--scb-main);
  font-size: 16px;
  color: var(--scb-second);
}

/* ---------- Packages ---------- */
.scb-pkg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--scb-line);
  border: 1px solid var(--scb-line);
  margin-top: 48px;
}
.scb-pkg__cell {
  background: var(--scb-white);
  padding: 28px 26px 30px;
}
.scb-pkg__label {
  font-family: var(--scb-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--scb-ink);
  display: block;
  margin-bottom: 10px;
}
.scb-pkg__value { font-size: 16px; color: var(--scb-body); margin: 0; }
.scb-pkg__foot {
  margin-top: 26px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--scb-second);
}

/* ---------- Amenities ---------- */
.scb-amen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 48px;
}
.scb-amen__card {
  background: var(--scb-white);
  border: 1px solid var(--scb-line);
  border-radius: 3px;
  overflow: hidden;
}
.scb-amen__card img { width: 100%; height: 220px; object-fit: cover; }
.scb-amen__body { padding: 28px 28px 32px; }
.scb-amen__title { font-size: 22px; margin-bottom: 12px; }
.scb-amen__body p { font-size: 16px; }

.scb-planning {
  margin-top: 46px;
  padding: 42px 46px;
  background: var(--scb-main);
  color: var(--scb-white);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.scb-planning__title { color: var(--scb-white); font-size: clamp(23px, 2.3vw, 30px); }
.scb-planning p { color: rgba(255,255,255,.92); font-size: 17px; }

/* ---------- Vendors ---------- */
.scb-vendors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 46px;
}
.scb-vendors__group { border-top: 2px solid var(--scb-main); padding-top: 20px; }
.scb-vendors__title {
  font-family: var(--scb-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--scb-ink);
  margin: 0 0 14px;
}
.scb-vendors__list { margin: 0; padding: 0; list-style: none; }
.scb-vendors__list li {
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--scb-line);
  color: var(--scb-ink);
}
.scb-vendors__list li:last-child { border-bottom: 0; }

/* ---------- Directions ---------- */
.scb-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.scb-dir__address {
  font-family: var(--scb-display);
  font-size: clamp(21px, 2.2vw, 27px);
  color: var(--scb-second);
  margin: 0 0 30px;
}
.scb-dir__block { margin-bottom: 28px; }
.scb-dir__block h3 { font-size: 20px; margin-bottom: 8px; }
.scb-dir__map img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 3px; }

.scb-areas { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--scb-line); }
.scb-areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.scb-areas__list li {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--scb-line);
  border-radius: 999px;
  color: var(--scb-second);
}

/* ---------- FAQ ---------- */
.scb-faq { max-width: 860px; margin: 44px auto 0; }
.scb-faq__item { border-bottom: 1px solid var(--scb-line); }
.scb-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--scb-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--scb-ink);
}
.scb-faq__q:focus-visible { outline: 2px solid var(--scb-main); outline-offset: 3px; }
.scb-faq__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
}
.scb-faq__icon::before,
.scb-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--scb-main);
  transition: transform .3s ease, opacity .3s ease;
}
.scb-faq__icon::before { top: 10px; left: 0; width: 22px; height: 1.5px; }
.scb-faq__icon::after { left: 10px; top: 0; width: 1.5px; height: 22px; }
.scb-faq__item.is-open .scb-faq__icon::after { transform: rotate(90deg); opacity: 0; }
.scb-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.scb-faq__a p { padding: 0 0 24px; font-size: 16.5px; max-width: 68ch; }

/* ---------- Tour / Form ---------- */
.scb-tour {
  background-color: var(--scb-ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.scb-tour::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46,38,32,.78);
}
.scb-tour__inner { position: relative; z-index: 2; }
.scb-tour__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.scb-tour__title { color: var(--scb-white); font-size: clamp(28px, 3.4vw, 42px); }
.scb-tour__text { color: rgba(255,255,255,.88); margin-top: 22px; max-width: 46ch; }
.scb-tour__cta { margin-top: 30px; }

.scb-form {
  background: var(--scb-white);
  padding: 40px;
  border-radius: 3px;
}
.scb-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.scb-form__field { margin-bottom: 18px; }
.scb-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scb-second);
  margin-bottom: 7px;
}
.scb-form__input,
.scb-form__textarea {
  width: 100%;
  font-family: var(--scb-text);
  font-size: 16px;
  color: var(--scb-ink);
  padding: 13px 15px;
  background: var(--scb-cream);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color .25s ease;
}
.scb-form__input:focus,
.scb-form__textarea:focus { outline: none; border-color: var(--scb-main); }
.scb-form__textarea { resize: vertical; min-height: 110px; }
.scb-form__btn { width: 100%; margin-top: 8px; }

/* ---------- Motion ---------- */
.scb-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.scb-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scb-page * { animation: none !important; transition: none !important; }
  .scb-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scb-pkg { grid-template-columns: repeat(2, 1fr); }
  .scb-vendors { grid-template-columns: repeat(2, 1fr); }
  .scb-amen { grid-template-columns: 1fr; }
  .scb-amen__card img { height: 260px; }
}

@media (max-width: 860px) {
  .scb-section { padding: 66px 0; }
  .scb-intro__grid,
  .scb-space,
  .scb-dir,
  .scb-tour__grid,
  .scb-planning { grid-template-columns: 1fr; gap: 36px; }
  .scb-space--flip .scb-space__media { order: 0; }
  .scb-intro__figure img { height: 380px; }
  .scb-space__media img { height: 300px; }
  .scb-stats { grid-template-columns: repeat(2, 1fr); }
  .scb-stats__item:nth-child(2) { border-right: 0; }
  .scb-stats__item:nth-child(1),
  .scb-stats__item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .scb-planning { padding: 32px 28px; }
  .scb-form { padding: 28px; }
}

@media (max-width: 560px) {
  .scb-pkg { grid-template-columns: 1fr; }
  .scb-vendors { grid-template-columns: 1fr; }
  .scb-form__row { grid-template-columns: 1fr; gap: 0; }
  .scb-hero { min-height: 78vh; }
}

/* ---------- Drive time table (used on Queens-style pages) ---------- */
.scb-drive {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 30px;
  background: var(--scb-white);
  border: 1px solid var(--scb-line);
}
.scb-drive th,
.scb-drive td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--scb-line);
  font-size: 16px;
}
.scb-drive tr:last-child td { border-bottom: 0; }
.scb-drive th {
  font-family: var(--scb-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--scb-ink);
  background: var(--scb-cream);
}
.scb-drive td:first-child { color: var(--scb-ink); font-weight: 600; }

@media (max-width: 560px) {
  .scb-drive th, .scb-drive td { padding: 11px 12px; font-size: 15px; }
}

/* ---------- FAQ heading wrapper (heading tag is editable in admin) ---------- */
.scb-faq__qwrap {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* ---------- Embedded form (shortcode / iframe) ---------- */
.scb-form--embed iframe { width: 100%; border: 0; display: block; }
