/* Homepage-only presentation. Shared header/footer still use site.css. */

.home {
  position: relative;
}

.home .site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  isolation: isolate;
  overflow: visible;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.home .site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  pointer-events: none;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.4);
  transition: opacity 0.28s ease;
}

.home .site-header.is-scrolled {
  background: #f9f8f5;
  border-bottom-color: #e3d3c9;
}

.home .site-header.is-scrolled::before {
  opacity: 0;
}

.home .site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.5rem;
}

.home .site-nav-start,
.home .site-nav-end {
  grid-area: auto;
  justify-content: center;
  justify-self: auto;
}

.home .site-nav > .logo-link {
  display: flex;
  align-items: center;
  justify-self: center;
  grid-area: auto;
  height: auto;
  margin-block-start: 0;
  padding: 0;
  line-height: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home .site-nav > .logo-link:hover {
  color: inherit;
  background: none;
}

.home .site-header .logo-link img {
  width: auto;
  max-height: 62px;
  height: auto;
  background: transparent;
}

.home .site-nav a:not(.logo-link) {
  height: 18px;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  color: #f9f8f5;
  background: #2f1b13;
  border: 1px solid #2f1b13;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.home .site-nav a:not(.logo-link):hover {
  color: #2f1b13;
  background: #f9f8f5;
}

.home .site-nav a:not(.logo-link)[aria-current="page"] {
  color: #f9f8f5;
  background: #2f1b13;
  border-color: #2f1b13;
}

.home .site-header.is-scrolled .site-nav a:not(.logo-link) {
  color: #f9f8f5;
  background: #2f1b13;
  border-color: #2f1b13;
}

.home .site-header.is-scrolled .site-nav a:not(.logo-link):hover {
  color: #2f1b13;
  background: #f9f8f5;
}

.home .site-header.is-scrolled .site-nav a:not(.logo-link)[aria-current="page"] {
  color: #f9f8f5;
  background: #2f1b13;
  border-color: #2f1b13;
}

.home-menu-toggle {
  display: none;
}

@media (min-width: 40.01rem) {
  .home .site-header {
    height: 86px;
    min-height: 86px;
    display: flex;
    align-items: center;
  }

  .home .site-header .wrap,
  .home .site-nav {
    height: 100%;
    align-items: center;
  }

  .home .site-nav {
    gap: 0.75rem 1.8rem;
  }

  .home .site-nav-start,
  .home .site-nav-end {
    gap: 1.2rem;
  }

  .home .site-nav a:not(.logo-link) {
    width: 9rem;
    min-width: 9rem;
    padding-inline: 1.15rem;
  }
}

@media (min-width: 60.01rem) {
  .home .site-nav {
    gap: 0.75rem 1.8rem;
  }

  .home .site-nav-start,
  .home .site-nav-end {
    gap: 1.2rem;
  }

  .home .site-nav a:not(.logo-link) {
    width: 9rem;
    min-width: 9rem;
    height: 32px;
    padding: 0 1.15rem;
    font-size: 0.95rem;
  }
}

.home-main {
  padding: 0;
  overflow-x: clip;
}

.home-blueprint {
  position: relative;
  isolation: isolate;
}

.home-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(118, 59, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 59, 22, 0.08) 1px, transparent 1px),
    linear-gradient(115deg, transparent 42%, rgba(190, 107, 55, 0.07) 42.5%, rgba(190, 107, 55, 0.07) 43%, transparent 43.5%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

.home-hero {
  position: relative;
  color: #f9f8f5;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-block {
  padding-block: clamp(2.5rem, 5.5vw, 3.75rem);
}

.home-about.home-blueprint {
  padding-block: clamp(2.25rem, 4.5vw, 3.15rem);
}

.home-services-block {
  padding-block: clamp(2.25rem, 4.5vw, 3.15rem) clamp(1.75rem, 3.5vw, 2.5rem);
}

.home-sectors {
  padding-block: clamp(1.5rem, 3.2vw, 2.15rem);
}

.home-contact {
  padding-block: clamp(2.15rem, 4.2vw, 3rem);
}

.home-block .wrap > h2,
.home-split-copy h2,
.home-contact-inner h2 {
  margin: 0 0 1.25rem;
  color: #763b16;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.home-block.home-contact .wrap > h2 {
  color: #763b16;
}

.home-about {
  background: #f8f7f4;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: clamp(1.15rem, 3vw, 2.25rem);
  align-items: center;
}

.home-about-card {
  width: min(80rem, calc(100% - 2.5rem));
  min-height: 26rem;
  background: #faf7f2;
  border: 1px solid #e3d3c9;
  border-radius: 1.1rem;
  padding: clamp(2.15rem, 5.5vw, 3.5rem);
  box-shadow: 0 10px 28px rgba(47, 27, 19, 0.06);
}

.home-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.05rem;
  color: #2f1b13;
  font-weight: 500;
  text-decoration: none;
  background: #f9f8f5;
  border: 1px solid #763b16;
  border-radius: 0.35rem;
}

