@import url('fonts.css');

/* ============================================================
   Turning Point Solutions — site styles
   Palette sampled from the client's logo artwork.
   Contrast ratios verified; see the note on --gold.
   ============================================================ */

:root {
  /* Navy */
  --navy-900: #071A45;
  --navy-800: #14245C;
  --navy-700: #283775;
  --navy-600: #313F7C;

  /* Silver / neutral */
  --silver-500: #8E9299;   /* functional borders (3.12:1 on white) */
  --silver-400: #BABAB9;   /* decorative rules only (1.94:1) */
  --silver-200: #E3E4E6;   /* section fills */
  --slate-600:  #5A5F6B;   /* secondary text (6.39:1 on white) */

  --paper: #FDFEFE;
  --white: #FFFFFF;

  /* Gold, hue 40, matching the logo artwork.
     --gold      #B08A3E : on navy 4.56:1 (PASS). On white only 3.21:1, so it is
                           limited to hairlines and focus rings (3:1 UI threshold).
                           NEVER put white text on it.
     --gold-dark #7B570F : gold text on light grounds.
                           6.54:1 on white, 5.14:1 on the --silver-200 tint. */
  --gold:      #B08A3E;
  --gold-dark: #7B570F;

  --container: 1180px;
  --header-h: 92px;

  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy-900);
  font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-800); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
  letter-spacing: .01em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tint { background: var(--silver-200); }
.section--paper { background: var(--paper); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy-800); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ---------- Typography helpers ---------- */
h2.eyebrow { line-height: 1.4; }
.eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 18px;
}
.eyebrow--on-navy { color: var(--gold); }

.h1 { font-size: clamp(34px, 5.2vw, 46px); }
.h2 { font-size: clamp(26px, 3.4vw, 34px); }
.h3 { font-size: clamp(19px, 2vw, 22px); }

.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--slate-600); max-width: 62ch; }
.muted { color: var(--slate-600); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 13px 26px;
  font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
/* Primary: navy on white text = 11.09:1 */
.btn--primary { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.btn--primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--silver-500); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy-700); color: var(--navy-800); }

/* On navy grounds */
.btn--light { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn--light:hover { background: var(--silver-200); color: var(--navy-900); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700);
}
.arrow-link:hover { color: var(--gold-dark); }
.arrow-link svg { transition: transform .18s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,254,254,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--silver-200);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img { width: 118px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--navy-800); border-radius: var(--radius);
}
.nav__link:hover { background: var(--silver-200); }
.nav__link[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--gold); }

.nav__group { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px; padding: 0 14px;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 500; color: var(--navy-800);
}
.nav__toggle:hover { background: var(--silver-200); }
.nav__toggle svg { transition: transform .18s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 290px;
  background: var(--white); border: 1px solid var(--silver-200);
  border-radius: var(--radius); box-shadow: 0 12px 34px rgba(7,26,69,.13);
  padding: 8px; list-style: none;
}
.nav__menu[hidden] { display: none; }
.nav__menu a {
  display: block; padding: 11px 14px; border-radius: var(--radius);
  font-size: 15px; color: var(--navy-800); line-height: 1.35;
}
.nav__menu a:hover { background: var(--silver-200); }
.nav__menu a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--gold); }

.site-header__phone {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 700; color: var(--navy-800);
  border-left: 1px solid var(--silver-200); margin-left: 8px;
}
.site-header__cta { margin-left: 8px; }

.burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--silver-200); border-radius: var(--radius); cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer[open] { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(7,26,69,.55); }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0; width: min(400px, 88vw);
  background: var(--navy-800); color: var(--white);
  padding: 22px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__panel img { width: 150px; }
