/* ==========================================================================
   Etmanskie Contracting — home.css
   Homepage-only sections. Loaded after global.css.
   ========================================================================== */

#about {
  padding-bottom: 40px;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--ink);
  min-height: 98vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(38, 34, 35, 0.85), rgba(38, 34, 35, 0.65) 40%, rgba(38, 34, 35, 0.88) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 80px;
  margin-top: -64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  width: 190px;
  height: auto;
  margin-bottom: 28px;
}

.hero__eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 6px;
}

.hero__title em {
  display: block;
  font-style: normal;
  color: var(--red);
}

.hero__lede {
  color: var(--paper);
  opacity: 0.8;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.65;
  max-width: 520px;
  margin: 36px auto 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* .hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--paper-25);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-70);
}

.hero__trust li svg {
  flex-shrink: 0;
  color: var(--red);
} */

/* --- Statement strip ----------------------------------------------------- */
.statement {
  background-color: var(--red);
  padding-block: 28px;
}

.statement__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Marquee ------------------------------------------------------------- */
.marquee {
  background-color: var(--ink);
  /* padding-block: 36px; */
  border-block: 2px solid var(--red-dark);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  width: 400px;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--red-dark);
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }
  .marquee__track {
    animation: none;
  }
}

/* --- About / Why us -------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  align-items: start;
}

.about-split__lead .section-title {
  font-size: clamp(30px, 3.4vw, 44px);
}

.about-split__body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(38, 34, 35, 0.12);
}

.about-stat__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

@media (max-width: 800px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-split__lead,
  .about-split__body p {
    text-align: center;
  }

  .about-stat {
    text-align: center;
  }
}

/* --- Services ------------------------------------------------------------ */
.service-row-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 220px 1fr auto;
  align-items: center;
  gap: 36px;
  padding-block: 36px;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}

.service-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.service-row__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
}

.service-row__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-row__body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.service-row__body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  opacity: 0.72;
  max-width: 46ch;
}

.service-row__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-45);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}

.service-row:hover .service-row__arrow {
  color: var(--red);
  transform: translateX(4px);
}

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num arrow"
      "img img"
      "body body";
    row-gap: 16px;
  }
  .service-row__num { grid-area: num; }
  .service-row__arrow { grid-area: arrow; }
  /* grid-area has to go on the actual grid child — .service-row__img is
     the nested <img>, but <picture> (its wrapper) is what's really placed
     in the grid, so grid-area on the img alone did nothing. */
  .service-row picture { grid-area: img; }
  .service-row__img { height: 220px; }
  .service-row__body { grid-area: body; }
}

/* Laptop and up: give the services list more room to breathe */
@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: 64px 280px 1fr auto;
    gap: 44px;
    padding-block: 48px;
  }

  .service-row__num {
    font-size: 17px;
  }

  .service-row__img {
    height: 190px;
  }

  .service-row__body h3 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .service-row__body p {
    font-size: 16px;
    max-width: 52ch;
  }

  .service-row__arrow svg {
    width: 26px;
    height: 26px;
  }
}

/* --- Process ------------------------------------------------------------- */
.process-split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px 72px;
  align-items: start;
}

.process-split__lead .section-title {
  margin-bottom: 20px;
}

.process-split__intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.75;
  max-width: 40ch;
  margin-bottom: 32px;
}

.process-split__right {
  background-color: var(--ink);
  border-radius: 10px;
  padding: 14px;
}

.process-split__right picture {
  display: block;
  border-radius: 6px;
  margin-bottom: var(--grid-gap);
}

.process-split__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.85;
}

.process-steps li:last-child {
  border-bottom: 0;
}

.process-steps__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .process-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .process-split__lead {
    text-align: center;
  }
}

/* --- Before / after -------------------------------------------------------- */
.before-after {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px 64px;
  align-items: center;
}

.before-after__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.85;
  margin: 20px 0 28px;
  max-width: 44ch;
}

.before-after__checks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.before-after__checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}

.before-after__checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--paper);
  font-weight: 700;
}

.before-after__img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 3em;
}

