/*
Theme Name: BDM Portfolio
Theme URI: https://bdavismorris.com
Author: Brittany Davis Morris
Description: Editorial career portfolio for Brittany Davis Morris, marketing strategist and event marketing leader. Warm earth tones, single-page layout.
Version: 1.9.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bdm-portfolio
*/

:root {
  --cream: #f7f2ea;
  --paper: #fcf9f4;
  --sand: #ebe1d2;
  --linen: #e2d4c0;
  --ink: #2c2420;
  --ink-soft: #5b4f47;
  --muted: #8a7b6f;
  --clay: #a4553a;
  --clay-deep: #86412b;
  --ochre: #c08a4b;
  --olive: #6d6a4b;
  --espresso: #33271f;
  --espresso-2: #3f3128;
  --line: rgba(44, 36, 32, 0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96;
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--espresso); color: var(--cream);
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em;
}
.brand__name { font-family: var(--serif); font-size: 19px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--clay-deep); color: #fff; }
.btn--solid:hover { background: var(--espresso); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.site-nav .btn--solid { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 1.0; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero__lede {
  font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4;
  color: var(--ink-soft); margin: 28px 0 36px; max-width: 34ch; font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__roles { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__roles h3,
.hero__card h3 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.hero__media { position: relative; margin: 0 0 28px; isolation: isolate; }
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: 200px 200px 20px 20px; background: var(--linen); z-index: -1;
}
.hero__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 200px 200px 20px 20px;
}
.hero__card {
  position: absolute; left: -44px; bottom: -28px; max-width: 290px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 14px 40px rgba(51, 39, 31, 0.14);
}
.hero__card .now { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin: 0; }
.hero__card .now strong { font-weight: 500; color: var(--clay-deep); }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.role-tags li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- Numbers ---------- */
.numbers { background: var(--espresso); color: var(--cream); padding: clamp(56px, 7vw, 88px) 0; }
.numbers .eyebrow { color: var(--ochre); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(247, 242, 234, 0.14); border: 1px solid rgba(247, 242, 234, 0.14); border-radius: 16px; overflow: hidden; }
.stat { background: var(--espresso); padding: 30px 26px; }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: #f3dcc3; margin-bottom: 12px; }
.stat__label { font-size: 15px; line-height: 1.5; color: rgba(247, 242, 234, 0.78); margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 96px); }
.about__quote { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.22; font-weight: 300; }
.about__quote em { color: var(--clay); }
.about__photo {
  margin: 44px 0 0; max-width: 420px; padding-top: 28px;
  background: var(--sand); border-radius: 20px; overflow: hidden;
}
.about__photo img { width: 100%; mix-blend-mode: multiply; }
.about__body p { color: var(--ink-soft); font-size: 18px; }
.about__body p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 68px; line-height: 0.9; padding: 6px 10px 0 0; color: var(--clay);
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pillars h4 { font-size: 20px; margin-bottom: 6px; }
.pillars p { font-size: 15px; margin: 0; color: var(--ink-soft); }

/* ---------- Value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px 28px; display: flex; flex-direction: column;
}
.value__num { font-family: var(--serif); font-size: 15px; color: var(--clay); margin-bottom: 26px; }
.value h3 { font-size: 25px; margin-bottom: 12px; }
.value p { color: var(--ink-soft); font-size: 16px; }
.value ul { margin: auto 0 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 22px; }
.case {
  display: grid; grid-template-columns: 0.9fr 1.6fr 0.9fr; gap: clamp(24px, 4vw, 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
}
.case__meta .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; display: block; }
.case__meta h3 { font-size: clamp(25px, 2.6vw, 31px); margin-bottom: 10px; }
.case__meta .org { font-size: 15px; color: var(--muted); margin: 0; }
.case__photo { margin: 24px 0 0; border-radius: 14px; overflow: hidden; background: var(--sand); }
.case__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 25%; }
.case__photo--top img { object-position: 50% 0; }
.case__photo--logo { aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 16px; }
.case__photo--logo img { aspect-ratio: auto; width: 100%; max-width: 104px; object-fit: contain; mix-blend-mode: multiply; }
.case__body p { color: var(--ink-soft); font-size: 16.5px; }
.case__body ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 16px; }
.case__body li { margin-bottom: 6px; }
.case__body li::marker { color: var(--clay); }
.case__result { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 36px); }
.case__result .label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.result-item { margin-bottom: 18px; }
.result-item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; color: var(--clay-deep); margin-bottom: 4px; }
.result-item span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; display: block; }

.clients { margin-top: 40px; padding: 28px 30px; border-radius: 16px; background: var(--sand); }
.clients h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--serif); font-size: 19px; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industry h3 { font-size: 21px; margin-bottom: 6px; }
.industry p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Experience ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 14.5px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 25px; margin-bottom: 2px; }
.timeline .role { font-size: 15.5px; font-weight: 500; color: var(--clay-deep); margin-bottom: 10px; }
.timeline p.desc { color: var(--ink-soft); margin: 0; font-size: 16px; max-width: 70ch; }

/* ---------- Leadership ---------- */
.leadership { background: var(--espresso-2); color: var(--cream); }
.leadership .eyebrow { color: var(--ochre); }
.leadership .section-head p { color: rgba(247, 242, 234, 0.75); }
.lead-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); }
.lead-grid { align-items: start; }
.lead-photo { margin: 22px 0 22px; border-radius: 14px; overflow: hidden; background: var(--espresso); }
.lead-photo img { width: 100%; height: auto; }
.feature-role { background: rgba(247, 242, 234, 0.06); border: 1px solid rgba(247, 242, 234, 0.14); border-radius: 18px; padding: clamp(28px, 4vw, 40px); }
.feature-role .badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso); background: #f3dcc3; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.feature-role h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.feature-role p { color: rgba(247, 242, 234, 0.8); }
.feature-role ul { margin: 18px 0 0; padding-left: 18px; color: rgba(247, 242, 234, 0.8); }
.feature-role li { margin-bottom: 6px; }
.feature-role li::marker { color: var(--ochre); }
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list li { padding: 16px 0; border-bottom: 1px solid rgba(247, 242, 234, 0.14); }
.org-list li:first-child { padding-top: 0; }
.org-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--cream); }
.org-list span { font-size: 14.5px; color: rgba(247, 242, 234, 0.65); }

