/*
Theme Name: Melvin Property Theme
Theme URI: https://staging.melvintanproperty.com
Author: Codex
Description: Custom theme for Melvin Tan Property staging rebuild.
Version: 0.1.0
Text Domain: melvin-property
*/

:root { --ink: #202020; --muted: #63615d; --line: #dedbd4; --paper: #fbfaf7; --white: #ffffff; --red: #c9182b; --red-dark: #9f1021; --gold: #b9892d; --sage: #dce7dd; --blue: #dfe9f3; --charcoal: #292d31; --soft-red: #f7e6e8; --shadow: 0 20px 50px rgba(27, 27, 27, .10); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; height: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(32,32,32,.08); background: rgba(251,250,247,.9); backdrop-filter: blur(18px); }
.nav { width: min(1180px, calc(100% - 36px)); min-height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); font-weight: 800; letter-spacing: 0; }
.brand strong { display: block; font-size: 15px; line-height: 1.1; } .brand span span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: #3c3a36; font-size: 14px; } .nav-menu a { display: block; padding: 9px 10px; }
.nav-cta, .button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: var(--white); font-weight: 760; white-space: nowrap; box-shadow: 0 10px 24px rgba(201,24,43,.18); }
.button.secondary { background: transparent; color: var(--red); box-shadow: none; }
section { padding: 84px 0; } .wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1,h2,h3 { margin: 0; line-height: 1.05; letter-spacing: 0; } h1 { max-width: 720px; font-size: clamp(42px, 6vw, 76px); font-weight: 860; } h2 { max-width: 820px; font-size: clamp(30px,4vw,50px); font-weight: 830; } h3 { font-size: 23px; font-weight: 800; }
.lead { max-width: 660px; margin: 24px 0 0; color: #44413c; font-size: clamp(17px,2vw,21px); }
.hero { padding: 70px 0 36px; background: linear-gradient(115deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.72) 49%, rgba(223,233,243,.88) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: end; gap: 34px; }
.credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; } .credential { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(201,24,43,.22); border-radius: 999px; background: rgba(255,255,255,.72); color: #4b4641; font-size: 13px; font-weight: 760; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.quick-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; max-width: 690px; margin-top: 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--shadow); }
.quick-stats div { min-height: 116px; padding: 22px; background: rgba(255,255,255,.82); } .quick-stats strong { display: block; color: var(--red-dark); font-size: 25px; line-height: 1; } .quick-stats span { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; }
.portrait-stage { position: relative; min-height: 628px; display: flex; align-items: end; justify-content: center; }
.portrait-stage::before { content: ""; position: absolute; inset: auto 0 0; height: 72%; border-radius: 8px 8px 0 0; background: linear-gradient(145deg, #fff, var(--blue)); box-shadow: var(--shadow); }
.portrait-stage::after { content: "Truthful advice. No hard selling."; position: absolute; right: 12px; bottom: 32px; width: min(260px,48%); padding: 16px 18px; border-left: 4px solid var(--gold); background: rgba(255,255,255,.92); color: var(--charcoal); font-size: 15px; font-weight: 760; box-shadow: 0 18px 38px rgba(20,20,20,.12); }
.portrait-placeholder { position: relative; z-index: 2; width: min(440px,92%); min-height: 520px; display: flex; align-items: end; justify-content: center; }
.portrait-card { width: 88%; min-height: 420px; padding: 36px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(160deg,#fff 0%,#eef4f8 100%); border: 1px solid rgba(32,32,32,.08); border-radius: 8px 8px 0 0; box-shadow: 0 20px 55px rgba(32,32,32,.08); } .portrait-card b { display: block; font-size: 54px; color: var(--red); line-height: 1; } .portrait-card span { display: block; margin-top: 14px; color: var(--muted); font-weight: 760; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; } .section-head p { max-width: 410px; margin: 0; color: var(--muted); font-size: 16px; }
.path-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.path { min-height: 230px; padding: 25px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; } .path:last-child { border-right: 0; }
.path small, .card small { color: var(--red); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; } .path p, .card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.why-band,.automation { background: var(--charcoal); color: var(--white); } .why-band .eyebrow,.why-band .section-head p,.automation .eyebrow,.automation .section-head p { color: #f1d9a3; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; } .why-list { display: grid; gap: 1px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.why-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px; background: rgba(255,255,255,.06); } .why-item b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); } .why-item strong { display: block; font-size: 18px; } .why-item span { display: block; color: rgba(255,255,255,.72); margin-top: 5px; font-size: 14px; }
.quote-panel { min-height: 100%; padding: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: linear-gradient(145deg, rgba(201,24,43,.22), rgba(255,255,255,.06)); } .quote-panel p { margin: 0; font-size: clamp(24px,3vw,38px); line-height: 1.14; font-weight: 790; } .quote-panel span { display: block; margin-top: 22px; color: rgba(255,255,255,.72); }
.proof-strip,.automation-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden; margin-top: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.18); } .proof-card,.auto-step { min-height: 150px; padding: 22px; background: rgba(255,255,255,.07); } .proof-card strong,.auto-step strong { display: block; color: #f1d9a3; font-size: 28px; line-height: 1.1; } .proof-card span,.auto-step span { display: block; margin-top: 10px; color: rgba(255,255,255,.72); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } .card { min-height: 238px; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 34px rgba(22,22,22,.06); } .card.wide { grid-column: span 2; background: linear-gradient(135deg,var(--white),var(--soft-red)); }
.split-band { background: linear-gradient(90deg,var(--sage) 0 50%,var(--blue) 50% 100%); } .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; } .feature-list { display: grid; gap: 14px; margin-top: 26px; } .feature-row { display: grid; grid-template-columns: 28px 1fr; gap: 13px; align-items: start; color: #353330; } .feature-row span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); font-size: 14px; font-weight: 800; }
.launch-showcase { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--shadow); } .launch-panel { min-height: 410px; padding: 34px; background: var(--charcoal); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; } .project-table { background: var(--white); } .project-row { display: grid; grid-template-columns: 1fr .8fr .8fr; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); align-items: center; } .project-row:last-child { border-bottom: 0; } .project-row span { color: var(--muted); font-size: 14px; }
.seo-map { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 32px; } .seo-node { min-height: 118px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 14px; font-weight: 760; position: relative; } .seo-node::after { content: ">"; position: absolute; right: -11px; top: 42%; color: var(--red); font-weight: 900; } .seo-node:last-child::after { display: none; }
.contact-band { padding: 64px 0; background: var(--red); color: var(--white); } .contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; } .contact-grid p { max-width: 680px; margin: 16px 0 0; color: rgba(255,255,255,.82); } .contact-grid .button { background: var(--white); color: var(--red); border-color: var(--white); box-shadow: none; }
.site-footer { padding: 28px 0; background: #171717; color: rgba(255,255,255,.7); font-size: 13px; } .site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-shell { padding: 72px 0; } .content-card { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); } .archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 34px; } .meta-pill { display: inline-block; margin-bottom: 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 900px) { .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; } .hero-grid,.why-grid,.split-grid,.launch-showcase,.contact-grid { grid-template-columns: 1fr; } .portrait-stage { min-height: 520px; } .path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .path { border-bottom: 1px solid var(--line); } .card-grid,.archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .seo-map,.automation-grid,.proof-strip { grid-template-columns: repeat(2,minmax(0,1fr)); } .seo-node::after { display: none; } }
@media (max-width: 680px) { section { padding: 58px 0; } .hero { padding-top: 42px; } .quick-stats,.path-grid,.card-grid,.archive-grid,.seo-map,.automation-grid,.proof-strip { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } .section-head { align-items: flex-start; flex-direction: column; } .portrait-stage { min-height: 430px; } .portrait-stage::after { left: 12px; right: auto; width: calc(100% - 24px); } .project-row { grid-template-columns: 1fr; gap: 8px; } }
.portrait-photo { position: relative; z-index: 2; width: min(440px, 92%); max-height: 620px; object-fit: contain; object-position: bottom center; display: block; }

/* Mobile portrait placement: keep Melvin visible immediately on phones. */
@media (max-width: 920px) {
  .hero-grid {
    gap: 24px;
  }

  .portrait-stage {
    order: -1;
    min-height: 390px;
    margin-top: 0;
  }

  .portrait-stage::before {
    inset: 12% 8% 0;
    clip-path: polygon(16% 8%, 100% 0, 88% 100%, 0 100%);
  }

  .portrait-photo {
    width: min(330px, 82vw);
    max-height: 390px;
  }
}

@media (max-width: 480px) {
  .portrait-stage {
    min-height: 340px;
  }

  .portrait-photo {
    width: min(292px, 84vw);
    max-height: 340px;
  }
}
.reviews-hero {
  display: grid;
  gap: 18px;
  padding: 12px 0 38px;
}
.reviews-hero h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}
.review-source-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}
.review-source-band span {
  display: block;
  color: var(--muted);
}
.reviews-grid-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 44px;
}
.review-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.featured-review {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff, #f6efe4);
  border-left: 4px solid var(--red);
}
.review-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}
.review-card p {
  color: var(--muted);
}
.review-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.review-scores li,
.proof-list span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--charcoal);
  background: #f5efe6;
  font-size: 0.82rem;
  font-weight: 800;
}
.review-author {
  margin-bottom: 0;
  color: var(--charcoal) !important;
  font-weight: 900;
}
.review-proof-section {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 34px 0 44px;
  padding: 32px;
  border-radius: 8px;
  color: var(--white);
  background: var(--charcoal);
}
.review-proof-section h2,
.review-proof-section .eyebrow {
  color: var(--white);
}
.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.reviews-contact {
  margin-top: 28px;
}
@media (max-width: 760px) {
  .review-source-band,
  .review-proof-section,
  .reviews-grid-section {
    grid-template-columns: 1fr;
  }
  .review-source-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
.full-review-grid {
  grid-template-columns: 1fr;
}
.full-review-card blockquote {
  margin: 18px 0 20px;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--red);
  color: #3c4145;
  font-size: 1.03rem;
  line-height: 1.75;
}
.full-review-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
}
.full-review-card.featured-review {
  background: linear-gradient(135deg, #fff, #f6efe4);
}
@media (max-width: 760px) {
  .full-review-card blockquote {
    padding-left: 14px;
    font-size: 0.98rem;
  }
}
/* Refined reviews page */
.reviews-clean-hero {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}
.reviews-clean-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}
.reviews-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.reviews-proof-strip span,
.review-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--charcoal);
  background: #f5efe6;
  font-size: .78rem;
  font-weight: 900;
}
.reviews-clean-layout {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 42px;
}
.reviews-side-note {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background: var(--charcoal);
}
.reviews-side-note h2,
.reviews-side-note .eyebrow {
  color: var(--white);
}
.reviews-side-note p {
  color: #d8dddd;
}
.reviews-list {
  display: grid;
  gap: 18px;
}
.review-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.review-panel-featured {
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, #fff, #f8f1e8);
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.review-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
}
.review-panel blockquote {
  margin: 0;
  color: #44494d;
  font-size: 1.03rem;
  line-height: 1.75;
}
.short-review blockquote {
  font-size: 1.08rem;
}
.review-panel .review-author {
  margin: 18px 0 0;
  color: var(--red) !important;
  font-weight: 900;
}
.review-themes-clean {
  margin: 44px 0;
  padding: 30px;
  border-radius: 8px;
  background: var(--warm);
}
.review-themes-clean h2 {
  max-width: 780px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}
