/* ════════════════════════════════════════════
   RIDGELINE CAPITAL GROUP — Design System
   ════════════════════════════════════════════ */

:root {
  --bg:           #F5F0E8;
  --bg-alt:       #EDE8DF;
  --type:         #1C1C1A;
  --gold:         #9A7820;
  --gold-hover:   #86691c;
  --gold-light:   rgba(154, 120, 32, 0.12);
  --hairline:     1px solid rgba(28, 28, 26, 0.15);

  --font-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:        72px;
  --pad-x:        clamp(20px, 4.5vw, 72px);
  --pad-y:        clamp(80px, 11vw, 148px);
  --max-w:        1300px;
}

/* ════════════════ RESET ════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--type);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, button { appearance: none; }

/* ════════════════ UTILITY ════════════════ */

.text-gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(28, 28, 26, 0.15);
}

.section-label__text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--type);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 300;
  line-height: 1.13;
  color: var(--type);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

/* ════════════════ BUTTONS ════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn--gold {
  background: var(--gold);
  color: #F5F0E8;
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.btn--ghost {
  background: transparent;
  color: rgba(245, 240, 232, 0.88);
  border: 1px solid rgba(245, 240, 232, 0.45);
}

.btn--ghost:hover {
  border-color: rgba(245, 240, 232, 0.85);
  background: rgba(245, 240, 232, 0.06);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ════════════════ NAV ════════════════ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 400;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(28, 28, 26, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.nav__wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo {
  display: block;
  width: auto;
}

.nav__logo--primary {
  width: 227px;
  height: auto;
}

.nav__logo--condensed {
  width: 227px;
  height: auto;
  display: none;
  filter: brightness(0.11);
}

.nav.scrolled .nav__logo--primary {
  display: none;
}

.nav.scrolled .nav__logo--condensed {
  display: block;
}

.nav__links {
  display: flex;
  gap: clamp(24px, 3vw, 40px);
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.75);
  transition: color 0.2s ease;
}

.nav.scrolled .nav__links a {
  color: rgba(28, 28, 26, 0.7);
}

.nav__links a:hover {
  color: var(--gold);
}

.nav.scrolled .nav__links a:hover {
  color: var(--gold);
}

.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(245, 240, 232, 0.88);
  transition: background 0.35s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav.scrolled .nav__hamburger span {
  background: var(--type);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  background: var(--bg);
  border-top: var(--hairline);
}

.nav__mobile.open {
  display: block;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad-x) 32px;
}

.nav__mobile li {
  border-bottom: var(--hairline);
}

.nav__mobile li:last-child {
  border-bottom: none;
}

.nav__mobile a {
  display: block;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--type);
  letter-spacing: 0.01em;
}

.nav__mobile-cta {
  padding-top: 24px;
  border-bottom: none !important;
}

.nav__mobile-cta .btn--gold {
  width: 100%;
  padding: 15px 28px;
  font-size: 13px;
}

/* ════════════════ HERO ════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  background: #2a2520;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(68px, 9vw, 130px);
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.35);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--nav-h) var(--pad-x) 0;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 240, 232, 0.18);
  padding: 7px 14px 7px 10px;
  margin-bottom: 36px;
}

.status-tag__dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.status-tag__dot::before,
.status-tag__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.status-tag__dot::before {
  background: #9A7820;
}

.status-tag__dot::after {
  background: rgba(184, 146, 42, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.status-tag__text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 1);
}

.hero__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: #F5F0E8;
  margin-bottom: 32px;
}

.hero__headline-line--gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.hero__subhead {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.74;
  color: rgba(245, 240, 232, 0.72);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ════════════════ TRUST BAR ════════════════ */

.trust-bar {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--bg);
  padding: clamp(36px, 4.5vw, 60px) var(--pad-x);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px clamp(12px, 2vw, 28px);
  border-right: var(--hairline);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item__number {
  font-family: var(--font-serif);
  font-size: clamp(38px, 3.8vw, 56px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.trust-item__label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--type);
  line-height: 1.5;
}

