/* ═══════════════════════════════════════════════════════════
   SIERRA BLANCA ADVISORS LLC - THEME STYLESHEET
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --cream:       #f8f5f0;
  --white:       #ffffff;
  --ink:         #1a1a1a;
  --ink-mid:     #4a4a4a;
  --ink-light:   #888;
  --red:         #c83a0a;
  --red-dark:    #a02d06;
  --teal:        #2a6a8a;
  --gold:        #b8914a;
  --border:      #e4ddd4;
  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'Jost', sans-serif;
}

/* ── BASE STYLES ──────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label {
  font-family: var(--ff-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 70px;
  background: rgba(248,245,240,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all .4s ease;
}
nav.scrolled {
  background: rgba(248,245,240,0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  opacity: 0;
  transition: opacity .4s;
}
nav.scrolled .nav-logo img { opacity: 1; }
nav ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
}
nav ul a {
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
nav.scrolled ul a { color: var(--ink); }
nav ul a:hover { color: var(--red); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: background .3s, transform .3s, opacity .3s;
  transform-origin: center;
}
nav.scrolled .nav-toggle span { background: var(--ink); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0.18) 0%,
      rgba(10,10,10,0.42) 45%,
      rgba(10,10,10,0.78) 100%
    ),
    url(img/wallpapers/Sierra-Blanca-Peak-in-New-Mexico_.jpg) center 38%/cover;
  z-index: -1;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 60%, transparent 30%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 860px;
  padding: 0 5vw;
  animation: fadeUp 1s ease forwards;
}
.hero-logo {
  margin-bottom: 2rem;
}
.hero-logo img {
  width: clamp(240px, 44vw, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.55));
}
.hero-divider {
  width: 52px;
  height: 1px;
  background: rgba(255,255,255,0.38);
  margin: 0 auto 1.8rem;
}
.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: .05em;
  color: rgba(255,255,255,0.96);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-sub {
  font-family: var(--ff-body);
  font-size: clamp(.68rem, 1.1vw, .82rem);
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  color: rgba(255,255,255,0.52);
  font-family: var(--ff-body);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .25s;
  background: none;
  border: none;
  padding: 0;
}
.hero-scroll:hover { color: rgba(255,255,255,0.88); }
.scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollPulse 2.2s infinite ease-in-out;
}

/* ── SECTION COMMON ──────────────────────────────────────── */
section {
  padding: 6rem 6vw;
  position: relative;
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.about-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 2.6rem;
  letter-spacing: -.01em;
}
.about-accent {
  width: 36px;
  height: 2px;
  background: var(--red);
  margin-bottom: 2rem;
}
.about-right p {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 1.4rem;
  text-align: justify;
  hyphens: auto;
}
.about-right p:last-child { margin-bottom: 0; }
.stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: .3rem;
}
.stat-desc {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── SERVICES ────────────────────────────────────────────── */
#services { background: var(--cream); }
.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-top: .4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1300px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}
.service-card {
  padding: 3rem 2.6rem;
  border-right: 1px solid var(--border);
  transition: background .3s ease;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: #fdfcfb; }
.service-number {
  font-family: var(--ff-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
.service-title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .9rem;
  letter-spacing: .01em;
}
.service-desc {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--ink-mid);
}

/* ── APPROACH BANNER ────────────────────────────────────────── */
.approach {
  background: var(--ink);
  padding: 5.5rem 6vw;
  text-align: center;
}
.approach-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.68;
  max-width: 780px;
  margin: 0 auto 1.4rem;
  letter-spacing: .02em;
}
.approach-attribution {
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-top: .4rem;
}
.contact-intro {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--ink-mid);
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.contact-item {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; margin-bottom: 0; }
.contact-label {
  font-family: var(--ff-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .5rem;
}
.contact-value {
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--ink);
}
.contact-value a {
  color: var(--teal);
  text-decoration: none;
  transition: color .2s;
}
.contact-value a:hover { color: var(--red); }
.contact-cta { margin-top: 2.4rem; }
.btn {
  display: inline-block;
  padding: .88rem 2.5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .25s ease, transform .2s ease;
}
.btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 4.5rem 6vw 2.5rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-logo { margin-bottom: .4rem; }
.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
}
.footer-info {
  font-size: .8rem;
  line-height: 1.82;
  color: rgba(255,255,255,0.38);
  letter-spacing: .02em;
}
.footer-copy {
  font-size: .68rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: .06em;
  margin-top: .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }
  .stat-row { gap: 2rem; }
  .approach { padding: 4rem 6vw; }

  .nav-toggle { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(248,245,240,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .6rem 0 1rem;
  }
  nav ul.open { display: flex; }
  nav ul li a {
    display: block;
    padding: .85rem 5vw;
    color: var(--ink);
    font-size: .82rem;
  }
}
