/* interior-v03.css
   Interior Trades home page, Option B: v3 blocks, v1 news card (v03 markup), new pricing form and home hero.
   Loaded by the Interior Trades master template (Top Level). Block styles work on any Interior Trades page;
   hero and section rules are scoped to the home page (body.homepg) or to sections that contain v3 blocks. */

:root {
  --v3-ink: #1f2225;
  --v3-text: #3f4449;
  --v3-muted: #4a4f54;
  --v3-line: #d6d8da;
  --v3-grey: #eceeef;
  --v3-red: #CD0202;
  --v3-display: UnitedSansCdBd, "Arial Narrow", Arial, sans-serif;
  --v3-body: "Open Sans", Arial, sans-serif;
}

/* ---------- Shared pieces ---------- */
.v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--v3-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v3-muted);
}
.v3-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--v3-red); flex: none; }
.v3-eyebrow--light { color: #d6d8da; }

.v3-btn,
a.v3-btn,
a.v3-btn:visited {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  font-family: var(--v3-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}
.v3-btn--outline,
a.v3-btn--outline,
a.v3-btn--outline:visited { border: 2px solid var(--v3-ink); color: var(--v3-ink); background: transparent; }
a.v3-btn--outline:hover,
a.v3-btn--outline:focus-visible { background: var(--v3-ink); color: #ffffff; }

a.v3-arrow-link,
a.v3-arrow-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--v3-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--v3-ink);
  text-decoration: none;
}
a.v3-arrow-link svg { transition: transform 200ms ease; }
a.v3-arrow-link:hover svg,
a.v3-arrow-link:focus-visible svg { transform: translateX(4px); }

/* ---------- Section Heading ---------- */
.v3-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
}
.v3-heading__text { display: flex; flex-direction: column; gap: 14px; }
.v3-heading .v3-heading__title {
  margin: 0;
  font-family: var(--v3-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--v3-ink);
  text-transform: none;
  text-align: left;
}

/* ---------- Service Row ---------- */
body { counter-reset: v3service; }
.v3-service {
  counter-increment: v3service;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  margin: 0 0 56px;
}
.v3-service__photo { height: 400px; background: #c9ccd0; overflow: hidden; }
.v3-service__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-service__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 24px; }
.v3-service__num { font-family: var(--v3-display); font-size: 18px; color: var(--v3-red); }
.v3-service__num::before { content: counter(v3service, decimal-leading-zero); }
.v3-service .v3-service__title { margin: 0; font-family: var(--v3-display); font-size: 44px; font-weight: 400; line-height: 1.05; color: var(--v3-ink); text-transform: none; }
.v3-service .v3-service__summary { margin: 0; font-family: var(--v3-body); font-size: 18px; line-height: 1.6; color: var(--v3-text); }
.v3-service .v3-service__recent { margin: 0; font-family: var(--v3-body); font-size: 15px; color: var(--v3-text); }
.v3-service__recent span { font-weight: 600; color: var(--v3-ink); }
.v3-service__recent a { color: var(--v3-ink); text-decoration: underline; }
/* Every second row puts the photo on the right */
.umb-block-grid__layout-item:nth-child(even of :has(> .v3-service)) .v3-service__photo { order: 2; }

