/* ============================================
   BACK EDDY ENGINEERING — River Stone Palette
   ============================================ */

:root {
  --darkest: #2C2C2B;
  --dark-olive: #44503E;
  --sage: #7B877A;
  --light-stone: #C4C0B6;
  --background: #F4F2ED;
  --white: #FFFFFF;
  --overlay-dark: rgba(44, 44, 43, 0.7);
  --overlay-light: rgba(244, 242, 237, 0.95);
  --border: rgba(123, 135, 122, 0.2);
}

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

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

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--darkest);
  background-color: var(--background);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark-olive); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sage); }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.3;
  color: var(--darkest);
}

h1 { font-size: 2.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--darkest);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-top: 1px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--darkest);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--dark-olive);
  border-bottom-color: var(--dark-olive);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--darkest);
  margin: 5px 0;
  transition: 0.3s;
}

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

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(44, 44, 43, 0.82) 0%,
    rgba(44, 44, 43, 0.6) 50%,
    rgba(44, 44, 43, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.hero p {
  color: var(--light-stone);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.btn--primary {
  background: var(--dark-olive);
  color: var(--white);
  border-color: var(--dark-olive);
}
.btn--primary:hover {
  background: var(--darkest);
  border-color: var(--darkest);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--light-stone);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--darkest);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark-olive);
  border-color: var(--dark-olive);
}
.btn--outline-dark:hover {
  background: var(--dark-olive);
  color: var(--white);
}

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

.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--white);
}

.section--stone {
  background: var(--background);
}

.section--dark {
  background: var(--darkest);
  color: var(--light-stone);
}
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 2rem;
}

/* ============================================
   SERVICE HIGHLIGHTS (Homepage 3-up)
   ============================================ */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.highlight-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.highlight-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.highlight-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-olive);
  margin-bottom: 0.75rem;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--darkest);
  line-height: 1.65;
}

/* ============================================
   CREDIBILITY / WHY SECTION
   ============================================ */

.credibility-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.credibility-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.credibility-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 2px;
  background: var(--dark-olive);
  margin-top: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: var(--darkest);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--light-stone);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.page-header {
  background: var(--darkest);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--light-stone);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.service-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:first-of-type {
  padding-top: 2rem;
}
.service-block:last-of-type {
  border-bottom: none;
  padding-bottom: 2rem;
}

.service-block h2 {
  font-size: 1.5rem;
  color: var(--dark-olive);
  margin-bottom: 1.25rem;
}

.service-block h2 .service-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  display: block;
  margin-bottom: 0.25rem;
}

.service-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 2rem;
  filter: saturate(0.85);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 1.5px;
  background: var(--dark-olive);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
  max-width: 750px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.values-block {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.credentials {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.credentials li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark-olive);
}

/* ============================================
   RESOURCES PAGE
   ============================================ */

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.article-card {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}
.article-card:first-child {
  padding-top: 0;
}
.article-card:hover {
  color: var(--darkest);
}

.article-card .article-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: var(--sage);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.article-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  color: var(--dark-olive);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.article-card:hover h3 {
  color: var(--darkest);
}

.article-card p {
  font-size: 0.95rem;
  color: var(--sage);
  line-height: 1.6;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-hero {
  background: var(--darkest);
  padding: 4rem 0 3rem;
}
.article-hero .article-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.article-hero .article-back:hover { color: var(--light-stone); }

.article-hero h1 {
  color: var(--white);
  font-size: 2rem;
  max-width: 700px;
}

.article-body {
  padding: 3rem 0 5rem;
}

.article-body .container--narrow p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  margin-top: 1rem;
}
.article-placeholder p {
  color: var(--sage);
  font-size: 1rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--darkest);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--light-stone);
  background: var(--white);
  color: var(--darkest);
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dark-olive);
}

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

.contact-form .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sage);
  font-size: 0.8rem;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-info .info-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.contact-closing {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--sage);
}

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

.site-footer {
  background: var(--darkest);
  padding: 3rem 0;
  color: var(--sage);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--light-stone);
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-brand-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
}

.footer-brand-text span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--sage);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--light-stone); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(123, 135, 122, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--sage);
}

.footer-bottom a { color: var(--sage); }
.footer-bottom a:hover { color: var(--light-stone); }

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

@media (max-width: 900px) {
  .highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero { min-height: 420px; }
}

@media (max-width: 900px) {
  .service-img { height: 200px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-content { padding: 3rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 3.5rem 0; }
  .page-header { padding: 3rem 0 2.5rem; }
  .page-header h1 { font-size: 1.7rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .container { padding: 0 1.25rem; }
  .container--narrow { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  .highlights { gap: 1rem; }
  .highlight-card { padding: 1.5rem; }
}
