/* Cohen Waldman & Associates — site styles
   Restrained / institutional. Navy / charcoal / off-white. Serif headlines. */

:root {
  --navy: #0E1B2C;
  --charcoal: #1C1F24;
  --off-white: #F5F1E8;
  --paper: #FAF8F3;
  --hairline: #C9C2B2;
  --hairline-soft: #E0DBCE;
  --muted: #6B6B6B;

  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 72rem;
  --container-narrow: 48rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4.5rem;
  --space-12: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

::selection {
  background: var(--navy);
  color: var(--off-white);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link (visible on focus) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--off-white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: var(--container-narrow);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--off-white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand .amp { font-style: italic; }

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.1s ease, color 0.1s ease;
}
.primary-nav a:hover { border-bottom-color: var(--navy); }
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--navy);
  color: var(--navy);
}

/* Hero */
.hero {
  padding: var(--space-12) 0;
  background: var(--navy);
  color: var(--off-white);
}
.hero .eyebrow { color: rgba(245, 241, 232, 0.6); }
.hero .hero-title { color: var(--off-white); }
.hero .hero-sub { color: rgba(245, 241, 232, 0.85); }
.hero .button {
  background: var(--off-white);
  color: var(--navy);
  border-color: var(--off-white);
}
.hero .button:hover {
  background: transparent;
  color: var(--off-white);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-title {
  max-width: 50rem;
  margin-bottom: 1.5rem;
}
.hero-sub {
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
}
.hero-cta { margin-top: 2rem; }

/* Button */
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--off-white);
  background: var(--navy);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover {
  background: transparent;
  color: var(--navy);
}

/* Sections */
section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--hairline-soft);
}
section:first-of-type { border-top: 0; }
.section-title { margin-bottom: var(--space-4); }
.section-cta { margin-top: var(--space-3); }

/* Corridor grid */
.corridor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 48rem) {
  .corridor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}
.corridor-tile {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
}
.corridor-tile h3 {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.corridor-tile p { color: var(--charcoal); }

/* Footer */
.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--hairline);
  background: var(--off-white);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.disclaimer {
  max-width: 52rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Services (What We Do) */
.services {
  padding-top: 0;
  padding-bottom: var(--space-6);
}
.service {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
}
.service-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.service-lead {
  font-size: 1.125rem;
  color: var(--navy);
  max-width: 44rem;
  margin-bottom: 1rem;
}
.service-body { max-width: 44rem; }
.service-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.service-quote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--navy);
  border-left: 2px solid var(--navy);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.25rem 0 0;
  max-width: 38rem;
  line-height: 1.4;
}

/* Bench note (Who We Are) */
.bench-note {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline-soft);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 44rem;
}

/* Discretion line (Who We Are closing) */
.discretion {
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.discretion-line {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.75vw, 1.4375rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 40rem;
}

/* Contact form */
.enquiry-form {
  display: grid;
  gap: var(--space-3);
  max-width: 36rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0;
  width: 100%;
  border-radius: 0;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}
.field textarea {
  border: 1px solid var(--hairline);
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 8rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  border-bottom-width: 2px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.enquiry-form button[type="submit"] {
  justify-self: start;
  cursor: pointer;
  margin-top: 0.5rem;
  font-family: var(--sans);
}

/* Direct contact */
.direct-email {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}
.offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 36rem) {
  .offices { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}
.office-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.office-address {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: normal;
  color: var(--navy);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Small screens: stack header */
@media (max-width: 36rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .primary-nav ul { gap: 1rem; }
}

/* --- Brand accent + hero motif + a11y contrast (added 2026-05-30) --- */
:root {
  --accent: #A6854E;       /* restrained brass */
  --accent-dark: #8A6E3F;  /* brass, contrast-safe on cream */
  --muted: #5D5D5D;        /* darkened for WCAG AA on cream */
}

a:hover { color: var(--accent-dark); }

/* Eyebrows carry the brass warmth */
.eyebrow,
.service-eyebrow { color: var(--accent-dark); }
.hero .eyebrow { color: #C9A96A; }

/* Quiet brass rule under every hero title — a consistent brand mark */
.hero-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: 1.5rem;
}

/* Subtle corridor/globe line motif in the navy hero */
.hero {
  background-image: url("/assets/hero-motif.svg");
  background-repeat: no-repeat;
  background-position: right -2rem center;
  background-size: auto 160%;
}

/* Warm accents on labels + pull-quote rule */
.corridor-tile h3 { color: var(--accent-dark); }
.service-quote { border-left-color: var(--accent); }
