/* ==========================================================================
   C.J. McCarthy, Inc. — Design System
   ========================================================================== */

:root {
  --forest-dark: #16210f;
  --forest: #1f3016;
  --forest-mid: #33481f;
  --stone: #b6a179;
  --stone-light: #e7ddc9;
  --cream: #f8f4ea;
  --charcoal: #24261f;
  --gold: #a97c2f;
  --gold-light: #c79a4c;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .cjm-brand-text {
  font-family: var(--font-heading);
}

a { text-decoration: none; }

section[id] { scroll-margin-top: 84px; }

/* ---------- Navbar ---------- */

.cjm-navbar {
  background: rgba(22, 33, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.7rem 0;
  transition: background 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cjm-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cjm-brand i {
  color: var(--gold-light);
  font-size: 1.5rem;
}

.cjm-brand-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.cjm-brand-text small {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--stone-light);
  font-weight: 500;
}

.navbar-nav .nav-link {
  color: #f2efe6;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem !important;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover {
  color: var(--gold-light);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
  filter: invert(1);
}

.cjm-btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.cjm-btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #fff;
}

.cjm-btn-outline {
  background: transparent;
  border: 1px solid var(--forest-mid);
  color: var(--forest);
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.cjm-btn-outline:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.navbar .cjm-btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.navbar .cjm-btn-outline:hover {
  background: #fff;
  color: var(--forest);
}

.cjm-btn-outline-light {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.cjm-btn-outline-light:hover {
  background: #fff;
  color: var(--forest);
}

/* ---------- Hero ---------- */

.cjm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center/cover no-repeat;
}

.cjm-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(10,16,6,0.35) 0%, rgba(10,16,6,0.12) 45%, rgba(10,16,6,0.5) 100%);
}

.cjm-hero-content-wrap {
  position: relative;
  z-index: 2;
}

.cjm-hero-content {
  max-width: 780px;
  background: rgba(10, 16, 6, 0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 2.5rem 2rem;
  border-radius: 6px;
}

.hero-eyebrow {
  color: var(--stone-light);
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #f4f1e8;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 1.2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.cjm-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.6rem;
  z-index: 2;
  animation: cjm-bounce 2s infinite;
  opacity: 0.85;
}
@keyframes cjm-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */

.cjm-section {
  padding: 6rem 0;
}

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

.cjm-section-dark {
  background: var(--forest-dark);
  color: #f2efe6;
}

.cjm-eyebrow {
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cjm-eyebrow-light {
  color: var(--stone-light);
}

.cjm-h2 {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  color: var(--forest-dark);
  margin-bottom: 1.25rem;
}

.cjm-h2-light {
  color: #ffffff;
}

.cjm-lead {
  font-size: 1.1rem;
  color: #4a4d40;
  font-weight: 400;
}

.cjm-lead-light {
  color: #d8dccb;
}

.cjm-body-text {
  color: #565948;
  line-height: 1.75;
}

/* ---------- About ---------- */

.cjm-value-card {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 1.4rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(31, 48, 22, 0.06);
}

.cjm-value-card i {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.cjm-value-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.4rem;
}

.cjm-value-card p {
  font-size: 0.94rem;
  color: #5c5f4f;
  margin-bottom: 0;
}

.cjm-service-area-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cjm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cjm-badge {
  background: var(--forest);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
}

/* ---------- Services ---------- */

.cjm-service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 30px rgba(31, 48, 22, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cjm-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(31, 48, 22, 0.14);
}

.cjm-service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.cjm-service-card-body {
  padding: 1.75rem;
}

.cjm-service-card-body i {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
}

.cjm-service-card-body h3 {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--forest-dark);
  margin-bottom: 0.6rem;
}

.cjm-service-card-body p {
  color: #575a4a;
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.cjm-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
}

.cjm-check-list li {
  font-size: 0.85rem;
  color: var(--forest);
  padding-left: 1.3rem;
  position: relative;
  font-weight: 500;
}

.cjm-check-list li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--gold);
  font-size: 0.78rem;
}

/* ---------- Projects ---------- */

.cjm-project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 380px;
}

.cjm-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cjm-project-card:hover img {
  transform: scale(1.06);
}

.cjm-project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10,16,6,0.88) 0%, rgba(10,16,6,0.15) 60%, transparent 100%);
}

.cjm-project-overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cjm-project-overlay p {
  color: #e3e6d8;
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ---------- Gallery ---------- */

.cjm-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  height: 260px;
}

.cjm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cjm-gallery-item:hover img {
  transform: scale(1.08);
}

/* ---------- Careers ---------- */

.cjm-benefits-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.cjm-benefits-strip span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: #e5e8d8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cjm-benefits-strip i {
  color: var(--gold-light);
}

.cjm-job-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 1.75rem 1.4rem;
  height: 100%;
  transition: background 0.2s ease;
}
.cjm-job-card:hover {
  background: rgba(255,255,255,0.09);
}

.cjm-job-card i {
  color: var(--gold-light);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.75rem;
}

.cjm-job-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cjm-job-card p {
  font-size: 0.87rem;
  color: #c9cdb9;
  margin-bottom: 0;
}

/* ---------- Insights ---------- */

.cjm-insight-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.6rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(31,48,22,0.06);
}

.cjm-insight-card i {
  color: var(--gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.6rem;
}

.cjm-insight-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cjm-insight-card p {
  font-size: 0.88rem;
  color: #5c5f4f;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.cjm-contact-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 8px 30px rgba(31,48,22,0.08);
}

.cjm-contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.cjm-contact-row i {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.cjm-contact-row h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.2rem;
}

.cjm-contact-row p {
  font-size: 0.94rem;
  color: #565948;
  margin-bottom: 0;
}

.cjm-contact-row a {
  color: var(--forest);
  font-weight: 600;
}
.cjm-contact-row a:hover {
  color: var(--gold);
}

.cjm-map-frame {
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  box-shadow: 0 8px 30px rgba(31,48,22,0.08);
}

/* ---------- Footer ---------- */

.cjm-footer {
  background: var(--forest-dark);
  color: #c9cdb9;
  padding: 4.5rem 0 2rem;
}

.cjm-footer-logo {
  height: 52px;
  margin-bottom: 1rem;
}

.cjm-footer-tagline {
  font-size: 0.92rem;
  color: #b3b8a0;
  max-width: 320px;
}

.cjm-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cjm-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.cjm-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.cjm-footer h4 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cjm-footer-links {
  list-style: none;
  padding: 0;
}

.cjm-footer-links li {
  margin-bottom: 0.6rem;
}

.cjm-footer-links a {
  color: #c9cdb9;
  font-size: 0.92rem;
}

.cjm-footer-links a:hover {
  color: var(--gold-light);
}

.cjm-footer-areas {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #b3b8a0;
}

.cjm-footer hr {
  border-color: rgba(255,255,255,0.12);
  margin: 2.5rem 0 1.5rem;
}

.cjm-footer-bottom {
  font-size: 0.85rem;
  color: #9a9e88;
}

.cjm-powered-by {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(201, 154, 76, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.cjm-powered-by:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .cjm-navbar { background: rgba(22, 33, 15, 0.97); }
  .navbar-nav .nav-link { padding: 0.7rem 0.5rem !important; }
  .cjm-section { padding: 4.5rem 0; }
  .cjm-hero-content { padding: 2rem 1.4rem; }
}

@media (max-width: 575.98px) {
  .cjm-check-list { grid-template-columns: 1fr; }
  .cjm-benefits-strip { grid-template-columns: 1fr; }
  .cjm-project-card { height: 320px; }
  .cjm-gallery-item { height: 200px; }
}
