/* site.css: the Summit layer for the site's regular pages (home, coaching, consulting,
   about, blog, apps). Loads after summit.css. Holds the site nav with its phone menu,
   the footer socials, the inner-page hero (contour lines, sun, ridges, summit flag),
   and small components several pages share. Page-only styles live in each page's file. */

[id] { scroll-margin-top: 96px; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- nav: site links + phone menu */
/* base.css paints nav[aria-label="Main"] as a Midnight bar; inside the floating nav it is just a row */
.nav nav[aria-label="Main"] { background: none; padding-block: 0; }
.nav .menu-cta { display: none; }
/* base.css sizes the toggle only inside a <nav>; here it sits beside it */
.nav .nav-mobile-toggle { display: none; width: 44px; height: 44px; padding: 11px; border-radius: var(--radius); transition: background-color .2s, transform .15s; }
.nav .nav-mobile-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: #F5F2EA; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav .nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav .nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav .nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav .nav-mobile-toggle:hover { background: rgba(245, 242, 234, .08); }
.nav .nav-mobile-toggle:active { transform: scale(.92); }

@media (max-width: 1080px) {
  .nav .nav-mobile-toggle { display: block; margin-right: 0; }
  /* mobile-nav.js opens the menu with inline styles; these refine its look */
  .nav .nav-links[style*="flex"] {
    top: calc(100% + 8px) !important; left: 0 !important; right: 0 !important;
    padding: 12px !important; gap: 2px !important; border-radius: var(--radius);
    background: rgba(7, 18, 37, .97) !important; border: 1px solid rgba(216, 210, 194, .14);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: menu-in .35s var(--ease);
  }
  .nav .nav-links[style*="flex"] a { padding: 14px 12px; margin: 0; font-size: 1.05rem; }
  .nav .nav-links[style*="flex"] a::after { left: 12px; right: auto; width: 32px; bottom: 8px; }
  .nav .nav-links[style*="flex"] .menu-cta { display: block; margin-top: 8px; text-align: center; background: var(--brass); color: #071225; font-weight: 700; border-radius: var(--radius); }
  .nav .nav-links[style*="flex"] .menu-cta::after { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 640px) {
  .nav .nav-book { display: none; }
}

/* ---------------------------------------------------------------- inner-page hero */
/* Same world as the home hero, lighter: baked contour lines, a sun the cursor lifts,
   three ridgelines with parallax, and the summit with its trail and flag. */
.page-hero {
  --px: 0; --py: 0; --lift: 0;
  position: relative; min-height: max(560px, 74svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: 150px 0 clamp(56px, 8vw, 96px); background: var(--bg);
}
.page-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: .42; pointer-events: none; }
.page-scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--bg) 70%, transparent) 86%, var(--bg)),
              radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--bg) 78%, transparent), transparent 62%);
}
.ps-sky { transform: translate(calc(var(--px) * -10px), calc(var(--lift) * -90px)); transition: transform 1.2s var(--ease); }
.ps-sun { fill: #E8CC80; filter: drop-shadow(0 0 40px rgba(217, 182, 92, .8)); }
.ps-halo { fill: none; stroke: rgba(217, 182, 92, .32); stroke-width: 1; }
.ps-ridge { transition: transform 1.2s var(--ease); }
.ps-far { fill: #1B3157; transform: translate(calc(var(--px) * -8px), calc(var(--py) * -3px)); }
.ps-mid { fill: #12274A; transform: translate(calc(var(--px) * -16px), calc(var(--py) * -6px)); }
.ps-summit { transform: translate(calc(var(--px) * -26px), calc(var(--py) * -9px)); transition: transform 1.2s var(--ease); }
.ps-peak { fill: #0C1F3F; stroke: rgba(217, 182, 92, .55); stroke-width: 1.4; }
.ps-near { fill: #071225; transform: translate(calc(var(--px) * -40px), calc(var(--py) * -14px)); }
.ps-trail { fill: none; stroke: #D9B65C; stroke-width: 2.2; stroke-dasharray: 1 7; stroke-linecap: round; }
.ps-flag line { stroke: #F5F2EA; stroke-width: 2; }
.ps-flag path { fill: #D9B65C; transform-box: fill-box; transform-origin: 0 50%; animation: flag-wave 2.4s ease-in-out infinite; }
@keyframes flag-wave { 50% { transform: skewY(7deg) scaleX(.92); } }
:root[data-theme="light"] .ps-far { fill: #D9D2C2; }
:root[data-theme="light"] .ps-mid { fill: #BEB9AD; }
:root[data-theme="light"] .ps-peak { fill: #4F5F78; stroke: rgba(122, 95, 28, .55); }
:root[data-theme="light"] .ps-near { fill: #EAE3D3; }
:root[data-theme="light"] .ps-trail { stroke: #E8CC80; }

.page-hero-inner { position: relative; }
.page-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .015em;
  font-size: clamp(3rem, 8.4vw, 8.4rem); line-height: .86; max-width: 13ch; margin-bottom: 26px; text-wrap: balance;
}
.page-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.page-title .line-inner { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.page-title .line:nth-child(2) .line-inner { transition-delay: .1s; }
.page-title .line:nth-child(3) .line-inner { transition-delay: .2s; }
.page-title .line:nth-child(4) .line-inner { transition-delay: .3s; }
body.is-ready .page-title .line-inner, html:not(.js) .page-title .line-inner { transform: none; }
.page-sub { max-width: 58ch; font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--text-2); }
.page-hero .eyebrow, .page-sub, .page-hero .hero-ctas { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
body.is-ready .page-hero .eyebrow, body.is-ready .page-sub, body.is-ready .page-hero .hero-ctas,
html:not(.js) .page-hero .eyebrow, html:not(.js) .page-sub, html:not(.js) .page-hero .hero-ctas { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- shared components */
/* brass-diamond list */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 9px; height: 9px; background: var(--brass); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: translateY(-1px); }

/* numbered feature cards: <div class="feature-grid"><article class="card feature"> */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { padding: 30px 28px; display: flex; flex-direction: column; overflow: hidden; }
.feature:hover { transform: translateY(-6px); border-color: var(--brass); box-shadow: var(--shadow); }
.feature .feature-n { font-family: var(--display); font-weight: 600; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--brass); margin-bottom: 20px; transition: color .4s; }
.feature:hover .feature-n { color: var(--brass); }
.feature h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.7rem; line-height: 1.05; margin-bottom: 10px; }
.feature p { color: var(--text-2); }
.feature .ticks { margin-top: 16px; font-size: .96rem; }

.inline-link, .text-link {
  color: var(--accent); font-weight: 700; text-decoration: none; padding: 2px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), opacity .15s;
}
.inline-link:hover, .text-link:hover { background-size: 100% 1.5px; }
.inline-link:active, .text-link:active { opacity: .6; }
.text-link span { display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.steps-3 { grid-template-columns: repeat(3, 1fr); }
.final .btn + .btn { margin-left: 12px; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-ctas .btn + .btn { margin-left: 0; }

/* ---------------------------------------------------------------- footer socials */
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot .socials-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.foot .social-link {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(216, 210, 194, .18);
  transition: border-color .2s, background-color .2s, transform .15s var(--ease);
}
.foot .social-link svg { width: 17px; height: 17px; fill: rgba(245, 242, 234, .86); transition: fill .2s; }
.foot .social-link:hover { border-color: #C2A14D; background: rgba(194, 161, 77, .12); }
.foot .social-link:hover svg { fill: #D9B65C; }
.foot .social-link:active { transform: scale(.9); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .foot-right { align-items: flex-start; }
  .page-scene { opacity: .55; }
}
@media (max-width: 640px) {
  .steps-3 { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-top: 128px; }
  .page-scene { height: 62%; opacity: .5; }
  .final .btn + .btn { margin-left: 0; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-flag path { animation: none !important; }
  .page-title .line-inner, .page-hero .eyebrow, .page-sub, .page-hero .hero-ctas { transform: none !important; opacity: 1 !important; }
}
