/* ==========================================================================
   Elevate Specialist Advisory — Shared Stylesheet
   ========================================================================== */

:root {
  /* Colour palette: Cacao, Bordeaux, Carmine, Brass, Bone.
     Variable names are historical (site was originally black/off-white/gold, then ruby)
     but now hold this five-colour palette throughout. See CLAUDE.md for the full mapping. */
  --black: #4A0F1E;       /* Bordeaux: primary dark background */
  --offblack: #3C2A1E;    /* Cacao: raised panel surfaces on dark sections */
  --charcoal: #5A3D28;    /* lighter Cacao, reserved for future dark card use */
  --dark: #6B4830;        /* lighter still, reserved for future dark fill use */
  --mid: #444444;
  --muted: #888888;
  --light: #BBBBBB;
  --silver: #DDDDDD;
  --offwhite: #EDE6D6;    /* Bone */
  --white: #FFFFFF;
  --gold: #B4915B;        /* Brass: primary accent (eyebrows, rules, logo, CTAs) */
  --goldpale: #D98B98;    /* pale Carmine: pull quotes and italic accents on dark backgrounds */
  --golddark: #9E1B2E;    /* Carmine: accent text on light backgrounds */
  --gold-label: #7A5E32;  /* darkened Brass for small uppercase labels on light backgrounds, needed for WCAG AA at this text size */
  --focus-ring: #8F6E3D;  /* mid-tone Brass tuned to pass 3:1 against both Bordeaux and Bone, for focus outlines */

  /* Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 120px;
  --nav-height: 88px;
}

@media (max-width: 1200px) {
  :root { --section-pad: 64px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--mid);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--black);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.h2-section {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .h2-section { font-size: 42px; }
}

.h3-card {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .h3-card { font-size: 22px; }
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .eyebrow { font-size: 11px; }
}

.section--light .eyebrow,
.section--white .eyebrow {
  color: var(--gold-label);
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 0 28px;
}

.rule--animate {
  animation: ruleExpand 0.4s ease-out 0.3s both;
}

@keyframes ruleExpand {
  from { width: 0; }
  to { width: 40px; }
}

.caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--muted);
}

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.45;
  color: var(--goldpale);
}

@media (min-width: 768px) {
  .pull-quote { font-size: 30px; }
}

.section--light .pull-quote,
.section--white .pull-quote {
  color: var(--golddark);
}

.on-dark { color: var(--light); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--black);
  color: var(--light);
}

.section--light {
  background: var(--offwhite);
  color: var(--mid);
}

.section--white {
  background: var(--white);
  color: var(--mid);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--goldpale);
}

.btn--dark {
  background: var(--black);
  color: var(--gold);
}

.btn--dark:hover {
  background: var(--offblack);
}

.btn--text {
  padding: 0;
  background: none;
  color: var(--gold);
  font-size: 11px;
}

.btn--text:hover {
  color: var(--goldpale);
}

.btn--block {
  width: 100%;
  display: flex;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(74, 15, 30, 0.96);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(201, 169, 110, 0.15);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-logo .dot {
  color: var(--gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 20px;
  z-index: 1100;
}

@media (min-width: 900px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
}

.mobile-menu .btn {
  margin-top: 12px;
}

/* ==========================================================================
   Hero (used across all pages)
   ========================================================================== */

.hero {
  position: relative;
  background: var(--black);
  color: var(--light);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  min-height: 100vh;
}

.hero-content {
  max-width: 820px;
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}

@media (min-width: 768px) {
  .hero-headline { font-size: 58px; }
}

@media (min-width: 1200px) {
  .hero-headline { font-size: 72px; }
}

.hero-headline .accent {
  position: relative;
  font-style: italic;
}

.hero-headline .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.hero-sub {
  margin-top: 32px;
  max-width: 480px;
  font-size: 16px;
  font-weight: 300;
  color: var(--light);
  line-height: 1.75;
}

.hero-ctas {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.8s ease-out 0.1s forwards;
}

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Philosophy strip
   ========================================================================== */

.philosophy-quote {
  margin-top: 80px;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Services list (home preview + services page)
   ========================================================================== */

.service-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--silver);
  transition: opacity 0.15s ease;
}

.section--dark .service-row {
  border-bottom-color: rgba(221, 221, 221, 0.15);
}

.service-row:first-of-type {
  border-top: 1px solid var(--silver);
}

.section--dark .service-row:first-of-type {
  border-top-color: rgba(221, 221, 221, 0.15);
}

.service-row .num {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.6;
  padding-top: 6px;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.service-row:hover .num {
  opacity: 1;
}

/* On light backgrounds, full-brightness gold at 0.6 opacity fails WCAG AA —
   use the darker label gold at full opacity, brightening to golddark on hover instead */
.section--light .service-row .num,
.section--white .service-row .num {
  color: var(--gold-label);
  opacity: 1;
}

.section--light .service-row:hover .num,
.section--white .service-row:hover .num {
  color: var(--golddark);
}

.service-row-body {
  grid-column: 2;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 60px 260px 1fr;
    align-items: baseline;
  }
  .service-row-body {
    grid-column: auto;
  }
}

.service-row h3 {
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .service-row h3 { margin-bottom: 0; }
}

.service-row p {
  font-size: 13px;
  color: var(--mid);
}

/* ==========================================================================
   Method panels (home teaser)
   ========================================================================== */

.method-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(221, 221, 221, 0.12);
  margin-top: 56px;
}

@media (min-width: 900px) {
  .method-panels { grid-template-columns: repeat(5, 1fr); }
}

.method-panel {
  background: var(--offblack);
  padding: 32px 24px;
  border-top: 1px solid transparent;
}

.method-panel--active {
  border-top-color: var(--gold);
}

.method-panel .num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.method-panel h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.method-panel p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   Trait list (Who we work with)
   ========================================================================== */

.trait {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin-bottom: 36px;
}

.trait:last-child { margin-bottom: 0; }

.trait h3 {
  margin-bottom: 8px;
}

.trait p {
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--light);
  padding: 88px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(221, 221, 221, 0.12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
}

.footer-logo .dot { color: var(--gold); }

.footer-tagline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-links ul li {
  margin-bottom: 14px;
}

.footer-links a,
.footer-contact a {
  font-size: 14px;
  color: var(--light);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 40px;
  font-size: 11px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: 28px;
}

.form-field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}

.section--dark .form-field label {
  color: var(--light);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--silver);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--black);
  transition: border-color 0.2s ease;
}

.section--dark .form-field input,
.section--dark .form-field textarea {
  border-color: rgba(221, 221, 221, 0.25);
  color: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-row .form-field { min-width: 0; }

/* ==========================================================================
   Contact page specifics
   ========================================================================== */

.contact-detail {
  margin-bottom: 40px;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-label);
  margin-bottom: 10px;
  font-weight: 400;
}

.contact-detail p,
.contact-detail a {
  font-size: 15px;
  color: var(--mid);
}

.contact-detail a:hover {
  color: var(--golddark);
}

.section--dark .contact-detail h4 {
  color: var(--gold);
}

.section--dark .contact-detail p,
.section--dark .contact-detail a {
  color: var(--light);
}

.section--dark .contact-detail a:hover {
  color: var(--goldpale);
}

/* ==========================================================================
   Misc
   ========================================================================== */

.section-head {
  margin-bottom: 56px;
}
