/* Shared spec-page components (About, Concierge, Events, Owner, Buy, Partners) */

.spec-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-align: center;
  padding: 7rem 2rem 4rem;
  box-sizing: border-box;
}

.spec-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.spec-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(6,40,28,.6));
  z-index: 1;
}

.spec-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding-top: clamp(3.5rem, 10vh, 6rem);
}

.spec-hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.88;
  margin: 0 0 1rem;
}

.spec-hero__title {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  min-height: calc(2 * 1.15 * clamp(2rem, 5vw, 3.5rem));
}

.spec-hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.92;
  margin: 0 auto;
  max-width: 58ch;
  min-height: calc(2 * 1.65 * clamp(1rem, 2vw, 1.15rem));
}

.spec-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.spec-section--cream { background: #fff; }

/* Thin accent band — beige for separators only */
.lg-band--accent {
  background: #f7f5f0;
  border-top: 1px solid #ebe6de;
  border-bottom: 1px solid #ebe6de;
  padding: 1.25rem 0;
}
.spec-section--white { background: #fff; }
.spec-section--dark { background: #06281C; color: #fff; }

.spec-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.spec-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.spec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.spec-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #06281C;
  margin-bottom: 0.65rem;
}

.spec-section--dark .spec-kicker { color: rgba(255,255,255,0.7); }

.spec-title {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

.spec-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.spec-section--dark .spec-lead { color: rgba(255,255,255,0.85); }

/* Steps roadmap */
.spec-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid #e5e0d6;
}

.spec-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e0d6;
  align-items: start;
}

.spec-step__num {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #06281C;
  line-height: 1;
}

.spec-step__title {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.spec-step__text {
  margin: 0;
  line-height: 1.65;
  color: #555;
  max-width: 62ch;
}

/* Feature grid — editorial, no boxes */
.spec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #e5e0d6;
}

.spec-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #e5e0d6;
}

.spec-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e0d6;
  padding: 2rem 1.5rem 2rem 0;
}

.spec-grid-3 .spec-card:nth-child(3n),
.spec-grid-2 .spec-card:nth-child(2n) {
  padding-right: 0;
}

.spec-section--cream .spec-card { background: transparent; }

.spec-card__title {
  font-family: 'Alliance No.2', 'Alliance 2.0', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.55rem;
  color: #06281C;
}

.spec-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #5a5650;
}

.spec-section--dark .spec-card {
  background: transparent;
  border-color: rgba(255,255,255,0.12);
}

.spec-section--dark .spec-card__title { color: #fff; }
.spec-section--dark .spec-card__text { color: rgba(255,255,255,0.78); }

/* About section navigation — static, no sticky (avoids scroll lag/overlap) */
.about-nav {
  background: #fff;
  border-bottom: 1px solid #ebe6de;
  position: relative;
  z-index: 10;
}

.about-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-nav__link {
  display: block;
  padding: 1.1rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease;
}

.about-nav__link:hover {
  color: #06281C;
}

.about-nav__link--active {
  color: #06281C;
  border-bottom-color: #06281C;
  font-weight: 500;
}

/* Editorial prose block */
.spec-prose {
  max-width: 42rem;
  margin: 0 auto;
}

.spec-prose--align-start {
  margin: 0 0 2.5rem;
}

.spec-story-copy {
  max-width: 620px;
  margin: -1.35rem 0 2.5rem;
}

.spec-story-copy .spec-lead {
  margin-bottom: 1.25rem;
}

.spec-story-copy .spec-lead:last-child {
  margin-bottom: 0;
}

.spec-prose .spec-lead {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a4640;
}

.spec-prose .spec-lead:last-of-type {
  margin-bottom: 0;
}

/* Forms — underline fields via form-underline.css */
.spec-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  background: transparent;
  border: none;
  padding: 0;
}

.spec-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-form-group--full { grid-column: 1 / -1; }

.spec-form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6560;
}

.spec-form-group input,
.spec-form-group select,
.spec-form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  background-color: transparent;
  font-family: inherit;
  font-size: 0.98rem;
  border-radius: 0;
}

.spec-form-group textarea { min-height: 120px; resize: vertical; }

.spec-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.spec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #06281C;
  background: #06281C;
  color: #fff;
  border-radius: 0;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.2s;
}

