/* ==========================================================================
   Peruse Consulting — theme stylesheet
   Ported from the Flutter app's AppColors / AppTypography / AppTheme.
   ========================================================================== */

:root {
  --ink: #10192B;
  --ink-deep: #0A101D;
  --ivory: #F6F1E7;
  --sage: #7C8B6F;
  --sage-deep: #5E6B54;
  --gold: #C9A24B;
  --cornflower: #6C8EBF;
  --muted-on-dark: #B9C0CC;
  --muted-on-light: #4B5566;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-label: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --content-max-width: 1120px;
  --pad-mobile: 20px;
  --pad-tablet: 48px;
  --pad-desktop: 80px;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---- layout helpers ---- */
.section {
  width: 100%;
  padding: 72px var(--pad-mobile);
}
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.section--roomy { padding-top: 96px; padding-bottom: 96px; }
.section--ink-deep { background: var(--ink-deep); }

.content-max {
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.content-max--800 { max-width: 800px; }
.content-max--820 { max-width: 820px; }
.content-max--720 { max-width: 720px; }
.content-max--700 { max-width: 700px; }

@media (min-width: 720px) {
  .section { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}
@media (min-width: 1080px) {
  .section { padding-left: var(--pad-desktop); padding-right: var(--pad-desktop); }
}

.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.stack-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1080px) {
  .stack-row { flex-direction: row; align-items: stretch; }
  .stack-row > * { flex: 1; }
}

/* ---- typography ---- */
h1, h2, h3, h4, h5, .display-large, .display-medium, .headline-large, .headline-medium, .title-large {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: inherit;
}
.display-large { font-size: 64px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.05; }
.display-medium { font-size: 44px; letter-spacing: 1px; line-height: 1.1; }
.headline-large { font-size: 34px; line-height: 1.15; }
.headline-medium { font-size: 26px; }
.title-large { font-size: 22px; }
.title-medium { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }
.body-large { font-family: var(--font-body); font-size: 19px; line-height: 1.5; }
.body-medium { font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.label-large {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.text-muted { color: var(--muted-on-dark); }
.text-gold { color: var(--gold); }

@media (max-width: 719px) {
  .display-large { font-size: 40px; }
  .display-medium { font-size: 32px; }
  .headline-large { font-size: 28px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 0;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-on-dark);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink-deep);
  border: 1px solid var(--sage-deep);
  border-radius: 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  border-width: 1.5px;
}
.field textarea { resize: vertical; }
.field-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 4px;
}
.form-message {
  text-align: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.form-message--error { color: #ff6b6b; }
.form-message--success { color: var(--sage); }

/* ---- framed card (gold hairline + corner ticks) ---- */
.framed-card {
  position: relative;
  background: var(--ink-deep);
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: 28px;
  background-image:
    linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)), linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)),
    linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)), linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)),
    linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)), linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)),
    linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7)), linear-gradient(rgba(201,162,75,0.7), rgba(201,162,75,0.7));
  background-repeat: no-repeat;
  background-size: 14px 1.4px, 1.4px 14px;
  background-position:
    top 0 left 0, top 0 left 0,
    top 0 right 0, top 0 right 0,
    bottom 0 left 0, bottom 0 left 0,
    bottom 0 right 0, bottom 0 right 0;
}
a.framed-card, .framed-card--link {
  display: block;
}
a.framed-card:hover { border-color: rgba(201, 162, 75, 0.7); }

/* ---- motif divider ---- */
.motif-divider {
  display: flex;
  align-items: center;
  padding: 24px 0;
}
.motif-divider::before,
.motif-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 75, 0.4);
}
.motif-divider .glyph {
  padding: 0 16px;
  color: var(--gold);
  font-size: 16px;
}

/* ---- header / nav ---- */
.site-header {
  background: var(--ink);
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-mobile);
}
@media (min-width: 720px) { .site-header { padding: 0 var(--pad-tablet); } }
@media (min-width: 1080px) { .site-header { padding: 0 var(--pad-desktop); } }

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { display: flex; flex-direction: column; }
.wordmark .word { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 3px; color: var(--ivory); }
.wordmark .sub { font-size: 11px; letter-spacing: 2px; color: var(--gold); }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 720px) { .nav-links { display: flex; } }
.nav-links a, .nav-links button {
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 1.2px;
  padding: 10px 14px;
}
.nav-links a:hover, .nav-links button:hover { color: var(--gold); }