@media (max-width: 860px) {
  .reviews-clean-layout {
    grid-template-columns: 1fr;
  }
  .reviews-side-note {
    position: static;
  }
}
@media (max-width: 520px) {
  .review-panel,
  .reviews-side-note,
  .review-themes-clean {
    padding: 22px;
  }
  .review-panel blockquote {
    font-size: .98rem;
    line-height: 1.68;
  }
}
/* Dark review wall layout */
.content-wrap:has(.review-wall-hero) {
  width: 100%;
  max-width: none;
  padding: 0;
}
.content-wrap:has(.review-wall-hero) > h1 {
  display: none;
}
.content-wrap:has(.review-wall-hero) .entry-content {
  width: 100%;
}
.review-wall-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 44px;
}
.review-wall-hero h1 {
  max-width: 860px;
  font-size: clamp(2.4rem, 5vw, 5rem);
}
.review-wall-hero .lead {
  max-width: 720px;
}
.review-wall-source {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 800;
}
.review-wall-source a {
  color: var(--red);
}
.review-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 36px max(24px, calc((100vw - 1180px) / 2)) 72px;
  background: #080807;
}
.review-wall-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #fff;
}
.quote-mark {
  height: 48px;
  color: #eadfbe;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .8;
}
.review-wall-card blockquote {
  flex: 1;
  margin: 24px 0 26px;
  color: #717987;
  font-size: 1.02rem;
  line-height: 1.8;
}
.compact-review blockquote {
  font-size: 1.08rem;
}
.review-card-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid #e8e1d6;
}
.review-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #c0a161;
  background: #f1e5c8;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.review-card-footer h3 {
  margin: 0;
  color: #181b1e;
  font-size: 1.03rem;
  line-height: 1.1;
}
.review-card-footer p {
  margin: 4px 0 0;
  color: #c0a161;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stars {
  color: #c0a161;
  font-size: 1.05rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.review-wall-themes {
  width: min(1180px, calc(100% - 40px));
  margin: 60px auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--warm);
}
.review-wall-themes h2 {
  max-width: 780px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.review-wall-themes div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.review-wall-themes span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--charcoal);
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
}
.content-wrap:has(.review-wall-hero) .reviews-contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 72px;
}
@media (max-width: 1100px) {
  .review-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .review-wall {
    grid-template-columns: 1fr;
    padding: 24px 14px 48px;
  }
  .review-wall-card {
    min-height: auto;
    padding: 28px 24px 24px;
  }
  .review-card-footer {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .stars {
    grid-column: 2;
  }
  .review-wall-card blockquote {
    font-size: .98rem;
    line-height: 1.72;
  }
}
/* Theme-colour refinement for review wall */
.review-wall {
  background: linear-gradient(180deg, var(--warm) 0%, var(--paper) 100%) !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.review-wall-card {
  border: 1px solid var(--line) !important;
  background: var(--white) !important;
  box-shadow: 0 18px 48px rgba(41, 45, 49, 0.08);
}
.review-wall-card:nth-child(2n) {
  background: #fffdf9 !important;
}
.quote-mark {
  color: rgba(185, 137, 45, .32) !important;
}
.review-card-footer {
  border-top-color: var(--line) !important;
}
.review-avatar {
  color: var(--red) !important;
  background: #fff0f2 !important;
}
.review-card-footer p,
.stars {
  color: var(--gold) !important;
}
.review-wall-source a {
  color: var(--red) !important;
}
.review-wall-themes {
  border: 1px solid var(--line);
  background: var(--white) !important;
  box-shadow: 0 18px 48px rgba(41, 45, 49, 0.06);
}
.review-wall-themes span {
  color: var(--red) !important;
  background: #fff0f2 !important;
}
.review-wall { background-color: #f3eee6 !important; background-image: linear-gradient(180deg, #f3eee6 0%, #fbfaf7 100%) !important; }

/* Reviews page full-width correction */
body.page-id-29 .content-card > .lead {
  max-width: none !important;
  width: 100% !important;
}
body.page-id-29 .review-wall-hero,
body.page-id-29 .review-wall-themes,
body.page-id-29 .reviews-contact {
  width: min(1180px, calc(100vw - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-29 .review-wall {
  width: calc(100vw - 36px) !important;
  margin-left: calc(50% - 50vw + 18px) !important;
  margin-right: calc(50% - 50vw + 18px) !important;
  padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
}
@media (max-width: 720px) {
  body.page-id-29 .review-wall {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
/* Reviews page layout polish */
body.page-id-29 .content-card > h1,
body.page-id-29 .content-card > .eyebrow { display: none !important; }
body.page-id-29 .content-card > .lead { max-width: none !important; width: 100% !important; margin: 0 !important; }
body.page-id-29 .review-wall-hero,
body.page-id-29 .review-wall-themes,
body.page-id-29 .reviews-contact { width: min(1180px, calc(100% - 40px)) !important; margin-left: auto !important; margin-right: auto !important; }
body.page-id-29 .review-wall { width: calc(100% - 36px) !important; margin-left: 18px !important; margin-right: 18px !important; }
.review-wall-card.compact-card { min-height: 0 !important; }
.review-excerpt { flex: 1; margin: 24px 0 18px; color: #717987; font-size: 1.02rem; line-height: 1.78; }
.review-full { margin: 0 0 22px; }
.review-full summary { color: var(--red); cursor: pointer; font-weight: 900; }
.review-full blockquote { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { body.page-id-29 .review-wall { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; } }
/* Compact sticky header, especially for mobile */
.site-header {
  z-index: 50;
}
@media (max-width: 920px) {
  .header-inner {
    min-height: 0 !important;
    padding: 10px 0 8px !important;
    gap: 8px !important;
  }
  .brand {
    gap: 8px !important;
  }
  .brand-mark {
    width: 34px !important;
    height: 34px !important;
    font-size: .82rem !important;
  }
  .brand span:not(.brand-mark) {
    font-size: .9rem !important;
    line-height: 1.1 !important;
  }
  .brand small {
    display: none !important;
  }
  .main-nav {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav ul,
  .nav-menu {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: max-content !important;
    padding-bottom: 2px !important;
  }
  .main-nav a {
    font-size: .82rem !important;
    white-space: nowrap !important;
  }
  .header-inner > .button,
  .header-cta {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
  }
}
@media (max-width: 560px) {
  .site-header {
    position: sticky;
  }
  .header-inner {
    width: calc(100% - 24px) !important;
    padding: 8px 0 7px !important;
  }
  .header-inner > .button,
  .header-cta {
    position: absolute;
    top: 8px;
    right: 0;
  }
  .brand {
    max-width: calc(100% - 116px);
  }
  .main-nav {
    margin-top: 2px;
  }
}
/* Actual header/nav compact rules */
@media (max-width: 920px) {
  .site-header .nav,
  .site-header .wrap,
  .site-header .header-inner {
    min-height: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 7px !important;
    gap: 8px !important;
  }
  .site-header .nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }
  .site-header .brand {
    gap: 8px !important;
  }
  .site-header .brand-mark,
  .site-header .logo-mark {
    width: 32px !important;
    height: 32px !important;
    font-size: .78rem !important;
  }
  .site-header .brand small,
  .site-header .tagline {
    display: none !important;
  }
  .site-header .nav-menu,
  .site-header ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: max-content !important;
    margin: 0 !important;
  }
  .site-header .nav-menu a,
  .site-header ul a {
    white-space: nowrap !important;
    font-size: .82rem !important;
  }
}
@media (max-width: 560px) {
  .site-header .nav {
    align-items: flex-start !important;
  }
  .site-header .nav-menu {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
  }
  .site-header .nav-menu::-webkit-scrollbar { display: none; }
  .site-header .button,
  .site-header .cta,
  .site-header .header-cta {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: .78rem !important;
  }
}
/* Compact tablet/mobile nav: keep menu on one scrollable row */
@media (max-width: 1100px) {
  .site-header .nav {
    min-height: 58px !important;
    height: auto !important;
    gap: 14px !important;
  }
  .site-header .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }
  .site-header .brand span span,
  .site-header .brand small,
  .site-header .brand > span > span {
    display: none !important;
  }
  .site-header .brand > span {
    font-size: .92rem !important;
    line-height: 1.1 !important;
  }
  .site-header .nav-menu {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    scrollbar-width: none;
  }
  .site-header .nav-menu::-webkit-scrollbar { display: none; }
  .site-header .nav-menu li {
    flex: 0 0 auto !important;
    height: auto !important;
  }
  .site-header .nav-menu a {
    padding: 6px 2px !important;
    height: auto !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
  }
  .site-header .nav-cta {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
  }
}
@media (max-width: 620px) {
  .site-header .nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 10px !important;
    padding-top: 8px !important;
    padding-bottom: 7px !important;
  }
  .site-header .brand {
    min-width: 0 !important;
  }
  .site-header .nav-menu {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .site-header .nav-cta {
    justify-self: end !important;
  }
}
/* Desktop review grid readability fix */
body.page-id-29 .content-card,
body.page-id-29 .content-card > .lead {
  overflow: visible !important;
}
body.page-id-29 .review-wall-hero,
body.page-id-29 .review-wall-themes,
body.page-id-29 .reviews-contact {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1320px, calc(100vw - 72px)) !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page-id-29 .review-wall {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1320px, calc(100vw - 72px)) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 42px !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}
body.page-id-29 .review-wall-card {
  min-width: 0 !important;
  width: 100% !important;
}
body.page-id-29 .review-excerpt,
body.page-id-29 .review-wall-card blockquote {
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
@media (min-width: 1500px) {
  body.page-id-29 .review-wall,
  body.page-id-29 .review-wall-hero,
  body.page-id-29 .review-wall-themes,
  body.page-id-29 .reviews-contact {
    width: min(1440px, calc(100vw - 96px)) !important;
  }
  body.page-id-29 .review-wall {
    grid-template-columns: repeat(3, minmax(380px, 1fr)) !important;
  }
}
@media (max-width: 860px) {
  body.page-id-29 .review-wall,
  body.page-id-29 .review-wall-hero,
  body.page-id-29 .review-wall-themes,
  body.page-id-29 .reviews-contact {
    left: auto !important;
    transform: none !important;
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.page-id-29 .review-wall {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }
}
/* Mobile homepage hero overlap fix */
@media (max-width: 760px) {
  body.home .hero,
  body.home .hero-section {
    padding-top: 22px !important;
    overflow: hidden !important;
  }
  body.home .hero-grid,
  body.home .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  body.home .portrait-stage,
  body.home .hero-portrait,
  body.home .portrait-wrap {
    order: -2 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto 6px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.home .portrait-stage::before,
  body.home .hero-portrait::before,
  body.home .portrait-wrap::before {
    inset: 10% 11% 0 !important;
    opacity: .5 !important;
  }
  body.home .portrait-photo,
  body.home .portrait-stage img,
  body.home .hero-portrait img,
  body.home .portrait-wrap img {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: min(320px, 74vw) !important;
    max-height: 420px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
  body.home .trust-strip,
  body.home .proof-strip,
  body.home .hero-proof,
  body.home .hero-points {
    order: -1 !important;
    position: relative !important;
    z-index: 3 !important;
    margin: 8px 0 6px !important;
    width: 100% !important;
  }
  body.home .hero-copy,
  body.home .hero-content,
  body.home .hero-text,
  body.home .hero-grid > div:first-child {
    position: relative !important;
    z-index: 4 !important;
    width: 100% !important;
  }
  body.home h1 {
    font-size: clamp(3rem, 15vw, 4.4rem) !important;
    line-height: .98 !important;
    max-width: 100% !important;
  }
  body.home .lead {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }
}
@media (max-width: 420px) {
  body.home .portrait-photo,
  body.home .portrait-stage img,
  body.home .hero-portrait img,
  body.home .portrait-wrap img {
    width: min(286px, 72vw) !important;
    max-height: 360px !important;
  }
  body.home h1 {
    font-size: clamp(2.6rem, 14vw, 3.7rem) !important;
  }
}
/* Homepage hero stack fix for mobile Safari and narrow desktop widths */
@media (max-width: 980px) {
  .hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 28px 0 56px !important;
    overflow: hidden !important;
  }
  .hero .hero-grid,
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .hero-grid > div:first-child {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    z-index: 3 !important;
  }
  .portrait-stage {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
  }
  .portrait-stage::before {
    inset: 12% 12% 0 !important;
    opacity: .45 !important;
  }
  .portrait-photo,
  .portrait-stage img {
    display: block !important;
    width: min(430px, 72vw) !important;
    max-height: 520px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .quick-stats,
  .credentials,
  .hero-actions,
  .lead,
  .hero .eyebrow,
  .hero h1 {
    position: relative !important;
    z-index: 4 !important;
  }
  .quick-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    height: auto !important;
    margin-top: 26px !important;
  }
  .quick-stats > div {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 22px !important;
  }
  .portrait-photo,
  .portrait-stage img {
    width: min(320px, 76vw) !important;
    max-height: 390px !important;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.9rem) !important;
    line-height: 1 !important;
  }
  .hero .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
}

/* Hide portrait proof badge on stacked hero layouts to prevent overlap on mobile browsers */
@media (max-width: 980px) {
  .portrait-stage::after {
    content: none !important;
    display: none !important;
  }
}

/* Reviews page final alignment reset: one centered content rhythm across desktop and mobile */
body.page-id-29 .page-shell {
  padding: 56px 0 0 !important;
  overflow-x: hidden !important;
}
body.page-id-29 .page-shell > .wrap {
  width: min(1440px, calc(100% - 72px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-29 .content-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.page-id-29 .content-card > .lead {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  overflow: visible !important;
}
body.page-id-29 .review-wall-hero,
body.page-id-29 .review-wall,
body.page-id-29 .review-wall-themes,
body.page-id-29 .reviews-contact {
  width: min(1320px, 100%) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}
body.page-id-29 .review-wall-hero {
  padding: 64px 0 42px !important;
}
body.page-id-29 .review-wall-hero h1 {
  max-width: 880px !important;
  font-size: clamp(3rem, 4.6vw, 5rem) !important;
  line-height: .98 !important;
}
body.page-id-29 .review-wall-hero .lead {
  max-width: 760px !important;
}
body.page-id-29 .review-wall {
  margin-top: 10px !important;
  padding: 42px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  border: 1px solid var(--line) !important;
}
body.page-id-29 .review-wall-card {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body.page-id-29 .review-wall-themes {
  margin-top: 58px !important;
  margin-bottom: 58px !important;
  padding: 38px !important;
}
body.page-id-29 .reviews-contact {
  margin-bottom: 72px !important;
  padding: 64px 48px !important;
}
body.page-id-29 .reviews-contact > * {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (max-width: 1100px) {
  body.page-id-29 .review-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 860px) {
  body.page-id-29 .page-shell {
    padding-top: 36px !important;
  }
  body.page-id-29 .page-shell > .wrap {
    width: calc(100% - 28px) !important;
  }
  body.page-id-29 .review-wall-hero,
  body.page-id-29 .review-wall,
  body.page-id-29 .review-wall-themes,
  body.page-id-29 .reviews-contact {
    width: 100% !important;
    max-width: none !important;
  }
  body.page-id-29 .review-wall-hero {
    padding: 38px 0 26px !important;
  }
  body.page-id-29 .review-wall-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem) !important;
  }
  body.page-id-29 .review-wall {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  body.page-id-29 .review-wall-card {
    padding: 28px 24px 24px !important;
  }
  body.page-id-29 .review-wall-themes {
    margin-top: 34px !important;
    margin-bottom: 34px !important;
    padding: 28px 22px !important;
  }
  body.page-id-29 .reviews-contact {
    padding: 44px 24px !important;
    margin-bottom: 44px !important;
  }
}

/* Homepage client stories panel */
.client-story-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(41, 45, 49, .08);
}
.client-story-panel h2 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  line-height: 1.02;
}
.client-story-panel .story-lead {
  max-width: 760px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.story-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.story-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.story-tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff0f2;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-quote {
  display: block;
  height: 30px;
  margin-top: 18px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: .8;
}
.story-card p {
  margin: 18px 0 22px;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.72;
}
.story-stars {
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: .08em;
}
.story-card strong,
.story-card small {
  display: block;
}
.story-card small {
  margin-top: 4px;
  color: var(--muted);
}
.story-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--red);
  font-weight: 900;
}
@media (min-width: 1180px) {
  .why-grid:has(.client-story-panel) {
    grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
    align-items: start;
  }
}
@media (min-width: 1320px) {
  .story-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .client-story-panel {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .client-story-panel {
    padding: 26px 20px;
  }
  .client-story-panel h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
  .story-card {
    padding: 22px 20px;
  }
}

/* Client stories contrast inside dark Why band */
.why-band .client-story-panel,
.why-band .client-story-panel h2,
.why-band .client-story-panel p,
.why-band .client-story-panel strong,
.why-band .client-story-panel small {
  color: var(--charcoal) !important;
}
.why-band .client-story-panel .eyebrow,
.why-band .client-story-panel .story-tag,
.why-band .client-story-panel .story-link {
  color: var(--red) !important;
}
.why-band .client-story-panel .story-lead,
.why-band .client-story-panel small {
  color: var(--muted) !important;
}
.why-band .client-story-panel .story-quote,
.why-band .client-story-panel .story-stars {
  color: var(--gold) !important;
}

/* Curated single-review slider using the original quote panel colour treatment */
.curated-review-slider {
  position: relative;
  overflow: hidden;
}
.curated-review-slider .eyebrow {
  color: #f1d9a3 !important;
}
.review-slider-window {
  position: relative;
  min-height: 430px;
  margin-top: 18px;
}
.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(26px);
  animation: curatedReviewSlide 18s infinite;
}
.review-slide.slide-two { animation-delay: 6s; }
.review-slide.slide-three { animation-delay: 12s; }
.curated-review-slider .story-tag {
  align-self: flex-start;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #f1d9a3 !important;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.curated-review-slider .review-slide p {
  margin: 28px 0 26px;
  color: var(--white) !important;
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 1.15;
  font-weight: 790;
}
.curated-review-slider .story-stars {
  color: var(--gold) !important;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.curated-review-slider strong {
  color: var(--white) !important;
  font-size: 1.1rem;
}
.curated-review-slider small {
  color: rgba(255, 255, 255, .72) !important;
  margin-top: 4px;
}
.curated-review-slider .story-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  margin-top: 14px;
  color: #f1d9a3 !important;
  font-weight: 900;
}
.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.slider-dots span {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  animation: curatedReviewDot 18s infinite;
}
.slider-dots span:nth-child(2) { animation-delay: 6s; }
.slider-dots span:nth-child(3) { animation-delay: 12s; }
@keyframes curatedReviewSlide {
  0%, 5% { opacity: 0; transform: translateX(26px); }
  10%, 30% { opacity: 1; transform: translateX(0); }
  35%, 100% { opacity: 0; transform: translateX(-26px); }
}
@keyframes curatedReviewDot {
  0%, 8%, 35%, 100% { background: rgba(255, 255, 255, .3); }
  10%, 30% { background: #f1d9a3; }
}
@media (prefers-reduced-motion: reduce) {
  .review-slide { animation: none; position: static; display: none; opacity: 1; transform: none; }
  .review-slide:first-child { display: flex; }
  .slider-dots { display: none; }
}
@media (max-width: 720px) {
  .review-slider-window {
    min-height: 520px;
  }
  .curated-review-slider .review-slide p {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }
}

/* Review slider readability refinement */
.curated-review-slider {
  min-height: 620px !important;
}
.curated-review-slider .eyebrow {
  position: relative !important;
  z-index: 4 !important;
  margin-bottom: 22px !important;
  font-size: .86rem !important;
  letter-spacing: .12em !important;
}
.review-slider-window {
  min-height: 430px !important;
  margin-top: 0 !important;
}
.review-slide {
  justify-content: flex-start !important;
  padding-top: 4px !important;
  transform: none !important;
  visibility: hidden !important;
  animation: curatedReviewReadable 18s infinite !important;
}
.review-slide.slide-two { animation-delay: 6s !important; }
.review-slide.slide-three { animation-delay: 12s !important; }
.curated-review-slider .review-slide p {
  max-width: 680px !important;
  margin: 24px 0 24px !important;
  color: var(--white) !important;
  font-size: clamp(1.55rem, 2.15vw, 2.35rem) !important;
  line-height: 1.22 !important;
  font-weight: 790 !important;
}
.curated-review-slider .story-stars,
.curated-review-slider strong,
.curated-review-slider small {
  position: relative !important;
  z-index: 3 !important;
  opacity: 1 !important;
}
.curated-review-slider .story-link {
  position: absolute !important;
  left: 38px !important;
  bottom: 34px !important;
  margin-top: 0 !important;
}
.slider-dots {
  position: absolute !important;
  left: 38px !important;
  bottom: 82px !important;
  z-index: 3 !important;
}
@keyframes curatedReviewReadable {
  0%, 2% { opacity: 0; visibility: hidden; }
  4%, 31% { opacity: 1; visibility: visible; }
  33%, 100% { opacity: 0; visibility: hidden; }
}
@media (max-width: 720px) {
  .curated-review-slider {
    min-height: 600px !important;
  }
  .review-slider-window {
    min-height: 430px !important;
  }
  .curated-review-slider .review-slide p {
    font-size: clamp(1.35rem, 6.3vw, 2rem) !important;
    line-height: 1.25 !important;
  }
  .curated-review-slider .story-link,
  .slider-dots {
    left: 26px !important;
  }
}

/* Review slider always-visible rotation correction */
.review-slide {
  visibility: visible !important;
  opacity: 0;
  pointer-events: none !important;
  animation: curatedReviewOpacity 18s infinite !important;
}
.review-slide.slide-one { animation-delay: 0s !important; }
.review-slide.slide-two { animation-delay: 6s !important; }
.review-slide.slide-three { animation-delay: 12s !important; }
@keyframes curatedReviewOpacity {
  0%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

/* Imported Why Melvin page, adapted to the active theme palette */
body.page-id-7 .page-shell { padding: 0 !important; overflow-x: hidden !important; }
body.page-id-7 .page-shell > .wrap { width: 100% !important; margin: 0 !important; }
body.page-id-7 .content-card { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.page-id-7 .content-card > .eyebrow,
body.page-id-7 .content-card > h1,
body.page-id-7 .content-card > .lead { display: none !important; }
body.page-id-7 .why-melvin-import { background: var(--paper); color: var(--charcoal); }
body.page-id-7 .why-import-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
body.page-id-7 .why-import-hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); background: var(--paper); }
body.page-id-7 .why-import-hero h1,
body.page-id-7 .why-section h2,
body.page-id-7 .why-cta-band h2 { max-width: 760px; margin: 0; color: var(--charcoal); font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: 0; }
body.page-id-7 .why-import-hero h1 span,
body.page-id-7 .why-section h2 span,
body.page-id-7 .why-cta-band h2 span { color: var(--red); font-style: normal; }
body.page-id-7 .why-hero-lead,
body.page-id-7 .why-section-lead,
body.page-id-7 .why-section-head > p { max-width: 660px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
body.page-id-7 .why-hero-lead { margin: 24px 0 32px; }
body.page-id-7 .why-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
body.page-id-7 .why-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
body.page-id-7 .why-stat-strip div { padding: 24px; border-right: 1px solid var(--line); }
body.page-id-7 .why-stat-strip div:last-child { border-right: 0; }
body.page-id-7 .why-stat-strip strong { display: block; color: var(--red); font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1; }
body.page-id-7 .why-stat-strip span { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; }
body.page-id-7 .why-section { padding: 82px 0; background: var(--white); border-bottom: 1px solid var(--line); }
body.page-id-7 .why-section.why-warm { background: var(--warm); }
body.page-id-7 .why-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr); gap: 48px; align-items: end; margin-bottom: 38px; }
body.page-id-7 .why-section h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
body.page-id-7 .why-pillars-grid,
body.page-id-7 .why-who-grid,
body.page-id-7 .why-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.page-id-7 .why-pillars-grid article,
body.page-id-7 .why-who-grid article,
body.page-id-7 .why-review-grid article { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
body.page-id-7 .why-pillars-grid b { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: var(--white); font-size: .8rem; }
body.page-id-7 .why-pillars-grid h3,
body.page-id-7 .why-who-grid strong { display: block; margin-top: 22px; color: var(--charcoal); font-size: 1.28rem; line-height: 1.25; }
body.page-id-7 .why-pillars-grid p,
body.page-id-7 .why-who-grid p,
body.page-id-7 .why-review-grid p { margin: 14px 0 0; color: var(--muted); line-height: 1.72; }
body.page-id-7 .why-process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
body.page-id-7 .why-steps { display: grid; gap: 14px; }
body.page-id-7 .why-steps article { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
body.page-id-7 .why-steps b { color: var(--red); font-size: .88rem; letter-spacing: .1em; }
body.page-id-7 .why-steps h3 { margin: 0; font-size: 1.25rem; }
body.page-id-7 .why-steps p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
body.page-id-7 .why-review-grid article { min-height: 360px; display: flex; flex-direction: column; }
body.page-id-7 .why-review-grid span { align-self: flex-start; padding: 8px 10px; border-radius: 6px; background: #fff0f2; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.page-id-7 .why-review-grid p { flex: 1; margin-top: 28px; color: var(--charcoal); font-size: 1.04rem; }
body.page-id-7 .why-review-grid b { color: var(--gold); letter-spacing: .08em; }
body.page-id-7 .why-review-grid strong { margin-top: 14px; }
body.page-id-7 .why-review-grid small { margin-top: 4px; color: var(--muted); }
body.page-id-7 .why-centered-link { margin-top: 30px; text-align: center; }
body.page-id-7 .why-centered-link a { color: var(--red); font-weight: 900; }
body.page-id-7 .why-honest { text-align: center; background: var(--paper); }
body.page-id-7 .why-honest h2 { margin: 0 auto 28px; }
body.page-id-7 .why-honest p:not(.eyebrow) { max-width: 760px; margin: 16px auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
body.page-id-7 .why-cta-band { padding: 78px 20px; background: var(--red); color: var(--white); }
body.page-id-7 .why-cta-band > div { width: min(1180px, 100%); margin: 0 auto; }
body.page-id-7 .why-cta-band h2 { color: var(--white); }
body.page-id-7 .why-cta-band h2 span { color: var(--white); }
body.page-id-7 .why-cta-band p { max-width: 760px; margin: 20px 0 28px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
body.page-id-7 .why-cta-band .button { background: var(--white); color: var(--red); }
body.page-id-7 .why-cta-band .button.secondary { border-color: rgba(255,255,255,.5); background: transparent; color: var(--white); }
@media (max-width: 980px) {
  body.page-id-7 .why-section-head,
  body.page-id-7 .why-process-grid { grid-template-columns: 1fr; gap: 28px; }
  body.page-id-7 .why-pillars-grid,
  body.page-id-7 .why-who-grid,
  body.page-id-7 .why-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-id-7 .why-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-id-7 .why-stat-strip div { border-bottom: 1px solid var(--line); }
  body.page-id-7 .why-stat-strip div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  body.page-id-7 .why-import-hero { padding: 48px 0; }
  body.page-id-7 .why-section { padding: 54px 0; }
  body.page-id-7 .why-pillars-grid,
  body.page-id-7 .why-who-grid,
  body.page-id-7 .why-review-grid,
  body.page-id-7 .why-stat-strip { grid-template-columns: 1fr; }
  body.page-id-7 .why-stat-strip div { border-right: 0; }
  body.page-id-7 .why-steps article { grid-template-columns: 1fr; gap: 8px; }
  body.page-id-7 .why-import-hero h1,
  body.page-id-7 .why-section h2,
  body.page-id-7 .why-cta-band h2 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
}

/* Why Melvin imported content wrapper visibility correction */
body.page-id-7 .content-card > .lead {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  overflow: visible !important;
}
body.page-id-7 .content-card > .lead > .why-melvin-import {
  display: block !important;
}

/* Why Melvin process section alignment refinement */
body.page-id-7 .why-process-grid {
  align-items: start !important;
}
body.page-id-7 .why-steps article {
  min-height: 0 !important;
  height: auto !important;
}
body.page-id-7 .why-steps article div,
body.page-id-7 .why-steps article h3,
body.page-id-7 .why-steps article p {
  min-width: 0 !important;
}
@media (min-width: 981px) {
  body.page-id-7 .why-process-grid {
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr) !important;
  }
}
@media (min-width: 721px) and (max-width: 980px) {
  body.page-id-7 .why-process-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }
  body.page-id-7 .why-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  body.page-id-7 .why-steps article {
    display: block !important;
    padding: 24px !important;
  }
  body.page-id-7 .why-steps b {
    display: inline-block !important;
    margin-bottom: 18px !important;
  }
  body.page-id-7 .why-steps article:last-child {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 720px) {
  body.page-id-7 .why-steps {
    grid-template-columns: 1fr !important;
  }
  body.page-id-7 .why-steps article {
    display: block !important;
  }
  body.page-id-7 .why-steps b {
    display: inline-block !important;
    margin-bottom: 14px !important;
  }
}

/* Why Melvin process cards: prevent narrow text column on desktop */
body.page-id-7 .why-steps article {
  display: block !important;
  padding: 30px 34px !important;
  min-height: 0 !important;
  height: auto !important;
}
body.page-id-7 .why-steps article > b {
  display: block !important;
  margin: 0 0 22px !important;
  width: auto !important;
}
body.page-id-7 .why-steps article > div {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;
}
body.page-id-7 .why-steps article h3,
body.page-id-7 .why-steps article p {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
body.page-id-7 .why-steps article h3 {
  line-height: 1.18 !important;
}
body.page-id-7 .why-steps article p {
  height: auto !important;
  margin-top: 12px !important;
}
@media (min-width: 981px) {
  body.page-id-7 .why-steps {
    grid-template-columns: 1fr !important;
  }
  body.page-id-7 .why-steps article {
    padding: 34px 40px !important;
  }
}

/* Why Melvin review card footer spacing */
body.page-id-7 .why-review-grid article b,
body.page-id-7 .why-review-grid article strong,
body.page-id-7 .why-review-grid article small {
  display: block !important;
  width: 100% !important;
  line-height: 1.35 !important;
}
body.page-id-7 .why-review-grid article b {
  margin-top: 24px !important;
  margin-bottom: 14px !important;
  color: var(--gold) !important;
  font-size: 1rem !important;
  letter-spacing: .08em !important;
}
body.page-id-7 .why-review-grid article strong {
  margin-top: 0 !important;
  color: var(--charcoal) !important;
  font-size: 1.05rem !important;
}
body.page-id-7 .why-review-grid article small {
  margin-top: 4px !important;
  color: var(--muted) !important;
  font-size: .95rem !important;
}
