/* J&E Professional Services — Brand Tokens
   Brand Book Specs (June 2025):
   Primary: #3B9E3E | Secondary: #76BB78
   1st Design Element: #D8ECD8 | 2nd Design Element: #ECF5EC
   Headings: Oswald | Body: Open Sans
   Logo: mountain peak SVG (horizontal w/ tagline in header, negative in footer)
*/

:root {
  --primary: #3B9E3E;
  --primary-hover: #76BB78;
  --design1: #D8ECD8;
  --design2: #ECF5EC;
  --white: #ffffff;
  --fg: #1a2e1a;
  --fg-muted: #4a6b4a;
  --border: #b8d4b0;
  --card-bg: #fff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.5rem;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-height: 100px;
}

@media (max-width: 600px) {
  .nav-logo-img {
    height: 65px;
  }
}

.nav-brand-text { display: flex; flex-direction: column; gap: 0; }

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--design1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-tag {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--white);
  text-decoration: none;
  border-radius: 3px;
  padding: 0.45rem 1.1rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--design1); color: var(--primary); }
.nav-home-link { text-decoration: none; }

/* ─── Hero ─── */
.hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.hero-text { max-width: 600px; }
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}
.hero-rule {
  margin-top: 3rem;
  height: 2px;
  background: linear-gradient(to right, var(--primary) 120px, var(--border) 120px);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--design1);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  margin-top: 1.5rem;
}
.hero-badge-icon { color: var(--primary); }
.hero-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Stats ─── */
.stats {
  background: var(--primary);
  padding: 2.5rem 2.5rem;
  border-top: 4px solid var(--primary-hover);
  border-bottom: 4px solid var(--primary-hover);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { flex: 1; text-align: center; padding: 0 1.5rem; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--design1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ─── Services ─── */
.services {
  padding: 5rem 2.5rem;
  background: var(--white);
}
.services-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.section-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--design1);
  border-radius: 6px;
  padding: 2rem;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(59,158,62,0.12);
}
.service-icon { color: var(--primary); margin-bottom: 1rem; }
.service-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.service-cta:hover { color: var(--primary-hover); }

/* ─── Philosophy ─── */
.philosophy {
  background: var(--design2);
  padding: 5rem 2.5rem;
}
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.philosophy-quote {}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--primary);
  line-height: 0.6;
  margin-bottom: 0.5rem;
  display: block;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 1rem;
}
.quote-attr {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: normal;
}
.philosophy-values { display: flex; flex-direction: column; gap: 1.5rem; }
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value-bar {
  width: 4px;
  min-height: 100%;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}
.value-content { padding-top: 0.1rem; }
.value-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.value-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* ─── Testimonials ─── */
.testimonials {
  padding: 5rem 2.5rem;
  background: var(--white);
}
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  padding: 2rem;
  background: var(--design1);
  border-radius: 6px;
}
.testimonial-stars {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-name {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: normal;
}

/* ─── Our Work ─── */
.our-work {
  padding: 5rem 2.5rem;
  background: var(--design2);
}
.our-work-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--primary);
}
.our-work-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* ─── Closing CTA ─── */
.closing {
  background: var(--primary);
  padding: 5rem 2.5rem;
  text-align: center;
}
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--design1);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.closing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.85rem 2rem;
  transition: background 0.15s, color 0.15s;
}
.closing-btn:hover { background: var(--design1); }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.badge-dot { color: var(--primary-hover); font-size: 0.8rem; }
.badge-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ─── Footer ─── */
.footer {
  background: var(--fg);
  padding: 2.5rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}
.footer-logo-img { margin-bottom: 0.5rem; }
.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--primary-hover);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-info a { color: var(--primary-hover); text-decoration: none; }
.footer-info a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .nav-tag { display: none; }
  .nav-cta { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .closing-headline { font-size: 1.8rem; }
  .closing-btn { display: block; text-align: center; }
}