/* ============================================
   GEOTHERMAL INSIDER — Global Stylesheet
   Design Reference: adaptdigitalsolutions.com
   Theme: Light with dark accent sections
   
   Brand Colors:
     --accent:     #D4740E  (earthy amber — primary accent)
     --accent-hover:#B85E08  (darker amber for hovers)
     --dark:       #1A1E23  (deep earth charcoal)
     --dark-card:  #242830  (slightly lighter for cards on dark)
     --cream:      #FAF3E8  (warm sand — light sections)
     --cream-deep: #F2E8D8  (deeper cream for alt light)
   ============================================ */

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

:root {
  /* Brand palette */
  --accent: #D4740E;
  --accent-hover: #B85E08;
  --accent-light: #E8891A;
  --accent-glow: rgba(212, 116, 14, 0.15);

  /* Dark tones */
  --dark: #1A1E23;
  --dark-lighter: #242830;
  --dark-card: #2A2E35;
  --dark-border: rgba(255,255,255,0.08);

  /* Light tones — warm, never pure white */
  --cream: #FAF3E8;
  --cream-deep: #F2E8D8;
  --white: #FFFDF9;
  --white-pure: #FFFFFF;

  /* Text */
  --text-dark: #1A1E23;
  --text-body: #3A3D42;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #9CA3AF;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing — generous */
  --section-pad: 100px;
  --section-pad-sm: 64px;
  --gap-xl: 48px;
  --gap-lg: 32px;
  --gap-md: 24px;
  --gap-sm: 16px;
  --gap-xs: 8px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 76px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: var(--gap-md);
  font-weight: 800;
}

h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--gap-sm); }

/* Section label — small uppercase above headlines */
.label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: var(--gap-sm);
  display: block;
}

/* Two-color headline: wrap accent word in <span class="highlight"> */
.highlight {
  color: var(--accent);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

/* ---- Header ---- */
.site-header {
  background: var(--dark);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.site-logo img, .site-logo svg {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: var(--gap-lg);
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding: var(--gap-xs) 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

/* Nav CTA button */
.nav-cta {
  background: var(--accent);
  color: var(--text-on-dark) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: var(--text-on-dark) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--gap-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  background: radial-gradient(ellipse at center bottom, var(--dark-lighter) 0%, var(--dark) 70%);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  text-align: center;
}

.hero h1 {
  color: var(--text-on-dark);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto var(--gap-xl);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 48px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 116, 14, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text-on-dark);
}

.btn-microcopy {
  display: block;
  margin-top: var(--gap-sm);
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  font-weight: 400;
}

/* ---- Sections ---- */
.section {
  padding: var(--section-pad) 0;
}

.section-light {
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  background: radial-gradient(ellipse at center, var(--dark-lighter) 0%, var(--dark) 80%);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: var(--text-on-dark-muted);
}

.section-dark .label {
  color: var(--accent-light);
}

.section-dark .value-item p {
  color: var(--text-on-dark-muted);
}

.section-title {
  text-align: center;
  margin-bottom: var(--gap-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: var(--gap-sm);
  line-height: 1.7;
}

.section-dark .section-title p {
  color: var(--text-on-dark-muted);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.card {
  background: var(--white-pure);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Card with orange top accent bar */
.card-accent {
  border-top: 3px solid var(--accent);
}

/* Dark card variant */
.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.card-dark:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--gap-md);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--gap-xs);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-link {
  display: inline-block;
  margin-top: var(--gap-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: var(--gap-xl);
  padding-top: var(--gap-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-on-dark-muted);
  margin-top: var(--gap-xs);
}

/* ---- Value Props ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.value-item {
  text-align: center;
  padding: var(--gap-lg);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--gap-md);
}

.value-item h3 {
  font-size: 1.15rem;
  margin-bottom: var(--gap-xs);
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- Article Cards ---- */
.article-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--gap-sm);
}

/* ---- CTA Section ---- */
.cta-section {
  background: radial-gradient(ellipse at center, var(--dark-lighter) 0%, var(--dark) 80%);
  color: var(--text-on-dark);
  text-align: center;
  padding: var(--section-pad) 0;
}

.cta-section h2 {
  color: var(--text-on-dark);
  text-transform: uppercase;
}

.cta-section p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--gap-lg);
  line-height: 1.7;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: var(--text-on-dark-muted);
  padding: var(--section-pad-sm) 0 var(--gap-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin-top: var(--gap-sm);
}

.footer-brand .footer-logo {
  height: 36px;
}

.site-footer h4 {
  color: var(--text-on-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--gap-md);
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--gap-xs);
}

.footer-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--gap-lg);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Orange accent line at top of footer */
.site-footer {
  border-top: 3px solid var(--accent);
}

/* ---- Silo Navigation Cards ---- */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.silo-card {
  background: var(--white-pure);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.silo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  color: inherit;
}

.silo-card .silo-icon {
  font-size: 2.25rem;
  margin-bottom: var(--gap-md);
}

.silo-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--gap-xs);
  color: var(--text-dark);
}

.silo-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .silo-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --header-height: 64px;
  }

  .hero h1 { font-size: 2.25rem; }
  .hero .subtitle { font-size: 1rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: var(--gap-md) var(--gap-lg);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    gap: var(--gap-sm);
  }

  .main-nav.open { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .silo-grid,
  .card-grid,
  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .stats-bar {
    flex-direction: column;
    gap: var(--gap-lg);
  }

  .stat-number { font-size: 2rem; }

  .btn {
    padding: 16px 36px;
    font-size: 0.85rem;
  }
}