.spec-btn:hover { background: #0a3d2a; color: #fff; }

.spec-btn--outline {
  background: transparent;
  color: #06281C;
}

.spec-btn--outline:hover {
  background: #06281C;
  color: #fff;
}

.spec-section--dark .spec-btn--outline {
  border-color: #fff;
  color: #fff;
}

.spec-section--dark .spec-btn--outline:hover {
  background: #fff;
  color: #06281C;
}

/* ——— Site-wide CTA hierarchy (primary button + secondary link-arrow) ——— */
.hp-link-arrow,
a.hp-link-arrow,
span.hp-link-arrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: color 0.2s ease;
  box-shadow: none !important;
}

.hp-link-arrow::after,
a.hp-link-arrow::after {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306281C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 0.72em 0.72em no-repeat;
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hp-link-arrow:hover::after,
a.hp-link-arrow:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.hp-link-arrow--dark {
  color: #06281C !important;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hp-link-arrow--on-dark {
  color: #fff !important;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hp-link-arrow--on-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.lg-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 1.75rem;
}

.lg-cta-row--center { justify-content: center; }
.lg-cta-row--on-dark .hp-link-arrow--on-dark { color: #fff !important; }

.spec-hero .lg-cta-row,
.spec-hero__inner > .spec-btn,
.spec-hero .spec-btn {
  justify-content: center;
  margin-top: 2rem;
}

.conciergerie-hero .hero-text > .spec-btn,
.conciergerie-hero .lg-cta-row {
  margin-top: 1.75rem;
}

.contact-hero > .container > .spec-btn,
.contact-hero__inner > .hp-link-arrow,
.contact-hero__inner > .contact-hero__cta-wrap,
.contact-hero .lg-cta-row {
  margin-top: 1.5rem;
}

.owner-hero__content > .spec-btn,
.buy-house-hero-content > .spec-btn,
.tp-hero__content > .hp-link-arrow,
.tp-hero__content > .tp-hero__cta-wrap,
.events-hero__inner > .spec-btn,
.events-cta.spec-btn {
  margin-top: 1.75rem;
  display: inline-flex;
}

.spec-btn--on-dark {
  background: #fff;
  color: #06281C;
  border-color: #fff;
}

.spec-btn--on-dark:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Secondary outline buttons → text link style */
a.spec-btn.spec-btn--outline,
.spec-btn--outline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: #06281C !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

a.spec-btn.spec-btn--outline::after,
.spec-btn--outline::after {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306281C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 0.72em 0.72em no-repeat;
  opacity: 0;
  transform: translateX(-6px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

a.spec-btn.spec-btn--outline:hover,
.spec-btn--outline:hover {
  background: none !important;
  color: #06281C !important;
}

a.spec-btn.spec-btn--outline:hover::after,
.spec-btn--outline:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

/* Scroll reveal */
.lg-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(14px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.lg-reveal--step {
  transform: translateY(36px) translateX(-8px);
  filter: blur(16px);
  transition-duration: 0.95s;
}

.lg-reveal--step .spec-step__num {
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.lg-reveal--visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}

.lg-reveal--visible.lg-reveal--step .spec-step__num {
  opacity: 1;
  transform: none;
}

.spec-step__num {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .lg-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Scenario cards */
.spec-scenario {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e0d6;
}

.spec-scenario:last-child { border-bottom: 0; }

.spec-scenario__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.spec-scenario__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .spec-grid-3, .spec-grid-2, .spec-form { grid-template-columns: 1fr; }
  .spec-grid-3 .spec-card,
  .spec-grid-2 .spec-card { padding-right: 0; }
  .spec-scenario { grid-template-columns: 1fr; }
  .spec-step { grid-template-columns: 56px 1fr; }
  .about-nav__link { padding: 0.85rem 1rem; font-size: 0.72rem; }
}

@media (max-width: 768px) {
  .spec-container { padding: 0 1rem; }
  .spec-hero { padding: 6rem 1rem 3rem; min-height: 60vh; }
  .spec-hero__inner { padding-top: clamp(2.5rem, 8vh, 4rem); }
  .spec-form { padding: 1.25rem; }

  .about-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .about-nav__list li {
    width: 100%;
  }

  .about-nav__link {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: none;
    margin-bottom: 0;
    box-shadow: none;
  }

  .about-nav__link--active {
    border-bottom: none;
    box-shadow: inset 0 -2px 0 #06281C;
  }
}