.nav-services { position: relative; display: inline-block; }
.nav-services__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ink-deep);
  border: 1px solid rgba(201,162,75,0.35);
  padding: 8px 0;
  z-index: 50;
}
.nav-services:hover .nav-services__menu,
.nav-services:focus-within .nav-services__menu { display: block; }
.nav-services__menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: normal;
}
.nav-services__menu a:hover { background: rgba(201,162,75,0.08); }
.nav-services__menu .all-services { color: var(--gold); border-top: 1px solid rgba(201,162,75,0.2); margin-top: 6px; padding-top: 12px; }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--ivory);
  padding: 8px;
}
@media (min-width: 720px) { .menu-toggle { display: none; } }
.menu-toggle .dashicons { font-size: 26px; width: 26px; height: 26px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.nav-drawer.is-open { display: block; }
.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 84vw;
  background: var(--ink);
  padding: 24px 0;
  overflow-y: auto;
}
.nav-drawer__panel a {
  display: block;
  padding: 14px 24px;
  color: var(--ivory);
  font-size: 16px;
}
.nav-drawer__panel a.is-muted { color: var(--muted-on-dark); font-size: 15px; padding-left: 40px; }

/* ---- footer ---- */
.site-footer { background: var(--ink-deep); padding: 40px var(--pad-mobile); }
@media (min-width: 720px) { .site-footer { padding: 40px var(--pad-tablet); } }
@media (min-width: 1080px) { .site-footer { padding: 40px var(--pad-desktop); } }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px 24px; margin-bottom: 20px; }
.site-footer__links a { color: var(--ivory); font-size: 14px; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__divider { border: none; border-top: 1px solid rgba(201,162,75,0.25); margin: 0 0 16px; }
.site-footer p { color: var(--muted-on-dark); font-size: 13px; margin: 0 0 4px; }

/* ---- hero ---- */
.hero { background: var(--ink); text-align: center; }
.hero .kicker {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--ivory);
  margin: 0;
}
@media (min-width: 1080px) { .hero .kicker { font-size: 88px; } }
.hero .kicker-sub { font-size: 14px; letter-spacing: 4px; color: var(--gold); }
@media (min-width: 1080px) { .hero .kicker-sub { font-size: 18px; } }
.hero .tagline { margin: 28px 0 0; }
.hero .slogan {
  color: var(--cornflower);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.5px;
  min-height: 1.6em;
  margin: 16px 0 0;
  transition: opacity 0.4s ease;
}
.hero .btn-row { margin-top: 44px; }

/* ---- quote block ---- */
.quote-block { text-align: center; }
.quote-block .dashicons { color: var(--gold); font-size: 36px; width: 36px; height: 36px; margin-bottom: 12px; }

/* ---- pillar / audience cards ---- */
.pillar-card .dashicons, .audience-card .dashicons { color: var(--sage); font-size: 32px; width: 32px; height: 32px; margin-bottom: 16px; }
.pillar-card h3, .audience-card h3 { margin-bottom: 12px; }

/* ---- resources ---- */
.resource-tile { padding: 16px 0; }
.resource-tile .author { color: var(--gold); font-size: 14px; display: block; margin: 4px 0 8px; }
.resource-divider { border: none; border-top: 1px solid rgba(201,162,75,0.13); }

/* ---- services list ---- */
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.service-row .dashicons { color: var(--sage); font-size: 32px; width: 32px; height: 32px; flex-shrink: 0; }
.service-row .arrow { color: var(--gold); font-size: 20px; margin-left: auto; flex-shrink: 0; }
.service-row .summary { color: var(--ivory); }

/* ---- service detail ---- */
.service-detail__back { color: var(--muted-on-dark); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.service-detail__title-row { display: flex; align-items: center; gap: 16px; }
.service-detail__title-row .dashicons { color: var(--gold); font-size: 40px; width: 40px; height: 40px; }

/* ---- quiz ---- */
.quiz-progress { color: var(--gold); letter-spacing: 2px; font-size: 13px; text-align: center; margin-bottom: 16px; }
.quiz-question { text-align: center; margin-bottom: 0; }
.quiz-options { margin-top: 24px; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--sage-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 19px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.quiz-option:hover { border-color: var(--gold); }
.quiz-stage { display: none; }
.quiz-stage.is-active { display: block; }
.quiz-result .eyebrow { color: var(--gold); letter-spacing: 2px; font-size: 13px; text-align: center; display: block; margin-bottom: 16px; }
.quiz-result .dashicons { color: var(--sage); font-size: 40px; width: 40px; height: 40px; display: block; margin: 0 auto 12px; }
.quiz-result h2 { text-align: center; margin-bottom: 16px; }
.quiz-result p { text-align: center; margin-bottom: 32px; }

/* ---- dashicons sizing fallback (theme may not load wp-admin css on front) ---- */
.dashicons { display: inline-block; }