/* ============================================================
   Huxley Finances — Stylesheet
   Aesthetic: editorial · private lending · forest & cream
   ============================================================ */

:root {
  /* Palette — deep forest greens with warm cream */
  --ink:      #0a1410;   /* near-black green */
  --forest:   #0f2a1d;   /* deep forest */
  --moss:     #173a28;   /* medium moss */
  --sage:     #2f5a44;   /* lighter green */
  --cream:    #f4efe2;   /* warm cream (primary text) */
  --bone:     #ddd6c3;   /* dimmer cream */
  --gold:     #c9a961;   /* muted antique gold accent */
  --gold-dim: #8a7848;

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Measure */
  --maxw: 1240px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Expose color utilities to Tailwind-layer if needed */
.bg-ink { background: var(--ink); }
.text-cream { color: var(--cream); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 140px 0;
  position: relative;
}
@media (max-width: 900px) {
  .section { padding: 90px 0; }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 56px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}
.section-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--sage);
  vertical-align: middle;
  margin-right: 14px;
}

/* ---------- Display type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}
.italic-accent {
  font-style: italic;
  color: var(--gold);
}

/* ---------- Grain overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 20, 16, 0.72);
  border-bottom: 1px solid rgba(244, 239, 226, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 32px;
}
@media (max-width: 640px) {
  .header-inner { padding: 18px 20px; }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  line-height: 1;
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  border-radius: 2px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.logo-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.8;
}

/* Nav */
.nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s ease;
}
.nav a:hover {
  color: var(--cream);
}
.nav a:hover::after {
  right: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-weight: 500;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-outline {
  border-color: rgba(244, 239, 226, 0.3);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  color: var(--cream);
  border-color: rgba(244, 239, 226, 0.2);
  padding: 10px 20px;
  font-size: 12px;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.header-cta { }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--forest);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(244, 239, 226, 0.08);
  }
  .nav.is-open {
    max-height: 400px;
  }
  .nav a {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(244, 239, 226, 0.06);
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 160px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(47, 90, 68, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 110%, rgba(15, 42, 29, 0.8) 0%, transparent 50%),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 226, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 226, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 40px;
}
.eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 40px;
  color: var(--cream);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  padding-left: 0.5ch;
  padding-right: 0.25ch;
}

.hero-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  max-width: 620px;
  color: var(--bone);
  margin: 0 0 48px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 90px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(244, 239, 226, 0.12);
  max-width: 860px;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.meta-value {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cream);
}
@media (max-width: 700px) {
  .hero-meta { grid-template-columns: 1fr; gap: 20px; }
}

.hero-ornament {
  position: absolute;
  right: -80px;
  top: 20%;
  width: 520px;
  height: 520px;
  color: var(--sage);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: slow-spin 80s linear infinite;
}
@media (max-width: 1100px) {
  .hero-ornament { right: -200px; opacity: 0.2; }
}
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: linear-gradient(180deg, var(--ink) 0%, #0c1d15 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-heading .display {
  position: sticky;
  top: 120px;
}
.about-body .lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 24px;
  font-weight: 400;
}
.about-body p {
  color: var(--bone);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 58ch;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 28px;
  border-top: 1px solid rgba(244, 239, 226, 0.1);
  padding-top: 40px;
}
.pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.pillar-mark {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.pillars h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.pillars p {
  margin: 0;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: #0c1d15;
  position: relative;
}
.services-title {
  margin-bottom: 72px;
  max-width: 900px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: rgba(244, 239, 226, 0.08);
  border: 1px solid rgba(244, 239, 226, 0.08);
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: #0c1d15;
  padding: 48px 44px;
  transition: background 0.35s ease;
  position: relative;
}
.service-card:hover {
  background: #0f2a1d;
}
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 16px;
}
.service-card > p {
  color: var(--bone);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 48ch;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(244, 239, 226, 0.08);
  padding-top: 20px;
}
.service-card ul li {
  font-size: 14px;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Industries marquee */
.industries {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(244, 239, 226, 0.1);
}
.industries-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.industries-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.industries-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: var(--cream);
  animation: marquee 45s linear infinite;
  width: max-content;
}
.industries-track span:nth-child(even) {
  color: var(--gold);
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--ink);
}
.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
.faq-heading .display { margin-bottom: 20px; }
.muted {
  color: var(--bone);
  font-size: 15px;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(244, 239, 226, 0.12);
}
.faq-item {
  border-bottom: 1px solid rgba(244, 239, 226, 0.12);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}
.faq-icon::before {
  width: 16px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p {
  padding: 0 0 28px;
  margin: 0;
  color: var(--bone);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 58ch;
}
.faq-item.is-open .faq-a {
  max-height: 500px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(180deg, var(--ink) 0%, var(--forest) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-heading .display { margin-bottom: 20px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  padding: 36px 32px;
  border: 1px solid rgba(244, 239, 226, 0.12);
  background: rgba(244, 239, 226, 0.02);
  border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-card:hover {
  border-color: var(--gold-dim);
  background: rgba(201, 169, 97, 0.05);
}
.contact-card-wide {
  grid-column: 1 / -1;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.005em;
  display: block;
  margin-bottom: 16px;
  line-height: 1.3;
  font-style: normal;
}
a.contact-value { transition: color 0.2s ease; }
a.contact-value:hover { color: var(--gold); }
.contact-note {
  font-size: 13px;
  color: var(--bone);
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
}

.contact-hours {
  display: grid;
  gap: 14px;
}
.contact-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 239, 226, 0.08);
  color: var(--bone);
}
.contact-hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-hours > div span:first-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
}
.contact-hours > div span:last-child {
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #070f0b;
  padding: 80px 0 32px;
  color: var(--bone);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  max-width: 40ch;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h4 {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 600;
}
.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--bone);
}
.footer-cols a {
  transition: color 0.2s ease;
}
.footer-cols a:hover { color: var(--gold); }

.footer-rule {
  height: 1px;
  background: rgba(244, 239, 226, 0.1);
  margin: 0 32px;
}
@media (max-width: 640px) {
  .footer-rule { margin: 0 20px; }
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0.7;
}
.footer-domain {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  margin: 0;
}
.footer-base p { margin: 0; }
@media (max-width: 540px) {
  .footer-base { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--ink);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }
