/* ============================================================
   HARRISON GEOENVIRONMENTAL CONSULTANTS
   styles.css
   All colours and sizes driven by CSS custom properties
   set from content.js via inline script in index.html
   ============================================================ */

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

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

body {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--coal);
  background: #fff;
  overflow-x: hidden;
}

/* ── CSS Custom Properties (set by content.js inline script) ── */
:root {
  --coal:     #1A1A1A;
  --teal:     #1F4E5F;
  --navy:     #1F3864;
  --gold:     #C9A227;
  --clay:     #7F5F2E;
  --offwhite: #F5F5F5;
  --grey70:   #404040;
  --grey50:   #595959;
  --grey30:   #A6A6A6;
  --grey10:   #E8E8E8;
  --white:    #FFFFFF;
  --hero-headline-px: 60px;
  --section-heading-px: 40px;
  --body-px: 18px;
  --strata-spine-width: 180px;
  --strata-strip-height: 5px;
}

/* ── Strata strip shared styles ──────────────────────────── */
.strata-strip {
  display: flex;
  height: var(--strata-strip-height);
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.strata-strip .seg {
  height: 100%;
  flex-shrink: 0;
}

/* ── Scroll offset for fixed navbar ─────────────────────── */
section[id] {
  scroll-margin-top: 90px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, .bebas {
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.05;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey10);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.navbar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 0;
}

.navbar-logo .logo-name {
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--coal);
  letter-spacing: 0.14em;
  line-height: 1;
}

.navbar-logo .logo-strip {
  height: 4px;
  margin: 4px 0 4px;
  display: flex;
  overflow: hidden;
  width: 100%;
  min-width: 160px;
}

.navbar-logo .logo-strip .seg {
  height: 100%;
}

.navbar-logo .logo-descriptor {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar-links a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--grey50);
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--teal);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coal);
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey10);
  padding: 24px 40px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}

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

.mobile-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: var(--grey50);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey10);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  display: flex;
  min-height: 100vh;
  padding-top: 90px;
  position: relative;
  background: var(--white);
  overflow: hidden;
}

/* Vertical strata spine */
.hero-spine {
  position: absolute;
  left: 0;
  top: 90px;
  bottom: 0;
  width: var(--strata-spine-width);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.hero-spine .seg {
  width: 100%;
  flex-shrink: 0;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px calc(var(--strata-spine-width) + 80px);
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-size: 80px;
  color: var(--coal);
  letter-spacing: 0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero-subheading {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--grey50);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-gold-bar {
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  height: 48px;
  padding: 0 24px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #163848;
  border-color: #163848;
}

.btn-secondary {
  background: var(--white);
  color: var(--coal);
  border-color: var(--coal);
}

.btn-secondary:hover {
  background: var(--offwhite);
}

/* ── SECTORS BAR ─────────────────────────────────────────── */
.sectors-bar {
  background: #163848;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.sectors-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px 0;
}

.sectors-list li {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--white);
  white-space: nowrap;
  padding: 8px 0;
}

.sectors-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 20px;
  flex-shrink: 0;
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  background: var(--offwhite);
  padding: 80px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading {
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-size: var(--section-heading-px);
  color: var(--coal);
  letter-spacing: 0.1em;
  line-height: 1;
  display: inline-block;
  position: relative;
  margin-bottom: 0;
}

.section-heading::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--gold);
  margin-top: 10px;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey10);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-card-top {
  height: 5px;
  background: var(--gold);
  flex-shrink: 0;
}

.service-card-body {
  padding: 24px;
}

.service-card-title {
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  color: var(--teal);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-card-desc {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--grey50);
  line-height: 1.65;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  background: var(--offwhite);
  padding: 80px 40px;
  border-top: 1px solid var(--grey10);
}

.contact-subheading {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--grey50);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 48px;
}

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--grey50);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 15px;
  color: var(--coal);
  background: var(--white);
  border: 1px solid var(--grey10);
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
}

.form-field-full {
  margin-bottom: 20px;
}

.btn-submit {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  background: var(--teal);
  border: none;
  border-radius: 0;
  height: 50px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #163848;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  font-size: 28px;
  color: var(--teal);
  letter-spacing: 0.1em;
}

.contact-strip {
  background: #163848;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.contact-strip-item {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.contact-strip-item:hover {
  color: var(--gold);
}

.contact-strip-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 20px;
  flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #163848;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  gap: 6px;
}

.footer-legal {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--grey30);
  text-align: center;
  line-height: 1.5;
}

.footer-copy {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--grey30);
  text-align: center;
}

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    padding: 16px 20px;
  }

  .hero-spine {
    width: 60px;
  }

  .hero-content {
    padding: 60px 24px 60px calc(60px + 24px);
  }

  .hero-headline {
    font-size: 40px;
  }

  .hero-subheading {
    font-size: 17px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 60px 20px;
  }

  .contact {
    padding: 60px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sectors-bar {
    padding: 0 20px;
    min-height: auto;
    padding: 20px;
  }

  .sectors-list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .sectors-dot {
    display: none;
  }

  .contact-strip {
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
  }

  .contact-strip-dot {
    display: none;
  }

  .footer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 48px 16px 48px calc(60px + 16px);
  }

  .hero-headline {
    font-size: 34px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .navbar {
    padding: 0 16px;
  }

  .mobile-nav {
    padding: 16px;
  }
}
