/* ==========================================================================
   Provision Homes — components shared by the homepage and the About page.
   Loads after base.css, before the page stylesheet.

   Section furniture, buttons, header/menu chrome, testimonial cards, the
   stat row and the site footer. The project page has its own heavier
   header and footer, so it does not load this file.
   ========================================================================== */

/* ---------- Shared layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; }
.wrap--narrow { max-width: 1180px; }

.section {
  padding: clamp(52px, 6vw, 80px) var(--gutter);
  scroll-margin-top: 64px;
}
.section--cream { background: var(--cream); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.18;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--ink);
}

.lede {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--body-ink);
  text-wrap: pretty;
}

.rule-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rule-mark__line {
  width: 26px;
  height: 1px;
  background: rgba(48, 50, 48, .35);
}

.section-action {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  justify-content: center;
}

/* ---------- Site header ----------
   Base is a plain sticky bar, always visible. The homepage overrides it to
   reveal on scroll; see styles.css. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  transition: opacity 240ms ease, transform 240ms ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
}
.site-header__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-header__brand:hover { color: #fff; }
.site-header__wordmark {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .26em;
  white-space: nowrap;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  font-size: 10px;
  letter-spacing: .24em;
}
.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav-list a {
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav-list a:hover { color: var(--gold); border-color: var(--gold); }


/* ---------- Buttons ---------- */
.btn-outline-wine,
.btn-outline-light,
.btn-solid {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .20em;
  text-align: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, letter-spacing 200ms ease;
}

.btn-outline-wine {
  border: 1px solid var(--wine);
  color: var(--wine);
  padding: 15px 30px;
}
.btn-outline-wine:hover {
  background: var(--wine);
  color: #fff;
  letter-spacing: .24em;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  padding: 9px 18px;
}
.btn-outline-light:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.btn-solid {
  background: var(--wine);
  border: 0;
  color: #fff;
  padding: 15px 34px;
  font-size: 11px;
}
.btn-solid:hover {
  background: var(--wine-dark);
  color: #fff;
  letter-spacing: .24em;
}
.btn-solid--block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 15px 30px;
}

.hamburger {
  width: 44px;
  height: 44px;
  flex: none;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: #fff;
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  background: var(--sand);
}
.testimonials__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 47%, rgba(48,50,48,.035) 47%, rgba(48,50,48,.035) 53%, transparent 53%),
    linear-gradient(45deg,  transparent 47%, rgba(48,50,48,.035) 47%, rgba(48,50,48,.035) 53%, transparent 53%);
  background-size: 60px 60px;
}
.testimonials .wrap { position: relative; }

.quotes {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
/* Chevron-notched card: the <li> paints the 1px border, the card sits inside it. */
.quote {
  width: 100%;
  background: var(--rule-mid);
  padding: 1px;
  clip-path: polygon(50% 0, 100% 118px, 100% 100%, 0 100%, 0 118px);
}
.quote__card {
  height: 100%;
  background: #fff;
  clip-path: polygon(50% 0, 100% 117px, 100% 100%, 0 100%, 0 117px);
  padding: 132px clamp(26px, 2.6vw, 34px) clamp(30px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.quote__card p {
  flex: 1;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.quote__author {
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(48, 50, 48, .65);
}

.quotes__dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.quotes__dots[hidden] { display: none; }
.quotes__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(48, 50, 48, .5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.quotes__dots button[aria-current="true"] { background: var(--gold); }

.stats {
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats__item {
  border-left: 1px solid var(--rule-dark);
  padding: 20px 12px;
  display: flex;
  flex-direction: column-reverse;   /* value above label */
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stats__item:first-child { border-left: 0; }
.stats__value {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .10em;
  line-height: 1.2;
  color: var(--gold);
}
.stats__label {
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 34px clamp(20px, 4vw, 54px) 26px;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 26px; }
.site-footer__top {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.site-footer__brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.site-footer__wordmark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .26em;
}
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease;
}
.site-footer__social a:hover { opacity: .62; color: #fff; }

.site-footer__info {
  border-top: 1px solid var(--rule-light);
  padding-top: 30px;
  padding-bottom: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  text-align: center;
  justify-items: center;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-footer__heading {
  display: inline-block;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .24em;
  color: var(--on-dark);
}
.site-footer__col p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark);
}
.site-footer__muted { color: rgba(255, 255, 255, .6) !important; }
.site-footer__email { word-break: break-word; }

.site-footer__bottom {
  border-top: 1px solid var(--rule-light);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--on-dark);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 55;
  background: var(--ink);
  border-top: 1px solid var(--rule-light);
  padding: 12px 20px;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #fff;
}
.menu[hidden] { display: none; }
.menu__close {
  position: absolute;
  top: 22px; right: 22px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: .2em;
  cursor: pointer;
}
.menu__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.menu__brand-line1 { font-family: var(--serif); font-size: 17px; letter-spacing: .30em; }
.menu__brand-line2 { font-family: var(--serif); font-size: 12px; letter-spacing: .42em; color: var(--on-dark); }
.menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  letter-spacing: .24em;
}
.menu__cta {
  margin-top: 10px;
  background: var(--wine);
  color: #fff;
  padding: 16px 40px;
  transition: background 200ms ease, letter-spacing 200ms ease;
}
.menu__cta:hover { background: var(--wine-dark); color: #fff; letter-spacing: .28em; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 820px) {
  body { padding-bottom: 70px; }
  .sticky-cta { display: block; }
  .site-header__nav .nav-list,
  .site-header__nav .btn-outline-light { display: none; }
}

@media (min-width: 821px) {
  .hamburger { display: none; }
  .site-header__wordmark { font-size: 15px; }
}

@media (min-width: 701px) {
  .site-footer__top { flex-direction: row; justify-content: space-between; }
  .site-footer__info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
  .site-footer__nav { justify-content: flex-start; }
}

@media (min-width: 901px) {
  .quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
  }
  .quotes__dots { display: none !important; }
}
