/*
Theme Name: The Resource Vault
Theme URI: https://theresourcevault.com
Author: The Resource Vault
Author URI: https://theresourcevault.com
Description: A premium light-themed WordPress theme for The Resource Vault — tracking and marketing 8 high-quality small-cap natural resource companies for investors seeking extraordinary returns.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://theresourcevault.com
Text Domain: resource-vault
Tags: light, white, teal, investment, natural-resources, mining, custom-post-types, portfolio
*/

/* ============================================================
   DESIGN TOKENS — Light Vault Edition
   White backgrounds, charcoal text, slate-teal (#2D7D7D) accents
   ============================================================ */
:root {
  /* Backgrounds */
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #F9F7F4;
  --color-bg-card:        #FFFFFF;
  --color-bg-card-hover:  #F9F7F4;
  --color-border:         #EDE8DF;

  /* Teal accent palette */
  --color-teal:           #2D7D7D;
  --color-teal-light:     #3D9E9E;
  --color-teal-dark:      #1E5C5C;

  /* Gold accent (logo text, highlights) */
  --color-gold:           #C9A84C;

  /* Text */
  --color-white:          #FFFFFF;
  --color-off-white:      #F5F0E8;
  --color-text:           #1A1814;
  --color-text-secondary: #4A4540;
  --color-text-muted:     #8A8278;
  --color-accent-red:     #C0392B;
  --color-accent-green:   #27AE60;

  --font-heading:         'Playfair Display', 'Georgia', serif;
  --font-body:            'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono:            'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            16px;
  --radius-xl:            24px;

  --shadow-card:          0 2px 12px rgba(0,0,0,0.06);
  --shadow-teal:          0 0 20px rgba(45,125,125,0.18);
  --shadow-hover:         0 8px 32px rgba(0,0,0,0.10);

  --transition:           all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:            1280px;
  --header-height:        160px;
}

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

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

body {
  background-color: #FFFFFF;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-teal-light);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.text-teal   { color: var(--color-teal); }
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--color-text-muted); }
.text-white  { color: var(--color-white); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), transparent);
}
.gold-underline.centered::after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

/* Primary teal button */
.btn-teal {
  background: var(--color-teal);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(45,125,125,0.25);
}
.btn-teal:hover {
  background: var(--color-teal-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,125,125,0.40);
}

/* Legacy alias — keep btn-gold working but use teal */
.btn-gold {
  background: var(--color-teal);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(45,125,125,0.25);
}
.btn-gold:hover {
  background: var(--color-teal-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,125,125,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}
.btn-outline:hover {
  background: var(--color-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(45,125,125,0.06);
  color: var(--color-teal);
  border: 1px solid rgba(45,125,125,0.3);
}
.btn-ghost:hover {
  background: var(--color-teal);
  color: #FFFFFF;
  border-color: var(--color-teal);
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: rgba(45,125,125,0.35);
  box-shadow: var(--shadow-hover), var(--shadow-teal);
  transform: translateY(-4px);
}

.card-body   { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--color-border); }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-gold,
.badge-teal {
  background: rgba(45,125,125,0.12);
  color: var(--color-teal);
  border: 1px solid rgba(45,125,125,0.28);
}

.badge-sector {
  background: #F2EFE9;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge-new {
  background: rgba(39,174,96,0.12);
  color: var(--color-accent-green);
  border: 1px solid rgba(39,174,96,0.28);
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 40px 0;
}

.divider-gold,
.divider-teal {
  background: linear-gradient(90deg, transparent, var(--color-teal-dark), transparent);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
  display: block;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(45,125,125,0.10);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-info {
  background: rgba(45,125,125,0.07);
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
}

.alert-disclaimer {
  background: #F9F7F4;
  border-color: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section    { padding: 56px 0; }
  .section-lg { padding: 80px 0; }
  .container  { padding: 0 16px; }
  /* Keep header height at 160px on mobile — spacer handles offset */
  :root { --header-height: 160px; }
}

@media (max-width: 480px) {
  .btn    { padding: 10px 20px; }
  .btn-lg { padding: 14px 28px; }
}
