/* =============================================
   NIVALE CAPITAL — Design System
   ============================================= */

/* --- Color tokens --- */
:root {
  --bg:           #FFFFFF;
  --bg-surface:   #F7F7F5;
  --bg-raised:    #EFEFED;
  --border:       #DDDDD8;

  --text:         #1A2A1C;
  --text-muted:   #4A6050;
  --text-faint:   #8A9E90;

  --green:        #366E3F;
  --green-light:  #4a8c52;
  --blue:         #4892D0;
  --blue-light:   #5aa0dc;
  --yellow:       #ECE040;

  --radius:       4px;
  --radius-lg:    8px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  font-weight: normal;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.04em; }

p { color: var(--text-muted); max-width: 60ch; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAV — Mountain strip header
   ============================================= */
.site-nav {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Wrapper clips the blurred background without clipping the nav dropdown */
.site-nav-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Alps background — painterly, narrow strip */
.site-nav-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/alps-bg.jpg') center 65% / cover no-repeat;
  filter: saturate(0.9) contrast(1.1) brightness(1.15) hue-rotate(10deg) blur(0.4px);
  z-index: 0;
}

/* Dark overlay so text is readable over the mountains */
.site-nav-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 20, 12, 0.42) 0%,
    rgba(10, 20, 12, 0.28) 100%
  );
  z-index: 1;
}

.site-nav .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.nav-logo img { height: 90px; width: auto; }

.nav-logo span {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0f0ec;
}

nav { position: relative; z-index: 3; }

/* Hamburger toggle */
.nav-toggle {
  position: relative;
  width: 30px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f0f0ec;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Dropdown menu */
.nav-links {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(10, 20, 12, 0.2);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.14); }

/* =============================================
   HERO — White, wordmark text only
   ============================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  gap: 1.25rem;
  background: var(--bg);
}

.hero h1 {
  color: var(--green);
  letter-spacing: 0.12em;
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero h1 span {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-top: 0.3em;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--blue);
  margin: 0.25rem auto;
}

.hero p {
  font-size: 1.05rem;
  max-width: 62ch;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto;
}

/* =============================================
   CARD LINK
   ============================================= */
.card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.card-link:hover {
  color: var(--green-light);
  border-color: var(--green-light);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  background: #0c1a0e;
  border-top: none;
}

/* Alpine meadow photo background */
.footer-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/meadow-bg.jpg') center 75% / cover no-repeat;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
  z-index: 0;
}

/* Dark overlay for text readability */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 18, 10, 0.72) 0%,
    rgba(8, 18, 10, 0.58) 100%
  );
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

footer p {
  font-size: 0.78rem;
  color: rgba(240, 240, 236, 0.85);
  max-width: none;
}

.footer-disclaimer {
  color: rgba(240, 240, 236, 0.6);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 240, 236, 0.78);
  transition: color 0.2s;
}

.footer-links a:hover { color: #f0f0ec; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(240, 240, 236, 0.15);
}

.footer-legal a {
  font-size: 0.72rem;
  color: rgba(240, 240, 236, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(240, 240, 236, 0.85); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .site-nav .container { height: 120px; }
  .nav-logo img { height: 72px; }
  .hero { padding: 3.5rem 1.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
