/* Haven & Hound — page-specific layouts */

/* Home hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 8rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    padding-top: 0;
    align-items: stretch;
  }
}

.hero__copy {
  width: 100%;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero__copy {
    width: 50%;
    padding: 10rem 2rem 8rem 8rem;
  }
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .hero__tag { margin-top: 0; }
}

.hero__tag-line {
  width: 3rem;
  height: 1px;
  background: var(--caramel);
}

.hero__tag span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--forest);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--caramel);
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(26, 46, 38, 0.7);
  max-width: 28rem;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero__discover {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
  width: max-content;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hero__discover { margin-bottom: 8rem; }
}

.hero__discover-orb {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--duration) var(--ease);
}

.hero__discover:hover .hero__discover-orb {
  background: var(--forest);
}

.hero__discover span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.hero__discover:hover span { color: var(--caramel); }

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 46, 38, 0.1);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero__features { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero__features {
    border-top: none;
    padding-top: 0;
    margin-inline: 0;
  }
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-inline: 1rem;
  border-right: 1px solid rgba(26, 46, 38, 0.1);
}

.hero__feature:last-child { border-right: none; }

@media (min-width: 1024px) {
  .hero__feature { align-items: flex-start; }
}

.hero__feature span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  color: rgba(26, 46, 38, 0.8);
}

@media (min-width: 1024px) {
  .hero__feature span { text-align: left; }
}

.hero__media {
  width: 100%;
  position: relative;
  height: 60vh;
  overflow: hidden;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .hero__media {
    width: 50%;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    margin-top: 0;
  }
}

.hero__mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream-dark);
}

@media (min-width: 1024px) {
  .hero__mask {
    border-top-left-radius: 250px;
    border-bottom-left-radius: 50px;
  }
}

.hero__mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

@media (min-width: 1024px) {
  .hero__mask img { object-position: center 20%; }
}

.hero__float-copy {
  position: absolute;
  top: 15%;
  right: 10%;
  text-align: center;
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .hero__float-copy {
    top: 25%;
    right: 20%;
  }
}

.hero__float-copy p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
  line-height: 2;
}

.hero__badge-wrap {
  position: absolute;
  bottom: -20px;
  right: 10%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__badge-wrap {
    bottom: 10%;
    right: 15%;
  }
}

.hero__dots {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  color: rgba(196, 120, 74, 0.4);
}

.hero__badge {
  width: 12rem;
  height: 12rem;
  background: var(--forest);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .hero__badge {
    width: 14rem;
    height: 14rem;
  }
}

.hero__badge p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 300;
}

@media (min-width: 1024px) {
  .hero__badge p { font-size: 1.25rem; }
}

.hero__badge .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--caramel);
}

/* Experience philosophy */
.philosophy {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.philosophy__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(42, 64, 54, 0.2);
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  filter: blur(48px);
  transform: translateX(25%);
}

.philosophy__stack {
  position: relative;
  height: 420px;
  width: 100%;
}

@media (min-width: 1024px) {
  .philosophy__stack { height: 520px; }
}

.section.philosophy {
  padding-block: var(--space-24);
}

.philosophy__stack-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 80%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.philosophy__stack-main img,
.philosophy__stack-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy__stack-sub {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 50%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--forest);
}

/* Home wellness column order: copy first on mobile, media left on desktop */
#wellness .grid-2 > div:first-child { order: 2; }
#wellness .grid-2 > div:last-child { order: 1; }

@media (min-width: 1024px) {
  #wellness .grid-2 > div:first-child { order: 1; }
  #wellness .grid-2 > div:last-child { order: 2; }
}

/* Wellness arch */
.wellness-arch {
  aspect-ratio: 3 / 4;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  overflow: hidden;
  background: var(--cream);
}

.wellness-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wellness-float {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  width: 12rem;
  height: 12rem;
  background: var(--caramel);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}

