/* Plenor Group · styles.css */

:root {
  --bg:          #fafaf6;
  --bg-elev:     #f4f3ed;

  --text:        #0e1116;
  --text-muted:  #4a4a4a;
  --text-soft:   #6b6b6b;

  --accent:        #1e3a8a;
  --accent-hover:  #16306b;

  --signal:      #c2410c;

  --border:      #e5e3dc;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max:    1120px;
  --container-pad:    2rem;
  --container-pad-sm: 1.25rem;

  --section-y:    7rem;
  --section-y-sm: 4.5rem;
  --hero-top:     9rem;
  --hero-bottom:  7rem;
  --hero-top-sm:  6rem;
  --hero-bot-sm:  5rem;

  --fz-body:    1.125rem;
  --lh-body:    1.65;

  --fade-in:    300ms ease-out;

  --sticky-offset: 80px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: var(--accent-hover);
}

b, strong {
  font-weight: 600;
  color: var(--text);
}


.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.15;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.028em;
  line-height: 1.18;
  max-width: 26ch;
  margin-block-end: 2.25rem;
}

h3 {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

h4 {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

p {
  max-width: 38rem;
}

.unmeasured p,
.stat-label,
.cta-banner p,
.footer-tagline {
  max-width: none;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 2rem;
  background: rgba(250, 250, 246, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-overlay {
  display: none;
}

.nav-overlay[data-open='true'] {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 2.5rem;
  background: var(--bg);
}

.nav-overlay .overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-overlay .nav-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-block-start: 4rem;
}
.nav-overlay .nav-stack a {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
  text-decoration: none;
}

.nav-overlay .nav-cta {
  margin-block-start: auto;
}


.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.btn-signal {
  background: var(--signal);
  color: #fff;
}
.btn-signal:hover,
.btn-signal:focus-visible {
  background: #a93609;
  color: #fff;
}


section,
article#case-1,
article#case-2 {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--sticky-offset);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-block-end: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-block-end: 2.25rem;
  line-height: 1.55;
}


.hero {
  padding-block: var(--hero-top) var(--hero-bottom);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--sticky-offset);
}

.hero h1 {
  max-width: 16ch;
  margin-block-end: 1.75rem;
  letter-spacing: -0.022em;
}

.hero .subhead {
  font-size: 1.22rem;
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.5;
  margin-block-end: 2.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-block-start: 4rem;
  background-color: var(--bg-elev);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(14, 17, 22, 0.06) 0 1px,
    transparent 1px 14px
  );
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-block-start: 1rem;
}

.stat {
  padding: 2rem 1.6rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 180ms ease;
}
.stat:hover {
  border-color: var(--accent);
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--signal);
  margin-block-end: 0.5rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.93rem;
  line-height: 1.4;
  color: var(--text-muted);
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease;
}
.card:hover,
.card:focus-visible {
  border-color: var(--accent);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-block-end: 0.55rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-block-start: 1rem;
}
.service h3 {
  margin-block-end: 0.8rem;
  font-size: 1.3rem;
}
.service p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: none;
}


.pull-quote {
  padding: 1.75rem;
  background: var(--bg-elev);
  border-inline-start: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  max-width: none;
}

.pull-quote .attribution {
  display: block;
  margin-block-start: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: none;
  margin-block-end: 1.15rem;
}
.about-content p:last-child {
  margin-block-end: 0;
}


.cta-banner {
  padding-block: 4rem;
  background: var(--accent);
  color: #fff;
  border-bottom: none;
}
.cta-banner h2,
.cta-banner h3 {
  color: #fff;
  max-width: 22ch;
  margin-block-end: 1rem;
}
.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-block-end: 2rem;
}
.cta-banner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus-visible {
  background: var(--bg);
  color: var(--accent);
}
.cta-banner .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-banner .btn-secondary:hover,
.cta-banner .btn-secondary:focus-visible {
  border-color: #fff;
  color: #fff;
}


.site-footer {
  padding-block: 4rem 2rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-block-end: 3rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-block-end: 1rem;
}

.footer-col a {
  display: block;
  margin-block-end: 0.55rem;
  font-size: 0.98rem;
  color: var(--text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-tagline {
  max-width: 26rem;
  margin-block-start: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
}


@media (prefers-reduced-motion: no-preference) {
  @keyframes plenor-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .hero h1 {
    animation: plenor-fade-in var(--fade-in) both;
  }
}


:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 200;
  transition: top 180ms ease;
}
.skip-link:focus {
  top: 1rem;
}

[id] {
  scroll-margin-top: var(--sticky-offset);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 {
    animation: none;
    opacity: 1;
  }
}


@media (max-width: 768px) {

  .container {
    padding-inline: var(--container-pad-sm);
  }

  section,
  article#case-1,
  article#case-2 {
    padding-block: var(--section-y-sm);
  }

  .hero {
    padding-block: var(--hero-top-sm) var(--hero-bot-sm);
  }
  .hero .subhead {
    font-size: 1.1rem;
    margin-block-end: 2rem;
  }

  .site-header {
    padding-block: 1.5rem;
  }
  .nav-links a:not(.btn-primary) {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }

  h2 {
    margin-block-end: 1.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-block-end: 2rem;
  }
  .footer-bottom {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-banner {
    padding-block: 3rem;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}


@media print {
  :root {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --text: #000000;
    --text-muted: #222222;
    --text-soft: #444444;
    --accent: #000000;
    --accent-hover: #000000;
    --signal: #000000;
    --border: #cccccc;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  .site-header,
  .nav-toggle,
  .nav-overlay,
  .skip-link,
  .cta-banner,
  .site-footer .footer-bottom {
    display: none !important;
  }

  .container {
    max-width: none;
    padding-inline: 0;
  }

  section,
  article#case-1,
  article#case-2,
  .hero {
    padding-block: 1.5rem;
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  a {
    text-decoration: underline;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 90%;
    color: #444;
  }

  .hero-surface {
    display: none;
  }
}

.mobile-book-fab { display: none; }
@media (max-width: 768px) {
  .mobile-book-fab {
    display: inline-block;
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 0.75rem 1.1rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(14, 17, 22, 0.18);
  }
  body { padding-block-end: calc(5rem + env(safe-area-inset-bottom)); }
}
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

#cal-embed {
  min-height: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  padding-block: 2rem;
}
#cal-embed:has(#load-cal) { text-align: center; }
.cal-fallback-note { margin-block-start: 1rem; font-size: 0.95rem; color: var(--text-muted); }

@media (forced-colors: active) {
  .btn-primary,
  .btn-secondary {
    border: 1px solid ButtonText;
    background-color: ButtonFace;
    color: ButtonText;
  }
  .stat,
  .service,
  .pull-quote {
    border: 1px solid CanvasText;
  }
  :focus-visible {
    outline: 2px solid Highlight;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: #2e2e2e;
    --text-soft: #4a4a4a;
  }
}
