/* ========================================
   Jardine Logging Project - styles.css
   ======================================== */

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

:root {
  --color-forest: #2D5016;
  --color-forest-dark: #1A3409;
  --color-forest-light: #4A7A2E;
  --color-earth: #8B6914;
  --color-earth-light: #C4A035;
  --color-sky: #4A7C9B;
  --color-cream: #FAF8F0;
  --color-warm-white: #FDFCF8;
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-border: #E0DDD4;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-warm-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

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

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

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

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(26, 52, 9, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(26,52,9,0.92) 0%, rgba(45,80,22,0.85) 50%, rgba(26,52,9,0.9) 100%);
  background-color: var(--color-forest-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139,105,20,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,124,155,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-logo {
  width: 360px;
  height: 360px;
  object-fit: contain;
  margin-bottom: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-subtitle strong {
  color: var(--color-earth-light);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
  cursor: pointer;
  margin: 6px;
}

.btn-primary {
  background: var(--color-earth);
  color: #fff;
  border: 2px solid var(--color-earth);
}

.btn-primary:hover {
  background: var(--color-earth-light);
  border-color: var(--color-earth-light);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ---- Sections ---- */

.section {
  padding: 80px 0;
}

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

.section-title {
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--color-forest-dark);
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ---- Map Viewer ---- */

.map-viewer {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: #f0efe8;
  cursor: zoom-in;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-viewer.grabbing {
  cursor: grabbing;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.map-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: rgba(26, 52, 9, 0.85);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.map-btn:hover {
  background: var(--color-forest);
}

.map-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 10;
}

.map-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 12px;
  font-style: italic;
}

.map-legend-inline {
  white-space: nowrap;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.2);
}

.legend-swatch.commercial {
  background: repeating-linear-gradient(
    45deg,
    #D4943A,
    #D4943A 2px,
    #E8C47A 2px,
    #E8C47A 4px
  );
}

.legend-swatch.non-commercial {
  background: #3A7D44;
}

/* ---- Two Column Layout ---- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.col-text p {
}

.fact-card {
  background: var(--color-forest-dark);
  color: #fff;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 16px;
}

.fact-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-earth-light);
  line-height: 1.2;
}

.fact-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* ---- Concerns Grid ---- */

.concerns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.concern-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.3s;
}

.concern-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.concern-icon {
  width: 48px;
  height: 48px;
  color: var(--color-forest);
}

.concern-card h3 {
  font-size: 1.3rem;
  color: var(--color-forest-dark);
  margin-bottom: 12px;
}

.concern-card p {
  margin-bottom: 14px;
  color: var(--color-text-light);
}

.concern-card ul {
  padding-left: 20px;
  color: var(--color-text-light);
}

.concern-card li {
  margin-bottom: 8px;
}

.concern-card li strong {
  color: var(--color-text);
}

/* ---- Quote Banner ---- */

.quote-banner {
  background: var(--color-forest-dark);
  padding: 64px 0;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: rgba(255,255,255,0.95);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.8;
  font-style: italic;
}

.quote-banner cite {
  color: var(--color-earth-light);
  font-size: 0.95rem;
  font-style: normal;
}

/* ---- Timeline ---- */

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--color-border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-border);
  border: 3px solid var(--color-warm-white);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-marker.active {
  background: var(--color-forest);
  box-shadow: 0 0 0 2px var(--color-forest), 0 0 12px rgba(45,80,22,0.3);
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--color-forest-dark);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--color-text-light);
}

/* ---- Action Grid ---- */

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.action-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 28px;
  border-top: 4px solid var(--color-forest);
}

.action-card h3 {
  font-size: 1.15rem;
  color: var(--color-forest-dark);
  margin-bottom: 10px;
}

.action-card p {
  color: var(--color-text-light);
  font-size: 0.98rem;
}

/* ---- Contact Box ---- */

.contact-box {
  background: var(--color-forest-dark);
  color: #fff;
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-earth-light);
}

.contact-box p {
  margin-bottom: 4px;
  opacity: 0.9;
}

/* ---- Footer ---- */

.footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 48px 0 32px;
}

.footer-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.85;
}

.footer p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.footer-sub {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 8px;
}

.footer-copy {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.35) !important;
  margin-top: 24px !important;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .col-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .fact-card {
    margin-bottom: 0;
  }
  .concerns-grid {
    grid-template-columns: 1fr;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-logo {
    width: 260px;
    height: 260px;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .section-title {
  margin-bottom: 40px;
    font-size: 1.7rem;
  }
  .section {
    padding: 56px 0;
  }
  .col-sidebar {
    grid-template-columns: 1fr;
  }
  .fact-card {
    margin-bottom: 12px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 52, 9, 0.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .quote-banner blockquote {
    font-size: 1.1rem;
  }
}
