/* PeachNova Media — site styles. Tokens live in design/tokens.css. */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-text-strong);
  margin: 0 0 0.75rem;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: 0; }
h4 {
  font-size: var(--text-h3);
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--color-link);
  text-decoration-color: currentColor;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--color-hover); }

a:focus-visible,
.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-text);
  color: var(--color-on-dark);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--color-on-dark);
}

.wrap {
  width: min(var(--width-max), calc(100% - 2 * var(--pad-inline)));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-link);
  margin: 0 0 0.85rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
  margin-top: 0.65rem;
}

.eyebrow-center {
  text-align: center;
}

.eyebrow-center::after {
  margin-inline: auto;
}

.placeholder {
  font-style: italic;
  font-weight: 400;
  color: var(--color-muted);
}

.draft-note {
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--color-muted);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--button-font-size);
  font-weight: 600;
  letter-spacing: var(--tracking-button);
  text-decoration: none;
  padding: var(--button-pad);
  border-radius: var(--radius);
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--header-wordmark-h);
  max-width: 100%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.75rem;
}

.site-nav a {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.35rem 0;
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-hover);
}

.site-nav a:focus-visible {
  outline-color: var(--color-text);
}

/* Hero — Capitol photograph with slate overlay (Drew's request; departs from the white-hero spec)
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(
      rgba(48, 58, 87, 0.78),
      rgba(37, 45, 67, 0.84)
    ),
    url("assets/capitol-hero.jpg");
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;
  color: var(--color-on-dark);
  padding: var(--section-pad) 0;
}

.hero-inner {
  max-width: var(--width-measure);
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 18ch;
  color: var(--color-on-dark);
}

.hero .eyebrow {
  color: #e8c3b3;
}

.hero .eyebrow::after {
  background: #e8c3b3;
}

.hero-lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.hero-cta { margin: 0; }

.btn-hero {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-hero:hover {
  background: #ffffff;
  color: var(--color-primary);
}

.hero a:focus-visible,
.hero .btn:focus-visible {
  outline-color: #ffffff;
}

/* Sections
   ------------------------------------------------------------------ */
.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: 5rem;
}

.section h2 { margin-bottom: 2rem; }

/* Services — paper, 2×2
   ------------------------------------------------------------------ */
.services {
  background: var(--color-bg-warm);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  /* Shadow from Drew's portfolio .brand-card (no --shadow token in PeachNova tokens.css) */
  box-shadow: 0 6px 20px rgba(47, 47, 47, 0.10), 0 1px 4px rgba(47, 47, 47, 0.06);
  padding: 1.75rem 1.75rem 2rem;
}

.service-card h3 { margin-bottom: 0.6rem; }

.service-card p { margin: 0; color: var(--color-muted); }

/* Story — white, arched headshot
   ------------------------------------------------------------------ */
.story {
  background: var(--color-bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

.story-photo {
  --arch-offset: 10px;
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 var(--arch-offset) var(--arch-offset) 0;
}

.arch-clip {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  z-index: 1;
  background: var(--color-bg);
}

.arch-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 115% zoom inside the arch; object-position brings her head nearer the top without clipping */
  object-position: 50% 14%;
  transform: scale(1.15);
  transform-origin: 50% 12%;
  display: block;
}

.story-photo::after {
  content: "";
  position: absolute;
  top: var(--arch-offset);
  left: var(--arch-offset);
  right: 0;
  bottom: 0;
  border: 2px solid var(--color-accent);
  border-radius: 999px 999px 0 0;
  box-sizing: border-box;
  z-index: 0;
  pointer-events: none;
}

.story-copy h2 { margin-bottom: 0.3rem; }

.credential {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 1.35rem;
}

.story-copy p {
  max-width: var(--width-measure);
}

/* As Seen On — typeset outlet names, muted slate
   ------------------------------------------------------------------ */
.seen-on {
  background: var(--color-bg-warm);
}

.seen-on .eyebrow { margin-bottom: 1.75rem; }

.outlet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-6);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.outlet-list li {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5a6274;
}

/* Testimonials — full-width sample cards
   ------------------------------------------------------------------ */
.testimonials {
  background: var(--color-bg);
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(47, 47, 47, 0.10), 0 1px 4px rgba(47, 47, 47, 0.06);
  padding: 1.75rem 1.75rem 2rem;
  width: 100%;
}

.sample-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.testimonial-card blockquote footer {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-muted);
}

/* Contact — paper
   ------------------------------------------------------------------ */
.contact {
  background: var(--color-bg-warm);
}

.contact-inner { max-width: 28rem; }

.contact-email {
  margin: 0 0 1.75rem;
  font-size: var(--text-lead);
  font-weight: 500;
}

.contact-email a { font-weight: 500; }

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-list a,
.social-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-link);
  line-height: 1.3;
}

.social-list a:hover { color: var(--color-hover); }

.social-pending { color: var(--color-text); }

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  display: block;
}

/* Footer — slate, white links, dark wordmark
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-on-dark);
  padding: var(--space-7) 0 var(--space-8);
  border-top: 4px solid var(--color-accent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-wordmark {
  display: block;
  max-width: 100%;
  text-decoration: none;
}

.footer-wordmark img {
  display: block;
  width: auto;
  height: auto;
  max-height: 2rem;
  max-width: 100%;
}

.footer-legal,
.footer-meta {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-on-dark);
  letter-spacing: 0.02em;
}

.footer-sep { margin: 0 0.1em; }

.site-footer a {
  color: var(--color-on-dark);
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-footer a:hover {
  color: var(--color-on-dark);
  text-decoration-color: var(--color-accent);
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  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;
}

/* Breakpoints
   ------------------------------------------------------------------ */
@media (min-width: 640px) {
  .header-inner { min-height: 5rem; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .outlet-list { grid-template-columns: repeat(4, 1fr); }

  .story-photo {
    --arch-offset: 14px;
    max-width: 420px;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .header-inner { min-height: 5rem; }

  .wordmark img { max-height: var(--header-wordmark-h); }

  .site-nav { gap: 0.2rem 1.85rem; }

  .story-grid {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
    gap: var(--space-8);
  }

  .story-photo {
    width: 100%;
    max-width: 420px;
  }

  .footer-wordmark img { max-height: 2.15rem; }
}

/* Phone: wordmark on its own row so the wide lockup and nav both fit */
@media (max-width: 639px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 0.85rem 0.7rem;
    gap: 0.55rem;
    min-height: 0;
  }

  .wordmark { width: 100%; }

  .wordmark img {
    max-height: 2.25rem;
    max-width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
  }

  .section { scroll-margin-top: 6.5rem; }

  .hero { padding-block: clamp(3rem, 10vw, 4rem); }
}
