/* Modern Heirloom v3 — production implementation of the approved concept. */
.site-header {
  position: relative;
  height: 80px;
  padding: 0 clamp(28px, 3.8vw, 62px);
  background: linear-gradient(90deg, #163a25, #102d1c);
  border: 0;
  box-shadow: none;
}

.heirloom-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 330px;
  text-decoration: none;
}

.site-header .heirloom-logo img {
  width: 54px;
  height: 54px;
  filter: sepia(1) saturate(2.4) hue-rotate(356deg) brightness(.96);
}

.heirloom-logo span {
  color: #fffdf8;
  font: 500 clamp(29px, 2.35vw, 39px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.site-header .heirloom-logo::after {
  content: "";
  width: 1px;
  height: 38px;
  margin-left: 34px;
  background: rgb(255 253 248 / 55%);
}

.site-header nav {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(20px, 2.55vw, 40px);
}

.site-header nav a {
  min-height: 0;
  color: #fffdf8;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  white-space: nowrap;
}

.site-header .nav-sign-in {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .nav-cta:not(.nav-sign-in) {
  padding: 15px 28px;
  border: 0;
  border-radius: 12px;
  background: #b7552e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
  font-weight: 700;
}

.heirloom-hero {
  position: relative;
  height: 500px;
  min-height: 500px;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #f6efe5;
}

.heirloom-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f8f1e8 0%, rgb(248 241 232 / 98%) 33%, rgb(248 241 232 / 78%) 42%, transparent 58%);
  pointer-events: none;
}

.heirloom-hero-visual {
  position: absolute;
  inset: 0 0 0 21%;
  background: url('/assets/heirloom-hero.jpg?v=2') 54% center / cover no-repeat;
}

.heirloom-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(740px, 49vw);
  padding: 64px 0 52px clamp(44px, 4.25vw, 68px);
}

.heirloom-hero .eyebrow {
  margin: 0 0 26px;
  color: #a87920;
  font-size: clamp(13px, 1.15vw, 18px);
  letter-spacing: .28em;
}

.heirloom-hero .eyebrow::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: 22px;
  background: #b98729;
}

.heirloom-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #15351f;
  font: 500 clamp(46px, 3.8vw, 61px)/1.06 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}

.heirloom-hero .hero-actions {
  gap: 26px;
  margin: 38px 0 0;
}

.heirloom-hero .button {
  min-width: 270px;
  min-height: 62px;
  padding: 16px 30px;
  border-radius: 12px;
  font: 700 21px/1 Georgia, 'Times New Roman', serif;
}

.heirloom-hero .button.primary {
  gap: 24px;
  border-color: #b7552e;
  background: #b7552e;
}

.heirloom-hero .button.secondary {
  min-width: 250px;
  border: 2px solid #163622;
  color: #163622;
  background: rgb(255 253 248 / 65%);
}

.how {
  padding: 34px clamp(34px, 5.5vw, 86px) 64px;
  background: #fcf7ef;
}

.how .section-heading {
  align-items: center;
  text-align: center;
}

.how .section-heading h2 {
  position: relative;
  max-width: none;
  margin: 0 0 54px;
  color: #15351f;
  font: 500 clamp(40px, 4vw, 60px)/1.05 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}

.how .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: 94px;
  height: 3px;
  background: #b98729;
  transform: translateX(-50%);
}

.how .steps {
  gap: 0;
  padding-top: 0;
}

.how .steps::before {
  top: 25px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: #b98729;
}

.how .steps article {
  padding: 0 24px;
}

