/* JKDD Finish & Remodeling — V7 premium visual system */

:root {
  --v7-bg: #f7f3eb;
  --v7-surface: #fffdf9;
  --v7-surface-2: #efe6d8;
  --v7-ink: #1d1c18;
  --v7-text: #302e28;
  --v7-muted: #716b61;
  --v7-line: rgba(46, 40, 31, .14);
  --v7-wood: #8b5d3c;
  --v7-brass: #b58a4f;
  --v7-dark: #24221d;
  --v7-max: 1320px;
  --v7-gutter: clamp(18px, 4vw, 58px);
  --v7-space: clamp(78px, 10vw, 148px);
  --v7-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --v7-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --v7-shadow: 0 24px 70px rgba(55, 43, 28, .10);
}

html {
  scroll-padding-top: 92px;
}

body.home-page {
  background: var(--v7-bg);
  color: var(--v7-text);
  font-family: var(--v7-sans);
  font-size: 16px;
  line-height: 1.68;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.home-page p {
  overflow-wrap: break-word;
}

/* Header */
.home-page .site-header,
.home-page .site-header.scrolled,
.home-page .site-header.open {
  height: 92px;
  background: rgba(247, 243, 235, .96);
  color: var(--v7-ink);
  border-bottom: 1px solid var(--v7-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.home-page .header-inner {
  width: min(var(--v7-max), calc(100% - (var(--v7-gutter) * 2)));
  gap: clamp(20px, 3vw, 48px);
}

.home-page .brand {
  width: 142px;
  overflow: visible;
}

.home-page .brand img {
  width: 100%;
  max-height: 66px;
  height: auto;
  object-fit: contain;
}

.home-page .desktop-nav {
  margin-left: auto;
  gap: clamp(18px, 2vw, 30px);
}

.home-page .desktop-nav a,
.home-page .header-cta,
.home-page .mobile-nav a {
  font-size: 11px;
  letter-spacing: .11em;
  line-height: 1.2;
}

.home-page .desktop-nav a {
  color: rgba(29, 28, 24, .68);
}

.home-page .desktop-nav a:hover {
  color: var(--v7-ink);
}

.home-page .header-cta {
  min-height: 46px;
  padding-inline: 20px;
  border: 1px solid var(--v7-dark);
  background: var(--v7-dark);
  color: #fff;
}

.home-page .header-cta:hover {
  background: var(--v7-wood);
  border-color: var(--v7-wood);
  color: #fff;
}

.home-page .menu-toggle span {
  background: var(--v7-ink);
}

/* Typography */
.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: var(--v7-serif);
  font-weight: 400;
  color: var(--v7-ink);
}

.home-page h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 5.6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.038em;
}

.home-page h2 {
  font-size: clamp(2.55rem, 4.6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.034em;
}

.home-page h3 {
  line-height: 1.08;
  letter-spacing: -.025em;
}

.home-page .eyebrow {
  margin-bottom: 18px;
  color: var(--v7-wood);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
}

/* Hero */
.home-page .hero {
  min-height: 790px;
  padding-top: 92px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  background: var(--v7-bg);
  color: var(--v7-text);
}

.home-page .hero-copy {
  align-self: center;
  max-width: 760px;
  margin-left: max(var(--v7-gutter), calc((100vw - var(--v7-max)) / 2));
  padding: clamp(58px, 7vw, 102px) clamp(34px, 5vw, 78px) clamp(58px, 7vw, 102px) 0;
}

.home-page .hero-lede {
  max-width: 620px;
  margin-top: 28px;
  color: var(--v7-muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-page .button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .09em;
}

.home-page .button-gold,
.home-page .button-dark {
  background: var(--v7-dark);
  color: #fff;
}

.home-page .button-gold:hover,
.home-page .button-dark:hover {
  background: var(--v7-wood);
  color: #fff;
}

.home-page .button-outline {
  border-color: rgba(29, 28, 24, .28);
  color: var(--v7-ink);
  background: transparent;
}

.home-page .button-outline:hover {
  border-color: var(--v7-wood);
  background: rgba(139, 93, 60, .07);
}

.home-page .hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 40px;
  color: rgba(48, 46, 40, .68);
  font-size: 10px;
  letter-spacing: .14em;
}

.home-page .hero-note li + li::before {
  margin-right: 18px;
  background: var(--v7-brass);
}

.home-page .hero-visual {
  position: relative;
  min-width: 0;
  min-height: 698px;
  margin: 0;
  overflow: hidden;
  border-bottom-left-radius: 58px;
}

.home-page .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.home-page .hero-visual::after {
  background: linear-gradient(0deg, rgba(20, 18, 15, .46), transparent 42%);
}

.home-page .hero-visual figcaption {
  right: 24px;
  bottom: 20px;
  left: 24px;
  align-items: flex-end;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  line-height: 1.45;
}

.home-page .hero-index {
  display: none;
}

/* Market-positioning strip */
.home-page .specialty-strip {
  border-color: var(--v7-line);
  background: #eee4d5;
}

.home-page .marquee-track {
  width: min(var(--v7-max), calc(100% - (var(--v7-gutter) * 2)));
  min-height: 72px;
}

.home-page .marquee-track span {
  color: #504a41;
  font-size: 10px;
  letter-spacing: .15em;
}

/* Shared sections */
.home-page .section {
  width: min(var(--v7-max), calc(100% - (var(--v7-gutter) * 2)));
  padding-block: var(--v7-space);
}

.home-page .section-intro > p:last-child,
.home-page .gallery-heading > p,
.home-page .process-intro,
.home-page .about-copy p,
.home-page .portfolio-copy > p:not(.eyebrow),
.home-page .contact-copy > p:not(.eyebrow) {
  color: var(--v7-muted);
  font-size: 17px;
  line-height: 1.72;
}

/* Services */
.home-page .services {
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 7vw, 100px);
}

.home-page .section-intro {
  position: sticky;
  top: 132px;
}

.home-page .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}

