/* =====================================================================
   DDL Tiles - enhancement layer (loads AFTER styles.css)
   Client design in styles.css stays untouched; this file only adds:
     1. Sticky header (home overlay made sticky with a solid scrolled state)
     2. Mobile hero overlap fix (cinematic hero stacks cleanly)
     3. Premium footer redesign (.ddl-footer)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. STICKY HEADER
   Inner pages already use position:sticky. The home header is a
   transparent absolute overlay that scrolls away - make it sticky too,
   keep it transparent over the hero, and fade in a solid bar on scroll.
--------------------------------------------------------------------- */
.v19-professional.cinematic-home .site-header {
  position: fixed;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.v19-professional.cinematic-home .site-header .inner {
  transition: height .35s ease;
}
.v19-professional.cinematic-home .site-header.is-scrolled {
  background: rgba(24, 16, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34);
  border-bottom: 1px solid rgba(199, 160, 91, 0.30);
}
.v19-professional.cinematic-home .site-header.is-scrolled .inner {
  height: 84px;
}
/* Inner-page headers: add a subtle lift once scrolled */
.v19-professional:not(.cinematic-home) .site-header.is-scrolled {
  box-shadow: 0 14px 40px rgba(31, 20, 16, 0.24);
}

/* ---------------------------------------------------------------------
   2. MOBILE HERO OVERLAP FIX
   The cinematic hero positions copy / award panel / service note
   absolutely with hard-coded offsets that collide on phones. Below
   760px, stack them in normal flow with clean spacing.
--------------------------------------------------------------------- */
@media (max-width: 760px) {
  .v19-professional .cinematic-hero {
    min-height: auto;
  }
  .v19-professional .cinematic-hero-inner {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 118px 0 52px;
    width: min(100% - 40px, 640px);
    margin: 0 auto;
  }
  .v19-professional .cinematic-hero-copy,
  .v19-professional .cinematic-award-panel,
  .v19-professional .cinematic-service-note {
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
  }
  .v19-professional .cinematic-hero-copy h1 {
    font-size: clamp(46px, 12vw, 66px);
  }
  .v19-professional .cinematic-service-note {
    padding-left: 16px;
    margin-top: 2px;
  }
  .v19-professional .cinematic-scroll-cue {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   3. PREMIUM FOOTER
   Replaces the flat .footer-compact block with a layered, editorial
   footer in the site's bronze / cream / serif language.
--------------------------------------------------------------------- */
.ddl-footer {
  position: relative;
  color: #efe6d8;
  background:
    radial-gradient(circle at 14% 0%, rgba(199, 160, 91, 0.12), transparent 42%),
    radial-gradient(circle at 88% 6%, rgba(169, 112, 81, 0.10), transparent 46%),
    linear-gradient(180deg, #241811 0%, #1c130e 46%, #150d09 100%);
  border-top: 1px solid rgba(199, 160, 91, 0.28);
  font-family: "Manrope", system-ui, sans-serif;
}
.ddl-footer .container {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
}

/* --- CTA band --- */
.ddl-footer-cta {
  border-bottom: 1px solid rgba(199, 160, 91, 0.18);
}
.ddl-footer-cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(48px, 6vw, 82px) 0;
}
.ddl-footer-cta-copy {
  max-width: 640px;
}
.ddl-footer-cta .eyebrow {
  display: block;
  margin: 0 0 16px;
  color: #d7ad67;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.ddl-footer-cta h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #f7f0e4;
}
.ddl-footer-cta p {
  margin: 0;
  max-width: 560px;
  color: rgba(239, 230, 216, 0.72);
  font-size: 15px;
  line-height: 1.62;
}
.ddl-footer-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 232px;
}
.ddl-footer-cta-actions .button {
  justify-content: center;
  text-align: center;
}

/* --- Main: TWO-SIDED (brand block left, nav/contact right) --- */
.ddl-footer-main .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(48px, 5vw, 76px) 0;
}
.ddl-footer-brand {
  flex: 0 1 380px;
}
.ddl-footer-nav {
  display: flex;
  gap: clamp(30px, 4vw, 60px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* right-most column is right-aligned so the footer reads as two sides */
.ddl-footer-visit {
  text-align: right;
}
.ddl-footer-visit .ddl-footer-awards {
  justify-content: flex-end;
}
.ddl-footer-logo {
  width: 210px;
  max-width: 60%;
  height: auto;
  margin-bottom: 22px;
}
.ddl-footer-tagline {
  margin: 0 0 26px;
  max-width: 340px;
  color: rgba(239, 230, 216, 0.66);
  font-size: 14px;
  line-height: 1.65;
}
.ddl-footer-awards {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ddl-footer-awards img {
  width: 62px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}
.ddl-footer-awards div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ddl-footer-awards span {
  color: rgba(239, 230, 216, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ddl-footer-awards a {
  margin-top: 3px;
  color: #d7ad67;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(215, 173, 103, 0.4);
  align-self: flex-start;
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.ddl-footer-awards a:hover {
  color: #f0d9a8;
  border-color: #f0d9a8;
}

.ddl-footer-col h4 {
  margin: 0 0 20px;
  color: #d7ad67;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ddl-footer-col a,
.ddl-footer-col address {
  display: block;
  color: rgba(239, 230, 216, 0.82);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color .2s ease;
}
.ddl-footer-col a:hover {
  color: #fff;
}
.ddl-footer-col address {
  margin-bottom: 16px;
  color: rgba(239, 230, 216, 0.66);
}
.ddl-footer-visit a {
  font-weight: 600;
}
.ddl-footer-hours {
  margin: 4px 0 0;
  color: rgba(239, 230, 216, 0.55);
  font-size: 12.5px;
  line-height: 1.6;
}

/* --- Bottom bar --- */
.ddl-footer-bottom {
  border-top: 1px solid rgba(199, 160, 91, 0.16);
}
.ddl-footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0;
}
.ddl-footer-bottom span {
  color: rgba(239, 230, 216, 0.5);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ddl-footer-credit {
  flex: 1;
  text-align: center;
}
.ddl-footer-credit a {
  color: #d7ad67;
  text-decoration: none;
  border-bottom: 1px solid rgba(215, 173, 103, 0.4);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.ddl-footer-credit a:hover {
  color: #f0d9a8;
  border-color: #f0d9a8;
}

/* --- Footer responsive --- */
@media (max-width: 980px) {
  .ddl-footer-main .container {
    flex-direction: column;
    gap: 40px;
  }
  .ddl-footer-brand {
    flex: 1 1 auto;
  }
  .ddl-footer-nav {
    justify-content: flex-start;
    gap: 40px 48px;
    width: 100%;
  }
  .ddl-footer-visit {
    text-align: left;
  }
  .ddl-footer-visit .ddl-footer-awards {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  .ddl-footer .container {
    width: min(100% - 40px, 1240px);
  }
  .ddl-footer-cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .ddl-footer-cta-actions {
    width: 100%;
  }
  .ddl-footer-nav {
    flex-direction: column;
    gap: 30px;
  }
  .ddl-footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }
  .ddl-footer-credit {
    flex: none;
    text-align: left;
  }
  /* keep the sticky mobile-book bar from covering the bottom bar */
  .ddl-footer-bottom {
    padding-bottom: 72px;
  }
}

/* ---------------------------------------------------------------------
   4. APPOINTMENT FORM (real POST) - status + validation styling
--------------------------------------------------------------------- */
.booking-form .field-error {
  display: block;
  margin-top: 6px;
  color: #c0553d;
  font-size: 12.5px;
  line-height: 1.4;
}
.booking-form [aria-invalid="true"] {
  border-color: #c0553d !important;
  box-shadow: 0 0 0 2px rgba(192, 85, 61, 0.14);
}
.booking-form .booking-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ddl-muted, #71665d);
  cursor: pointer;
}
.booking-form .booking-consent input {
  width: auto;
  margin-top: 3px;
  flex: none;
}
.booking-form .required-mark {
  color: var(--ddl-bronze, #8e5e42);
}
.booking-form .form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.booking-form .form-status.success {
  color: #2f5d3a;
  background: rgba(120, 160, 110, 0.14);
  border-color: rgba(120, 160, 110, 0.4);
}
.booking-form .form-status.error {
  color: #a5372a;
  background: rgba(192, 85, 61, 0.10);
  border-color: rgba(192, 85, 61, 0.36);
}

/* ---------------------------------------------------------------------
   5. FULL-PAGE MOBILE MENU OVERLAY (global standard)
   Hamburger opens a full-screen overlay: nav + phone CTA + social.
--------------------------------------------------------------------- */
.ddl-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 92px 32px 44px;
  background:
    radial-gradient(circle at 20% 12%, rgba(199, 160, 91, 0.14), transparent 46%),
    linear-gradient(180deg, #221610 0%, #1a110c 55%, #140c08 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ddl-mobile-menu.open { display: flex; }
body.ddl-menu-open { overflow: hidden; }

.ddl-mm-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #f3ead9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(215, 189, 138, 0.34);
  border-radius: 0;
  cursor: pointer;
}
.ddl-mm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ddl-mm-nav a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #f4ece0;
  text-decoration: none;
  padding: 4px 0;
}
.ddl-mm-nav a.active { color: #d7ad67; }
.ddl-mm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 16px 22px;
  background: #d7bd8a;
  color: #1b120e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.ddl-mm-phone {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  color: #d7ad67;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.ddl-mm-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(215, 189, 138, 0.22);
}
.ddl-mm-social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #e7dcc9;
  border: 1px solid rgba(215, 189, 138, 0.34);
  transition: background .2s ease, color .2s ease;
}
.ddl-mm-social a:hover { background: rgba(215, 189, 138, 0.14); color: #fff; }

/* Desktop: overlay never shows; keep the normal nav */
@media (min-width: 981px) {
  .ddl-mobile-menu { display: none !important; }
}

/* ---------------------------------------------------------------------
   6. STICKY-HEADER LOGO SHRINK (after scroll) + form spacing
--------------------------------------------------------------------- */
/* Before scroll: logo full size (unchanged). Once scrolled, shrink the logo
   and give the bar a little vertical padding so the crest is never clipped. */
.v19-professional .site-header.is-scrolled .brand img,
.v19-professional.cinematic-home .site-header.is-scrolled .brand img {
  max-height: 46px;
  width: auto;
}
.v19-professional .site-header.is-scrolled .inner {
  padding-top: 8px;
  padding-bottom: 8px;
}
.v19-professional.cinematic-home .site-header.is-scrolled .inner {
  height: 70px;
}

/* Appointment form: tighter vertical rhythm (was gap:18px + phantom error spans) */
.booking-form {
  gap: 12px;
}
.booking-form .field {
  gap: 6px;
}
.booking-form .field input,
.booking-form .field select,
.booking-form .field textarea {
  padding: 11px 13px;
}
.booking-form .field textarea {
  min-height: 96px;
}
/* Empty validation-error spans should take no vertical space until they hold a message */
.booking-form .field-error:empty {
  display: none;
  margin: 0;
}

/* Inner-page headers also tighten on scroll (small logo shouldn't float in a tall bar) */
.v19-professional .site-header .inner {
  transition: height .35s ease, padding .35s ease;
}
.v19-professional:not(.cinematic-home) .site-header.is-scrolled .inner {
  height: 76px;
}

/* ---------------------------------------------------------------------
   7. Footer social + legal links; legal-page prose
--------------------------------------------------------------------- */
.ddl-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.ddl-footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #e7dcc9;
  border: 1px solid rgba(215, 189, 138, 0.30);
  transition: background .2s ease, color .2s ease;
}
.ddl-footer-social a:hover {
  background: rgba(215, 189, 138, 0.14);
  color: #fff;
}
.ddl-footer-legal {
  display: flex;
  gap: 18px;
}
.ddl-footer-legal a {
  color: rgba(239, 230, 216, 0.5) !important;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ddl-footer-legal a:hover {
  color: #d7ad67 !important;
}

/* Legal / long-form content pages */
.legal-prose {
  max-width: 840px;
}
.legal-prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
}
.legal-prose h2:first-child {
  margin-top: 0;
}
.legal-prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}
.legal-prose p,
.legal-prose li {
  color: var(--ddl-text, #352b25);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-prose ul {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-prose .legal-meta {
  margin-bottom: 28px;
  color: var(--ddl-muted, #71665d);
  font-size: 14px;
}

/* Hero backgrounds for the new pages */
.page-about .page-hero {
  background-image: url("/assets/room-settings-2026/058_sculptural-sanctuary_versace-wood-biscuit-room.webp");
}
/* Legal pages: shorter hero, no oversized photo */
.page-privacy .page-hero,
.page-terms .page-hero {
  min-height: auto;
  padding: clamp(118px, 13vw, 168px) 0 clamp(40px, 5vw, 64px);
  background-image: url("/assets/room-settings-2026/022_organic-sanctuary_burit-brown-room.webp");
}