.how .steps b {
  width: 52px;
  height: 52px;
  border: 0;
  background: linear-gradient(145deg, #c9973d, #a97218);
  box-shadow: 0 0 0 12px #fcf7ef;
  font-size: 22px;
}

.step-icon {
  min-height: 52px;
  display: grid;
  place-items: end center;
  margin-top: 10px;
  color: #173b26;
}

.step-icon svg {
  width: 49px;
  height: 49px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how .steps h3 {
  margin: 4px 0 8px;
  color: #15351f;
  font: 600 clamp(25px, 2.1vw, 34px)/1.1 Georgia, 'Times New Roman', serif;
}

.how .steps p {
  max-width: 290px;
  color: #1e2822;
  font-size: 16px;
  line-height: 1.42;
}

/* Spanish pages (/es/): labels run longer, so the header gets more room. English is unaffected. */
.trial-banner .language-link { white-space: nowrap; }
html[lang="es"] .heirloom-logo { min-width: 0; }
html[lang="es"] .site-header nav { gap: clamp(12px, 1.6vw, 28px); }
@media (max-width: 1150px) {
  html[lang="es"] .site-header nav a[href="/es/mockups/"],
  html[lang="es"] .site-header nav a[href="/es/about/"] { display: none; }
}
/* Info pages keep a wider logo block, so they drop the same two links (also in the footer) a little sooner. */
@media (max-width: 1440px) {
  html[lang="es"] .info-page .site-header nav a[href="/es/mockups/"],
  html[lang="es"] .info-page .site-header nav a[href="/es/about/"] { display: none; }
}
@media (max-width: 1100px) {
  html[lang="es"] .info-page .site-header nav a[href="/es/pricing/"] { display: none; }
}
@media (max-width: 440px) {
  html[lang="es"] .site-header { flex-wrap: wrap; height: auto; row-gap: 8px; padding-block: 10px; }
  html[lang="es"] .site-header nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 1250px) {
  .heirloom-logo { min-width: 285px; }
  .site-header .heirloom-logo::after { margin-left: 18px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 14px; }
  .heirloom-hero .hero-copy { width: 55vw; }
  .heirloom-hero h1 { font-size: clamp(43px, 4.5vw, 58px); }
  .heirloom-hero .button { min-width: 225px; }
  .heirloom-hero .button.secondary { min-width: 220px; }
}

@media (max-width: 900px) {
  .site-header { height: 74px; padding-inline: 20px; }
  .heirloom-logo { min-width: 0; gap: 9px; }
  .site-header .heirloom-logo img { width: 42px; height: 42px; }
  .heirloom-logo span { font-size: 28px; }
  .site-header .heirloom-logo::after { display: none; }
  .site-header nav { flex: 0 0 auto; gap: 10px; }
  .site-header nav a:not(.nav-sign-in):not(.nav-cta) { display: none; }
  .site-header nav a { font-size: 13px; }
  .site-header nav > a.nav-sign-in { display: inline-flex; }
  .site-header .nav-cta:not(.nav-sign-in) { padding: 12px 16px; border-radius: 9px; }

  .heirloom-hero { display: grid; height: auto; min-height: 0; }
  .heirloom-hero::after { display: none; }
  .heirloom-hero .hero-copy { width: auto; padding: 48px 30px 44px; background: #f8f1e8; }
  .heirloom-hero h1 { max-width: 720px; font-size: clamp(43px, 8vw, 64px); }
  .heirloom-hero-visual { position: relative; inset: auto; min-height: 430px; background-position: 61% center; }

  .how { padding: 48px 28px 60px; }
  .how .steps { grid-template-columns: 1fr 1fr; gap: 38px 20px; }
  .how .steps article { border: 0; background: transparent; text-align: center; }
  .how .steps h3 { display: block; margin: 4px 0 8px; }
}

@media (max-width: 600px) {
  .site-header { height: 68px; padding-inline: 12px; }
  .site-header .heirloom-logo img { width: 36px; height: 36px; }
  .heirloom-logo span { font-size: clamp(20px, 6.2vw, 27px); }
  .site-header nav { gap: 7px; }
  .site-header .nav-sign-in { font-size: 12px; }
  .site-header .nav-cta:not(.nav-sign-in) { padding: 10px 12px; font-size: 12px; }

  .heirloom-hero .hero-copy { padding: 38px 22px 36px; }
  .heirloom-hero .eyebrow { margin-bottom: 21px; font-size: 12px; }
  .heirloom-hero .eyebrow::after { width: 66px; margin-top: 17px; }
  .heirloom-hero h1 { font-size: clamp(39px, 11vw, 52px); }
  .heirloom-hero .hero-actions { gap: 12px; margin-top: 28px; }
  .heirloom-hero .button,
  .heirloom-hero .button.secondary { width: 100%; min-width: 0; min-height: 54px; font-size: 18px; }
  .heirloom-hero-visual { min-height: 330px; background-position: 60% center; }
  .how { padding: 42px 20px 54px; }
  .how .section-heading h2 { margin-bottom: 52px; font-size: 39px; }
  .how .steps { grid-template-columns: 1fr; gap: 38px; }
  .how .steps article { padding: 0 12px; }
  .how .steps p { max-width: 330px; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .beta-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