.home-page .service-item,
.home-page .service-item:last-child {
  min-width: 0;
  min-height: 300px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--v7-line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .72);
  box-shadow: 0 14px 40px rgba(56, 43, 27, .05);
}

.home-page .service-item:last-child {
  grid-column: auto;
}

.home-page .service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--v7-shadow);
}

.home-page .service-number {
  color: var(--v7-wood);
  font-size: 16px;
}

.home-page .service-item h3 {
  font-size: clamp(1.85rem, 2.6vw, 2.65rem);
}

.home-page .service-item p {
  color: var(--v7-muted);
  line-height: 1.65;
}

.home-page .service-item li {
  background: #f3eadc;
  color: #665d52;
}

/* Detail philosophy */
.home-page .manifesto {
  min-height: 720px;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  background: #e8dccb;
  color: var(--v7-text);
}

.home-page .manifesto-media {
  min-height: 720px;
}

.home-page .manifesto-copy {
  padding: clamp(58px, 7vw, 104px);
}

.home-page .manifesto-copy > p:not(.eyebrow),
.home-page .manifesto-copy li {
  color: #5d564d;
}

.home-page .manifesto-copy ul,
.home-page .manifesto-copy li {
  border-color: rgba(46, 40, 31, .16);
}

/* Gallery */
.home-page .gallery-heading {
  gap: clamp(28px, 5vw, 70px);
}

.home-page .gallery-filters {
  gap: 8px;
  margin-top: 38px;
}

.home-page .gallery-filter {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 999px;
}

.home-page .gallery-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(53, 42, 28, .08);
}

.home-page .gallery-card figcaption {
  gap: 14px;
}

.home-page .gallery-card figcaption strong {
  font-size: 15px;
}

/* Process */
.home-page .process {
  padding: var(--v7-space) var(--v7-gutter);
  background: #eee5d9;
}

.home-page .process-heading,
.home-page .process-steps {
  width: min(var(--v7-max), 100%);
}

.home-page .process-steps {
  gap: 14px;
}

