/* ========================================
   Pat Divilly - shared site styles
   Used by /about/, /method/, /contact/
   Homepage keeps its own inline styles.
   ======================================== */

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

:root {
  --teal: #1a6b6a;
  --teal-dark: #0f4e4d;
  --teal-light: #e8f4f3;
  --gold: #c9a84c;
  --gold-soft: #f5ecd4;
  --ink: #1a1a2e;
  --ink-soft: #3a3a4e;
  --paper: #f8f7f4;
  --paper-deep: #f1ede3;
  --line: #e5e2da;
  --muted: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

/* ---- NAV ---- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand span { color: var(--gold); font-style: italic; font-weight: 600; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.is-active { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-dark); color: white !important; }
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child):not(:nth-last-child(2)):not(:nth-last-child(3)) { display: none; }
}
@media (max-width: 480px) {
  .nav-links li:nth-last-child(2), .nav-links li:nth-last-child(3) { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 0.82rem; }
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.page-hero.no-photo .page-hero-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 22px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 600;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 580px;
}
.page-hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 78, 77, 0.18), 0 10px 20px rgba(0,0,0,0.06);
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-photo { max-width: 360px; margin: 0 auto; }
  .page-hero { padding: 56px 0 56px; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: white !important;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); color: white !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: white !important; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
section { padding: 80px 0; }
section.alt { background: white; }
section.dark {
  background: linear-gradient(160deg, #0f2027 0%, var(--teal-dark) 100%);
  color: white;
}
section.dark h2, section.dark h3 { color: white; }
section.cta-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: white;
}
section.cta-section h2, section.cta-section h3 { color: white; }
section.cta-section .eyebrow { color: var(--gold-soft); }
section.cta-section p { color: rgba(255,255,255,0.85); }

h2.section-title {
  font-size: clamp(1.8rem, 3.1vw, 2.4rem);
  margin-bottom: 18px;
  max-width: 760px;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 40px;
}
section.dark .section-lead, section.cta-section .section-lead { color: rgba(255,255,255,0.85); }

/* ---- BODY PROSE ---- */
.prose { max-width: 720px; }
.prose p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; }
.prose p:first-child { color: var(--ink); font-size: 1.12rem; }
.prose h3 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--teal-dark);
}
.prose h3:first-child { margin-top: 0; }
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- IMAGE BAND ---- */
.image-band {
  width: 100%;
  margin: 40px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.image-band img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- TWO-UP CARDS ---- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.card h3 {
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 12px;
}
.card p { font-size: 0.96rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .two-up, .three-up { grid-template-columns: 1fr; }
}

/* ---- CREDENTIALS LIST ---- */
.credentials {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.credentials li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--gold);
}
@media (max-width: 720px) {
  .credentials { grid-template-columns: 1fr; }
}

/* ---- BOOK ROW ---- */
.book-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.book-row .book {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--ink);
}
.book-row .book .yr { color: var(--muted); margin-left: 6px; font-size: 0.85rem; }

/* ---- METHOD: domain blocks ---- */
.domain-block {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 36px;
}
.domain-block .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.domain-block h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.domain-block p { color: var(--ink-soft); }

/* ---- TIMELINE ---- */
.timeline {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px 28px;
  margin-top: 24px;
}
.timeline .when {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  padding-top: 2px;
}
.timeline .what {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.timeline .what h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--teal-dark);
}
.timeline .what p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; gap: 6px 0; }
  .timeline .what { border-left: none; padding-left: 0; padding-top: 4px; padding-bottom: 18px; }
}

/* ---- DIAGNOSTIC CARD (used on method page) ---- */
.diagnostic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
}
.diagnostic-card .dx-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.diagnostic-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--teal);
}
.dx-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.dx-row:first-of-type { border-top: none; padding-top: 0; }
.dx-label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.dx-value { color: var(--ink-soft); }

/* ---- CONTACT FORM (mirrors homepage apply form) ---- */
.contact-form {
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 40px;
  max-width: 760px;
  margin: 32px auto 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row .micro {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}
.contact-submit {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-submit:hover { background: var(--teal-dark); }
.contact-confidentiality {
  text-align: center;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  text-align: center;
  font-size: 0.9rem;
}
footer .brand {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: block;
}
footer a { color: var(--gold); }
footer a:hover { color: var(--gold-soft); }
footer .footer-links {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
footer .footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
footer .footer-links a:hover { color: white; }
footer .small {
  margin-top: 24px;
  font-size: 0.8rem;
  opacity: 0.5;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
