.home {
  --site-max: 1280px;
  --gutter: clamp(22px, 5vw, 72px);
  --site-dark-green: #1f4037;
  --site-light: #f5f2ea;
}

.site-shell {
  width: min(100% - var(--gutter) * 2, var(--site-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner, .header-actions, .desktop-nav {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.site-header .brand img { width: 155px; height: 72px; }
.desktop-nav { gap: clamp(18px, 2.2vw, 34px); }
.header-inner .header-actions { gap: clamp(12px, 1.5vw, 24px); }
.desktop-nav a, .header-phone {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone { color: var(--green); }
.desktop-nav a:hover, .header-phone:hover { text-decoration: underline; }
.header-estimate { white-space: nowrap; }
.home .button-primary {
  background: var(--action-fill, var(--site-dark-green));
  color: var(--site-light);
  border-color: var(--action-edge, light-dark(transparent, #789184));
}
.home .button-primary:hover { background: var(--action-hover, #2a5145); filter: none; }
.estimate-cta {
  --action-fill: #805638;
  --action-hover: #70492f;
  --action-edge: light-dark(transparent, #d1a575);
}

.mobile-nav { display: none; }
.hero { position: relative; isolation: isolate; }
.hero-inner { min-height: clamp(520px, 48vw, 680px); display: grid; align-items: center; }
.hero-copy { max-width: min(48%, 555px); padding-block: 44px 65px; }
.hero h1 {
  font-size: clamp(51px, 6vw, 91px);
  line-height: .99;
  letter-spacing: -.077em;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
.hero-copy > p {
  max-width: 395px;
  margin: 25px 0 27px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-actions .button { min-height: 51px; padding-inline: 21px; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--copper);
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.hero-media {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
  margin: 0;
}
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 68% 54%; }
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 8%, color-mix(in srgb, var(--bg) 72%, transparent) 34%, transparent 66%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-media figcaption {
  position: absolute;
  z-index: 1;
  bottom: 19px;
  right: var(--gutter);
  color: var(--muted);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.site-section { padding-block: clamp(57px, 7vw, 103px); }
.home :is(main section[id], #request-estimate, .project-gallery) { scroll-margin-top: 98px; }
.section-heading { margin-bottom: clamp(24px, 3.5vw, 43px); }
.section-heading > h2, .contact-info > h2 {
  font-size: clamp(35px, 4.5vw, 58px);
  font-weight: 600;
  letter-spacing: -.063em;
  line-height: 1.08;
  margin: 0;
}
.section-heading > p, .team-intro, .contact-info > p {
  max-width: 68ch;
  color: var(--muted);
  margin: 12px 0 0;
}
.design-planning h3::after,
.work-section .section-heading > h2::after,
.contact-info > h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 12px;
  background: var(--copper);
}
#services { padding-top: clamp(38px, 5vw, 73px); }
#services .section-heading { margin-bottom: 18px; }
.design-planning { max-width: 60ch; margin-bottom: clamp(26px, 4vw, 44px); }
.design-planning h3 {
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: 0 0 12px;
}
.design-planning p { color: var(--muted); margin: 0; }
.service-grid, .owner-list, .gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 27px);
}
.service img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 5px;
}
.service h3, .process-list h3, .owner-list h3 {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 15px 0 7px;
}
.service p, .process-list p, .owner-list p { font-size: 14px; color: var(--muted); margin: 0; }
.media-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; }

.work-section, .contact-section { background: var(--surface-2); }
.work-section .site-section { padding-block: clamp(48px, 6vw, 88px); }
.work-section .section-heading > h2 { font-size: clamp(30px, 3.6vw, 46px); }
.project + .project { margin-top: 48px; }
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, min(35%, 360px)) minmax(0, 1fr);
  gap: clamp(20px, 4.5vw, 56px);
  align-items: center;
}
.project-cover { margin: 0; }
.project-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-inline: 2px solid color-mix(in srgb, var(--copper) 65%, transparent);
  border-radius: 5px;
}
.project-copy h3 { font-size: clamp(23px, 2.75vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; margin: 0 0 14px; }
.project-copy p { max-width: 55ch; color: var(--muted); }
.project-copy ul { padding-inline-start: 1.1em; margin-block: 17px; }
.project-copy li::marker { color: var(--copper); }
.project-gallery { margin-top: 26px; border-block: 1px solid var(--border); }
.project-gallery summary, .lunch-break summary { cursor: pointer; padding: 15px 0; font-weight: 600; }
.project-gallery summary span, .lunch-break summary span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 15px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { display: block; width: 100%; height: auto; border-radius: 4px; }
.gallery-grid figcaption { font-size: 12px; margin-top: 6px; color: var(--muted); }
.project-gallery .media-note { padding-bottom: 18px; }
.gallery-dialog {
  width: min(94vw, 920px);
  max-height: 94dvh;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
}
.gallery-dialog::backdrop { background: #101c16cc; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.gallery-controls button {
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.gallery-dialog figure { margin: 8px 0 0; text-align: center; }
.gallery-dialog img { display: block; max-width: 100%; max-height: 70dvh; margin-inline: auto; object-fit: contain; }
.gallery-dialog figcaption { margin: 8px 0 0; }

.process-list {
  padding: 0;
  margin: 0;
  display: grid;
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 28px);
  counter-reset: step;
}
.process-list li { border-top: 1px solid var(--border); padding-top: 14px; }
.process-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
}
.about-section { border-top: 1px solid var(--border); }
.about-section .section-heading { margin-bottom: 10px; }
.team-intro { margin-bottom: 25px; }
.about-section > img {
  display: block;
  max-width: min(100%, 760px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 5px;
}
.owner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.owner-list li {
  border-top: 1px solid var(--border);
  padding-block: 13px;
}
.owner-list img { display: block; width: 100%; max-height: 330px; object-fit: contain; object-position: left; }
.owner-list h3 { margin-top: 0; }
.owner-list .owner-role { color: var(--copper); margin-bottom: 5px; font-weight: 600; }

#licensing-credentials { border-top: 1px solid var(--border); }
.credentials-list { margin: 0; padding: 0; list-style: none; }
.credentials-list a { color: var(--copper); font-weight: 600; }
.credentials-list p { color: var(--muted); margin: 5px 0 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(385px, 1.06fr);
  align-items: start;
  gap: clamp(24px, 7vw, 92px);
}
.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(25px, 3vw, 37px);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.055em;
  text-decoration: none;
  margin-top: 19px;
}
.contact-links { display: flex; gap: 18px; }
.business-hours h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.business-hours dl { display: grid; gap: 5px; font-size: 14px; max-width: 320px; margin: 0; }
.business-hours dl div { display: flex; gap: 10px; justify-content: space-between; }
.business-hours dd { margin: 0; }
.business-hours p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.home .form-card { border-radius: 8px; }
.home .form-heading h2 { font-size: clamp(27px, 3.5vw, 38px); }
.home .form-heading h2:first-child { margin-top: 0; }
.home .form-heading > p:last-child, .home .field-hint, .home .privacy-note { font-size: 13px; }
.home .photo-heading > span { font-size: 13px; }
.home .field label, .home .photo-heading label, .home .photo-buttons .button { font-size: 14px; }
.home .field input, .home .field textarea { font-size: 16px; }
.home .photo-buttons { flex-wrap: wrap; }
.home .photo-buttons .button { min-height: 44px; }
.home .photo-previews button { width: 34px; height: 34px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px 24px;
  flex-wrap: wrap;
  padding-block: 25px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--copper); }

@media (max-width: 1080px) {
  .desktop-nav { gap: 14px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
}
@media (max-width: 970px) {
  .header-phone { display: none; }
}
@media (max-width: 820px) {
  .desktop-nav, .header-inner > .header-actions { display: none; }
  .header-inner { min-height: 68px; }
  .site-header .brand img { width: 136px; height: 65px; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 44px; padding: 7px 13px; cursor: pointer; list-style: none;
    border: 1px solid var(--border); border-radius: 5px; font-weight: 600;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .menu-icon { width: 16px; height: 10px; border-block: 1.5px solid currentColor; }
  .mobile-menu {
    position: absolute; top: 100%; inset-inline: 0; padding: 12px var(--gutter) 21px;
    border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
    max-height: calc(100dvh - 68px); overflow: auto;
  }
  .mobile-menu nav { display: grid; margin-bottom: 10px; }
  .mobile-menu nav a {
    display: flex; align-items: center; min-height: 46px; font-weight: 600;
    text-decoration: none; border-bottom: 1px solid var(--border);
  }
  .mobile-controls { display: flex; flex-wrap: wrap; gap: 7px 20px; align-items: center; padding-top: 12px; }
  .mobile-controls a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
  .hero-inner { min-height: 490px; }
  .hero-copy { max-width: 52%; }
  .hero h1 { font-size: clamp(41px, 7vw, 58px); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-layout .form-card { max-width: 650px; width: 100%; }
}
@media (max-width: 720px) {
  .hero { display: grid; }
  .hero-media { position: relative; grid-area: 1 / 1; inset: auto; height: clamp(240px, 62vw, 365px); }
  .hero-media img { object-position: 65% 52%; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 49%); }
  .hero-media figcaption { bottom: 42px; right: var(--gutter); }
  .hero-inner { grid-area: 2 / 1; min-height: 0; }
  .hero-copy { max-width: 520px; padding: 0 0 9px; margin-top: -22px; }
  .hero-copy > p { margin-block: 15px 18px; }
  .hero h1 { text-wrap: normal; max-width: 500px; }
  .service-grid, .process-list, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-feature { grid-template-columns: minmax(0, 1fr); }
  .project-cover { width: min(68%, 280px); }
  .owner-list { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .owner-list li { padding-block: 12px; }
}
@media (max-width: 410px) {
  .home { --gutter: 17px; }
  .hero h1 { font-size: clamp(36px, 11vw, 45px); }
  .hero-actions { column-gap: 15px; }
  .service h3, .process-list h3 { font-size: 17px; }
  .service-grid { gap: 19px 13px; }
}

.home summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
