/* Homepage layout. Shared service, project and planning pages use their existing styles. */
.home .hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  color: #fffdf8;
  background: var(--pine);
}
.home-hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(460px, 44vw, 592px);
  padding-block: clamp(56px, 6vw, 88px);
}
.home .hero-content {
  position: relative;
  z-index: 1;
  width: min(34rem, 52vw);
  padding: 0;
}
.home .hero .eyebrow {
  color: #f0dcc0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .13em;
  margin-bottom: 18px;
}
.home .hero h1 {
  font-size: clamp(44px, 4.8vw, 70px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.home .hero .intro {
  max-width: 42ch;
  margin: 20px 0 22px;
  color: #faf7ef;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
}
.home .hero .actions {
  display: flex;
  max-width: none;
  gap: 8px 22px;
  align-items: center;
}
.home .hero .button, .home-planning .button {
  min-width: 0;
  border-radius: 3px;
}
.home .hero .button { background: var(--gold); border-color: var(--gold); color: #202720; }
.home .hero .button:hover { background: #efddbd; border-color: #efddbd; }
.home-planning .button { color: #fffcf5; background: var(--pine); border: 1px solid var(--pine); }
.home-planning .button:hover { background: #38483a; }
.home .hero a:focus-visible { outline-color: #fffdf5; }
.home-work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 650;
  text-underline-offset: 5px;
}
.home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.home-hero-photo picture, .home-hero-photo img { display: block; width: 100%; height: 100%; }
.home-hero-photo img { object-fit: cover; object-position: 50% 55%; }
.home-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(21 29 24 / 89%), rgb(21 29 24 / 76%) 34%, rgb(21 29 24 / 51%) 54%, rgb(21 29 24 / 8%) 78%, transparent);
}
.home-hero-photo .caption {
  z-index: 1;
  inset: auto max(18px, calc((100% - 1190px) / 2)) 16px auto;
  margin: 0;
  padding: 4px 9px;
  background: rgb(25 33 27 / 78%);
  color: #fffdf8;
  line-height: 1.4;
}
.home .proof {
  background: #fffcf5;
  border-block: 1px solid var(--line);
}
.home .proof-inner { padding-block: 15px; color: #384037; }
.home .proof b { font-size: 10px; }
.home #services .card-copy > a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  line-height: 1.4;
}
.home-kitchen-options {
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.home-kitchen-options:last-child { border-bottom: 0; }
.home-kitchen-options summary {
  width: fit-content;
  padding: 11px 0;
  font-size: 13px;
  color: #475544;
}
.home-kitchen-options > div { display: grid; }
.home-kitchen-options a { padding: 7px 0; }
.home #featured-projects { border-top: 1px solid var(--line); }
.home-additional-projects { display: contents; }
.home-additional-projects[hidden], .home-project-toggle[hidden] { display: none; }
.home-project-toggle {
  justify-self: stretch;
  min-height: 46px;
  border: 1px solid #8d9789;
  border-radius: 3px;
  background: transparent;
  color: var(--pine);
  font: 650 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.home-project-toggle:hover { background: #eae7dd; }
.home-planning { background: #e9ece3; }
.home-planning-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(28px, 8vw, 112px);
  padding-block: clamp(36px, 5.5vw, 76px);
}
.home-planning-copy > p:not(.eyebrow) {
  max-width: 57ch;
  color: #435041;
  margin: 18px 0 24px;
}
.home-planning-links h3 { margin-bottom: 12px; }
.home-planning-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #b7c0b1;
  font-size: 15px;
  font-weight: 600;
  text-decoration-thickness: 1px;
}
.home .estimate-contact {
  grid-template-areas: "heading form" "followup form";
  grid-template-rows: auto 1fr;
  align-items: start;
  row-gap: 20px;
}
.home-contact-heading { grid-area: heading; }
.home-contact-heading > p:last-child { margin-bottom: 0; }
.home .estimate-request { grid-area: form; }
.home-contact-followup { grid-area: followup; }
.home-contact-followup .estimate-project { margin-top: 0; }
@media (max-width: 760px) {
  .home-hero-inner {
    align-items: flex-end;
    min-height: 490px;
    min-height: clamp(475px, 65svh, 565px);
    padding-block: 165px 32px;
  }
  .home .hero-content { width: min(100%, 32rem); }
  .home-hero-photo img { object-position: 57% 50%; }
  .home-hero-photo::after {
    background: linear-gradient(180deg, rgb(21 29 24 / 4%) 0%, rgb(21 29 24 / 12%) 14%, rgb(21 29 24 / 73%) 39%, rgb(21 29 24 / 86%) 85%);
  }
  .home-hero-photo .caption { inset: 12px 12px auto auto; }
  .home .hero .eyebrow { margin-bottom: 9px; }
  .home .hero h1 { font-size: clamp(41px, 7.8vw, 56px); }
  .home .hero .intro { max-width: 52ch; margin: 12px 0 16px; font-size: 16px; }
  .home .hero .button { min-height: 46px; padding: 10px 16px; }
  .home .proof-inner { padding-block: 12px; }
  .home .mobile-contact.home-estimate-in-view:not(:focus-within) { display: none; }
  .home-planning-inner { grid-template-columns: 1fr; gap: 30px; }
  .home .estimate-contact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "heading" "form" "followup";
    row-gap: 24px;
    padding-top: 32px;
  }
  .home .header-actions .button.small {
    color: #fffaf0;
    background: transparent;
    border-color: #8b907e;
  }
}
@media print {
  .home .home-additional-projects[hidden] { display: contents; }
  .home-project-toggle { display: none; }
}
/* Keep the small diagonal link arrow legible across system fonts. */
.home-link-arrow {
  display: inline-block;
  position: relative;
  width: .65rem;
  height: .65rem;
  flex: none;
  font-size: 0;
  vertical-align: .06rem;
}
.home-link-arrow::before, .home-link-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
}
.home-link-arrow::before { width: 64%; height: 64%; border: solid currentColor; border-width: 1.4px 1.4px 0 0; }
.home-link-arrow::after { width: 105%; border-top: 1.4px solid; transform: rotate(-45deg); transform-origin: right center; }
