/* ============================================================
   HERO — Full-bleed background photo + headline overlay
   ------------------------------------------------------------
   IMAGE SWAP:
   Background photo lives at assets/House.png. Replace that file
   (or change the url() below) to swap the hero image.
   ------------------------------------------------------------
   OVERLAY:
   The linear-gradient layer keeps headline text legible. Make
   it darker by raising the alpha (e.g. .65), or lighter by
   lowering it (e.g. .45) — err on the side of showing the photo.
   ============================================================ */

.hero {
  /* Hero sits on a dark photo overlay, so text inside the hero stays
     light regardless of the site's light theme. Scope --ink locally. */
  --ink: #ffffff;

  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 85vh, 880px);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  color: var(--ink);

  background:
    linear-gradient(rgba(10,18,30,.55), rgba(10,18,30,.55)),
    url('../assets/House.png') center/cover no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(480px, 75vh, 780px);
}

/* Left-aligned content column */
.hero__copy {
  max-width: 780px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .85rem;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
}
.hero__status .pulse-dot { background: #2bb673; box-shadow: 0 0 0 0 rgba(43,182,115,.55); animation-name: pulse-green; }
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(43,182,115,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(43,182,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); }
}

.hero__title {
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .88;
  margin-bottom: 1.5rem;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero__title .row { display: block; }
.hero__title .row--alt { color: var(--orange); }

.hero__sub {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 56ch;
  margin-bottom: 2rem;
  line-height: 1.55;
  text-shadow: 0 1px 18px rgba(0,0,0,.5);
}
.hero__sub strong { color: var(--ink); font-weight: 700; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* Spec strip — small contractor "data" feel */
.hero__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.25rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.22);
  max-width: 820px;
}
.hero__spec .k {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
  margin-bottom: .55rem;
}
.hero__spec .v {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 1.55rem;
  letter-spacing: .01em;
  line-height: 1;
}
.hero__spec .v em {
  font-style: normal;
  color: var(--orange);
}

/* Shared field styles (used by the contact-page form & FAB sheet) */
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--orange);
  background: var(--bg);
}

/* ============================================================
   MOBILE — hero overflow / stacking fixes (≤ 640px)
   Desktop layout above is untouched. All adjustments scoped here.
   ============================================================ */
@media (max-width: 640px) {
  /* Clip stray overflow + breathing room on both edges */
  .hero { overflow: hidden; }
  .hero .container { padding-inline: 1.25rem; }

  /* Text — never overflow the column, break long words */
  .hero__copy,
  .hero__title,
  .hero__sub {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero__sub { padding-right: 1rem; }

  /* CTAs stack vertically and fill the column */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn { width: 100%; }

  /* Stats — clean 2x2 grid with values that fit their column */
  .hero__specs {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
    padding-right: 1rem;
  }
  .hero__spec .k { font-size: .72rem; letter-spacing: .18em; }
  .hero__spec .v { font-size: 1.15rem; }
}