@media (max-width: 800px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.before-after-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(242, 242, 242, 0.2);
}

.before-after-pair__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.before-after-pair__photos figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.before-after-pair__photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.before-after-pair__photos figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background-color: rgba(38, 34, 35, 0.72);
  padding: 4px 9px;
}

.before-after-pair__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 14px;
}

@media (max-width: 800px) {
  .before-after-more {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* iPad-range viewports (portrait ~768px through landscape ~1024px) read as
   cramped against the full-bleed red background at the section's normal
   padding — give this one band extra breathing room in that range only. */
@media (min-width: 601px) and (max-width: 1024px) {
  .before-after-band {
    padding-block: 140px;
  }
}

@media (max-width: 480px) {
  .before-after-pair__photos img {
    height: 150px;
  }

  .before-after__lead {
    text-align: center;
  }

  /* Checklist keeps its checkmark icons pinned left — centering the
     surrounding lead text shouldn't drag this list's alignment with it. */
  .before-after__checks {
    text-align: left;
  }
}

/* --- Work gallery -------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--grid-gap);
}

.work-tile {
  position: relative;
  overflow: hidden;
  background-color: var(--red-dark);
}

.work-tile img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-tile:hover img {
  transform: scale(1.04);
}

.work-tile__tag {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(38, 34, 35, 0.95), transparent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
}

/* --- Why us / differentiators --------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.feature-card {
  padding: 32px 26px;
  background-color: var(--ink);
}

.feature-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  opacity: 0.72;
}

/* --- Reviews ------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

.review {
  background-color: var(--ink);
  padding: 32px 28px;
}

.review__stars {
  display: flex;
  gap: 3px;
}

.review__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.82;
  margin: 18px 0 22px;
}

.review__by {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.review__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--paper);
}

.review__place {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 740px;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .faq > .eyebrow,
  .faq > .section-title {
    text-align: center;
  }
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  margin-top: 48px;
}

.faq__item {
  background-color: var(--ink);
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-left-color: var(--red);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "\2212"; /* minus */
}

.faq__item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.72;
  padding: 0 26px 22px;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 72px;
  align-items: start;
}

.contact__lede {
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.72;
  margin: 20px 0 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 480px) {
  .contact-grid > div:first-child {
    text-align: center;
  }

  .contact-methods {
    align-items: center;
  }
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.contact-method__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background-color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--ease);
}

.contact-method:hover .contact-method__icon {
  background-color: var(--red-dark);
}

.contact-method__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--paper-45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-method__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.contact-method__value--sm {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

/* Quote form */
.quote-form {
  background-color: var(--red-dark);
  padding: 36px 32px;
}

.quote-form h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(242, 242, 242, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background-color: rgba(38, 34, 35, 0.45);
  border: 1px solid rgba(242, 242, 242, 0.18);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.field select {
  background-color: rgba(38, 34, 35, 0.6);
  appearance: none;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(242, 242, 242, 0.28);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(228, 31, 39, 0.2);
}

.field option {
  background: var(--ink);
  color: var(--paper);
}

/* honeypot — hidden from people, visible to bots */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__submit {
  width: 100%;
  background-color: var(--red);
  color: var(--paper);
  border: 0;
  padding: 15px;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--ease);
}

.quote-form__submit:hover {
  background-color: var(--ink);
}

.quote-sent {
  text-align: center;
  padding: 36px 0;
}

.quote-sent[hidden] {
  display: none;
}

.quote-sent__check {
  width: 56px;
  height: 56px;
  background-color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.quote-sent h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quote-sent p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  opacity: 0.72;
}

/* --- Small screens ------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --section-y: 64px;
  }

  .marquee__item {
    width: 260px;
    height: 190px;
  }

  .quote-form {
    padding: 28px 22px;
  }

  /* auto-fill + a 340px minimum can force a column wider than the
     viewport itself on narrow phones, overflowing the tile past the
     right edge — pin it to a single column that always fits instead. */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Nine full-width tiles is a lot of scrolling on a phone — trim to
     the first six and let the rest live on the full gallery page. */
  .work-tile:nth-child(n + 7) {
    display: none;
  }
}
