/* Home-page-only styles. Loaded after styles.css — override/extend here, don't edit styles.css. */

/* ===== Second typographic voice — section H2s speak in the body font, ===== */
/* ===== quieter than the condensed-caps H1 brand voice and H3 tag labels ===== */
h2 {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* ===== Shared color grade — ties the cooler hero photo and the warmer ===== */
/* ===== Who We Serve / How It Works photos into one consistent world ===== */
.hero::before,
.who-photo-frame img,
.how-photo img {
  filter: saturate(0.82) sepia(0.07) contrast(1.05) brightness(0.98);
}

/* ===== Eyebrow mark — a miniature version of the real logo's I-beam, ===== */
/* ===== in place of a generic tilted tick, on every eyebrow label ===== */
.eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8em;
}
.eyebrow-wrap .eyebrow {
  margin-bottom: 0;
}
.eyebrow-mark {
  height: 15px;
  width: auto;
  opacity: 0.9;
}

/* ===== Hero — layered, slow-zooming photo + sharper pacing ===== */
.hero {
  background: var(--black);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero::before {
  background: url('brand/photos/barndo-hero.jpg') center 65% / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 11s ease-out forwards;
  z-index: 0;
}
.hero::after {
  background: linear-gradient(105deg, rgba(6,6,7,0.98) 0%, rgba(6,6,7,0.93) 40%, rgba(6,6,7,0.8) 65%, rgba(6,6,7,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; transform: scale(1); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: var(--graphite-600);
  overflow: hidden;
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 18px;
  background: var(--white);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(190%); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; opacity: 0.5; transform: none; }
}
@media (max-width: 560px) {
  .scroll-cue { display: none; }
}

/* ===== Section headings — centered angled-rule, tied to the hero motif ===== */
.section-head .angled-rule {
  margin: 20px 0 0;
}
.section-head.center .angled-rule {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Value strip — small header + hover microinteraction ===== */
.value-strip-head {
  margin-bottom: 28px;
}
.value-strip-head .eyebrow {
  margin-bottom: 0;
}

.value-strip .value {
  position: relative;
  transition: transform 0.25s ease;
}
.value-strip .value svg {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.value-strip .value:hover svg {
  transform: rotate(var(--tilt)) translateY(-2px);
}
.value-strip .value h3 {
  position: relative;
  padding-bottom: 14px;
}
.value-strip .value h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 28px;
  background: var(--sheen);
  transform: rotate(var(--tilt));
  transform-origin: left center;
  transition: width 0.3s ease;
}
.value-strip .value:hover h3::after {
  width: 48px;
}

.value-strip .value:nth-child(1) { transition-delay: 0ms; }
.value-strip .value:nth-child(2) { transition-delay: 90ms; }
.value-strip .value:nth-child(3) { transition-delay: 180ms; }

/* ===== Products & Services cards — tilt on hover, growing accent ===== */
.card-grid .card {
  position: relative;
  overflow: hidden;
}
.card-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 0;
  height: 3px;
  background: var(--sheen);
  transition: width 0.3s ease;
}
.card-grid .card:hover::before {
  width: 56px;
}
.card .card-number {
  transition: transform 0.3s ease, color 0.3s ease;
}
.card:hover .card-number {
  transform: rotate(var(--tilt));
  -webkit-text-stroke-color: var(--steel-400);
}
.card:hover .learn-more {
  color: var(--steel-200);
}

.card-grid .card:nth-child(1) { transition-delay: 0ms; }
.card-grid .card:nth-child(2) { transition-delay: 90ms; }
.card-grid .card:nth-child(3) { transition-delay: 180ms; }

/* ===== How It Works — asymmetric photo + vertical steps (breaks the row-of-N rhythm) ===== */
.how-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.how-intro { align-self: start; }
.how-intro p { color: var(--steel-400); max-width: 40ch; }
.how-intro .angled-rule { margin-bottom: 0; }
.how-photo {
  margin-top: 28px;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--graphite-600);
}
.how-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--sheen);
  opacity: 0.4;
}
.how-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}
.how-step:last-child { padding-bottom: 0; }
.how-step-num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--black);
  border: 1px solid var(--steel-400);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--tilt));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.how-step:hover .how-step-num {
  transform: rotate(0deg) scale(1.08);
  border-color: var(--white);
  background: var(--graphite-800);
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.how-step p { color: var(--steel-400); font-size: 0.92rem; margin-bottom: 0; }

.how-step:nth-child(1) { transition-delay: 0ms; }
.how-step:nth-child(2) { transition-delay: 90ms; }
.how-step:nth-child(3) { transition-delay: 180ms; }
.how-step:nth-child(4) { transition-delay: 270ms; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-photo { max-width: 100%; }
}

/* ===== Who We Serve — text + photo split with tilted ghost frame ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.who-copy p { color: var(--steel-200); }
.who-copy .angled-rule { margin-top: 24px; margin-bottom: 0; }

.who-photo-frame {
  position: relative;
}
.who-photo-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--graphite-600);
  z-index: 0;
}
.who-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--graphite-600);
}

/* ===== CTA banner — mark watermark + phone/email row ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-mark {
  position: absolute;
  left: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(var(--tilt));
  width: 40%;
  max-width: 360px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cta-banner .cta-email { display: inline-block; margin-top: 0; }
.cta-divider {
  width: 1px;
  height: 16px;
  background: var(--graphite-600);
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .who-grid { grid-template-columns: 1fr; gap: 48px; }
  .who-photo-frame { order: -1; max-width: 520px; }
}

@media (max-width: 560px) {
  .who-photo-frame::before { top: 10px; left: 10px; right: -10px; bottom: -10px; }
  .cta-mark { display: none; }
}
