/* ============================================================
   Tempest M&A Advisors — site stylesheet
   Implements "Tempest Brand Guide v1.0" (August 2026).
   Token names map 1:1 to the guide's colour + type tables.
   ============================================================ */

/* --- 02 · COLOR SYSTEM -------------------------------------- */
:root {
  /* Brand — from the logo files (Tempest M&A logo / hex-values.txt) */
  --teal:            #318593;  /* logo teal: the mark, rules, graphic accents */
  --brand:           #2A7482;  /* teal nudged darker so text + buttons pass AA (4.9:1 on ground) */
  --brand-hover:     #225E69;
  --brand-active:    #1C4F58;
  --brand-300:       #7FC3CC;  /* teal for links and text on dark sections */
  --gray:            #585B60;  /* logo cool gray */

  /* Secondary accent — brass. Decorative rules, quote bars, eyebrows on dark.
     Swap these three lines to change the secondary colour site-wide. */
  --accent:          #B08D57;
  --accent-700:      #8C6A36;  /* text-safe on light grounds */
  --accent-300:      #C9A56B;  /* text-safe on dark grounds */

  /* Neutrals — cool, to sit with the logo gray */
  --ink:             #23292E;  /* text, headings */
  --ink-700:         #585B60;  /* secondary text (logo gray) */
  --ink-400:         #878B90;  /* metadata; large text only */
  --dark:            #1E2A30;  /* dark sections + footer */
  --ground:          #F4F6F5;  /* default page ground */
  --white:           #FFFFFF;  /* cards on ground only */
  --border:          #D6DCDC;  /* form fields, table rules */
  --divider:         #E3E8E7;  /* hairlines, card strokes */
  --success:         #57713F;
  --error:           #B3502E;
  --on-dark-body:    #C7D0D3;  /* body copy inside dark sections */
  --on-dark-meta:    #9CA8AD;  /* metadata inside dark sections */

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-btn:  6px;
  --radius-card: 10px;
  --shadow-card: 0 1px 2px rgba(35, 41, 46, 0.06);

  --measure: 1120px;
  --gutter: 40px;
}

/* --- reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }

/* --- 03 · TYPOGRAPHY ----------------------------------------- */
/* Headings are sentence case and never letterspaced.
   The ALL-CAPS eyebrow is the only letterspaced style. */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
h1 { font-size: 56px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.20; letter-spacing: -0.005em; }
h3 { font-size: 28px; line-height: 1.30; letter-spacing: 0; }
p  { margin: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  margin-right: -0.22em;   /* absorb the trailing tracking */
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--on-dark { color: var(--accent-300); }

.lede    { font-size: 17px; line-height: 1.65; color: var(--ink-700); }
.small   { font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }
/* Lead-in line that introduces a row of cards. */
.grid-lead { font-size: 24px; line-height: 1.3; margin: 0 0 20px; color: var(--ink); }

/* --- links --------------------------------------------------- */
a { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
a:active { color: var(--brand-active); }
/* :not(.btn) so these never outspecify the button colourways below. */
.on-dark a:not(.btn) { color: var(--brand-300); }
.on-dark a:not(.btn):hover { color: var(--ground); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :where(a, button):focus-visible { outline-color: var(--brand-300); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ground);
  padding: 10px 16px; border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--ground); text-decoration: none; }

/* --- layout -------------------------------------------------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 88px; }
.section--tight { padding-block: 64px; }
.section--dark {
  background: var(--dark);
  color: var(--ground);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ground); }
.section--dark p { color: var(--on-dark-body); }
.rule-top { border-top: 1px solid var(--divider); }
/* Clear the sticky nav when an in-page anchor is the scroll target. */
:target { scroll-margin-top: 84px; }

.stack   { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stack--center { align-items: center; text-align: center; }
.grid    { display: grid; gap: 20px; }
.grid-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split   { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--lead { grid-template-columns: 1.15fr 1fr; }

/* --- 01 · LOGO SYSTEM ---------------------------------------- */
/* Artwork from the supplied logo files. Horizontal lockup with "M&A ADVISORS"
   centred under the wordmark; white version on dark grounds. */
.logo { display: inline-flex; align-items: center; font-weight: 400; line-height: 0; }
.logo:hover { text-decoration: none; }
.logo img { display: block; height: 46px; width: auto; }
.footer .logo img { height: 40px; }
.brand-mark { display: block; width: 200px; height: auto; }
@media (max-width: 900px) {
  .logo img { height: 38px; }
  .brand-mark { width: 150px; }
}

/* --- 04 · UI COMPONENTS — buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: var(--ground); }
.btn--primary:hover  { background: var(--brand-hover);  color: var(--ground); }
.btn--primary:active { background: var(--brand-active); color: var(--ground); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--ground); }
.btn--on-dark { background: transparent; color: var(--ground); border-color: var(--ground); }
.btn--on-dark:hover { background: var(--ground); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow { font-size: 15px; font-weight: 600; color: var(--brand); }
.link-arrow::after { content: " \2192"; }
.on-dark .link-arrow { color: var(--brand-300); }

.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* --- cards --------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.card h3 { font-size: 21px; line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.card--dark {
  background: rgba(244, 246, 245, 0.05);
  border-color: rgba(244, 246, 245, 0.16);
  box-shadow: none;
}
.card--dark h3 { color: var(--ground); }
.card--dark p  { color: var(--on-dark-body); }

/* --- pull quote ---------------------------------------------- */
.quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.quote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 23px; line-height: 1.45; color: var(--ink);
}
.quote cite { font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--ink-700); }
.on-dark .quote { border-left-color: var(--accent); }
.on-dark .quote p { color: var(--ground); }
.on-dark .quote cite { color: var(--on-dark-meta); }

.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--ink-700);
}

