/* terarogers.com homepage (Nov 2026 revamp). Loaded only on the homepage (content/pages/index.html: css: home).
   Every class is prefixed hp- so nothing here can touch site.css or the other pages. */
:root {
  --hp-ink: #171717;
  --hp-ink-2: #4B514D;
  --hp-ink-3: #5A615C;
  --hp-paper: #FAFAF7;
  --hp-white: #FFFFFF;
  --hp-line: #DDE3DC;
  --hp-line-2: #E6EAE5;
  --hp-dark: #1E1F20;
  --hp-green: #24502F;
  --hp-green-deep: #15301E;
  --hp-mint: #EEF5EE;
  --hp-sage: #8CC387;
  --hp-sage-ink: #10200F;
  --hp-on-dark: #F5F5F2;
  --hp-on-dark-2: #C3C7C3;
  --hp-on-dark-3: #A9AEA9;
  --hp-serif: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --hp-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hp-gutter: clamp(20px, 5vw, 64px);
}

/* The homepage runs full width; every other page keeps the framed column. */
body.page-home { background: var(--hp-paper); color: var(--hp-ink); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.page-home .frame { max-width: none; border: 0; background: transparent; }
.page-home .site-footer .footer-grid,
.page-home .site-footer .footer-legal {
  width: calc(100% - 2 * var(--hp-gutter)); max-width: calc(1200px - 2 * var(--hp-gutter));
  margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
.page-home :focus-visible { outline: 3px solid var(--hp-sage); outline-offset: 3px; }

.hp-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--hp-gutter); }
.hp-section { padding-block: clamp(64px, 8vw, 112px); }
.hp-section--tight { padding-block: clamp(56px, 7vw, 96px); }
.hp-section-body { display: flex; flex-direction: column; gap: 48px; }
.hp-section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.hp-eyebrow { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hp-green); }
.hp-h2 {
  margin: 0; font-family: var(--hp-serif); font-weight: 400;
  font-size: clamp(36px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.005em; color: var(--hp-ink); text-wrap: balance;
}
.hp-lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--hp-ink-2); }

/* Buttons */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--hp-sans); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hp-btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.hp-btn-primary { background: var(--hp-sage); color: var(--hp-sage-ink); }
.hp-btn-primary:hover { background: #A3D29F; color: var(--hp-sage-ink); }
.hp-btn-outline { border: 1.5px solid var(--hp-green); color: var(--hp-green); background: transparent; }
.hp-btn-outline:hover { background: var(--hp-green); color: var(--hp-white); }
.hp-btn-ghost { border: 1px solid rgba(245, 245, 242, 0.5); color: var(--hp-on-dark); font-weight: 500; }
.hp-btn-ghost:hover { border-color: var(--hp-on-dark); color: var(--hp-white); }
.hp-text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--hp-green); text-decoration: underline; text-underline-offset: 4px;
}
.hp-text-link:hover { color: var(--hp-green-deep); }

/* Header */
.hp-header { background: var(--hp-dark); color: var(--hp-on-dark); position: relative; z-index: 20; }
.hp-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 20px 0; }
.hp-brand {
  display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: 0.24em; color: var(--hp-on-dark); text-decoration: none;
}
.hp-brand:hover { color: var(--hp-white); }
.hp-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.hp-nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: #D3D7D3; text-decoration: none; }
.hp-nav-link:hover { color: var(--hp-white); }
.hp-nav-kit { min-height: 44px; padding: 0 22px; font-size: 14.5px; white-space: nowrap; }
.hp-nav-menu { display: none; position: relative; }
.hp-nav-menu summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1px solid rgba(245, 245, 242, 0.35); border-radius: 999px;
  font-size: 14.5px; color: var(--hp-on-dark); cursor: pointer; list-style: none;
}
.hp-nav-menu summary::-webkit-details-marker { display: none; }
.hp-nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  display: flex; flex-direction: column; min-width: 220px; padding: 8px;
  border-radius: 14px; background: #2A2C2D; border: 1px solid rgba(245, 245, 242, 0.14);
}
.hp-nav-menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--hp-on-dark); text-decoration: none; font-size: 15px;
}
.hp-nav-menu-panel a:hover { background: rgba(245, 245, 242, 0.08); }

/* Hero + proof band */
.hp-hero-band { background: var(--hp-dark); color: var(--hp-on-dark); }
.hp-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(40px, 6vw, 88px); align-items: center;
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}
.hp-hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hp-hero h1 {
  margin: 0; font-family: var(--hp-serif); font-weight: 400;
  font-size: clamp(46px, 5.4vw, 78px); line-height: 1.03; letter-spacing: -0.01em; color: var(--hp-on-dark); text-wrap: balance;
}
.hp-hero-proof { margin: 0; max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--hp-on-dark-2); }
.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-hero-photo { position: relative; justify-self: end; width: min(100%, 500px); padding: 22px 0 0 22px; }
.hp-hero-photo::before {
  content: ""; position: absolute; left: 0; top: 0; width: 104px; height: 104px;
  border-left: 3px solid var(--hp-sage); border-top: 3px solid var(--hp-sage);
}
.hp-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.hp-proof { border-top: 1px solid rgba(245, 245, 242, 0.12); }
.hp-proof-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 32px; padding: 40px 0 56px; margin: 0;
}
.hp-stat { display: flex; flex-direction: column; gap: 12px; }
.hp-stat dt {
  order: 2; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: var(--hp-on-dark-3);
}
.hp-stat dd { order: 1; margin: 0; font-family: var(--hp-serif); font-size: clamp(44px, 4.4vw, 62px); line-height: 1; color: var(--hp-sage); }

