/*
Theme Name: Glen Murdoch
Theme URI: https://glenmurdoch.com/
Author: Glen Murdoch
Description: Personal site theme for Glen Murdoch — coach, educator and author.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: glen-murdoch
*/

:root {
  --navy: #0e1b33;
  --navy-2: #172a4d;
  --gold: #b8935a;
  --gold-2: #d6bb8a;
  --cream: #f7f3ec;
  --ink: #1c2333;
  --muted: #5b6475;
  --line: #e4ddd0;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

/* Kill WP default block gaps inside our layout */
.wp-site-blocks > * { margin-block-start: 0; }
.is-layout-flow > * + * { margin-block-start: 0; }
.entry-content > *, .wp-block-post-content > * { margin-block-start: 0; max-width: none; }
.wp-block-post-content { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }
.center { text-align: center; }
.mt-s { margin-top: 28px !important; }
.mt-m { margin-top: 48px !important; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.lede { font-size: 1.22rem; color: var(--muted); max-width: 640px; }
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #d9deea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lede, .section--navy p { color: #c4cbdb; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(214,187,138,.25); }
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand a { color: var(--white); text-decoration: none; }
.brand a span { color: var(--gold-2); }
.site-header .wp-block-navigation { font-size: .98rem; font-weight: 600; gap: 28px; color: #e7ebf3; }
.site-header .wp-block-navigation a { color: #e7ebf3; text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--gold-2); }
.site-header .wp-block-navigation .current-menu-item > a { color: var(--gold-2); }
.site-header .wp-block-navigation__responsive-container-open, .site-header .wp-block-navigation__responsive-container-close { color: var(--white); }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--navy) !important; color: var(--white) !important; padding: 32px 24px; }
.site-header .wp-block-navigation__responsive-container.is-menu-open a { color: var(--white) !important; font-size: 1.3rem; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.wp-block-button__link, .wp-element-button {
  border-radius: 999px; padding: 15px 28px; font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-gold .wp-block-button__link { background: var(--gold); color: var(--navy); }
.btn-gold .wp-block-button__link:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); }
.btn-ghost .wp-block-button__link { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 2px var(--gold-2); color: var(--gold-2); }
.btn-navy .wp-block-button__link { background: var(--navy); color: var(--white); }
.btn-navy .wp-block-button__link:hover { background: var(--navy-2); color: var(--gold-2); }
.btn-outline .wp-block-button__link { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline .wp-block-button__link:hover { background: var(--navy); color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: #d9deea; padding: 88px 0 104px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -160px; bottom: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(214,187,138,.10) 0 2px, transparent 2px 22px); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lede { color: #c4cbdb; }
.hero-title-sub { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: -6px 0 22px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.35); position: relative; z-index: 1; }
.hero-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: 22px; }
.hero--page { padding: 80px 0 72px; }
.hero--page .wrap { grid-template-columns: 1fr; }
.hero--page .lede { max-width: 720px; }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); margin: 0 0 4px; line-height: 1.1; }
.stat-label { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split-photo { margin: 0; }
.split-photo img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-top: 8px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; }
.card .card-tag { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; margin-bottom: 0; font-weight: 700; }
.card .card-link a { text-decoration: none; color: var(--navy); }
.card .card-link a:hover { color: var(--gold); }
.section--navy .card { background: var(--navy-2); border-color: rgba(214,187,138,.25); }
.section--navy .card h3 { color: var(--white); }
.section--navy .card p { color: #c4cbdb; }
.section--navy .card .card-link a { color: var(--gold-2); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 0 36px; padding: 0 0 30px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.timeline strong { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.timeline span { color: var(--ink); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.checklist li { break-inside: avoid; padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Values */
.value h3 { font-size: 1.3rem; }
.value h3::before { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin-bottom: 16px; }

/* Books */
.book { text-align: left; }
.book figure { margin: 0 0 18px; }
.book img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px rgba(14,27,51,.18); }
.book h3 { font-size: 1.2rem; margin-bottom: 6px; }
.book p { color: var(--muted); font-size: .98rem; }
.book .card-link { font-weight: 700; margin: 0; }
.book .card-link a { text-decoration: none; }

/* Quote */
.pull { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--white); font-style: italic; max-width: 860px; margin: 0 auto; text-align: center; }
.pull-cite { text-align: center; color: var(--gold-2); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-top: 20px; }

/* CTA */
.cta { background: var(--navy); padding: 88px 0; text-align: center; }
.cta h2 { color: var(--white); }
.cta .lede { color: #c4cbdb; margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: #0a1426; color: #9aa3b8; padding: 56px 0 36px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cfd5e2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .foot-brand { font-family: var(--serif); color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer .foot-base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 12px; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { max-width: 440px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-photo::before { inset: 14px -12px -14px 14px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .timeline::before { left: 64px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 0 26px; }
  .timeline li::before { left: 58px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; }
}