/* ---------- Featured Project ---------- */
.v3-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #ffffff;
  border: 1px solid var(--v3-line);
  margin: 0 0 40px;
}
.v3-featured__photo { display: block; min-height: 460px; background: #c9ccd0; overflow: hidden; }
.v3-featured__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.v3-featured:hover .v3-featured__photo img { transform: scale(1.03); }
.v3-featured__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.v3-featured .v3-featured__title { margin: 0; font-family: var(--v3-display); font-size: 40px; font-weight: 400; line-height: 1.05; color: var(--v3-ink); text-transform: none; }
.v3-featured .v3-featured__summary { margin: 0; font-family: var(--v3-body); font-size: 17px; line-height: 1.6; color: var(--v3-text); }
.v3-featured__stats {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
}
.v3-featured__stats > div { display: flex; flex-direction: column; gap: 2px; }
.v3-stat__value { font-family: var(--v3-display); font-size: 30px; line-height: 1.1; color: var(--v3-ink); }
.v3-stat__label { font-family: var(--v3-body); font-size: 14px; color: var(--v3-text); }

/* ---------- Project Grid and filter ---------- */
.v3-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.v3-filter .v3-chip {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid #9ca1a6;
  background: #ffffff;
  color: var(--v3-ink);
  font-family: var(--v3-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.v3-filter .v3-chip:hover { border-color: var(--v3-ink); }
.v3-filter .v3-chip.is-active { background: var(--v3-ink); border-color: var(--v3-ink); color: #ffffff; }
.v3-filter .v3-chip:focus-visible { outline: 3px solid var(--v3-red); outline-offset: 2px; }
.v3-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.v3-projects__item[hidden] { display: none !important; }
.v3-projects__empty { margin: 16px 0 0; font-family: var(--v3-body); color: var(--v3-text); }

/* ---------- Callout Card ---------- */
.v3-callout,
a.v3-callout,
a.v3-callout:visited {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 32px;
  background: var(--v3-ink);
  color: #ffffff;
  text-decoration: none;
}
.v3-callout__top { display: flex; flex-direction: column; gap: 12px; }
.v3-callout__title { font-family: var(--v3-display); font-size: 32px; line-height: 1.1; color: #ffffff; }
.v3-callout__text { font-family: var(--v3-body); font-size: 16px; line-height: 1.5; color: #d6d8da; }
.v3-callout__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--v3-body); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; }
.v3-callout__cta svg { transition: transform 200ms ease; }
a.v3-callout:hover .v3-callout__cta svg,
a.v3-callout:focus-visible .v3-callout__cta svg { transform: translateX(4px); }
a.v3-callout:focus-visible { outline: 3px solid var(--v3-red); outline-offset: 3px; }

/* ---------- v1 News Card, v03 markup ---------- */
a.news-card-v03 { display: block; height: 100%; text-decoration: none; }
a.news-card-v03 .card.news {
  height: 100% !important;
  margin: 0;
  border: 1px solid var(--v3-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}
a.news-card-v03 .card.news .card-image { margin: 0; height: 200px; background: #c9ccd0; overflow: hidden; }
a.news-card-v03 .card.news .card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
a.news-card-v03 .card.news .card-section { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; }
a.news-card-v03 .card.news .card-section .date { margin: 0; font-family: var(--v3-body); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--v3-muted); }
a.news-card-v03 .card.news .card-section .title { margin: 0; font-family: var(--v3-display); font-size: 22px; line-height: 1.15; color: var(--v3-ink); text-align: left; }
a.news-card-v03:hover .card-image img,
a.news-card-v03:focus-visible .card-image img { transform: scale(1.04); }
a.news-card-v03:hover .title { text-decoration: underline; }
a.news-card-v03:focus-visible { outline: 3px solid var(--v3-red); outline-offset: 3px; }
/* 28px gutter between news cards and the callout card when they sit side by side in a layout */
.grid-x:has(> .cell > .umb-block-grid__layout-container > .umb-block-grid__layout-item > :is(a.news-card-v03, .v3-callout)) { margin-left: -14px; margin-right: -14px; }
.grid-x > .cell:has(> .umb-block-grid__layout-container > .umb-block-grid__layout-item > :is(a.news-card-v03, .v3-callout)) { padding-left: 14px; padding-right: 14px; box-sizing: border-box; }

/* ---------- Sections that hold v3 blocks ---------- */
.umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section:has(.v3-heading, .v3-service, .v3-featured, .v3-projects, .v3-callout, .interiortradeshomepricingrequestform) { padding-top: 88px; padding-bottom: 88px; }
.umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section.bg-light-grey:has(.v3-heading, .v3-featured, .v3-projects) { background: var(--v3-grey); }
.umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section.bg-black:has(.interiortradeshomepricingrequestform),
.umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section.bg-dark-grey:has(.interiortradeshomepricingrequestform) { background: var(--v3-ink); }
/* Nested layouts inside v3 sections add no extra spacing */
.umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section:has(.v3-heading, .v3-service, .v3-featured, .v3-projects, .v3-callout, .interiortradeshomepricingrequestform) .umb-block-grid__layout-item > section { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }

/* ---------- Pricing contact section and new form ---------- */
section:has(.interiortradeshomepricingrequestform) h2,
section:has(.interiortradeshomepricingrequestform) h3 { font-family: var(--v3-display); font-size: 48px; font-weight: 400; line-height: 1.05; color: #ffffff; text-align: left; text-transform: none; }
section:has(.interiortradeshomepricingrequestform) p,
section:has(.interiortradeshomepricingrequestform) li { font-family: var(--v3-body); font-size: 18px; line-height: 1.6; color: #d6d8da; text-align: left; }
section:has(.interiortradeshomepricingrequestform) a:not(.button) { color: #ffffff; font-weight: 600; }

.umbraco-forms-form.interiortradeshomepricingrequestform {
  padding: 32px;
  background: #ffffff;
  font-family: var(--v3-body);
  color: var(--v3-ink);
}
.interiortradeshomepricingrequestform .umbraco-forms-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
}
.interiortradeshomepricingrequestform .umbraco-forms-field { margin: 0; }
.interiortradeshomepricingrequestform .umbraco-forms-field:not(.shortanswer) { grid-column: 1 / -1; }
.interiortradeshomepricingrequestform .umbraco-forms-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--v3-ink); text-align: left; }
.interiortradeshomepricingrequestform .umbraco-forms-indicator { color: var(--v3-red); }
.interiortradeshomepricingrequestform input[type="text"],
.interiortradeshomepricingrequestform input[type="email"],
.interiortradeshomepricingrequestform input[type="tel"],
.interiortradeshomepricingrequestform select,
.interiortradeshomepricingrequestform textarea {
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: 0;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #9ca1a6;
  border-radius: 0;
  background: #ffffff;
  font-family: var(--v3-body);
  font-size: 16px;
  color: var(--v3-ink);
  box-shadow: none;
}
.interiortradeshomepricingrequestform textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.interiortradeshomepricingrequestform input:focus,
.interiortradeshomepricingrequestform select:focus,
.interiortradeshomepricingrequestform textarea:focus { outline: 3px solid var(--v3-red); outline-offset: 0; border-color: var(--v3-ink); }
.interiortradeshomepricingrequestform .field-validation-error { display: block; margin-top: 4px; font-size: 14px; color: #b00000; }
.interiortradeshomepricingrequestform .umbraco-forms-navigation { margin-top: 20px; text-align: left; }
.interiortradeshomepricingrequestform .umbraco-forms-navigation [type="submit"] {
  min-height: 52px;
  margin: 0;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: var(--v3-red);
  color: #ffffff;
  font-family: var(--v3-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.interiortradeshomepricingrequestform .umbraco-forms-navigation [type="submit"]:hover { background: #a80202; }
.interiortradeshomepricingrequestform .umbraco-forms-navigation [type="submit"]:focus-visible { outline: 3px solid var(--v3-ink); outline-offset: 2px; }

/* ---------- Home page hero ---------- */
body.homepg section:has(> .bgImgOverlay) .bgImgOverlay { background: linear-gradient(90deg, rgba(17, 19, 21, 0.8) 0%, rgba(17, 19, 21, 0.2) 70%); }
body.homepg section:has(> .bgImgOverlay) .cell.text-center { text-align: left; }
body.homepg section:has(> .bgImgOverlay) h1 { font-family: var(--v3-display); font-size: 80px; line-height: 1; max-width: 760px; }

/* ---------- Tablet and phone ---------- */
@media screen and (max-width: 63.9988em) {
  .v3-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-x > .cell:has(> .umb-block-grid__layout-container > .umb-block-grid__layout-item > :is(a.news-card-v03, .v3-callout)) { margin-bottom: 20px; }
  .v3-featured { grid-template-columns: minmax(0, 1fr); }
  .v3-featured__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .v3-featured__body { padding: 32px; }
  body.homepg section:has(> .bgImgOverlay) h1 { font-size: 56px; }
}
@media screen and (max-width: 39.9375em) {
  .umb-block-grid > .umb-block-grid__layout-container > .umb-block-grid__layout-item > section:has(.v3-heading, .v3-service, .v3-featured, .v3-projects, .v3-callout, .interiortradeshomepricingrequestform) { padding-top: 56px; padding-bottom: 56px; }
  .v3-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .v3-heading .v3-heading__title { font-size: 34px; }
  .v3-service { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
  .v3-service__photo { height: auto; aspect-ratio: 3 / 2; order: 0 !important; }
  .v3-service__body { padding: 0; }
  .v3-service .v3-service__title { font-size: 34px; }
  .v3-featured .v3-featured__title { font-size: 32px; }
  .v3-featured__body { padding: 24px; }
  .v3-projects__grid { grid-template-columns: minmax(0, 1fr); }
  .v3-callout__title { font-size: 28px; }
  .umbraco-forms-form.interiortradeshomepricingrequestform { padding: 20px; }
  .interiortradeshomepricingrequestform .umbraco-forms-container { grid-template-columns: minmax(0, 1fr); }
  section:has(.interiortradeshomepricingrequestform) h2,
  section:has(.interiortradeshomepricingrequestform) h3 { font-size: 36px; }
  body.homepg section:has(> .bgImgOverlay) h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-featured__photo img, a.news-card-v03 .card-image img, .v3-callout__cta svg, a.v3-arrow-link svg { transition: none; }
}
