/* ==========================================================================
   Em Dash Strategies — site styles
   Brand colors from Brand/brand-book.pdf
   Display type: Libre Caslon Display stands in for Caslon Titling (see README)
   Supporting type: Lato
   ========================================================================== */

:root {
  --navy: #031434;
  --navy-deep: #020d22;
  --gold: #a6700f;
  --cream: #f6f1e8;
  --cream-dark: #ebe4d6;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5c6570;
  --line: rgba(3, 20, 52, 0.12);
  --line-gold: rgba(166, 124, 45, 0.55);

  --font-display: "Libre Caslon Display", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-width: 70rem;
  --header-height: 4.75rem;
  --space: 1.25rem;
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
  --ease: 0.22s ease;
}

/* -------------------------------------------------------------------------- */
/* Base
/* -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 0.3vw + 0.96rem, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

p,
address,
ul {
  margin: 0 0 1.1em;
}

ul {
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.35rem, 1.6vw, 1.6rem);
}

address {
  font-style: normal;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

.placeholder-copy {
  font-style: italic;
  color: var(--text-muted);
}

.placeholder-copy--on-navy {
  color: rgba(246, 241, 232, 0.72);
}

/* -------------------------------------------------------------------------- */
/* Header / navigation
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(3, 20, 52, 0.92);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  background: var(--navy);
  border-bottom-color: var(--line-gold);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: auto;
  height: 4.6rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(246, 241, 232, 0.28);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  padding: 0;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Hero
/* -------------------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--cream);
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
}

.hero__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
  display: grid;
  grid-template-columns: minmax(10rem, 16.5rem) 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__logo {
  width: 100%;
  height: auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.35em;
}

.hero__lede {
  max-width: 36rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.55;
  color: rgba(246, 241, 232, 0.9);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow--light {
  color: var(--gold);
}

.gold-rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.4rem;
}

.gold-rule--left {
  margin: 0.2rem 0 1.6rem;
}

/* -------------------------------------------------------------------------- */
/* Sections
/* -------------------------------------------------------------------------- */

.section {
  padding: var(--section-space) 0;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section--navy h2,
.section--navy a {
  color: var(--white);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about__copy p,
.team-member__copy p {
  max-width: 42rem;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.statement {
  background: var(--navy-deep);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  text-align: center;
}

.statement__inner {
  max-width: 44rem;
}

.statement__inner--wide {
  width: min(76rem, calc(100% - 4rem));
  max-width: none;
}

.statement blockquote {
  margin: 0;
}

.statement blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  color: var(--white);
}

.statement__attr {
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.statement__role {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(246, 241, 232, 0.72);
}

/* -------------------------------------------------------------------------- */
/* Team
/* -------------------------------------------------------------------------- */

.team-member {
  display: grid;
  grid-template-columns: minmax(14rem, 18.5rem) 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.team-member:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-member__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line);
}

.team-member__photo--empty {
  min-height: 16rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-gold);
  background: var(--cream);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1.25rem;
}

.team-member__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.team-member__subtitle {
  margin: 0.35rem 0 1.25rem;
  color: var(--text-muted);
}

.team-member__contact {
  margin-top: 1.5rem;
}

.team-member__contact a {
  color: var(--navy);
  text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------------------- */
/* Services
/* -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  padding: 1.75rem 1.5rem 1.4rem;
  border-top: 1px solid var(--gold);
  background: var(--white);
}

.service__index {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.service ul {
  list-style: none;
}

.service li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--gold);
}

/* -------------------------------------------------------------------------- */
/* Clients
/* -------------------------------------------------------------------------- */

.clients-intro {
  margin-bottom: 2rem;
}

.client-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 20rem));
  gap: 1rem;
  margin: 0;
}

.client-slot {
  min-height: 7.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--line-gold);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.client-slot--logo {
  background: var(--navy);
  border: 1px solid var(--navy);
  min-height: 8.5rem;
  padding: 1.5rem 1.75rem;
}

.client-slot--logo a {
  display: grid;
  place-items: center;
  width: 100%;
}

.client-slot img {
  max-height: 4.25rem;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Contact / form
/* -------------------------------------------------------------------------- */

.contact__firm {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.contact__details a {
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 124, 45, 0.6);
}

.contact__social {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 241, 232, 0.12);
  padding: 1.6rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(246, 241, 232, 0.28);
  background: transparent;
  color: var(--white);
  padding: 0.55rem 0;
  border-radius: 0;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  padding: 0.8rem 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.form-status {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #d9c48a;
}

.form-status.is-error {
  color: #f0c7c7;
}

/* -------------------------------------------------------------------------- */
/* Footer
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 232, 0.78);
  padding: 2rem 0 2.75rem;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(246, 241, 232, 0.1);
}

.footer-inner p,
.privacy p:last-child {
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
}

.footer-links a,
.privacy a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.privacy a:hover {
  border-bottom-color: var(--gold);
}

.privacy {
  padding-top: 1.75rem;
}

.privacy h2 {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
}

.legal {
  background: var(--cream);
  padding: var(--section-space) 0 calc(var(--section-space) + 1rem);
}

.legal__inner {
  max-width: 42rem;
}

.legal h1 {
  margin-bottom: 0.35em;
}

.legal .legal__updated {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1.1em;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

/* -------------------------------------------------------------------------- */
/* Responsive
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__inner,
  .about-grid,
  .contact-grid,
  .team-member,
  .services-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .hero__mark {
    max-width: 12.5rem;
  }

  .team-member__photo {
    max-width: 18rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 4.25rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--line-gold);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(246, 241, 232, 0.08);
  }

  .client-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-logo img {
    height: 3.6rem;
  }
}

@media (max-width: 480px) {
  .container,
  .hero__inner,
  .header-inner {
    width: min(var(--max-width), calc(100% - 1.5rem));
  }

  .client-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