/* Cards */
.hp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.hp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.hp-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 36px 32px; border-radius: 16px; background: var(--hp-white); border: 1px solid var(--hp-line);
}
.hp-card--compact { gap: 14px; padding: 32px; }
.hp-card--paper { background: var(--hp-paper); }
.hp-card--green { background: var(--hp-green); border-color: var(--hp-green); color: #F2F5F1; }
.hp-card--dark { background: var(--hp-dark); border-color: var(--hp-dark); color: var(--hp-on-dark); }
.hp-card-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hp-green); }
.hp-card--green .hp-card-label { color: #BFE0BA; }
.hp-card--dark .hp-card-label { color: var(--hp-sage); }
.hp-card-title { margin: 0; font-family: var(--hp-serif); font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--hp-ink); }
.hp-card--compact .hp-card-title { font-size: 30px; }
.hp-card--green .hp-card-title, .hp-card--dark .hp-card-title { color: var(--hp-white); }
.hp-card-copy { margin: 0; flex-grow: 1; font-size: 16px; line-height: 1.65; color: var(--hp-ink-2); }
.hp-card--green .hp-card-copy { color: #DCE6DA; }
.hp-card--dark .hp-card-copy { color: var(--hp-on-dark-2); }
.hp-card .hp-btn { align-self: flex-start; }
.hp-card-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--hp-line-2); font-size: 13.5px; line-height: 1.55; color: var(--hp-ink-3); }
.hp-card-note a { font-weight: 600; color: var(--hp-green); }

/* Section backgrounds */
.hp-bg-paper { background: var(--hp-paper); }
.hp-bg-white { background: var(--hp-white); border-top: 1px solid var(--hp-line-2); }
.hp-bg-mint { background: var(--hp-mint); }

/* Framework */
.hp-moves {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 28px 20px;
}
.hp-move { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--hp-green); }
.hp-move-top { display: flex; align-items: center; justify-content: space-between; }
.hp-move-num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--hp-green); }
.hp-move h3 { margin: 0; font-family: var(--hp-serif); font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--hp-ink); }
.hp-move p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--hp-ink-2); }

/* Reviews */
.hp-quote {
  margin: 0; display: flex; flex-direction: column; gap: 18px;
  padding: 32px; border-radius: 16px; background: var(--hp-white); border: 1px solid var(--hp-line);
}
.hp-quote-mark { font-family: var(--hp-serif); font-size: 64px; line-height: 0.6; color: var(--hp-sage); }
.hp-quote blockquote { margin: 0; flex-grow: 1; font-family: var(--hp-serif); font-size: 23px; line-height: 1.38; color: var(--hp-ink); }
.hp-quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.hp-quote-name { font-size: 15px; font-weight: 600; color: var(--hp-ink); }
.hp-quote-meta { font-size: 13.5px; color: var(--hp-ink-3); }
.hp-review-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hp-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-badges li {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hp-line); background: var(--hp-white);
  font-size: 13px; font-weight: 600; color: #3C433E;
}

/* About */
.hp-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px clamp(40px, 6vw, 96px); }
.hp-about-grid .hp-h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.12; }
.hp-about-body { display: flex; flex-direction: column; gap: 20px; }
.hp-about-body p { margin: 0; font-size: 18px; line-height: 1.65; color: #3C433E; }
.hp-about-body .hp-text-link { align-self: flex-start; }

/* Other doors */
.hp-doors { display: flex; flex-direction: column; gap: 28px; }
.hp-door { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 14px; background: var(--hp-white); border: 1px solid var(--hp-line); }
.hp-door h3 { margin: 0; font-family: var(--hp-sans); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--hp-ink); }
.hp-door p { margin: 0; flex-grow: 1; font-size: 15.5px; line-height: 1.6; color: var(--hp-ink-2); }
.hp-door .hp-text-link { align-self: flex-start; }

/* Closing call to action */
.hp-closing { background: var(--hp-green-deep); color: #F2F5F1; }
.hp-closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.hp-closing-copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.hp-closing .hp-h2 { color: var(--hp-on-dark); font-size: clamp(34px, 3.6vw, 50px); }
.hp-closing-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: #CFDACD; }
.hp-closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hp-plain {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: #F2F5F1; text-decoration: underline; text-underline-offset: 4px;
}
.hp-plain:hover { color: var(--hp-white); }

/* Hero stacks to one column: center the photo under the copy */
@media (max-width: 920px) { .hp-hero-photo { justify-self: center; width: min(100%, 440px); } }

/* Phones */
@media (max-width: 760px) {
  .hp-nav-links .hp-nav-link { display: none; }
  .hp-nav-menu { display: block; }
  .hp-nav { flex-wrap: nowrap; }
  .hp-nav-links { flex-wrap: nowrap; gap: 8px; }
  .hp-hero-photo { justify-self: center; width: min(100%, 420px); }
  .hp-card { padding: 28px 24px; }
  .hp-quote { padding: 28px 24px; }
  .hp-move h3 { font-size: 24px; }
  .hp-move-top svg { display: none; }
}
@media (max-width: 380px) {
  .hp-brand { letter-spacing: 0.16em; font-size: 14px; }
  .hp-nav-kit { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .hp-btn { transition: none; } }
