/* Heritage Fairway shared components */
.hfs-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 156px var(--hfs-pad) 96px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.hfs-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(23, 26, 27, 0), var(--hfs-cream-light));
  z-index: -1;
  opacity: 0.92;
}
.hfs-hero-content {
  width: min(720px, 100%);
  position: relative;
  z-index: 2;
}
.hfs-eyebrow {
  margin: 0 0 1rem;
  color: var(--hfs-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hfs-eyebrow-dark {
  color: var(--hfs-green-deep);
}
.hfs-hero h1,
.hfs-page-hero h1,
.hfs-section-intro h2,
.hfs-split-copy h2,
.hfs-cta h2 {
  margin: 0;
  font-family: var(--hfs-heading);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 860px;
}
.hfs-hero h1 {
  font-size: clamp(3.4rem, 7vw, 7rem);
  max-width: 780px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
}
.hfs-hero p:not(.hfs-eyebrow) {
  max-width: 620px;
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
}
.hfs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.25rem;
}
.hfs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--hfs-radius-button);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.hfs-btn:hover {
  transform: translateY(-2px);
}
.hfs-btn-primary {
  background: var(--hfs-green);
  color: #fff;
}
.hfs-btn-primary:hover {
  background: var(--hfs-green-deep);
}
.hfs-btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(23, 26, 27, 0.2);
  backdrop-filter: blur(8px);
}
.hfs-btn-secondary:hover {
  border-color: var(--hfs-green);
  background: rgba(135, 154, 119, 0.24);
}
.hfs-btn-dark {
  background: var(--hfs-charcoal);
  color: #fff;
}
.hfs-text-link {
  color: var(--hfs-green-deep);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  font-weight: 700;
}
.hfs-text-link::after {
  content: ' →';
}

.hfs-section {
  padding: 92px var(--hfs-pad);
}
.hfs-section-inner {
  max-width: var(--hfs-max);
  margin: 0 auto;
}
.hfs-section-intro {
  max-width: 820px;
  margin: 0 0 46px;
}
.hfs-section-intro-centered {
  text-align: center;
  margin-inline: auto;
}
.hfs-section-intro h2 {
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  color: var(--hfs-charcoal);
}
.hfs-section-intro p:not(.hfs-eyebrow) {
  color: var(--hfs-muted);
  font-size: 1.05rem;
  max-width: 660px;
}
.hfs-section-intro-centered p:not(.hfs-eyebrow) {
  margin-inline: auto;
}

.hfs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hfs-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hfs-line);
  border-radius: var(--hfs-radius-card);
  box-shadow: var(--hfs-shadow-soft);
  padding: clamp(24px, 3vw, 34px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.hfs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hfs-shadow);
  border-color: rgba(135, 154, 119, 0.35);
}
.hfs-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--hfs-heading);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--hfs-charcoal);
}
.hfs-card p {
  margin: 0;
  color: var(--hfs-muted);
}
.hfs-icon-badge {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(135, 154, 119, 0.3);
  border-radius: var(--hfs-radius-control);
  background: rgba(135, 154, 119, 0.08);
  margin-bottom: 18px;
}
.hfs-icon-badge img {
  width: 28px;
  height: 28px;
  filter: invert(58%) sepia(15%) saturate(619%) hue-rotate(53deg) brightness(92%) contrast(87%);
}

.hfs-value-strip {
  position: relative;
  z-index: 5;
  max-width: var(--hfs-max);
  margin: -40px auto 0;
  background: rgba(251, 247, 240, 0.96);
  border: 1px solid rgba(85, 73, 64, 0.1);
  border-radius: var(--hfs-radius-card);
  box-shadow: var(--hfs-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hfs-value-strip article {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--hfs-line);
}
.hfs-value-strip article:last-child {
  border-right: 0;
}
.hfs-value-strip img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  filter: invert(58%) sepia(15%) saturate(619%) hue-rotate(53deg) brightness(92%) contrast(87%);
}
.hfs-value-strip h2 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--hfs-body);
  color: var(--hfs-charcoal);
}
.hfs-value-strip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hfs-muted);
  line-height: 1.55;
}

.hfs-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}
.hfs-split-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  color: var(--hfs-charcoal);
}
.hfs-split-copy p {
  color: var(--hfs-muted);
  font-size: 1.05rem;
}
.hfs-image-frame {
  position: relative;
  border-radius: var(--hfs-radius-card);
  box-shadow: var(--hfs-shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.hfs-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(23, 26, 27, 0.12));
  pointer-events: none;
}

