/* ============================================================
   PINE STREET ADVISORS — site stylesheet
   Distinct system. Do not reference Calloway Law.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- Licensed brand families ----
   New Spirit and Mrs Eaves XL Serif OT are the official Pine Street
   Advisors typefaces. They cannot be served as webfonts, so these
   @font-face rules bind the exact family names to a locally-installed
   copy via local(). Where the licensed font is present it renders; where
   it is not, the token fallback stacks (Cormorant Garamond / Libre
   Baskerville / Georgia) take over. Replace src with url('fonts/<file>.woff2')
   once licensed files are uploaded to pinestreet/fonts/. */
@font-face { font-family: 'New Spirit'; font-style: normal; font-weight: 400; src: local('New Spirit'), local('NewSpirit-Regular'); }
@font-face { font-family: 'New Spirit'; font-style: normal; font-weight: 500; src: local('New Spirit Medium'), local('NewSpirit-Medium'); }
@font-face { font-family: 'New Spirit'; font-style: normal; font-weight: 600; src: local('New Spirit SemiBold'), local('NewSpirit-SemiBold'); }
@font-face { font-family: 'New Spirit'; font-style: normal; font-weight: 700; src: local('New Spirit Bold'), local('NewSpirit-Bold'); }

@font-face { font-family: 'Mrs Eaves XL Serif OT'; font-style: normal; font-weight: 400; src: local('Mrs Eaves XL Serif OT'), local('MrsEavesXLSerifOT-Reg'); }
@font-face { font-family: 'Mrs Eaves XL Serif OT'; font-style: normal; font-weight: 700; src: local('Mrs Eaves XL Serif OT Bold'), local('MrsEavesXLSerifOT-Bold'); }
@font-face { font-family: 'Mrs Eaves XL Serif OT'; font-style: italic; font-weight: 400; src: local('Mrs Eaves XL Serif OT Italic'), local('MrsEavesXLSerifOT-Italic'); }

:root {
  /* ---- Official Pine Street Advisors brand palette ---- */
  --slate-navy:  #485D66;   /* Legislative Blue  (primary dark)   */
  --deep-navy:   #3F3D39;   /* Cast Iron         (deepest dark)   */
  --pine:        #5A6457;   /* Pine Street Green (primary accent) */
  --pine-bright: #4C554A;   /* Pine Street Green, darkened (hover)*/
  --warm-gray:   #6D7A69;   /* Bronze Patina     (secondary text) */
  --off-white:   #FFFCF0;   /* Marble White      (page ground)    */
  --light-gray:  #ECDDC3;   /* Limestone Ridge   (warm surface)   */
  --near-black:  #3F3D39;   /* Cast Iron         (primary text)   */
  --line:        #E0D3BB;   /* warm hairline (derived from limestone) */
  --line-dark:   rgba(255,255,255,.14);
  --aqua:        #6CB8B3;   /* Aquamarine  (links / interactive)  */
  /* aliases (readability in overrides) */
  --marble:      #FFFCF0;
  --limestone:   #ECDDC3;
  --bronze:      #6D7A69;
  --cast-iron:   #3F3D39;

  /* ---- Brand type (licensed) with web-safe fallbacks ----
     Display/headlines/wordmark → New Spirit / P22 Mackinac Pro
     Body/nav/labels           → Mrs Eaves XL Serif / Adelle
     The real families render for anyone licensed to them; the loaded
     Google faces (Cormorant Garamond / Libre Baskerville) approximate. */
  --serif: 'New Spirit', 'P22 Mackinac Pro', 'Cormorant Garamond', Georgia, 'Times New Roman', serif; /* @kind font */
  --sans:  'Mrs Eaves XL Serif OT', 'Adelle', 'Libre Baskerville', Georgia, 'Times New Roman', serif; /* @kind font */

  --maxw: 1240px;
  --pad: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--near-black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 118px 0; }
.section--tight { padding: 84px 0; }

/* section eyebrow / label */
.eyebrow {
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pine); margin: 0 0 22px;
}
.eyebrow--light { color: var(--limestone); }
.eyebrow--gray { color: var(--limestone); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.psa-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-navy);
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background .3s ease, box-shadow .3s ease;
}
.psa-nav.is-scrolled { background: var(--deep-navy); box-shadow: 0 8px 30px rgba(0,0,0,.24); }
.psa-nav-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 var(--pad);
  height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.psa-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; white-space: nowrap; }