.community-label { margin: clamp(56px, 7vw, 80px) 0 20px; padding-top: clamp(36px, 5vw, 48px); border-top: 1px solid rgba(247, 242, 234, 0.14); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); }
.community-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.community-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--espresso); }
.community-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s ease; }
.community-gallery figure:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .community-gallery figure:hover img { transform: none; } }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.degree { padding: 26px 0; border-top: 1px solid var(--line); }
.degree:last-child { border-bottom: 1px solid var(--line); }
.degree .lvl { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.degree h3 { font-size: 27px; margin: 6px 0 4px; }
.degree p { margin: 0; color: var(--ink-soft); }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cert-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.cert-list strong { display: block; font-weight: 500; }
.cert-list span { font-size: 14.5px; color: var(--muted); }

/* ---------- Toolkit ---------- */
.toolkit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.toolkit h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.toolkit ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.9; }

.edu-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); align-items: start; }
.edu-photo { margin: 0; }
.edu-photo:nth-child(2) { margin-top: clamp(24px, 4vw, 48px); }
.edu-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--sand); }
.edu-photo figcaption { margin-top: 14px; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.edu-photo figcaption span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; margin: 0 auto 22px; }
.contact h2 em { color: var(--clay); }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.contact > .wrap > p { max-width: 56ch; margin: 0 auto 36px; color: var(--ink-soft); font-size: 18px; }
.contact-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.contact-card {
  display: block; text-align: left; min-width: 290px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 26px; text-decoration: none; color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--clay); transform: translateY(-2px); color: var(--ink); }
.contact-card span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card strong { font-family: var(--serif); font-weight: 400; font-size: 21px; word-break: break-word; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- Generic pages (index.php) ---------- */
.page-content { max-width: 760px; margin: 0 auto; padding: var(--section) var(--gutter); }
.page-content h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .site-nav a:not(.btn) { display: none; }
  .hero .wrap, .about__grid, .lead-grid, .edu-grid { grid-template-columns: 1fr; }
  .numbers__grid, .industry-grid, .toolkit { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__media { max-width: 440px; margin: 8px 0 36px 18px; }
  .hero__card { left: -18px; }
  .case { grid-template-columns: 1fr 1.4fr; }
  .case__result { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 40px; }
  .case__result .label { width: 100%; margin-bottom: 4px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .value-grid, .pillars, .industry-grid, .toolkit { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .stat__num { font-size: 34px; }
  .stat__label { font-size: 14px; }
  .case { grid-template-columns: 1fr; }
  .case__photo img { aspect-ratio: 4 / 3; object-position: 55% 22%; }
  .case__photo--top img { object-position: 50% 0; }
  .case__photo--team img { object-position: 50% 78%; }
  .case__photo--logo { aspect-ratio: 16 / 9; }
  .case__photo--logo img { aspect-ratio: auto; max-width: 120px; }
  .community-gallery { grid-template-columns: 1fr; }
  .edu-photos { grid-template-columns: 1fr 1fr; }
  .edu-photo:nth-child(2) { margin-top: 0; }
  .edu-photo--wide { grid-column: 1 / -1; }
  .edu-photo--wide img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .edu-photo figcaption { font-size: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .when { padding-top: 0; }
  .contact-card { min-width: 0; width: 100%; }
  .hero__media { max-width: 100%; margin: 0 18px 40px 0; }
  .hero__media::before { inset: 12px -12px -12px 12px; }
  .hero__card { left: 12px; right: 12px; bottom: -32px; max-width: none; }
  .hero__card .now { font-size: 17px; }
}
