/* Surmont Energy Ltd. — site stylesheet
   Rebuilt as a static site (migrated off Wix). */

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

:root {
  --color-text: #181818;
  --color-text-muted: #525252;
  --color-text-faint: #8c8c8c;
  --color-bg: #f9f8f8;
  --color-white: #ffffff;
  --color-border: #e2ddd8;

  --color-accent: #9b5200;
  --color-accent-strong: #673700;
  --color-accent-bright: #ff9012;
  --color-accent-pale: #ffe8bb;

  --font-display: 'Poppins', 'Inter', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 248, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-pale);
}

.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

#top .hero-media img {
  object-position: center 100%;
}

#map .hero-media img {
  object-position: center 40%;
}

#facility .hero-media img {
  object-position: center 45%;
}

.hero-media.parallax img {
  top: -25%;
  height: 150%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,24,24,0.15) 0%, rgba(24,24,24,0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 56px;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 18ch;
}

#facility h1 {
  max-width: none;
}

.hero p.lede {
  font-size: 1.05rem;
  max-width: 58ch;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section + .section { border-top: 1px solid var(--color-border); }

section[id] { scroll-margin-top: 92px; }

.section-head {
  max-width: 68ch;
  margin-bottom: 36px;
}

.section-head .eyebrow { color: var(--color-accent); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

.prose p {
  color: var(--color-text-muted);
}

.prose p + p { margin-top: 1.1em; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: 8px;
  box-shadow: 0 20px 40px -20px rgba(24,24,24,0.35);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
}

.card .stat {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}

.card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-strong); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Full-bleed image section (Regional Map / Wildwood) */
.figure-section img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.figure-caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--color-text-faint);
  text-align: center;
}

.figure-section img.expandable {
  max-width: 420px;
  margin: 0 auto;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.figure-section img.expandable:hover { opacity: 0.9; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 24, 0.92);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

.lightbox.zoomed .lightbox-scroll {
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox.zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-toolbar {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.lightbox-toolbar button {
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.lightbox-close { font-size: 1.7rem; }

@media (max-width: 720px) {
  .figure-section img.expandable { max-width: 100%; }
}

/* Contact */
.contact-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
}

.contact-details h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.contact-details address { font-style: normal; color: var(--color-text-muted); line-height: 1.8; }
.contact-details a.email { color: var(--color-accent); font-weight: 600; }

.contact-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.banner-strip {
  width: 100%;
  height: 34vh;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.banner-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  will-change: transform;
}

.banner-strip.parallax img {
  position: absolute;
  inset: 0;
  top: -25%;
  height: 150%;
}

/* Footer */
.site-footer {
  background: #1c1a18;
  color: #d8d3cd;
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.site-footer address { font-style: normal; line-height: 1.8; color: #b7b0a8; font-size: 0.92rem; }
.site-footer a.email { color: var(--color-accent-bright); }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: #b7b0a8; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--color-accent-bright); }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8a8478;
}

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { display: block; padding: 12px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 0 36px; }
  .hero-media { min-height: 46vh; }
}