.hfs-dark-band {
  background: var(--hfs-charcoal);
  color: #fff;
}
.hfs-dark-band h2,
.hfs-dark-band h3 {
  color: #fff;
}
.hfs-dark-band p {
  color: rgba(255, 255, 255, 0.74);
}

.hfs-case-hero {
  min-height: clamp(640px, 64vw, 800px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 150px clamp(1.25rem, 3.4vw, 3rem) 90px;
  background: linear-gradient(
    90deg,
    var(--hfs-cream-light) 0%,
    var(--hfs-cream-light) 62%,
    var(--hfs-cream) 62%,
    var(--hfs-cream) 100%
  );
  color: var(--hfs-charcoal);
  overflow: hidden;
}

.hfs-case-hero-media {
  position: relative;
  justify-self: center;
  width: clamp(390px, 68vw, 1170px);
  max-width: 100%;
  border: 1px solid rgba(85, 73, 64, 0.16);
  border-radius: var(--hfs-radius-card);
  box-shadow: 0 34px 90px rgba(26, 28, 29, 0.22);
  background: #fff;
  overflow: hidden;
  transform: translateY(8px);
}

.hfs-case-hero-media::before {
  content: '';
  position: absolute;
  inset: clamp(-18px, -1.2vw, -10px);
  border: 1px solid rgba(135, 154, 119, 0.34);
  border-radius: var(--hfs-radius-card);
  z-index: 0;
}

.hfs-case-hero-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.hfs-case-hero-content {
  max-width: 500px;
}

.hfs-case-hero-content h1 {
  font-family: var(--hfs-heading);
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.9;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.04em;
  color: var(--hfs-charcoal);
}

.hfs-case-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.85;
  color: var(--hfs-muted);
}

.hfs-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hfs-case-actions .hfs-btn-secondary {
  border-color: rgba(85, 73, 64, 0.24);
  color: var(--hfs-charcoal);
  background: rgba(255, 255, 255, 0.5);
}

.hfs-case-actions .hfs-btn-secondary:hover {
  border-color: rgba(95, 112, 82, 0.42);
  background: rgba(135, 154, 119, 0.14);
}

.hfs-case-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.hfs-case-overview h2,
.hfs-case-features h2,
.hfs-case-result h2,
.hfs-case-cta h2 {
  font-family: var(--hfs-heading);
}

.hfs-case-overview h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  line-height: 0.98;
  color: var(--hfs-charcoal);
}

