/* =========================================================
   Philip Breen — personal / advisory site
   Brand: racing green + muted gold on warm paper.
   Type:  Fraunces (display) + Inter (text).
   ========================================================= */

:root {
  --paper:     #fafaf8;
  --wash:      #eff3ef;
  --surface:   #ffffff;
  --border:    #e2e6e1;
  --ink:       #101d18;
  --muted:     #4f5d56;
  --faint:     #647069;

  --green:      #123b2e;
  --green-deep: #0d2c22;
  --gold:       #c9a227;
  --gold-ink:   #8a6a12;
  --gold-soft:  rgba(201, 162, 39, .14);

  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;

  --font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --shadow: 0 1px 2px rgba(16, 29, 24, .05), 0 12px 28px rgba(16, 29, 24, .07);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: #fff; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- NAV ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, .85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.nav__brand:hover { text-decoration: none; }
.nav__monogram {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--green); color: var(--gold);
  font-family: var(--display); font-size: .82rem; font-weight: 600; letter-spacing: .05em;
}
.nav__name { letter-spacing: .01em; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); font-size: .94rem; transition: color .15s ease; }
.nav__links a:hover { color: var(--green); text-decoration: none; }
.nav__cta {
  border: 1px solid var(--green); border-radius: 999px; padding: .42rem 1.05rem !important;
  color: var(--green) !important; font-weight: 550;
  transition: background .15s ease, color .15s ease;
}
.nav__cta:hover { background: var(--green); color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s ease; }

/* ---------------- HERO ---------------- */
.hero {
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 520px at 88% -12%, var(--gold-soft), transparent 60%),
    linear-gradient(180deg, var(--wash), var(--paper) 70%);
}
.hero__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.hero__eyebrow {
  margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: .2em;
  font-size: .78rem; color: var(--gold-ink); font-weight: 700;
}
.hero__title {
  margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 7vw, 4.6rem); line-height: 1.02;
  letter-spacing: -.01em; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem;
}
.hero__creds { font-family: var(--font); font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--faint); font-weight: 500; letter-spacing: 0; }
.hero__tagline {
  margin: 1.1rem 0 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--green); letter-spacing: -.005em;
}
.hero__lede { margin: 1rem 0 0; max-width: 48ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.badge {
  font-size: .82rem; color: var(--green); border: 1px solid #d6ded7;
  background: #fff; padding: .35rem .85rem; border-radius: 999px; font-weight: 500;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__media { margin: 0; justify-self: end; }
.hero__photo {
  width: clamp(170px, 24vw, 260px); height: auto; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border); background: var(--wash);
  box-shadow: 0 0 0 7px var(--gold-soft), var(--shadow);
}

/* ---------------- SECTIONS ---------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--wash); border-block: 1px solid var(--border); }

.kicker {
  margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .2em;
  font-size: .76rem; color: var(--gold-ink); font-weight: 700;
}
.section__title {
  margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.005em; font-weight: 600;
}
.section__sub { margin: 1rem auto 0; color: var(--muted); max-width: 56ch; }

.section__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.section__head--center { text-align: center; max-width: 56ch; margin-inline: auto; margin-bottom: 3rem; }

.prose p { margin: 0 0 1.1rem; color: var(--muted); }
.prose strong, .prose em { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* ---------------- ADVISORY TIERS ---------------- */
.tier { margin-top: 3.25rem; }
.tier:first-of-type { margin-top: 0; }
.tier__head { text-align: center; max-width: 62ch; margin: 0 auto 1.7rem; }
.tier__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.tier__title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin: .85rem auto 0; }
.tier__meta { margin: .85rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------------- CARDS (advisory) ---------------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #c4cfc6; box-shadow: var(--shadow); }
.card__title { margin: 0 0 .6rem; font-size: 1.12rem; font-weight: 650; line-height: 1.25; }
.card__text { margin: 0; color: var(--muted); font-size: .95rem; }
.card__out { margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.card__out strong { color: var(--green); font-weight: 650; }

/* ---------------- LOGO WALL (companies) ---------------- */
.logos {
  list-style: none; margin: 0 auto; padding: 0; max-width: 840px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.logo {
  flex: 1 1 150px; max-width: 190px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 1.8rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.logo:hover { border-color: #c4cfc6; box-shadow: var(--shadow); }
.logo img {
  width: 60px; height: 60px; object-fit: contain; margin-bottom: 1rem;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.logo__name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.logo__desc { margin-top: .25rem; font-size: .78rem; color: var(--muted); line-height: 1.35; }

.career__note { margin-top: 2rem; color: var(--faint); font-size: .92rem; text-align: center; }
.career__note a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- EXPERTISE ---------------- */
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.exp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.exp__title { margin: 0 0 1rem; font-size: 1.02rem; font-weight: 650; }
.exp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.exp__list li {
  font-size: .85rem; color: var(--muted); background: var(--wash);
  border: 1px solid var(--border); padding: .3rem .7rem; border-radius: 8px;
}

/* ---------------- PUBLICATIONS ---------------- */
.pubs { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 1rem; }
.pub {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.pub__title { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.pub__meta { margin: 0; color: var(--muted); font-size: .92rem; }
.pub__note { margin: .4rem 0 0; color: var(--faint); font-size: .85rem; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 1.5rem;
}
.faq__q {
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; color: var(--gold-ink); font-size: 1.6rem; font-weight: 400;
  line-height: 1; transition: transform .2s ease; flex: none;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.3rem; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------------- CONTACT (deep green band) ---------------- */
.section--contact { background: var(--green); border-top: 1px solid var(--green-deep); }
.contact { text-align: center; max-width: 640px; margin-inline: auto; }
.contact .kicker { color: var(--gold); }
.contact__title {
  margin: 0; font-family: var(--display); color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; font-weight: 600;
}
.contact__sub { margin: 1rem 0 2rem; color: rgba(255, 255, 255, .75); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.section--contact .btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.section--contact .btn--primary:hover { background: #d8b13a; border-color: #d8b13a; }
.section--contact .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.section--contact .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.35rem; border-radius: 999px; font-weight: 550; font-size: .95rem;
  border: 1px solid var(--border); transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cfd6d0; }
.btn--ghost:hover { background: #fff; border-color: var(--green); color: var(--green); }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 2px solid var(--gold); padding: 2rem 0; background: var(--paper); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__brand { font-family: var(--display); font-weight: 600; }
.footer__copy { color: var(--faint); font-size: .85rem; }
.footer__top { color: var(--muted); font-size: .85rem; }
.footer__top:hover { color: var(--green); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .9rem var(--pad); width: 100%; }
  .nav__cta { border: 0; border-radius: 0 !important; color: var(--green) !important; }
  .nav__cta:hover { background: var(--wash); color: var(--green) !important; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; order: -1; }
  .section__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .expertise { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .expertise { grid-template-columns: 1fr; }
}