/* ════════════════ WHY RIDGELINE ════════════════ */

.why-ridgeline {
  padding: var(--pad-y) var(--pad-x);
}

.why-ridgeline__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.why-ridgeline__headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 300;
  line-height: 1.13;
  color: var(--type);
  margin-bottom: 48px;
  letter-spacing: -0.015em;
}

.why-ridgeline__copy-wrapper {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: 36px 44px 36px 48px;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  border-left: 3px solid var(--gold);
  text-align: left;
}

.why-ridgeline__copy {
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.78;
  color: var(--type);
  font-weight: 400;
}

/* ════════════════ VALUE PROPS ════════════════ */

.value-prop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.value-prop--alt {
  background: var(--bg-alt);
}

/* Default order: image left (1), content right (2) */
.value-prop .value-prop__image  { order: 1; }
.value-prop .value-prop__content { order: 2; }

/* Alt: flip — content left (1), image right (2) */
.value-prop--alt .value-prop__image  { order: 2; }
.value-prop--alt .value-prop__content { order: 1; }

.value-prop__image {
  overflow: hidden;
  position: relative;
  min-height: clamp(380px, 48vw, 580px);
}

.value-prop__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.value-prop__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 108px) clamp(44px, 6vw, 96px);
  background: inherit;
}

.value-prop__number {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.value-prop__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.16;
  color: var(--type);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.value-prop__body {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.78;
  color: rgba(28, 28, 26, 0.68);
  max-width: 420px;
}

/* ════════════════ HOW IT WORKS ════════════════ */

.how-it-works {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  border-top: var(--hairline);
}

.how-it-works__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--hairline);
}

.step {
  padding: clamp(36px, 4vw, 60px) clamp(30px, 3.5vw, 52px);
  border-right: var(--hairline);
  display: flex;
  flex-direction: column;
}

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

.step__number {
  font-family: var(--font-serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.step__title {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 600;
  color: var(--type);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step__body {
  font-size: 14px;
  line-height: 1.74;
  color: rgba(28, 28, 26, 0.62);
}

/* ════════════════ GUEST BOOK ════════════════ */

.guest-book {
  background: var(--bg-alt);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: var(--pad-y) var(--pad-x);
}

.guest-book__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(60px, 9vw, 140px);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.guest-book__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--type);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.guest-book__body {
  font-size: 14px;
  line-height: 1.76;
  color: rgba(28, 28, 26, 0.62);
  max-width: 320px;
}

.guest-type {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: var(--hairline);
}

.guest-type:first-child {
  border-top: var(--hairline);
}

.guest-type__thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
}

.guest-type__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(18%);
}

.guest-type__content {
  flex: 1;
  min-width: 0;
}

.guest-type__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--type);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}

.guest-type__desc {
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(28, 28, 26, 0.55);
}

/* ════════════════ CONTACT CTA ════════════════ */

.contact-cta {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  text-align: center;
}

.contact-cta__inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-cta__headline {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--type);
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}

.contact-cta__subhead {
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.72;
  color: rgba(28, 28, 26, 0.62);
  margin-bottom: 52px;
}

.contact-cta__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-cta__fields {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px;
  border: var(--hairline);
  background: rgba(255, 255, 255, 0.35);
}

.contact-cta__input {
  width: 100%;
  padding: 16px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--type);
  background: transparent;
  border: none;
  border-bottom: var(--hairline);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.contact-cta__input.is-invalid {
  box-shadow: inset 0 -2px 0 rgba(180, 50, 30, 0.5);
}

.contact-cta__fields .contact-cta__input:last-child {
  border-bottom: none;
}

.contact-cta__input::placeholder {
  color: rgba(28, 28, 26, 0.36);
}

.contact-cta__form .btn {
  width: 100%;
  max-width: 580px;
  padding: 16px 32px;
  border-radius: 0;
}