.home-about-btn:hover {
  color: #2f1b13;
  background: #f9f8f5;
}

.home-split-copy p {
  margin: 0 0 1.1rem;
  max-width: 40rem;
}

.home-split-media {
  position: relative;
}

.home-split-media::after {
  content: "";
  position: absolute;
  inset-inline-start: -0.7rem;
  inset-block-end: -0.7rem;
  width: 42%;
  height: 42%;
  background: #be6b37;
  transform: rotate(-8deg);
  z-index: -1;
}

.home-split-media img {
  width: 100%;
  height: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 0.35rem;
}

.home-services-block {
  background: #f9f8f5;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.home-service-grid li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.home-service-grid a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
  height: 100%;
  padding: 1.1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  background: #faf7f2;
  border: 1px solid #e8ddd4;
  border-radius: 0.7rem;
}

.home-service-grid a:hover {
  color: inherit;
  background: #f3e6dc;
  border-color: #be6b37;
}

.home-service-num {
  color: #be6b37;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.home-service-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.home-service-grid .ltr {
  display: block;
  color: #8a6a55;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.home-services-block .wrap > p {
  margin: 0;
}

.home-sectors {
  background: #f3e6dc;
  color: #2f1b13;
}

.home-sectors-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.home-sectors-copy h2 {
  margin: 0 0 1.25rem;
  color: #763b16;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.home-sectors-copy p {
  max-width: 40rem;
  margin: 0 0 0.85rem;
  color: #2f1b13;
}

.home-sectors-copy p:last-child {
  margin-bottom: 0;
}

.home-sectors-carousel {
  position: relative;
  min-width: 0;
  width: 75%;
  max-width: 100%;
  justify-self: center;
}

.home-sector-card-link {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(47, 27, 19, 0.28);
  cursor: pointer;
}

.home-sector-card-link:focus-visible {
  outline: 2px solid #763b16;
  outline-offset: 3px;
}

.home-sector-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-sector-track::-webkit-scrollbar {
  display: none;
}

.home-sector-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
  background: #2f1b13;
}

.home-sector-slide img {
  display: block;
  width: 100%;
  height: min(21rem, 46.5vw);
  object-fit: cover;
}

.home-sector-slide h3 {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  margin: 0;
  padding: 1.2rem 0.85rem 0.7rem;
  color: #f9f8f5;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.45;
  background: linear-gradient(to top, rgba(47, 27, 19, 0.88), rgba(47, 27, 19, 0.05));
}

.home-sector-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem;
  pointer-events: none;
}

