/* Peak Living page components (home page redesign; also used by /peak-social). Loaded after the Webflow CSS.
   Every class is prefixed "pl-" so nothing here collides with the Webflow styles. */

.pl-home {
  --pl-bg: #282625;
  --pl-bg-deep: #1e1d1c;
  --pl-bg-card: #32302e;
  --pl-line: rgba(238, 238, 238, 0.12);
  --pl-text: #f4f2ee;
  --pl-muted: #cbcbc6;
  --pl-soft: #9c9a95;
  --pl-accent: #ff2e23;
  --pl-teal: #0d3a4e;
  --pl-teal-hover: #145571;
  --pl-sand: #d4d4c7;
  --pl-heading: "Tenor Sans", Georgia, serif;
  --pl-body: Clashgrotesk, Arial, sans-serif;
  --pl-radius: 6px;
  --pl-gutter: clamp(1.25rem, 4vw, 3rem);

  background: var(--pl-bg);
  color: var(--pl-muted);
  font-family: var(--pl-body);
  font-size: 1rem;
  line-height: 1.6;
}

.pl-home *,
.pl-home *::before,
.pl-home *::after { box-sizing: border-box; }

/* Specificity of one class: beats Webflow's bare h1/p rules, and the component rules
   further down (also one class, but later in the file) still win. */
.pl-home :where(h1, h2, h3, p) { margin: 0; opacity: 1; }

.pl-home :where(h1, h2, h3) {
  font-family: var(--pl-heading);
  font-weight: 400;
  color: var(--pl-text);
  letter-spacing: -0.01em;
}

.pl-home img { display: block; max-width: 100%; }

.pl-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--pl-gutter);
}

.pl-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.pl-section--deep { background: var(--pl-bg-deep); }
.pl-section--flush { padding-top: 0; }
#services { scroll-margin-top: 4.5rem; } /* clear the fixed navigation bar */

.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--pl-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pl-accent);
}
.pl-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.pl-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pl-section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}
.pl-section-head p { font-size: 1.0625rem; max-width: 34rem; }

/* ---------- buttons ---------- */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--pl-radius);
  font-family: var(--pl-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.pl-btn svg { width: 0.85rem; height: 0.85rem; flex: none; transition: transform 0.2s; }
.pl-btn:hover svg { transform: translate(2px, -2px); }
.pl-btn--primary { background: var(--pl-teal); border-color: #2b6f8d; color: #fff; }
.pl-btn--primary:hover { background: var(--pl-teal-hover); color: #fff; }
.pl-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--pl-text); }
.pl-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.pl-btn--small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.75rem; }

.pl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.pl-link:hover { color: #fff; border-color: var(--pl-accent); }

.pl-home a:focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 3px;
}

/* ---------- hero ---------- */
.pl-hero {
  position: relative;
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.pl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.pl-hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  line-height: 1.04;
}
.pl-hero h1 em { font-style: normal; color: var(--pl-sand); }
.pl-hero__lede {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}
.pl-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.pl-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pl-line);
  font-size: 0.9375rem;
}
.pl-hero__facts span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-soft); }
.pl-hero__facts strong { font-weight: 500; color: var(--pl-text); }

.pl-hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  height: clamp(26rem, 44vw, 38rem);
}
.pl-hero__media figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--pl-radius);
  background: var(--pl-bg-card);
}
.pl-hero__media figure:nth-child(2) { margin-top: 3.5rem; }
.pl-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- approach ---------- */
.pl-approach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--pl-line);
}
.pl-approach__item { padding: 2.25rem 2rem 0 0; }
.pl-approach__item + .pl-approach__item { padding-left: 2rem; border-left: 1px solid var(--pl-line); }
.pl-approach__num { font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--pl-accent); }
.pl-approach__item h3 { margin-top: 1.25rem; font-size: 1.6rem; }
.pl-approach__item p { margin-top: 0.75rem; }

/* ---------- services ---------- */

.pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pl-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.pl-cards--two .pl-card__media { aspect-ratio: 16 / 10; }
.pl-cards--two .pl-card__body { padding: 2rem; }
.pl-cards--two .pl-card h3 { font-size: 2.1rem; }

.pl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pl-bg-card);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.pl-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }
.pl-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #3a3836; }
.pl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pl-card:hover .pl-card__media img { transform: scale(1.05); }
.pl-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.pl-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pl-card__category { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pl-soft); }
.pl-card h3 { margin-top: 0.75rem; font-size: 1.75rem; line-height: 1.15; }
.pl-card h3 a { color: inherit; text-decoration: none; }
.pl-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card opens the service page */
.pl-card p { margin-top: 0.75rem; font-size: 0.975rem; }
.pl-card__actions {
  position: relative; /* above the card-wide link */
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pl-badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.pl-badge--open { background: rgba(70, 190, 120, 0.14); color: #7fd8a4; }



/* ---------- location ---------- */
.pl-location {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.pl-location__media { border-radius: var(--pl-radius); overflow: hidden; aspect-ratio: 5 / 4; }
.pl-location--flip .pl-location__media { order: 2; } /* image on the right */
.pl-location__media img { width: 100%; height: 100%; object-fit: cover; }
.pl-location h2 { margin-top: 1rem; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.pl-location__intro { margin-top: 1.25rem; font-size: 1.0625rem; }
.pl-details { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--pl-line); }
.pl-details li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pl-line);
}
.pl-details span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-soft); padding-top: 0.2rem; }
.pl-details strong { font-weight: 400; color: var(--pl-text); }
.pl-location__note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--pl-accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}
.pl-location__note a { color: var(--pl-text); text-decoration: underline; text-underline-offset: 3px; }
.pl-location__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- help (FAQ / contact) ---------- */
.pl-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.pl-help__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: linear-gradient(160deg, rgba(13, 58, 78, 0.45), rgba(13, 58, 78, 0) 70%);
}
.pl-help__item h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; }
.pl-help__item p { max-width: 28rem; }
.pl-help__item .pl-btn { margin-top: 0.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .pl-hero__grid,
  .pl-location,
  .pl-section-head { grid-template-columns: minmax(0, 1fr); }
  .pl-location--flip .pl-location__media { order: 0; }
  .pl-hero__media { height: clamp(20rem, 60vw, 30rem); }
  .pl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-approach { grid-template-columns: minmax(0, 1fr); }
  .pl-approach__item,
  .pl-approach__item + .pl-approach__item { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--pl-line); }
}

@media (max-width: 767px) {
  .pl-cards,
  .pl-help { grid-template-columns: minmax(0, 1fr); }
  .pl-hero__media { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pl-hero__media figure { aspect-ratio: 4 / 3; }
  .pl-hero__media figure:nth-child(2) { display: none; }
  .pl-hero__actions .pl-btn { flex: 1 1 auto; }
  .pl-details li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}


@media (prefers-reduced-motion: reduce) {
  .pl-home *,
  .pl-home *::before,
  .pl-home *::after { transition: none !important; }
}

/* Peak Social teaser tagline (home), above the description */
.pl-location__lead { margin-top: 1.25rem; font-family: var(--pl-heading); font-size: 1.375rem; line-height: 1.3; color: var(--pl-text); }
.pl-location__lead + .pl-location__intro { margin-top: 0.75rem; }