@media (min-width: 1024px) {
  .wellness-float { display: flex; }
}

.wellness-float p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest);
}

.section-head--center {
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.section-head--center .lead {
  margin-inline: auto;
  margin-top: 1.5rem;
}

.section--forest .section-head h2,
.section--forest .section-head .lead {
  color: var(--cream);
}

.section--forest .section-head .lead {
  color: rgba(250, 248, 243, 0.7);
}

/* Booking / builder layouts */
.builder-layout,
.book-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .builder-layout,
  .book-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.suite-option {
  border: 1px solid rgba(26, 46, 38, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.suite-option.is-selected,
.suite-option:hover {
  border-color: var(--caramel);
  background: rgba(196, 120, 74, 0.06);
}

.suite-option h4 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.suite-option p {
  font-size: 0.875rem;
  color: rgba(26, 46, 38, 0.65);
  font-weight: 300;
}

.addon-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .addon-grid { grid-template-columns: 1fr 1fr; }
}

.confirm-code {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--caramel);
  margin: 1rem 0;
}

.passport-pet {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(26, 46, 38, 0.08);
  margin-bottom: 1rem;
}

.passport-pet h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.passport-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 46, 38, 0.55);
  margin-bottom: 0.75rem;
}

.rates-result {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 2rem;
}

.rates-result__total {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  margin: 0.5rem 0 1rem;
}

.legal-prose {
  max-width: 48rem;
  margin-inline: auto;
}

.legal-prose h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.legal-prose p {
  margin-bottom: 1rem;
  font-weight: 300;
  color: rgba(26, 46, 38, 0.75);
  line-height: 1.75;
}

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--caramel);
  margin-bottom: 1rem;
}

.gallery-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-full { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-full { grid-template-columns: repeat(4, 1fr); }
}

.gallery-full__item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-full__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.gallery-full__item:hover img { transform: scale(1.05); }

.gallery-full__item.is-hidden { display: none; }

/* Distinct interior layouts */
.editorial-rail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .editorial-rail {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.daypart-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .daypart-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .daypart-grid { grid-template-columns: repeat(4, 1fr); }
}

.daypart-card {
  background: var(--cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(26, 46, 38, 0.06);
}

.daypart-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.daypart-card__body { padding: 1.25rem 1.35rem 1.5rem; }

.daypart-card__time {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.daypart-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.daypart-card p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(26, 46, 38, 0.7);
}

.service-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(26, 46, 38, 0.12);
}

.service-menu__row {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(26, 46, 38, 0.12);
}

@media (min-width: 768px) {
  .service-menu__row {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

.service-menu__row h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.service-menu__row p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(26, 46, 38, 0.7);
  max-width: 36rem;
}

.service-menu__price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--caramel);
  white-space: nowrap;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 46, 38, 0.1);
}

.compare-table th {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.compare-table td:first-child {
  font-weight: 500;
  color: rgba(26, 46, 38, 0.65);
}

.story-steps {
  display: grid;
  gap: 2rem;
  counter-reset: story;
}

@media (min-width: 768px) {
  .story-steps { grid-template-columns: repeat(3, 1fr); }
}

.story-step {
  position: relative;
  padding-top: 2.5rem;
}

.story-step::before {
  counter-increment: story;
  content: "0" counter(story);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--caramel);
}

.story-step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.story-step p {
  font-weight: 300;
  color: rgba(26, 46, 38, 0.7);
  font-size: 0.95rem;
}

.quote-band {
  background: var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.quote-band p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.quote-band cite {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
}

.media-bleed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-dark);
}

.media-bleed img,
.media-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-portrait {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cream-dark);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.section--compact {
  padding-block: var(--space-20);
}

.home-path {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-path { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.home-path a {
  display: block;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(26, 46, 38, 0.08);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.home-path a:hover {
  border-color: var(--caramel);
  transform: translateY(-2px);
}

.home-path h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.home-path p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(26, 46, 38, 0.65);
}