/* --- numbered step list -------------------------------------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; margin-right: -0.22em;
  color: var(--brand); text-transform: uppercase;
}
.step h3 { font-size: 21px; line-height: 1.3; }
.step p  { font-size: 15px; line-height: 1.6; color: var(--ink-700); }

/* --- definition rows (ICP, FAQ) ------------------------------ */
.rows { border-top: 1px solid var(--divider); }
.row {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 22px 0; border-bottom: 1px solid var(--divider);
}
.row dt { font-weight: 600; font-size: 15px; }
.row dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-700); }

/* Closing statement for a section — centred under a short brass rule so it
   reads as the section's last word rather than a stranded caption. */
.section-note {
  margin-top: 44px;
  padding-top: 34px;
  display: flex; justify-content: center;
  position: relative;
}
.section-note::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 2px; background: var(--accent);
}
.section-note p {
  font-family: var(--serif); font-weight: 500;
  font-size: 21px; line-height: 1.5;
  color: var(--ink);
  text-align: center; max-width: 56ch; text-wrap: pretty;
}

/* Sector chips — scannable, so a visitor can find themselves at a glance. */
.tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tag {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  padding: 10px 16px;
  font-size: 15px; font-weight: 500; line-height: 1.3;
  color: var(--ink);
}
.tags__note {
  margin-top: 20px;
  font-size: 15px; line-height: 1.6; color: var(--ink-700);
  max-width: 62ch;
}

/* Single labelled fact, where a full definition list would be mostly whitespace. */
.factline {
  display: flex; gap: 14px; align-items: baseline;
  margin: 30px 0 0; padding-top: 22px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
}
.factline dt { font-weight: 600; }
.factline dd { margin: 0; color: var(--ink-700); }

.faq { border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 24px; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 60px 24px 0; font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.faq details > div p + p { margin-top: 14px; }
/* Lead-ins inside longer answers — darker so they scan as sub-points. */
.faq details > div strong { color: var(--ink); font-weight: 600; }

/* --- portrait ------------------------------------------------ */
.portrait {
  border-radius: var(--radius-card);
  border: 1px solid var(--divider);
  overflow: hidden;
  background: var(--white);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; }
.portrait figcaption {
  padding: 14px 18px; font-size: 14px; line-height: 1.5; color: var(--ink-700);
  border-top: 1px solid var(--divider);
}
.portrait figcaption strong { color: var(--ink); display: block; font-weight: 600; }
/* Our story: the two co-founders side by side. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; width: 100%; }
.duo .portrait { margin: 0; }
.duo .portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.card .eyebrow { margin-bottom: 4px; }

/* --- Team: leadership cards ---------------------------------- */
.person {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.person__photo { margin: 0; background: var(--ground); }
.person__photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 28%;
  display: block;
}
.person__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.person__body h3 { font-size: 26px; line-height: 1.25; }
.person__body p { font-size: 15px; line-height: 1.65; color: var(--ink-700); }
.person__contact { margin-top: 4px !important; font-weight: 500; }
.person__placeholder {
  align-self: flex-start;
  font-size: 12px !important; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-700) !important;
  background: var(--ground);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 5px 10px;
}

