/* NWRR — Northwest River Restoration
   Color palette extracted from Squarespace site */

:root {
  --white: hsl(0, 0%, 100%);
  --navy: hsl(206, 48%, 17%);        /* primary dark bg */
  --blue: hsl(211, 50%, 29%);        /* accent */
  --green-light: hsl(144, 52%, 76%); /* light accent */
  --green-dark: hsl(107, 43%, 17%);  /* dark accent */
  --text-light: var(--white);
  --text-dark: var(--navy);
  --font-heading: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
  --gutter: 6vw;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--white);
}

/* ===================== HEADER / NAV ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* ===================== HERO ===================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 55, 78, 0.4) 0%,
    rgba(27, 55, 78, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem var(--gutter);
}

.hero-logo {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

/* ===================== SECTIONS ===================== */

.section {
  padding: 5rem var(--gutter);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-dark {
  background: var(--navy);
  color: var(--text-light);
}

.section-accent {
  background: var(--blue);
  color: var(--text-light);
}

.section-green {
  background: var(--green-dark);
  color: var(--text-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-text {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ===================== TWO-COLUMN LAYOUT ===================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.two-col img {
  border-radius: 4px;
}

.col-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.col-text p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===================== FOUR-COLUMN GRID ===================== */

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.four-col .card {
  text-align: center;
}

.four-col .card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.four-col .card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===================== FULL-WIDTH IMAGE ===================== */

.full-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* ===================== NEWSLETTER / CTA ===================== */

.newsletter {
  text-align: center;
  padding: 3rem var(--gutter);
  background: rgba(255,255,255,0.05);
}

.newsletter h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.newsletter form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.newsletter input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter button {
  padding: 0.75rem 1.5rem;
  background: var(--green-light);
  color: var(--navy);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter button:hover {
  opacity: 0.85;
}

/* ===================== FOOTER ===================== */

.site-footer {
  padding: 2rem var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-footer p {
  margin-bottom: 0.25rem;
}

/* ===================== CONTACT FORM ===================== */

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

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-light);
}

.contact-form button {
  padding: 0.75rem 2rem;
  background: var(--green-light);
  color: var(--navy);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* ===================== PAGE HEADER (subpages) ===================== */

.page-header {
  padding: 8rem var(--gutter) 3rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 55, 78, 0.7);
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
}

/* ===================== STEPS LIST ===================== */

.steps-list {
  max-width: 700px;
  margin: 2rem auto;
  text-align: left;
}

.steps-list .step {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green-light);
}

.steps-list .step strong {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--green-light);
  color: var(--green-light);
  transition: all 0.2s;
}

.btn:hover {
  background: var(--green-light);
  color: var(--navy);
}

.btn-solid {
  background: var(--green-light);
  color: var(--navy);
}

.btn-solid:hover {
  background: transparent;
  color: var(--green-light);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .main-nav li {
    padding: 0.75rem 0;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col.reverse {
    direction: ltr;
  }

  .four-col {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .newsletter form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .four-col {
    grid-template-columns: 1fr;
  }
}