.hfs-case-overview p:not(.hfs-eyebrow) {
  max-width: 760px;
  color: var(--hfs-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hfs-case-challenge .hfs-split {
  align-items: start;
}

.hfs-case-solution {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hfs-radius-card);
  padding: clamp(1.5rem, 3vw, 2.35rem);
}

.hfs-case-solution h3 {
  margin: 0;
  font-family: var(--hfs-heading);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.hfs-case-solution ul {
  margin: 1.4rem 0 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.hfs-case-solution li {
  margin: 0 0 0.7rem;
}

.hfs-case-facts {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(85, 73, 64, 0.16);
  border-radius: var(--hfs-radius-card);
  box-shadow: var(--hfs-shadow-soft);
  padding: 2rem;
}

.hfs-case-facts div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(85, 73, 64, 0.14);
}

.hfs-case-facts div:first-child {
  padding-top: 0;
}

.hfs-case-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hfs-case-facts span {
  display: block;
  font-family: var(--hfs-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hfs-muted);
  margin-bottom: 0.35rem;
}

.hfs-case-facts strong {
  font-family: var(--hfs-heading);
  font-size: 1.25rem;
  color: var(--hfs-ink);
  font-weight: 600;
}

.hfs-case-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hfs-case-feature-grid article {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(85, 73, 64, 0.14);
  border-radius: var(--hfs-radius-card);
  padding: 2rem;
  min-height: 260px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hfs-case-feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--hfs-shadow-soft);
}

.hfs-case-feature-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(135, 154, 119, 0.38);
  border-radius: var(--hfs-radius-control);
  color: var(--hfs-green);
  font-family: var(--hfs-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.hfs-case-feature-grid h3 {
  font-family: var(--hfs-heading);
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.hfs-case-feature-grid p {
  color: var(--hfs-muted);
  line-height: 1.75;
}

.hfs-case-cta {
  margin-top: 0;
}

.hfs-case-gallery {
  background: var(--hfs-cream-light);
}

.hfs-case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.hfs-case-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(85, 73, 64, 0.14);
  border-radius: var(--hfs-radius-card);
  box-shadow: var(--hfs-shadow-soft);
}

.hfs-case-gallery-grid a {
  display: block;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.hfs-case-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.hfs-case-gallery-grid a:hover img,
.hfs-case-gallery-grid a:focus-visible img {
  filter: brightness(0.92);
  transform: scale(1.015);
}

.hfs-case-gallery-grid a:focus-visible {
  outline: 3px solid var(--hfs-green);
  outline-offset: -3px;
}

.hfs-case-gallery-grid figcaption {
  padding: 1rem 1.2rem;
  color: var(--hfs-charcoal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hfs-image-viewer-page {
  min-height: 100vh;
  background: var(--hfs-charcoal);
}

.hfs-image-viewer {
  min-height: 100vh;
  padding: clamp(1rem, 2.5vw, 2rem);
  background:
    radial-gradient(circle at 18% 0%, rgba(135, 154, 119, 0.18), transparent 28%),
    var(--hfs-charcoal);
}

.hfs-image-viewer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto 1.25rem;
  max-width: 1600px;
  color: #fff;
}

.hfs-image-viewer header img {
  width: clamp(180px, 18vw, 280px);
  height: auto;
}

.hfs-image-viewer header div {
  text-align: right;
}

.hfs-image-viewer header p {
  margin: 0 0 0.25rem;
  color: var(--hfs-green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hfs-image-viewer h1 {
  margin: 0;
  color: #fff;
  font-family: var(--hfs-heading);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.hfs-image-viewer figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  max-width: 1600px;
}

.hfs-image-viewer figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  background: #fff;
  border-radius: var(--hfs-radius-control);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.hfs-image-viewer-missing {
  display: grid;
  min-height: 50vh;
  place-items: center;
  color: #fff;
}

.hfs-image-viewer-missing a {
  color: var(--hfs-green);
}

.hfs-cta {
  margin: 0 var(--hfs-pad) 92px;
  padding: clamp(34px, 5vw, 60px);
  background: linear-gradient(135deg, var(--hfs-charcoal), #232526);
  border-radius: var(--hfs-radius-card);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  box-shadow: var(--hfs-shadow);
}
.hfs-dark-band + .hfs-cta {
  margin-top: clamp(34px, 5vw, 72px);
}
.hfs-cta > div {
  flex: 1 1 auto;
  max-width: 1040px;
}
.hfs-cta .hfs-eyebrow {
  margin-bottom: 1.35rem;
}
.hfs-cta h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
  max-width: 100%;
}
.hfs-cta p:not(.hfs-eyebrow) {
  margin: 1.65rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  max-width: 680px;
}
.hfs-cta .hfs-btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .hfs-hero {
    min-height: 600px;
    padding-top: 136px;
  }
  .hfs-case-hero,
  .hfs-case-overview-grid {
    grid-template-columns: 1fr;
  }
  .hfs-case-hero {
    padding-top: 120px;
    background: var(--hfs-cream-light);
  }
  .hfs-case-hero-media {
    width: min(100%, 860px);
  }
  .hfs-case-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hfs-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hfs-value-strip {
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }
  .hfs-value-strip article:nth-child(2) {
    border-right: 0;
  }
  .hfs-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hfs-hero {
    min-height: 560px;
    padding-bottom: 74px;
  }
  .hfs-case-feature-grid {
    grid-template-columns: 1fr;
  }
  .hfs-case-hero {
    padding-inline: 1rem;
  }
  .hfs-card-grid,
  .hfs-value-strip {
    grid-template-columns: 1fr;
  }
  .hfs-value-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--hfs-line);
  }
  .hfs-value-strip article:last-child {
    border-bottom: 0;
  }
  .hfs-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.hfs-portfolio-page {
  background: var(--hfs-cream);
}

.hfs-page-sukiyaki .hfs-site-header {
  background: linear-gradient(180deg, rgba(23, 26, 27, 0.9), rgba(23, 26, 27, 0.58));
}
