/*
Theme Name: Camanche
Theme URI: https://camanche.ca
Author: Camanche Energy
Author URI: https://camanche.ca
Description: The Journey of Canadian Energy — an immersive, parallax scroll-driven storytelling theme for Camanche. Features full-screen cinematic section backgrounds, smooth scroll animations, and a six-chapter narrative arc from extraction to global reach.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: camanche
*/

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

:root {
  --navy:    #0a1628;
  --navy2:   #0d1f3c;
  --gold:    #c9a84c;
  --gold2:   #e8c96a;
  --amber:   #e07b2a;
  --teal:    #1a7fa8;
  --white:   #f5f5f0;
  --grey:    #9aa5b4;
  --font-head: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold2); }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-title span { color: var(--gold); }

.section-body {
  font-size: 1.05rem;
  color: rgba(245,245,240,0.82);
  max-width: 640px;
  line-height: 1.85;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}

#site-nav.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.8rem 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.75);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--gold2); color: var(--navy) !important; }

/* ============================================================
   HERO — SECTION 1: PULSE OF THE NORTH
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-pulse-of-north.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.35) 0%,
    rgba(10,22,40,0.15) 40%,
    rgba(10,22,40,0.75) 85%,
    rgba(10,22,40,1.0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.8s forwards;
}

.hero-title .accent { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(245,245,240,0.85);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 1.1s forwards;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.8s forwards;
}

.hero-scroll-cue span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

/* ============================================================
   PARALLAX SECTIONS — SHARED
   ============================================================ */
.parallax-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,22,40,0.92) 0%,
    rgba(10,22,40,0.75) 50%,
    rgba(10,22,40,0.3) 100%
  );
}

.parallax-overlay.right {
  background: linear-gradient(
    -105deg,
    rgba(10,22,40,0.92) 0%,
    rgba(10,22,40,0.75) 50%,
    rgba(10,22,40,0.3) 100%
  );
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-inner.full-width {
  grid-template-columns: 1fr;
  max-width: 900px;
  text-align: center;
}

.section-inner.full-width .section-body { margin: 0 auto; }

.section-text { max-width: 580px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(245,245,240,0.8);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
}

/* ============================================================
   PIPELINE MAP VISUAL
   ============================================================ */
.pipeline-visual {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pipeline-visual img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.pipeline-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(10,22,40,0.88);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 4px;
  padding: 0.75rem 1.2rem;
  backdrop-filter: blur(8px);
}

.pipeline-badge .badge-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}

.pipeline-badge .badge-text {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   PROCESS STEPS (Refinery section)
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--teal));
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 0 1.2rem 0;
  position: relative;
}

.step-dot {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============================================================
   DIGITAL GRID (Section 5)
   ============================================================ */
.digital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.digital-card {
  background: rgba(26,127,168,0.08);
  border: 1px solid rgba(26,127,168,0.25);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}

.digital-card:hover {
  background: rgba(26,127,168,0.18);
  border-color: rgba(26,127,168,0.6);
  transform: translateY(-4px);
}

.digital-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.digital-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.digital-card p {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============================================================
   GLOBAL REACH (Section 6)
   ============================================================ */
#section-global {
  background: var(--navy);
}

.global-map-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.global-map-wrap img { width: 100%; display: block; }

.export-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.export-tag {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 2px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
#section-cta {
  background: linear-gradient(135deg, var(--navy2) 0%, #0f2a4a 100%);
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.cta-body {
  font-size: 1.05rem;
  color: rgba(245,245,240,0.75);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--gold2);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(245,245,240,0.3);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  margin-left: 1rem;
  transition: border-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #060e1a;
  padding: 4rem 3rem 2rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--grey);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(154,165,180,0.5);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--amber));
  z-index: 2000;
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--amber));
  margin: 1.5rem 0 2rem;
  border-radius: 2px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 5rem 2rem; }
  .digital-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #site-nav { padding: 1rem 1.5rem; }
  #site-nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }
  .section-inner { padding: 4rem 1.5rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .digital-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .btn-secondary { margin-left: 0; margin-top: 0.75rem; }
}
