/* ============================================================
   Hanging Valley Enterprises — VPM Site Theme v2
   Design Spec v1 — June 2026
   Token system: update Section 1A hex values only on rebrand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

/* ── SECTION 1A: Brand Tokens (update here on rebrand) ────── */
:root {
  --brand-sky:        #87CEEB;
  --brand-mid:        #4A90C4;
  --brand-deep:       #2E6DA4;
  --brand-navy:       #1B3A6B;
  --brand-forest:     #0D1F3C;
  --brand-water:      #E8F4FD;

  --product-dark:     #1F4E2C;
  --product-deep:     #14532d;
  --product-mid:      #16a34a;
  --product-light:    #dcfce7;
  --product-tint:     #f0fdf4;

  --action-purple:    #5B4FCF;
  --action-purple-dk: #4338CA;
  --action-purple-lt: #EEF2FF;

  --attention:        #d97706;
  --attention-light:  #fef3c7;
  --attention-dark:   #92400e;
}

/* ── SECTION 1B: Semantic Tokens ──────────────────────────── */
:root {
  --color-brand-primary:    var(--brand-deep);
  --color-brand-secondary:  var(--brand-navy);
  --color-brand-accent:     var(--brand-sky);

  --color-product-primary:  var(--product-dark);
  --color-product-accent:   var(--product-mid);
  --color-product-bg:       var(--product-tint);

  --color-cta-primary:      var(--action-purple);
  --color-cta-hover:        var(--action-purple-dk);
  --color-cta-light:        var(--action-purple-lt);
  --color-cta-secondary:    var(--brand-deep);

  --color-attention:        var(--attention);
  --color-attention-bg:     var(--attention-light);
  --color-attention-text:   var(--attention-dark);

  --color-text-primary:     #111827;
  --color-text-body:        #374151;
  --color-text-secondary:   #6B7280;
  --color-text-muted:       #9CA3AF;
  --color-text-inverse:     #FFFFFF;

  --color-surface:          #FFFFFF;
  --color-surface-raised:   #F9FAFB;
  --color-surface-tint:     #F3F4F6;
  --color-border:           #E5E7EB;
  --color-border-strong:    #D1D5DB;
}

/* ── SECTION 2: Typography ────────────────────────────────── */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
}

/* ── SECTION 3: Spacing & Layout ──────────────────────────── */
:root {
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  --container-max:    1120px;
  --container-pad:    48px;
  --container-pad-sm: 24px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(27,58,107,0.15);
  --shadow-cta: 0 4px 16px rgba(91,79,207,0.35);
}

/* ── Base ─────────────────────────────────────────────────── */
html { height: 100%; margin: 0; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-surface);
  margin: 0;
  padding-top: 0;
  line-height: 1.6;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.2;
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p  { font-size: var(--text-base); line-height: 1.7; margin-bottom: 1rem; }
a  { color: var(--color-brand-primary); }
a:hover { color: var(--color-cta-hover); }

/* ── Navigation ───────────────────────────────────────────── */
.hve-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  font-family: var(--font-body);
}

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

.hve-nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0; padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.hve-nav-links a {
  color: var(--color-text-body);
  text-decoration: none;
}

.hve-nav-links a:hover { color: var(--color-brand-primary); }

/* ── Buttons ──────────────────────────────────────────────── */
.hve-btn-primary {
  background: var(--color-cta-primary);
  color: var(--color-text-inverse) !important;
  border: 2px solid var(--color-cta-primary);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-cta);
}

.hve-btn-primary:hover, .hve-btn-primary:focus {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-text-inverse) !important;
}

.hve-btn-outline {
  background: transparent;
  color: var(--color-brand-secondary) !important;
  border: 2px solid var(--color-brand-secondary);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s;
}

.hve-btn-outline:hover, .hve-btn-outline:focus {
  background: var(--color-surface-tint);
  color: var(--color-brand-secondary) !important;
}

/* ── Attention Band ───────────────────────────────────────── */
.hve-attention-band {
  background: var(--color-attention-bg);
  border-top: 1px solid #FDE68A;
  border-bottom: 1px solid #FDE68A;
  padding: var(--space-3) var(--container-pad);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-attention-text);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hve-hero {
  background: var(--color-product-bg);
  padding: var(--space-20) var(--container-pad);
}

/* ── Sections ─────────────────────────────────────────────── */
.hve-section      { padding: var(--space-20) var(--container-pad); }
.hve-section-sm   { padding: var(--space-12) var(--container-pad); }
.hve-section-dark {
  background: var(--color-product-primary);
  color: var(--color-text-inverse);
}
.hve-section-dark h1,
.hve-section-dark h2,
.hve-section-dark h3 { color: var(--color-text-inverse); }

/* ── Footer ───────────────────────────────────────────────── */
.hve-footer {
  background: var(--color-brand-secondary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-12) var(--container-pad);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.hve-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.hve-footer a:hover { color: #fff; }
.hve-footer h5 {
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

/* ── Accessibility ────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--action-purple);
  outline-offset: 2px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hve-nav { padding: 0 var(--container-pad-sm); }
  .hve-hero { padding: var(--space-12) var(--container-pad-sm); }
  .hve-section { padding: var(--space-12) var(--container-pad-sm); }
  .hve-attention-band { padding: var(--space-3) var(--container-pad-sm); }
}
/* ── Logo override ────────────────────────────────────────── */
.navbar-brand img,
.navbar-header img,
header img,
nav img {
  height: 68px !important;
  width: auto !important;
  max-width: none !important;
  min-width: unset !important;
  object-fit: contain !important;
}