/* Pine Crest Industries — site styles */

:root {
  --bg: #E6E4D7;
  --bg-alt: #DDDBC8;
  --bg-deep: #1B2A1F;
  --ink: #1B2A1F;
  --ink-soft: #3D4B3F;
  --muted: #6A7460;
  --forest: #2A4A33;
  --forest-deep: #14231A;
  --rule: #2A4A33;
  --rule-soft: rgba(42, 74, 51, 0.25);

  --max-w: 1100px;
  --max-w-narrow: 760px;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a:hover { color: var(--forest-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1em;
}

/* layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-w-narrow); }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--rule-soft); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}
.section-title h2 { margin: 0; }

/* header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--forest);
}
.site-header__logo img { height: 87px; width: auto; display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-serif);
  color: var(--ink);
  cursor: pointer;
}

/* hero (home) */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero__mark {
  display: block;
  margin: 0 0 40px;
}
.hero__mark img {
  width: 200px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero h1 {
  font-weight: 500;
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.18;
}
.hero__lede {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 32px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* page header (non-home) */
.page-header {
  padding: 72px 0 40px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
.page-header h1 { margin: 0 0 12px; font-weight: 500; }
.page-header__lede {
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}
.page-header__lede + .page-header__lede {
  margin-top: 1.2em;
}

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  border: 1px solid var(--forest);
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--forest);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--bg);
}
.btn--ghost {
  background: transparent;
  color: var(--forest);
}
.btn--ghost:hover {
  background: var(--forest);
  color: var(--bg);
}

/* cards / grids */
.grid {
  display: grid;
  gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--rule-soft);
  padding: 28px;
  border-radius: 2px;
}
.card h3 {
  margin: 0 0 12px;
  color: var(--forest);
}
.card p:last-child { margin-bottom: 0; }

/* two-col with rule */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.two-col > div { padding: 0; }

/* highlighted statements */
.pull-quote {
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  border-left: 2px solid var(--forest);
  padding: 4px 0 4px 28px;
  margin: 0;
  max-width: 760px;
}

/* lists */
.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-clean li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.list-clean li:first-child { padding-top: 0; }
.list-clean li:last-child { border-bottom: none; }
.list-clean strong {
  display: block;
  color: var(--forest);
  margin-bottom: 4px;
  font-weight: 600;
}

.list-bullet {
  margin: 0;
  padding-left: 1.2em;
}
.list-bullet li {
  padding: 4px 0;
  margin-bottom: 4px;
}
.list-bullet li::marker { color: var(--forest); }

/* timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
  border-left: 1px solid var(--rule-soft);
}
.timeline li {
  position: relative;
  padding: 0 0 36px 8px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--forest);
  border-radius: 50%;
}
.timeline__date {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.timeline__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 6px;
}
.timeline__body { margin: 0; color: var(--ink-soft); }

/* team */
.team-card {
  padding: 40px 36px;
}
.team-card__photo-link {
  display: inline-block;
  margin-bottom: 24px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 140ms ease;
}
.team-card__photo-link:hover { opacity: 0.85; }
.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.team-card__name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.team-card__role {
  font-size: 0.92rem;
  color: var(--forest);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.team-card__bio { color: var(--ink-soft); font-size: 0.98rem; }
.team-card__linkedin {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--forest);
  letter-spacing: 0.04em;
}

/* divisions */
.division {
  border-top: 1px solid var(--rule-soft);
  padding-top: 28px;
  margin-top: 28px;
}
.division:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.division h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 16px;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0;
}
.stat__num {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  margin: 0 0 8px;
}
.stat__label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* brand grid (portfolio companies) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
  padding: 16px 0;
}
.brand-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: opacity 140ms ease;
}
.brand-grid__item:hover { opacity: 0.65; }
.brand-grid__item img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  mix-blend-mode: darken;
}
.brand-grid__item--xl img {
  max-height: 126px;
}

@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .brand-grid__item img { max-height: 70px; }
  .brand-grid__item--xl img { max-height: 98px; }
}

/* dark CTA section */
.cta-band {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--bg); }
.cta-band p { color: rgba(232, 227, 210, 0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn--primary {
  background: var(--bg);
  color: var(--forest);
  border-color: var(--bg);
}
.cta-band .btn--primary:hover {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}
.cta-band .btn--ghost {
  color: var(--bg);
  border-color: var(--bg);
}
.cta-band .btn--ghost:hover {
  background: var(--bg);
  color: var(--forest);
}

/* footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(232, 227, 210, 0.75);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(232, 227, 210, 0.9); }
.site-footer a:hover { color: var(--bg); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer__brand img { height: 48px; margin-bottom: 16px; opacity: 0.95; }
.site-footer__addr { font-style: normal; line-height: 1.6; }
.site-footer__contact {
  text-align: right;
}
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 227, 210, 0.18);
  font-size: 0.82rem;
  color: rgba(232, 227, 210, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* responsive */
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-header__inner { padding: 14px 20px; }
  .site-header__logo img { height: 53px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-soft);
    padding: 12px 24px 20px;
  }
  .site-nav.is-open ul { flex-direction: column; gap: 6px; }
  .site-nav.is-open li { border-bottom: 1px solid var(--rule-soft); padding: 10px 0; }
  .site-nav.is-open li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__contact { text-align: left; }
  .hero { padding: 64px 0 56px; }
  .page-header { padding: 56px 0 32px; }
}
