/* =========================================
   Honored Legacy Group — Midnight & Copper
   ========================================= */

/* --- Design Tokens --- */
:root {
  /* Midnight & Copper Palette */
  --color-bg: #0E0E0E;
  --color-surface: #1A1A1A;
  --color-surface-2: #222222;
  --color-copper: #C9A96E;
  --color-copper-warm: #E0A96D;
  --color-linen: #FAF0E6;
  --color-text: #FAF0E6;
  --color-text-muted: rgba(250, 240, 230, 0.7);
  --color-text-faint: rgba(250, 240, 230, 0.45);
  --color-border: rgba(201, 169, 110, 0.25);

  /* Typography — per brand guide:
     Cormorant Garamond: H mark, hero headlines, section titles. Italics carry brand voice.
     Cinzel: wordmark, service titles, section labels. Always tracked wide.
     Montserrat: body copy, nav, buttons, eyebrow labels, UI. */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-label: 'Cinzel', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global --- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: 800px;
}

/* --- Section Label (Cinzel, tracked wide) --- */
.section-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-copper);
  margin-bottom: var(--space-4);
}

/* --- Headings --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-linen);
}

h1 {
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
}

/* Copper accent for emphasis words — italics carry brand voice */
.copper { color: var(--color-copper); font-style: italic; }

/* --- Pull Quote Style --- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Copper Divider --- */
.copper-rule {
  width: 60px;
  height: 2px;
  background: var(--color-copper);
  border: none;
  margin: var(--space-6) 0;
}

.copper-rule--center {
  margin-inline: auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-8);
  border: 1.5px solid var(--color-copper);
  color: var(--color-copper);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-copper);
  color: var(--color-bg);
}

.btn-primary:active {
  background: var(--color-copper-warm);
  border-color: var(--color-copper-warm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-linen);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 240, 230, 0.3);
  padding-bottom: 2px;
}

.btn-secondary:hover {
  color: var(--color-copper);
  border-color: var(--color-copper);
}

/* ========================
   NAVIGATION
   ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-linen);
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
}

.nav__logo-text {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-copper);
  transition: width 300ms var(--ease-out);
}

.nav__links a:hover {
  color: var(--color-linen);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--color-copper);
}

.nav__cta {
  font-size: var(--text-xs) !important;
  padding: var(--space-2) var(--space-5) !important;
}

.nav__hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-linen);
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}

/* Mobile Nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-linen);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--color-copper);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ========================
   HERO
   ======================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  padding-top: 80px;
  background: var(--color-bg);
  overflow: hidden;
}

.hero__content {
  padding: var(--space-16) var(--space-6) var(--space-16) var(--space-12);
  max-width: 640px;
  justify-self: end;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-copper);
  margin-bottom: var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero .pull-quote {
  margin-bottom: var(--space-4);
}

.hero__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.hero__image {
  position: relative;
  height: 100%;
  min-height: 100vh;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 30%);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__content {
    padding: calc(80px + var(--space-12)) var(--space-6) var(--space-8);
    max-width: 100%;
    justify-self: start;
  }
  .hero__image {
    min-height: 50vh;
    max-height: 60vh;
  }
  .hero__image::after {
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 20%, transparent 70%, var(--color-bg) 100%);
  }
}

/* ========================
   WHO WE ARE (linen section)
   ======================== */
.section--linen {
  background: var(--color-linen);
  color: #1A1A1A;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section--linen h2 {
  color: #0E0E0E;
}

.section--linen .section-label {
  color: var(--color-copper);
}

.section--linen .pull-quote {
  color: #4a4a4a;
}

.section--linen .copper-rule {
  background: var(--color-copper);
}

.who-we-are {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.who-we-are p {
  color: #333;
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

/* ========================
   SERVICES / WHAT WE DO
   ======================== */
.section--dark {
  background: var(--color-surface);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section--dark .container {
  text-align: center;
}

.services-header {
  margin-bottom: var(--space-12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: left;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-copper);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-copper);
}

.service-card h3 {
  font-family: var(--font-label);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-copper);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  flex-grow: 1;
}

.service-card a {
  color: var(--color-linen);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 240, 230, 0.3);
  padding-bottom: 2px;
  align-self: flex-start;
}

.service-card a:hover {
  color: var(--color-copper);
  border-color: var(--color-copper);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ========================
   SIX PILLARS
   ======================== */
.pillars-section {
  background: var(--color-bg);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.pillars-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pillar-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  position: relative;
}

.pillar-card__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(201, 169, 110, 0.15);
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  line-height: 1;
}

.pillar-card h3 {
  font-family: var(--font-label);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-copper);
  margin-bottom: var(--space-3);
}

.pillar-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   WHO WE SERVE
   ======================== */
.serve-section {
  background: var(--color-surface);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.serve-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.serve-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.serve-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.serve-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.serve-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.serve-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--color-copper);
  border-radius: 50%;
  margin-top: 0.55em;
}

@media (max-width: 768px) {
  .serve-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ========================
   TESTIMONIALS
   ======================== */
.testimonials-section {
  background: var(--color-bg);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  text-align: center;
}

.testimonials-header {
  margin-bottom: var(--space-12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: left;
}

.testimonial-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card__quote-mark {
  font-family: var(--font-accent);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-copper);
  opacity: 0.4;
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.testimonial-card blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-linen);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-copper);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
  background: var(--color-surface);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-6);
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* ========================
   OPPORTUNITIES BRIDGE
   ======================== */
.opportunities-section {
  background: var(--color-linen);
  color: #1A1A1A;
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}

.opportunities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.opportunities-section h3 {
  color: #0E0E0E;
  margin-bottom: var(--space-4);
}

.opportunities-section p {
  color: #4a4a4a;
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.opportunities-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.opportunities-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 768px) {
  .opportunities-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================
   PROCESS / HOW WE WORK
   ======================== */
.process-section {
  background: var(--color-bg);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.process-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.process-step {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--color-copper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-copper);
  margin-bottom: var(--space-4);
}

.process-step h3 {
  font-family: var(--font-label);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-linen);
  margin-bottom: var(--space-3);
}

.process-step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ========================
   VALUES
   ======================== */
.values-section {
  background: var(--color-surface);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.values-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-6);
  border-left: 0;
  position: relative;
}

.value-card h3 {
  font-size: var(--text-lg);
  color: var(--color-copper);
  margin-bottom: var(--space-3);
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-copper);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__brand-logo svg {
  width: 36px;
  height: 36px;
}

.footer__brand-logo span {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-linen);
}

.footer__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.footer__column h4 {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-copper);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

.footer__column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__column a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.footer__column a:hover {
  color: var(--color-copper);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer__disclaimer {
  font-size: 11px;
  color: rgba(250, 240, 230, 0.3);
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}