/* --- Team: sector deal advisors ------------------------------ */
.advisor {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.advisor__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--ground); display: block;
}
.advisor__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.advisor__sector {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; margin-right: -0.22em;
  text-transform: uppercase; color: var(--brand); line-height: 1.4;
}
.advisor__body h3 { font-size: 20px; line-height: 1.3; }
.advisor__status {
  font-size: 13px; color: var(--ink-700);
}
.advisor__bio { margin-top: auto; padding-top: 12px; }
.advisor__bio summary {
  cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--brand);
  padding-top: 12px; border-top: 1px solid var(--divider);
}
.advisor__bio summary::-webkit-details-marker { display: none; }
.advisor__bio summary::after { content: " +"; }
.advisor__bio[open] summary::after { content: " \2013"; }
.advisor__bio summary:hover { color: var(--brand-hover); }
.advisor__bio > div { padding-top: 10px; }
.advisor__bio p { font-size: 14px; line-height: 1.6; color: var(--ink-700); margin: 0; }

/* --- 04 · UI COMPONENTS — form fields ------------------------ */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; }
/* Charcoal 400 is large-text-only per the guide, so small helper copy uses 700. */
.field .hint { font-size: 12.5px; font-weight: 400; color: var(--ink-700); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 13px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(49, 133, 147, 0.16);
}
.field .error-msg { font-size: 12px; color: var(--error); min-height: 0; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--error); }
.form__note { font-size: 13px; line-height: 1.55; color: var(--ink-700); }
.form__status {
  font-size: 15px; line-height: 1.6; padding: 14px 16px;
  border-radius: var(--radius-btn); border: 1.5px solid;
}
.form__status[data-state="success"] { color: var(--success); border-color: var(--success); background: rgba(87, 113, 63, 0.06); }
.form__status[data-state="error"]   { color: var(--error);   border-color: var(--error);   background: rgba(179, 80, 46, 0.06); }
[hidden] { display: none !important; }

/* --- nav ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 245, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--divider);
}
.nav__inner {
  max-width: var(--measure); margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  text-decoration: none;
}
.nav__links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav__links a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__toggle {
  display: none;
  background: none; border: 1.5px solid var(--border); border-radius: var(--radius-btn);
  padding: 9px 12px; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
}

/* --- footer -------------------------------------------------- */
.footer { background: var(--dark); color: var(--ground); padding-block: 56px 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 11px; }
.footer__col-title {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; margin-right: -0.18em;
  text-transform: uppercase; color: var(--on-dark-meta);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col a { color: var(--brand-300); font-weight: 400; }
.footer__col a:hover { color: var(--ground); }
.footer__col span { color: var(--ground); }
.footer__base {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(244, 246, 245, 0.14);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-dark-meta); line-height: 1.6;
}
.footer__base p { color: var(--on-dark-meta); max-width: 68ch; }

/* --- hero ---------------------------------------------------- */
.hero { padding-block: 108px 96px; }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 52ch; }

/* ============================================================
   Responsive — mobile type scale from the guide's 03 table
   ============================================================ */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  h1 { font-size: 36px; line-height: 1.2; }
  h2 { font-size: 30px; line-height: 1.25; }
  h3 { font-size: 23px; line-height: 1.35; }
  body { font-size: 16px; }
  .lede { font-size: 16px; }
  .small { font-size: 13px; }
  .eyebrow { font-size: 11px; }
  .quote p { font-size: 19px; }
  .faq summary { font-size: 19px; }
  .section-note p { font-size: 18px; }
  .section-note { margin-top: 32px; padding-top: 28px; }
  .tag { font-size: 14px; padding: 9px 14px; }
  .tags { gap: 8px; }
  .person__body h3 { font-size: 23px; }
  .person__photo img { aspect-ratio: 4 / 3; }

  .section { padding-block: 56px; }
  .section--tight { padding-block: 44px; }
  .hero { padding-block: 56px 52px; }

  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .split, .split--lead { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq details > div { padding-right: 20px; }

  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--divider);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--divider); font-size: 16px; }
  .nav__links .btn { margin-top: 16px; border-bottom: none; }
  .nav__inner { position: relative; }
  .btn { width: auto; }
}

@media (max-width: 480px) {
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media print {
  .nav, .skip-link, .btn-row { display: none; }
  body { background: #fff; }
}