.home-sector-prev,
.home-sector-next {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  color: #f9f8f5;
  background: rgba(47, 27, 19, 0.55);
  border: 1px solid rgba(249, 248, 245, 0.75);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(47, 27, 19, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.home-sector-prev::before,
.home-sector-next::before {
  display: block;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
  color: #f9f8f5;
  transform: none;
}

.home-sector-prev::before {
  content: "<";
}

.home-sector-next::before {
  content: ">";
}

.home-sector-prev:hover,
.home-sector-next:hover {
  background: rgba(190, 107, 55, 0.55);
  border-color: #be6b37;
}

.home-sector-prev:focus-visible,
.home-sector-next:focus-visible {
  outline: 2px solid #ead2c2;
  outline-offset: 3px;
}

.home-contact {
  background: transparent;
  color: #2f1b13;
}

.home-contact-inner {
  width: min(80rem, calc(100% - 2.5rem));
  max-width: none;
  margin-inline: auto;
  padding: clamp(2.75rem, 6.5vw, 4.5rem);
  text-align: center;
  background: #faf7f2;
  border: 1px solid #e3d3c9;
  border-radius: 1.1rem;
}

.home-contact-inner h2 {
  color: #763b16;
}

.home-contact-inner p {
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  color: #2f1b13;
}

.home-contact-inner p:last-child {
  margin-bottom: 0;
}

.home-contact-details {
  margin: 0 auto 1.6rem;
  padding: 0;
  list-style: none;
}

.home-contact-details li {
  margin: 0 0 0.55rem;
  color: #2f1b13;
}

.home-contact-details li:last-child {
  margin-bottom: 0;
}

.home-contact-details a {
  color: #2f1b13;
  text-decoration: none;
}

.home-contact-details a:hover {
  color: #763b16;
}

.home-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.05rem;
  color: #f9f8f5;
  font-weight: 500;
  text-decoration: none;
  background: #2f1b13;
  border: 1px solid #2f1b13;
  border-radius: 0.35rem;
}

.home-contact-btn:hover {
  color: #f9f8f5;
  background: #2f1b13;
}

@media (max-width: 60rem) {
  .home-split,
  .home-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-sectors-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .home .site-header {
    position: sticky;
    background: #f9f8f5;
    border-bottom-color: #e3d3c9;
  }

  .home .site-header::before {
    display: none;
  }

  .home .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0;
    padding-inline: 2.6rem;
  }

  .home-menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 36px;
    padding: 0;
    color: #763b16;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
  }

  .home-menu-toggle:focus {
    outline: none;
  }

  .home-menu-toggle:focus-visible {
    outline: 2px solid #763b16;
    outline-offset: 3px;
  }

  .home-menu-toggle::before {
    content: "";
    display: block;
    width: 1.05rem;
    height: 0.12rem;
    background: currentColor;
    box-shadow: 0 -0.32rem 0 currentColor, 0 0.32rem 0 currentColor;
  }

  .home .site-nav > .logo-link {
    grid-area: auto;
    justify-self: center;
    margin-block-start: 0;
  }

  .home .site-header .logo-link img {
    max-height: 36px;
  }

  .home .site-nav-start,
  .home .site-nav-end {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: 100%;
    flex: 1 1 100%;
    padding: 0.45rem 0 0.55rem;
  }

  .home .site-header.is-menu-open .site-nav-start,
  .home .site-header.is-menu-open .site-nav-end {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
  }

  .home .site-header.is-menu-open .site-nav-start li,
  .home .site-header.is-menu-open .site-nav-end li {
    width: 100%;
  }

  .home .site-nav-start {
    grid-area: auto;
    order: 1;
  }

  .home .site-nav-end {
    grid-area: auto;
    order: 2;
  }

  .home .site-nav a:not(.logo-link),
  .home .site-header.is-scrolled .site-nav a:not(.logo-link) {
    width: 100%;
    height: 2.35rem;
    color: #f9f8f5;
    background: #2f1b13;
    border-color: #2f1b13;
  }

  .home .site-nav a:not(.logo-link):hover,
  .home .site-header.is-scrolled .site-nav a:not(.logo-link):hover {
    color: #2f1b13;
    background: #f9f8f5;
  }

  .home-split,
  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-split-media::after {
    display: none;
  }
}