.home-page .process-steps li {
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--v7-line);
  border-radius: 16px;
  background: rgba(255,253,249,.54);
}

.home-page .process-steps h3 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

/* Areas */
.home-page .service-areas {
  width: min(var(--v7-max), calc(100% - (var(--v7-gutter) * 2)));
  margin-block: var(--v7-space);
  padding: clamp(56px, 7vw, 96px);
  border-radius: 22px;
  background: var(--v7-dark);
}

.home-page .service-areas h2 {
  color: #fff;
}

.home-page .service-areas .eyebrow {
  color: #e7c992;
}

.home-page .service-areas-copy > p:not(.eyebrow),
.home-page .service-areas .area-list li {
  color: rgba(255,255,255,.70);
}

/* About */
.home-page .about {
  gap: clamp(54px, 8vw, 110px);
  align-items: center;
}

.home-page .about-mark {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(25, 22, 18, .04), rgba(25, 22, 18, .30)),
    url("assets/photos/wall-molding.webp") center / cover no-repeat;
  box-shadow: var(--v7-shadow);
  color: transparent;
}

.home-page .about-mark span {
  display: none;
}

.home-page .about-mark::after {
  content: "DESIGN REFERENCE · FINISH DETAIL";
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(255,255,255,.88);
  font-family: var(--v7-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Portfolio */
.home-page .portfolio {
  width: min(var(--v7-max), calc(100% - (var(--v7-gutter) * 2)));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #e7d7c1;
  box-shadow: var(--v7-shadow);
}

.home-page .portfolio-media {
  min-height: 600px;
}

.home-page .portfolio-copy {
  align-self: center;
  padding: clamp(50px, 7vw, 90px);
}

.home-page .portfolio-note {
  color: #746b60;
}

/* Contact */
.home-page .contact {
  margin-top: var(--v7-space);
  padding: clamp(72px, 8vw, 112px) var(--v7-gutter);
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 7vw, 96px);
  background: #f0e6d8;
  color: var(--v7-text);
}

.home-page .contact-copy,
.home-page .contact-form,
.home-page .contact-meta {
  min-width: 0;
}

.home-page .contact-action {
  min-width: 0;
  min-height: 66px;
  border-radius: 14px;
}

.home-page .contact-action strong {
  overflow-wrap: anywhere;
}

.home-page .contact-form {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background: var(--v7-surface);
  box-shadow: var(--v7-shadow);
}

.home-page .contact-form .field,
.home-page .portfolio-form .field {
  min-width: 0;
}

.home-page .contact-form input,
.home-page .contact-form select,
.home-page .contact-form textarea,
.home-page .portfolio-form input,
.home-page .portfolio-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.home-page .contact-form textarea {
  min-height: 130px;
}

.home-page .contact-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Dialog */
.home-page .portfolio-dialog {
  border-radius: 20px;
}

.home-page .portfolio-dialog-card {
  min-width: 0;
}

/* Footer */
.home-page .site-footer {
  background: #1f1e1a;
}

.home-page .site-footer h2,
.home-page .site-footer p,
.home-page .site-footer a {
  overflow-wrap: anywhere;
}

/* Accessibility / reveal */
.home-page .reveal {
  will-change: auto;
}

@media (max-width: 1180px) {
  .home-page .desktop-nav {
    gap: 16px;
  }

  .home-page .desktop-nav a {
    font-size: 10px;
  }

  .home-page .service-list {
    grid-template-columns: 1fr;
  }

  .home-page .service-item,
  .home-page .service-item:last-child {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .home-page .desktop-nav,
  .home-page .header-cta {
    display: none;
  }

  .home-page .menu-toggle {
    display: block;
  }

  .home-page .mobile-nav {
    top: 92px;
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    background: var(--v7-dark);
  }

  .home-page .mobile-nav a {
    color: rgba(255,255,255,.90);
  }

  .home-page .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-page .hero-copy {
    max-width: none;
    margin: 0;
    padding: 64px var(--v7-gutter) 56px;
  }

  .home-page .hero-visual {
    min-height: 58svh;
    border-radius: 0;
  }

  .home-page .services,
  .home-page .manifesto,
  .home-page .portfolio,
  .home-page .contact {
    grid-template-columns: 1fr;
  }

  .home-page .section-intro {
    position: static;
  }

  .home-page .service-list {
    margin-top: 36px;
  }

  .home-page .manifesto-copy,
  .home-page .portfolio-copy {
    padding: 64px var(--v7-gutter);
  }

  .home-page .manifesto-media,
  .home-page .portfolio-media {
    min-height: 520px;
  }

  .home-page .service-areas {
    padding: 64px var(--v7-gutter);
  }

  .home-page .contact {
    padding: 78px var(--v7-gutter);
  }

  .home-page .contact-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --v7-gutter: 18px;
    --v7-space: 78px;
  }

  html {
    scroll-padding-top: 80px;
  }

  body.home-page {
    padding-bottom: 66px;
  }

  .home-page .site-header,
  .home-page .site-header.scrolled,
  .home-page .site-header.open {
    height: 80px;
  }

  .home-page .brand {
    width: 110px;
  }

  .home-page .brand img {
    max-height: 54px;
  }

  .home-page .mobile-nav {
    top: 80px;
    max-height: calc(100svh - 80px);
  }

  .home-page h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.55rem);
    line-height: 1.02;
    letter-spacing: -.027em;
  }

  .home-page h2 {
    font-size: clamp(2.15rem, 9.2vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.025em;
  }

  .home-page .about-copy h2 {
    font-size: clamp(2rem, 8.2vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.022em;
  }

  .home-page .about-mark {
    aspect-ratio: 5 / 4;
    min-height: 0;
    margin-bottom: 4px;
    border-radius: 16px;
    background-position: center;
  }

  .home-page .hero {
    padding-top: 80px;
  }

  .home-page .hero-copy {
    padding-top: 50px;
    padding-bottom: 46px;
  }

  .home-page .hero-lede {
    margin-top: 22px;
    font-size: 16px;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-page .hero-actions .button {
    width: 100%;
  }

  .home-page .hero-note {
    margin-top: 26px;
    gap: 10px 18px;
  }

  .home-page .hero-note li + li::before {
    margin-right: 12px;
  }

  .home-page .hero-visual {
    min-height: 480px;
  }

  .home-page .hero-visual figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .home-page .marquee-track {
    min-height: 62px;
    gap: 14px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

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

  .home-page .marquee-track span,
  .home-page .marquee-track i {
    flex: 0 0 auto;
  }

  .home-page .services {
    gap: 36px;
  }

  .home-page .service-item,
  .home-page .service-item:last-child {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 22px 18px 26px;
    border-radius: 14px;
  }

  .home-page .service-item h3 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .home-page .manifesto-media,
  .home-page .portfolio-media {
    min-height: 440px;
  }

  .home-page .manifesto-copy,
  .home-page .portfolio-copy,
  .home-page .service-areas,
  .home-page .contact {
    padding-inline: 18px;
  }

  .home-page .service-areas {
    width: 100%;
    margin-block: 0;
    border-radius: 0;
  }

  .home-page .portfolio {
    width: 100%;
    border-radius: 0;
  }

  .home-page .contact {
    margin-top: 0;
  }

  .home-page .contact-form,
  .home-page .portfolio-form {
    grid-template-columns: 1fr;
  }

  .home-page .contact-form {
    padding: 26px 18px;
    border-radius: 14px;
  }

  .home-page .contact-meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-page .contact-action {
    min-height: 64px;
  }

  .home-page .portfolio-dialog {
    width: calc(100% - 18px);
    max-height: calc(100svh - 18px);
  }

  .home-page .portfolio-dialog h2 {
    font-size: 2.35rem;
    line-height: 1.06;
  }

  .home-page .mobile-contact-bar {
    min-height: 64px;
  }
}

@media (max-width: 380px) {
  .home-page h1 {
    font-size: 2.45rem;
  }

  .home-page .hero-copy {
    padding-top: 42px;
  }

  .home-page .service-item h3 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