.psa-logo { color: var(--marble); display: inline-flex; }
.psa-mark-img { height: 30px; width: auto; display: block; }
.psa-wordmark {
  font-family: var(--sans); font-weight: 600; color: #fff;
  font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
}
.psa-nav-links { display: flex; align-items: center; gap: 34px; }
.psa-nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 13.5px;
  letter-spacing: .04em; color: rgba(255,255,255,.82); text-decoration: none;
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.psa-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--aqua); transition: right .28s ease;
}
.psa-nav-links a:hover { color: #fff; }
.psa-nav-links a:hover::after { right: 0; }
.psa-nav-links a[aria-current="page"] { color: #fff; }
.psa-nav-links a[aria-current="page"]::after { right: 0; background: var(--aqua); }
.psa-nav-cta {
  background: var(--pine); color: #fff !important; border-radius: 3px;
  padding: 11px 22px !important; font-weight: 600 !important;
  transition: background .2s ease !important;
}
.psa-nav-cta::after { display: none !important; }
.psa-nav-cta:hover { background: var(--pine-bright); }
.psa-nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 9px; }
.psa-nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .03em;
  text-decoration: none; border-radius: 3px; padding: 15px 30px;
  border: 1px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn .arw { transition: transform .25s ease; }
.btn:hover .arw { transform: translateX(4px); }
.btn--green { background: var(--pine); color: #fff; }
.btn--green:hover { background: var(--pine-bright); }
.btn--white { background: var(--marble); color: var(--pine); }
.btn--white:hover { background: var(--light-gray); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* text link */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .03em;
  color: var(--aqua); text-decoration: none;
}
.tlink .arw { transition: transform .25s ease; }
.tlink:hover { color: var(--pine); }
.tlink:hover .arw { transform: translateX(4px); }
.tlink--light { color: var(--marble); }
.tlink--light:hover { color: var(--limestone); }

/* ============================================================
   PAGE MASTHEAD (interior pages)
   ============================================================ */
.masthead { background: var(--off-white); border-bottom: 1px solid var(--line); }
.masthead .shell { padding-top: 92px; padding-bottom: 64px; }
.masthead .rule { width: 54px; height: 3px; background: var(--pine); margin: 0 0 24px; }
.masthead h1 {
  font-size: clamp(38px, 5vw, 52px); line-height: 1.04; color: var(--near-black);
  margin: 0; max-width: 18ch; text-wrap: balance;
}
.masthead .sub {
  font-family: var(--sans); font-weight: 400; color: var(--warm-gray);
  font-size: 20px; line-height: 1.6; margin: 22px 0 0; max-width: 62ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.psa-footer { background: var(--deep-navy); color: var(--marble); }
.psa-footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 76px var(--pad) 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px;
}
.psa-footer .fbrand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.psa-footer .fbrand .psa-logo { color: var(--marble); }
.psa-footer .fbrand .psa-mark-img { height: 28px; }
.psa-footer .fbrand span { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.psa-footer .ftag { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--limestone); font-size: 18px; margin: 0; max-width: 30ch; }
.psa-footer h4 { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--limestone); margin: 4px 0 20px; }
.psa-footer ul { list-style: none; margin: 0; padding: 0; }
.psa-footer li { margin-bottom: 13px; }
.psa-footer li a, .psa-footer li span { text-decoration: none; font-size: 14.5px; transition: color .2s ease; }
/* Column 2 = navigation (Bronze, hover Aquamarine); Column 3 = contact (Marble White) */
.psa-footer-grid > div:nth-child(2) li a { color: var(--limestone); }
.psa-footer-grid > div:nth-child(2) li a:hover { color: var(--marble); }
.psa-footer-grid > div:nth-child(3) li a, .psa-footer-grid > div:nth-child(3) li span { color: var(--marble); }
.psa-footer-grid > div:nth-child(3) li a:hover { color: var(--limestone); }
.psa-footer-base {
  max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad) 44px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.5);
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
/* callout block — pine left border on light gray */
.callout {
  background: var(--light-gray); border-left: 4px solid var(--pine);
  padding: 40px 46px; margin: 0;
}
.callout p {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.34; color: var(--near-black); margin: 0;
}

/* editorial column (The Firm / Principal) */
.editorial { background: var(--off-white); }
.column { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.column h1 { font-size: clamp(38px, 5vw, 50px); line-height: 1.05; color: var(--near-black); margin: 0 0 8px; }
.column .role { font-family: var(--sans); font-weight: 400; color: var(--warm-gray); font-size: 18px; margin: 0 0 30px; }
.column p { font-size: 17.5px; line-height: 1.78; color: var(--near-black); margin: 0 0 26px; }
.column p.lead { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.55; color: var(--slate-navy); margin-bottom: 34px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .psa-nav-toggle { display: block; }
  .psa-nav-links {
    position: fixed; inset: 82px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep-navy); overflow: hidden; max-height: 0;
    transition: max-height .36s ease;
  }
  .psa-nav[data-open="true"] .psa-nav-links { max-height: 520px; }
  .psa-nav-links a { padding: 18px 40px; text-align: center; font-size: 15px; letter-spacing: .12em; border-top: 1px solid rgba(255,255,255,.06); }
  .psa-nav-links a::after { display: none; }
  .psa-nav-cta { margin: 16px 40px; text-align: center; }
  .psa-nav[data-open="true"] .psa-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .psa-nav[data-open="true"] .psa-nav-toggle span:nth-child(2) { opacity: 0; }
  .psa-nav[data-open="true"] .psa-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 820px) {
  :root { --pad: 26px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .psa-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .psa-footer-base { flex-direction: column; gap: 10px; }
  .callout { padding: 30px 28px; }
}
