/* =========================================================
   FINISHED HOMEPAGE
   Requires global.css, header.css, footer.css and hero.css
   ========================================================= */

.home-lead {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.25vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.6px;
}

/* PROOF STRIP */

.home-proof {
  position: relative;
  z-index: 8;
  margin-top: -46px;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--sage-border);
  border-radius: 28px;
  background: rgba(250, 252, 247, 0.98);
  box-shadow: var(--shadow);
}

.home-proof article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--sage-border);
}

.home-proof article:last-child {
  border-right: 0;
}

.home-proof article > span {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.home-proof strong {
  display: block;
  color: var(--sage-deep);
  font-size: 15px;
}

.home-proof p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* INTRO */

.home-intro {
  padding-top: 130px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: center;
}

.home-intro-media {
  position: relative;
  min-height: 680px;
}

.home-intro-media > img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  border-radius: 38px;
  box-shadow: var(--shadow-heavy);
}

.home-intro-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -34px;
  bottom: -34px;
  width: 64%;
  height: 58%;
  border-radius: 36px;
  background: var(--sage-light);
}

.home-intro-note {
  position: absolute;
  right: -30px;
  bottom: 40px;
  width: min(290px, 75%);
  padding: 24px;
  border: 1px solid var(--sage-border);
  border-radius: 24px;
  background: rgba(250, 252, 247, 0.96);
  box-shadow: var(--shadow);
}

.home-intro-note span {
  display: block;
  margin-bottom: 9px;
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.home-intro-note strong {
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}

.home-intro-content {
  max-width: 700px;
}

.home-intro-content .home-lead {
  margin-bottom: 24px;
}

.home-intro-content .body-text {
  margin-top: 20px;
}

.home-intro-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.home-intro-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--sage-border);
  border-radius: 18px;
  background: var(--sage-wash);
}

.home-intro-points span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-deep);
  font-weight: 900;
}

.home-intro-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-intro-points strong {
  color: var(--charcoal);
}

.text-arrow-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 900;
}

.text-arrow-link span {
  transition: transform 0.2s ease;
}

.text-arrow-link:hover span {
  transform: translateX(4px);
}

/* SERVICES */

.home-services {
  background:
    radial-gradient(circle at 95% 0, rgba(156, 175, 148, 0.18), transparent 30%),
    var(--stone);
}

.home-heading-row {
  align-items: end;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
}

.home-service-card {
  overflow: hidden;
  border: 1px solid var(--sage-border);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(63, 80, 59, 0.11);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 76px rgba(63, 80, 59, 0.18);
}

.home-service-card > a {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 390px;
}

.home-service-card--featured {
  grid-column: 1 / -1;
}

.home-service-card--featured > a {
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  min-height: 500px;
}

.home-service-media {
  min-height: 100%;
  overflow: hidden;
  background: var(--sage-mist);
}

.home-service-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-service-card--featured .home-service-media img {
  min-height: 500px;
}

.home-service-card:hover img {
  transform: scale(1.035);
}

.home-service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 52px);
}

.home-service-content > span {
  margin-bottom: 24px;
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-service-content h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1px;
}

.home-service-content p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-service-content > strong {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
  color: var(--sage-deep);
  font-size: 13px;
}

.home-service-content i {
  font-style: normal;
  transition: transform 0.2s ease;
}

.home-service-card:hover i {
  transform: translate(2px, -2px);
}

/* PROJECTS */

.home-projects {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.home-projects::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -200px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(223, 233, 215, 0.08);
  border-radius: 50%;
}

.home-projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 50px;
  align-items: end;
}

.home-projects h2 {
  color: var(--white);
}

.home-projects-heading > div:last-child p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.home-projects-heading > div:last-child a {
  display: inline-flex;
  gap: 9px;
  margin-top: 22px;
  color: var(--sage-light);
  font-size: 13px;
  font-weight: 900;
}

.home-projects-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: repeat(2, 310px);
  gap: 22px;
  margin-top: 54px;
}

.home-project {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 233, 215, 0.14);
  border-radius: 34px;
  background: #101512;
}

.home-project--large {
  grid-row: 1 / 3;
}

.home-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 24, 20, 0.03) 0%,
      rgba(18, 24, 20, 0.12) 42%,
      rgba(18, 24, 20, 0.88) 100%
    );
}

.home-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-project:hover img {
  transform: scale(1.045);
}

.home-project > div {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 30px;
}

