/* Shared interior pages and mobile improvements. */
header {
  position: sticky;
  top: -42px;
  z-index: 1030;
}
.navbar.scrolled {
  position: relative;
  min-height: 120px;
}
.navbar.scrolled .site-logo {
  width: 168px;
}
.navbar .nav-link[aria-current="page"] {
  color: #365c19;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.dropdown-menu {
  max-height: 70dvh;
  overflow-y: auto;
}
:focus-visible {
  outline: 3px solid #548400;
  outline-offset: 4px;
}
.btn,
.navbar-toggler {
  min-height: 44px;
}
.eyebrow,
.text-link,
.footer-bottom,
.site-footer h3,
.property-grid small,
.service-card a,
.utility-bar {
  font-size: 0.875rem;
}
.service-card p,
.footer-summary,
.signature-list small {
  font-size: 1rem;
}
.display-heading,
.contact-panel h2 {
  line-height: 1;
}
.page-hero {
  position: relative;
  isolation: isolate;
  color: white;
  background: var(--kc-charcoal);
  overflow: hidden;
}
.page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(12, 21, 12, 0.94),
    rgba(12, 21, 12, 0.45)
  );
}
.page-hero-solid {
  background: linear-gradient(125deg, #151915, #31472a);
  border-bottom: 5px solid var(--kc-leaf);
}
.page-hero-solid::after {
  display: none;
}
.page-hero-content {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-hero h1 {
  max-width: 940px;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 6vw, 6.5rem);
  line-height: 1;
}
.page-hero-content > p:last-child {
  max-width: 700px;
  font-size: 1.25rem;
  color: #e6ebe3;
}
.breadcrumb {
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: #dbe5d4;
}
.subheading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.05;
  color: var(--kc-green);
}
.detail-photo {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
}
.detail-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid #d0d7cb;
  border-top: 5px solid var(--kc-leaf);
  background: var(--kc-cream);
}
.card-index {
  font: 800 1.2rem var(--font-display);
  color: #52752b;
}
.detail-card h3,
.service-tile h3 {
  font: 800 2rem/1.05 var(--font-display);
  text-transform: uppercase;
  margin: 1rem 0;
}
.detail-card p {
  margin: 0;
}
.gallery-section {
  background: var(--kc-cream);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.service-tile {
  display: block;
  height: 100%;
  border: 1px solid #cfd8c8;
  background: #fff;
}
.service-tile:hover {
  box-shadow: var(--shadow-soft);
  border-color: #52733a;
}
.service-tile > div {
  padding: 1.75rem;
}
.service-tile-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.service-tile .text-link {
  display: block;
  margin-top: 1rem;
}
.project-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .project-overlay {
  pointer-events: none;
}
.project-overlay small,
.project-overlay em {
  font-size: 0.875rem;
}
#projectCarousel .carousel-item img {
  object-fit: contain;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.gallery-status {
  margin: 1rem 0 2rem;
  color: var(--kc-muted);
}
.faq-list details {
  border-bottom: 1px solid #cbd4c6;
  padding: 1.25rem 0;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--kc-muted);
}
.callout {
  border-left: 6px solid var(--kc-leaf);
  padding: 2rem;
  background: var(--kc-cream);
}
.contact-details > * {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid #d0d8cc;
  overflow-wrap: anywhere;
}
.contact-details small,
.contact-details strong {
  display: block;
}
.contact-details small {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kc-muted);
}
.contact-details strong {
  font-size: 1.15rem;
}
.form-panel {
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--kc-cream);
  border-top: 5px solid var(--kc-leaf);
}
.form-label {
  font-weight: 600;
}
.form-label span {
  font-weight: 400;
}
.form-control,
.form-select {
  border-radius: 0;
  min-height: 48px;
  font-size: 1rem;
  border: 1px solid #9da894;
  padding: 0.75rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #52733a;
  box-shadow: 0 0 0 0.2rem rgba(82, 115, 58, 0.2);
}
.form-check {
  padding-left: 1.9rem;
}
.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -1.9rem !important;
}
.form-check-input:checked {
  background-color: var(--kc-green);
  border-color: var(--kc-green);
}
.form-check-label a,
.legal-copy a,
.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-text {
  font-size: 0.9rem;
  color: #53604c;
}
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0 0 1rem;
  padding: 1rem;
  border-left: 4px solid #8f302b;
  background: #fff;
  color: #692420;
}
.form-status.success {
  border-color: #466e25;
  color: #2d5219;
}
.legal-nav {
  padding: 1.5rem;
  background: var(--kc-cream);
}
.legal-nav strong {
  display: block;
  margin-bottom: 0.75rem;
}
.legal-nav a {
  display: block;
  padding: 0.5rem 0;
  line-height: 1.4;
  text-decoration: underline;
}
.legal-copy section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 160px;
}
.legal-copy h2 {
  font: 800 2rem/1.15 var(--font-display);
  text-transform: uppercase;
}
.site-footer a {
  overflow-wrap: anywhere;
}
.footer-main a {
  display: inline-block;
  padding: 0.25rem 0;
}
.footer-main .footer-brand {
  padding: 0;
}
.reveal {
  opacity: 1;
  transform: none;
}
@media (max-width: 1199.98px) {
  header {
    top: 0;
  }
  .navbar,
  .navbar.scrolled {
    min-height: 90px;
  }
  .site-logo,
  .navbar.scrolled .site-logo {
    width: 120px;
  }
  .navbar-collapse {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dropdown-menu {
    box-shadow: none !important;
    border-left: 3px solid var(--kc-leaf) !important;
    margin: 0.25rem 0 0.75rem;
    padding-left: 0.5rem;
  }
  .dropdown-menu {
    max-height: none;
    overflow: visible;
  }
  .dropdown-item {
    white-space: normal;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .navbar .nav-link {
    min-height: 44px;
  }
  .navbar-collapse > .btn {
    width: 100%;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-collapse {
    max-height: calc(100dvh - 165px);
  }
}
@media (max-width: 767.98px) {
  .section-space {
    padding: 3.5rem 0;
  }
  .section-space-sm {
    padding: 3rem 0;
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    line-height: 1;
  }
  .hero-content {
    padding: 3rem 0 4.5rem;
  }
  .hero-slide {
    min-height: 620px;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .image-composition {
    min-height: 390px;
  }
  .image-main {
    height: 360px;
  }
  .image-accent {
    height: 160px;
  }
  .feature-photo-wrap,
  .shed-photo {
    min-height: 380px;
  }
  .section-header {
    align-items: start;
    flex-direction: column;
  }
  .page-hero-content {
    padding-top: 1.5rem;
  }
  .page-hero h1 {
    overflow-wrap: break-word;
  }
  .page-hero-content > p:last-child {
    font-size: 1.05rem;
  }
  .breadcrumb {
    margin-bottom: 1.75rem;
  }
  .project-card {
    height: 360px;
  }
  .project-overlay strong {
    font-size: 1.9rem;
  }
  .gallery-filters .btn {
    flex: 1 1 44%;
    white-space: normal;
  }
  .detail-card {
    padding: 1.5rem;
  }
  .service-card {
    padding-bottom: 4rem;
  }
  .contact-panel {
    padding: 2rem 1.4rem;
  }
  .contact-panel h2 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }
  .contact-panel .btn {
    white-space: normal;
  }
  .footer-main {
    padding: 3rem 0 2rem;
  }
  #projectCarousel .carousel-item {
    height: 54dvh;
  }
  .project-modal .modal-title {
    font-size: 1.7rem;
  }
  .project-modal .modal-header {
    padding: 1rem;
  }
  .project-modal .btn-close {
    padding: 0.75rem;
  }
  .gallery-control {
    width: 44px;
    height: 44px;
  }
  .form-panel .btn {
    width: 100%;
  }
}

/* Expanded project gallery */
.project-gallery-page #projectCarousel .carousel-item img { object-fit: contain; background: #151915; }
.project-gallery-page [hidden] { display: none !important; }
.project-gallery-page .project-overlay small { line-height: 1.5; white-space: normal; }
.project-gallery-page .project-overlay strong { font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.project-gallery-page .carousel-indicators { flex-wrap: wrap; gap: 3px; margin-bottom: .5rem; }
.project-gallery-page .carousel-indicators button { min-height: 8px; }
.project-gallery-page .modal-dialog { max-width: 1140px; }
@media(max-width:575px) {
 .project-gallery-page .project-card { height: 330px; }
 .project-gallery-page .gallery-filters .btn { min-height: 48px; font-size: .85rem; }
 .project-gallery-page .modal-dialog { margin: .5rem; }
 .project-gallery-page #projectCarousel .carousel-item { height: 48dvh; }
 .project-gallery-page .modal-footer { padding: .75rem 1rem; }
}