.drawer__close {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
  color: var(--white); cursor: pointer;
}
.drawer__panel a {
  display: block; padding: 13px 4px; color: var(--white);
  font-family: Montserrat, sans-serif; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.drawer__panel a:hover { color: var(--gold); }
.drawer__panel a[aria-current="page"] { color: var(--gold); }
/* The generic `.drawer__panel a` rule above would otherwise force white text
   onto the white CTA button, making it invisible. Specificity 0-2-0 wins. */
.drawer__panel .btn { border-bottom: 0; }
.drawer__panel .btn--light { color: var(--navy-800); }
.drawer__panel .btn--light:hover { color: var(--navy-900); }
.drawer__sub { padding-left: 14px; }
.drawer__sub a { font-size: 14.5px; opacity: .9; }
.drawer__label {
  font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 18px 0 4px;
}
.drawer__foot { margin-top: 20px; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  padding-block: clamp(58px, 8vw, 104px);
}
.hero__grid { display: grid; gap: clamp(38px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__sub { color: rgba(255,255,255,.9); font-size: clamp(17px, 1.7vw, 19px); max-width: 46ch; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta {
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 40ch;
}
.hero__pillars { list-style: none; }
.hero__pillars li { border-bottom: 1px solid rgba(255,255,255,.22); }
.hero__pillars li:first-child { border-top: 1px solid rgba(255,255,255,.22); }
.hero__pillars span {
  display: block; padding: 19px 0;
  font-family: Montserrat, sans-serif; font-size: clamp(18px, 2vw, 21px);
  font-weight: 500; color: var(--white);
}

/* Page hero (inner pages) */
.page-hero { background: var(--paper); padding-block: 40px clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--silver-200); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 18px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13.5px; color: var(--slate-600); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--silver-500); }
.crumbs a { color: var(--slate-600); }
.crumbs a:hover { color: var(--navy-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--navy-900); }

/* ---------- Wave divider ----------
   The wave overlays the navy section rather than sitting between sections, so
   the hero's gradient shows through above the curve and there is no seam. */
.wave { display: block; width: 100%; height: 70px; pointer-events: none; }
.wave--bottom { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave--top    { position: absolute; left: 0; right: 0; top: -1px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--2up { grid-template-columns: 1fr; }

.card {
  background: var(--white); border: 1px solid var(--silver-200);
  border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.card h3, .card h2 { color: var(--navy-900); }
.card p { color: var(--slate-600); margin: 0; font-size: 16px; }
.card .arrow-link { margin-top: auto; padding-top: 10px; }

.card--flagship { border-color: var(--gold); border-top-width: 3px; }
.card--flagship .badge { color: var(--gold-dark); }

.badge {
  font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate-600);
}

.value { border-top: 2px solid var(--navy-700); padding-top: 18px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { color: var(--slate-600); font-size: 15.5px; margin: 0; }

/* Audience cards */
.audience { border-top: 1px solid var(--silver-500); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.audience h3 { font-size: 20px; }
.audience p { color: var(--slate-600); font-size: 16px; margin: 0; }
.audience .arrow-link { margin-top: auto; padding-top: 8px; }

/* ---------- Navy band ---------- */
.band {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
}
/* clear the wave that overlays each edge */
.hero { padding-bottom: calc(clamp(58px, 8vw, 104px) + 46px); }
.band { padding-top: calc(clamp(56px, 7vw, 96px) + 46px); }
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,.88); }
.band .lede { color: rgba(255,255,255,.88); }

/* ---------- Service detail ---------- */
.svc-layout { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; }
.svc-body > p { color: var(--slate-600); font-size: 17.5px; }
.svc-who {
  border-left: 3px solid var(--gold); background: var(--silver-200);
  padding: 20px 24px; margin: 28px 0 0;
}
.svc-who p { margin: 0; color: var(--navy-900); }

.included h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 14px; font-weight: 600; }
.included ul { list-style: none; display: grid; gap: 10px; }
.included li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.included li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .55em;
  background: var(--gold); transform: rotate(45deg);
}
.included__group + .included__group { margin-top: 30px; }

.other-services { list-style: none; display: grid; gap: 2px; }
.other-services a {
  display: block; padding: 17px 0; border-top: 1px solid var(--silver-200);
}
.other-services strong { display: block; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 16.5px; color: var(--navy-900); }
.other-services span { color: var(--slate-600); font-size: 15px; }
.other-services a:hover strong { color: var(--navy-700); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 23px; margin: 42px 0 14px; }
.prose h2:first-of-type { margin-top: 26px; }
.prose p { color: var(--slate-600); }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1.1em; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-600); }
.prose ul li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .6em;
  background: var(--gold); transform: rotate(45deg);
}
.prose a { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta { background: var(--paper); border-top: 1px solid var(--silver-200); }
.cta__grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.cta h2 { max-width: 16ch; }
.cta__contact { display: grid; gap: 20px; }
.cta__label {
  font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 4px;
}
.cta__phone { font-family: Montserrat, sans-serif; font-size: 25px; font-weight: 600; color: var(--navy-900); }
.cta__phone:hover { color: var(--navy-700); }
.cta__email { display: block; color: var(--navy-700); font-size: 16px; }
.cta__email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-block: 56px 30px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--white); }
.site-footer img { width: 210px; margin-bottom: 18px; }
.site-footer__tagline {
  font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.site-footer__grid { display: grid; gap: 38px; grid-template-columns: 1fr; }
.site-footer h2 {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer li { font-size: 15px; }
.site-footer__bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: rgba(255,255,255,.6);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(70px, 12vw, 130px); }
.notfound .h1 { margin-bottom: 18px; }
.notfound ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 28px; }

/* ---------- Motion ---------- */
.rise { animation: tpRise .6s var(--ease) both; }
@keyframes tpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid--2up { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .cta__grid { grid-template-columns: 1.1fr 1fr; }
  .svc-layout { grid-template-columns: 1.35fr 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 899px) {
  .nav, .site-header__phone, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .drawer, .cta, .site-footer { display: none; }
  body { color: #000; font-size: 12pt; }
}
