/* ============================================================
   Components — Industrial Yellow
   ============================================================ */

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 16px 24px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--r-1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #FFE043; color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
}
.btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; transform: translateY(-1px); }

.btn--lg { padding: 18px 28px; font-size: 15px; }

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(14, 15, 12, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  padding: 20px 0;
}

/* ---- Logo (real PavePro wordmark on dark bg) ---- */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  line-height: 0;
}
.logo:hover { color: var(--paper); opacity: 0.9; }
.logo__img {
  height: 42px;
  width: auto;
  display: block;
  background: transparent;
}
.logo--sm .logo__img { height: 36px; }

/* Legacy inline SVG mark (kept in case a partial still references it) */
.logo__mark {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

/* ---- Nav links ---- */
.nav__links {
  display: none;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--paper);
  opacity: 0.78;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.nav__links a:hover { opacity: 1; color: var(--accent); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav__phone {
  display: none;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__phone { display: inline-flex; }
}

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  background: var(--accent);
}
.stat {
  padding: 20px 24px;
  border-left: 1px solid rgba(14, 15, 12, 0.15);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 14px 12px; }
  .stat__value { font-size: clamp(17px, 5vw, 24px); }
  .stat__label { font-size: 9px; letter-spacing: 0.08em; }
}

/* ============================================================
   Service card (services grid)
   ============================================================ */
.service-card {
  background: var(--ink);
  padding: 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: var(--paper);
  transition: background var(--dur-med) var(--ease-out);
}
.service-card:hover { background: var(--ink-2); }
.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.service-card__diamond {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}
.service-card__body { }
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 0.95;
}
.service-card__blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.72;
  margin-top: 12px;
  max-width: 34ch;
}

/* Photo service cards (2026-07 redesign) */
.service-card--photo { padding: 0; min-height: 0; }
.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card--photo:hover .service-card__media img { transform: scale(1.04); }
.service-card--photo .service-card__body { padding: 18px 22px 24px; }
.service-card--photo .service-card__blurb { margin-top: 8px; font-size: 13px; }

/* "See all services" accent cell (spans 2 cols at bottom) */
.services-grid > .service-card--accent {
  background: var(--accent);
  color: var(--ink);
  grid-column: 1 / -1;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-height: 140px;
  padding: 40px 32px;
}
.services-grid > .service-card--accent:hover { background: #FFE043; }
.service-card--accent .service-card__index { color: var(--ink); opacity: 0.7; }
.service-card--accent .service-card__title { color: var(--ink); }
.service-card--accent .service-card__blurb { color: var(--ink); opacity: 0.8; }

/* ============================================================
   Process chips (hover/tap reveals detail)
   ============================================================ */
.process-chip {
  position: relative;
  display: block;
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 20px;
  text-align: left;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
.process-chip__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: var(--accent);
}
.process-chip__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.process-chip__detail {
  display: none;
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  z-index: 2;
  background: var(--ink);
  border: 1px solid var(--accent);
  border-top: 0;
  padding: 12px 20px 16px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.9;
}
@media (hover: hover) and (min-width: 961px) {
  .process-chip:hover .process-chip__detail { display: block; }
}
.process-chip.is-open .process-chip__detail { display: block; }

/* Touch devices and wrapped grids: detail expands in flow (accordion), never
   overlays the chips below. The absolute overlay is desktop-hover only. */
@media (max-width: 960px), (hover: none) {
  .process-chip__detail {
    position: static;
    border: 0;
    border-top: 1px dashed var(--line);
    margin-top: 14px;
    padding: 12px 0 0;
  }
}


/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  cursor: pointer;
  display: block;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item__q-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.faq-item__q-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item__q-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.1;
}
.faq-item__glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item[open] .faq-item__glyph { transform: rotate(45deg); }
.faq-item__answer {
  padding-left: 64px;
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.82;
  max-width: 78ch;
}

@media (max-width: 640px) {
  .faq-item__q-wrap { gap: 12px; }
  .faq-item__answer { padding-left: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  opacity: 0.55;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.7;
}
.footer__meta a {
  color: var(--paper);
  opacity: 0.8;
}
.footer__meta a:hover { color: var(--accent); opacity: 1; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-9);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  opacity: 0.65;
  letter-spacing: 0.04em;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.footer__list a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 760px) {
  .footer__nav { grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
  .footer__meta { text-align: left; }
}

/* ============================================================
   Sticky mobile CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: rgba(14, 15, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px var(--page-x);
  display: flex;
  gap: 10px;
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.sticky-cta--visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; justify-content: center; padding: 14px 18px; }

@media (min-width: 960px) {
  .sticky-cta { display: none; }
}