.contact-cta__note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(28, 28, 26, 0.38);
}

/* ════════════════ FOOTER ════════════════ */

.footer {
  background: var(--bg);
  border-top: var(--hairline);
  padding: clamp(56px, 7vw, 100px) var(--pad-x) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: clamp(52px, 6vw, 88px);
}

.footer__wordmark {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}

.footer__wordmark:hover {
  opacity: 0.6;
}

.footer__logo {
  display: block;
  height: 60px;
  width: auto;
  filter: brightness(0);
}

.footer__email {
  font-size: 13px;
  color: rgba(28, 28, 26, 0.52);
  transition: color 0.2s;
}

.footer__email:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: var(--hairline);
  padding: 24px 0 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__bottom p {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.35);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* Large tablet — tighten gaps */
@media (max-width: 1100px) {
  .nav__links {
    gap: 24px;
  }

  .guest-book__inner {
    gap: 56px;
  }
}

/* Tablet — trust bar 2×2, guest book stack */
@media (max-width: 900px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(3) {
    border-right: var(--hairline);
    border-top: var(--hairline);
  }

  .trust-item:nth-child(4) {
    border-right: none;
    border-top: var(--hairline);
  }

  .guest-book__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .guest-book__body {
    max-width: 100%;
  }
}

/* Mobile — nav collapses, full stack */
@media (max-width: 768px) {

  /* ── Nav ── */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__logo--primary {
    width: 160px;
    height: auto;
  }

  .nav__logo--condensed {
    width: 160px;
    height: auto;
  }

  /* ── Hero ── */
  .hero {
    padding-bottom: 60px;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: calc(var(--nav-h) + 20px);
  }

  .hero__subhead {
    max-width: 100%;
  }

  /* ── Trust bar ── */
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    padding: 20px 12px;
  }

  /* Ensure correct borders in 2×2 */
  .trust-item:nth-child(1) { border-right: var(--hairline); border-top: none; }
  .trust-item:nth-child(2) { border-right: none; border-top: none; }
  .trust-item:nth-child(3) { border-right: var(--hairline); border-top: var(--hairline); }
  .trust-item:nth-child(4) { border-right: none; border-top: var(--hairline); }

  /* ── Why Ridgeline ── */
  .why-ridgeline__copy-wrapper {
    padding: 28px 24px 28px 28px;
    border-left-width: 2px;
  }

  /* ── Value Props — stack, image always above text ── */
  .value-prop {
    grid-template-columns: 1fr;
  }

  /* Override both default and alt ordering — image always first */
  .value-prop .value-prop__image,
  .value-prop--alt .value-prop__image {
    order: 1;
    min-height: 0;
  }

  .value-prop .value-prop__content,
  .value-prop--alt .value-prop__content {
    order: 2;
  }

  .value-prop__img {
    position: static;
    width: 100%;
    height: clamp(240px, 55vw, 340px);
    object-fit: cover;
  }

  .value-prop__image {
    min-height: 0;
  }

  .value-prop__content {
    padding: 44px var(--pad-x);
  }

  .value-prop__body {
    max-width: 100%;
  }

  /* ── Steps ── */
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    border-bottom: var(--hairline);
  }

  .step:last-child {
    border-bottom: none;
  }

  /* ── Contact ── */
  .contact-cta__fields {
    max-width: 100%;
  }

  .contact-cta__form .btn {
    max-width: 100%;
    padding: 16px 28px;
  }

  /* ── Footer ── */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* Small mobile */
@media (max-width: 480px) {

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none !important;
    border-top: none !important;
  }

  .trust-item:not(:last-child) {
    border-bottom: var(--hairline);
  }

  .footer__logo {
    height: 48px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .section-headline {
    margin-bottom: 44px;
  }

  .why-ridgeline__copy-wrapper {
    border-left-width: 2px;
    padding: 24px 20px 24px 24px;
  }
}