.home-project span {
  display: block;
  margin-bottom: 10px;
  color: var(--sage-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-project h3 {
  max-width: 540px;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.8px;
}

/* PROCESS */

.home-process {
  background: var(--sage-wash);
}

.home-process-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: start;
}

.home-process-intro {
  position: sticky;
  top: 150px;
}

.home-process-intro .body-text {
  margin-top: 24px;
}

.home-process-intro .btn {
  margin-top: 34px;
}

.home-process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.home-process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--sage-border);
}

.home-process-list li:first-child {
  border-top: 1px solid var(--sage-border);
}

.home-process-list > li > span {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
}

.home-process-list h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.home-process-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ACCESSIBLE */

.home-accessible {
  background: var(--cream);
}

.home-accessible-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
}

.home-accessible-content .home-lead {
  margin-top: 8px;
}

.home-accessible-content ul {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.home-accessible-content li {
  position: relative;
  padding: 15px 18px 15px 50px;
  border: 1px solid var(--sage-border);
  border-radius: 17px;
  background: var(--sage-wash);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-accessible-content li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 900;
}

.home-accessible-media {
  position: relative;
}

.home-accessible-media img {
  width: 100%;
  min-height: 650px;
  object-fit: cover;
  border-radius: 38px;
  box-shadow: var(--shadow-heavy);
}

.home-accessible-badge {
  position: absolute;
  left: -34px;
  bottom: 38px;
  min-width: 260px;
  padding: 22px 24px;
  border: 1px solid var(--sage-border);
  border-radius: 22px;
  background: rgba(250, 252, 247, 0.97);
  box-shadow: var(--shadow);
}

.home-accessible-badge strong,
.home-accessible-badge span {
  display: block;
}

.home-accessible-badge strong {
  color: var(--sage-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.home-accessible-badge span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* AREAS */

.home-areas {
  background:
    radial-gradient(circle at 0 100%, rgba(156, 175, 148, 0.22), transparent 34%),
    var(--stone);
}

.home-areas-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 50px;
  align-items: end;
}

.home-areas-top .text-arrow-link {
  margin-top: 16px;
}

.home-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.home-area-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--sage-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.home-area-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-area-card--primary {
  background: var(--sage-deep);
  color: var(--white);
}

.home-area-card--primary:hover {
  background: var(--charcoal);
}

.home-area-card > span {
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-area-card--primary > span {
  color: var(--sage-light);
}

.home-area-card h3 {
  margin: 28px 0 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.home-area-card--primary h3 {
  color: var(--white);
}

.home-area-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-area-card--primary p {
  color: rgba(255, 255, 255, 0.72);
}

.home-area-card a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-top: 30px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 900;
}

.home-area-card--primary a {
  color: var(--sage-light);
}

.home-area-card i {
  font-style: normal;
}

/* FAQ */

.home-faq {
  background: var(--cream);
}

.home-faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: start;
}

.home-faq-intro {
  position: sticky;
  top: 150px;
}

.home-faq-intro .body-text {
  margin-top: 22px;
}

.home-faq .faq-list details {
  border-color: var(--sage-border);
  background: var(--sage-wash);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.home-faq .faq-list details[open] {
  background: var(--white);
  box-shadow: 0 14px 38px rgba(63, 80, 59, 0.1);
}

.home-faq .faq-list summary {
  position: relative;
  padding-right: 36px;
  list-style: none;
}

.home-faq .faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq .faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -4px;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.home-faq .faq-list details[open] summary::after {
  content: "−";
}

/* FINAL CTA */

.home-final-cta {
  padding: 0 0 118px;
  background: var(--cream);
}

.home-final-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: clamp(42px, 6vw, 74px);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(63, 80, 59, 0.98), rgba(32, 38, 33, 0.98));
  color: var(--white);
  box-shadow: var(--shadow-heavy);
}

.home-final-cta-card::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(223, 233, 215, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(223, 233, 215, 0.025);
}

.home-final-cta-card > * {
  position: relative;
  z-index: 1;
}

.home-final-cta h2 {
  max-width: 730px;
  color: var(--white);
}

.home-final-cta p {
  max-width: 670px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.home-final-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 240px;
}

.home-final-cta .btn-primary {
  background: var(--sage-light);
  color: var(--sage-deep);
}

.home-final-cta .btn-primary:hover {
  background: var(--white);
}

.home-final-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.home-final-cta .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .home-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-proof article {
    border-right: 0;
    border-bottom: 1px solid var(--sage-border);
  }

  .home-proof article:last-child {
    border-bottom: 0;
  }

  .home-intro-grid,
  .home-accessible-grid {
    grid-template-columns: 1fr;
  }

  .home-intro-media {
    max-width: 780px;
  }

  .home-intro-note {
    right: 24px;
  }

  .home-service-card > a,
  .home-service-card--featured > a {
    grid-template-columns: 1fr;
  }

  .home-service-media img,
  .home-service-card--featured .home-service-media img {
    min-height: 420px;
  }

  .home-process-layout,
  .home-faq-grid {
    grid-template-columns: 1fr;
  }

  .home-process-intro,
  .home-faq-intro {
    position: static;
  }

  .home-accessible-media {
    max-width: 760px;
    margin-left: auto;
  }

  .home-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-final-cta-card {
    grid-template-columns: 1fr;
  }

  .home-final-cta-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .home-proof {
    margin-top: -20px;
  }

  .home-proof article {
    padding: 23px;
  }

  .home-intro {
    padding-top: 94px;
  }

  .home-intro-media,
  .home-intro-media > img {
    min-height: 520px;
    height: 520px;
  }

  .home-intro-media::before {
    left: -14px;
    bottom: -14px;
  }

  .home-intro-note {
    right: 14px;
    bottom: 20px;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card--featured {
    grid-column: auto;
  }

  .home-service-media img,
  .home-service-card--featured .home-service-media img {
    min-height: 330px;
  }

  .home-projects-heading,
  .home-areas-top {
    grid-template-columns: 1fr;
  }

  .home-projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .home-project,
  .home-project--large {
    min-height: 420px;
    grid-row: auto;
  }

  .home-process-list li {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .home-accessible-media img {
    min-height: 520px;
  }

  .home-accessible-badge {
    left: 14px;
    right: 14px;
    min-width: 0;
  }

  .home-areas-grid {
    grid-template-columns: 1fr;
  }

  .home-area-card {
    min-height: 280px;
  }

  .home-final-cta-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-intro-media,
  .home-intro-media > img {
    min-height: 440px;
    height: 440px;
  }

  .home-intro-note {
    width: calc(100% - 28px);
  }

  .home-service-content {
    padding: 28px 24px 32px;
  }

  .home-project,
  .home-project--large {
    min-height: 370px;
  }

  .home-project > div {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .home-accessible-media img {
    min-height: 460px;
  }

  .home-final-cta-card {
    border-radius: 30px;
  }
}

/* =========================================================
   FAQ LAYOUT CORRECTION
   Isolated to prevent legacy .faq-list rules overriding it.
   ========================================================= */

.home-faq .faq-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100%;
  margin: 0;
}

.home-faq .faq-list > details {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--sage-border) !important;
  border-radius: 20px !important;
  background: var(--sage-wash) !important;
  box-shadow: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-faq .faq-list > details[open] {
  border-color: rgba(95, 115, 89, 0.34) !important;
  background: var(--white) !important;
  box-shadow: 0 14px 38px rgba(63, 80, 59, 0.1);
}

.home-faq .faq-list > details > summary {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 76px;
  width: 100%;
  margin: 0;
  padding: 22px 64px 22px 24px !important;
  list-style: none;
  color: var(--charcoal);
  cursor: pointer;
  font-family: inherit;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

.home-faq .faq-list > details > summary::-webkit-details-marker {
  display: none;
}

.home-faq .faq-list > details > summary::marker {
  content: "";
}

.home-faq .faq-list > details > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  color: var(--sage-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.home-faq .faq-list > details[open] > summary::after {
  content: "−";
  background: var(--sage-deep);
  color: var(--white);
}

.home-faq .faq-list > details > p {
  margin: 0 !important;
  padding: 0 64px 24px 24px !important;
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

.home-faq .faq-list > details > summary:hover {
  color: var(--sage-deep);
}

.home-faq .faq-list > details > summary:hover::after {
  border-color: var(--sage-dark);
}

@media (max-width: 760px) {
  .home-faq .faq-list > details > summary {
    min-height: 68px;
    padding: 18px 56px 18px 18px !important;
    font-size: 16px !important;
  }

  .home-faq .faq-list > details > summary::after {
    right: 17px;
    width: 28px;
    height: 28px;
  }

  .home-faq .faq-list > details > p {
    padding: 0 56px 20px 18px !important;
    font-size: 14px !important;
  }
}