/* ============================================
   AEJ Environmental — Shared Stylesheet
   ============================================ */

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

:root {
  /* Brand — rooted in the logo mark */
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --sage: #40916C;
  --sage-tint: #E8F3ED;

  /* Warm earth accents */
  --clay: #B8915A;
  --terracotta: #C05F3C;
  --terra-light: #F7EAE4;
  --slate: #3A5068;
  --slate-light: #E4EDF5;
  --warm-mid: #D4B483;

  /* Neutrals */
  --sand: #EDE4D3;
  --cream: #FAF6EE;
  --ink: #211D16;
  --stone: #6E6353;
  --white: #FFFFFF;

  --shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 2.5rem; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 500; color: var(--ink); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--forest);
  color: var(--sage-tint);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 2.5rem; }
.topbar a { color: var(--sage-tint); }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: 1.5rem; }

/* ---------- Nav ---------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--warm-mid);
  position: sticky; top: 0; z-index: 100;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.15; }
.brand-text span { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: 14.5px; color: var(--stone); font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); border-bottom-color: var(--terracotta); }
.nav-cta { background: var(--forest); color: var(--white) !important; padding: 0.6rem 1.3rem; border-radius: var(--radius); font-size: 13.5px !important; border-bottom: none !important; }
.nav-cta:hover { background: var(--forest-light); color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--forest); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.85rem 1.8rem; border-radius: var(--radius); font-size: 14.5px; font-weight: 500; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #A64F30; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--cream); border: 1.5px solid var(--warm-mid); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-light); }

/* ---------- Eyebrow / section label ---------- */
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 1.1rem; }
.section-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.75rem; font-weight: 600; }
.section-title { font-size: 30px; margin-bottom: 2.5rem; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero (page header, used on inner pages) ---------- */
.page-hero { background: var(--forest); color: var(--cream); padding: 3.5rem 0 3rem; }
.page-hero .eyebrow { color: var(--sage-tint); opacity: 0.8; }
.page-hero h1 { color: var(--white); font-size: 36px; font-weight: 500; margin-bottom: 0.75rem; }
.page-hero p { color: #C9D9CF; font-size: 15.5px; max-width: 620px; font-weight: 300; }

/* ---------- Home hero ---------- */
.home-hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--warm-mid); }
.home-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.home-hero h1 { font-size: 42px; font-weight: 500; line-height: 1.22; margin-bottom: 1.3rem; }
.home-hero h1 em { color: var(--forest); font-style: italic; }
.home-hero-desc { font-size: 16.5px; color: var(--stone); font-weight: 300; margin-bottom: 1.8rem; line-height: 1.7; }
.home-hero-ctas { display: flex; gap: 1rem; }
.btn-secondary-link { align-self: center; font-size: 14.5px; font-weight: 500; color: var(--forest); border-bottom: 1.5px solid var(--terracotta); padding-bottom: 2px; }

.hero-panel { background: var(--sand); border-radius: var(--radius); padding: 2.4rem; border-left: 4px solid var(--terracotta); }
.hero-panel p { font-size: 15px; line-height: 1.8; color: var(--ink); font-weight: 300; }
.hero-panel p strong { font-weight: 600; color: var(--terracotta); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--warm-mid); }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--forest); }
.hero-stat-label { font-size: 11.5px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--warm-mid); }
.section.tight { padding: 3.5rem 0; }
.section-intro { max-width: 620px; margin: 0 auto 2.8rem; text-align: center; }
.section-intro p { color: var(--stone); font-size: 15.5px; }

/* ---------- Icons ---------- */
.icon-badge { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { padding: 1.8rem; background: var(--white); border-radius: var(--radius); border-top: 3px solid var(--clay); box-shadow: var(--shadow); }
.service-card h3 { font-size: 17.5px; font-weight: 500; margin-bottom: 0.7rem; }
.service-card p { font-size: 13.5px; line-height: 1.7; color: var(--stone); font-weight: 300; }
.service-card:nth-child(6n+1) { border-top-color: var(--forest); } .service-card:nth-child(6n+1) .icon-badge { background: var(--sage-tint); color: var(--forest); }
.service-card:nth-child(6n+2) { border-top-color: var(--terracotta); } .service-card:nth-child(6n+2) .icon-badge { background: var(--terra-light); color: var(--terracotta); }
.service-card:nth-child(6n+3) { border-top-color: var(--slate); } .service-card:nth-child(6n+3) .icon-badge { background: var(--slate-light); color: var(--slate); }
.service-card:nth-child(6n+4) { border-top-color: var(--clay); } .service-card:nth-child(6n+4) .icon-badge { background: var(--sand); color: var(--clay); }
.service-card:nth-child(6n+5) { border-top-color: var(--forest); } .service-card:nth-child(6n+5) .icon-badge { background: var(--sage-tint); color: var(--forest); }
.service-card:nth-child(6n+6) { border-top-color: var(--terracotta); } .service-card:nth-child(6n+6) .icon-badge { background: var(--terra-light); color: var(--terracotta); }

.service-card.detailed { border-top-width: 4px; }
.service-list { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--warm-mid); list-style: none; }
.service-list li { font-size: 12.5px; color: var(--stone); padding-left: 1rem; position: relative; margin-bottom: 0.35rem; }
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--terracotta); }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process-step { position: relative; padding-top: 2.5rem; }
.process-step::before { counter-increment: step; content: counter(step); font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); background: var(--forest); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; }
.process-step h4 { font-size: 15px; margin-bottom: 0.5rem; }
.process-step p { font-size: 13px; color: var(--stone); line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3.5rem; align-items: start; }
.about-text p { font-size: 16px; line-height: 1.85; color: var(--ink); font-weight: 300; margin-bottom: 1.1rem; }
.credentials { display: flex; flex-direction: column; gap: 1rem; }
.cred { padding: 1.1rem 1.3rem; border-radius: var(--radius); border-left: 3px solid var(--clay); background: var(--sand); }
.cred:nth-child(4n+1) { background: var(--sage-tint); border-left-color: var(--forest); }
.cred:nth-child(4n+2) { background: var(--terra-light); border-left-color: var(--terracotta); }
.cred:nth-child(4n+3) { background: var(--slate-light); border-left-color: var(--slate); }
.cred:nth-child(4n+4) { background: var(--sand); border-left-color: var(--clay); }
.cred-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.3rem; }
.cred-value { font-size: 14px; color: var(--ink); font-weight: 600; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.value-item h4 { font-size: 15.5px; margin-bottom: 0.5rem; color: var(--forest); }
.value-item p { font-size: 13.5px; color: var(--stone); line-height: 1.65; }

/* ---------- Industry chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.chip { background: var(--white); border: 1px solid var(--warm-mid); color: var(--forest); font-size: 13px; font-weight: 500; padding: 0.55rem 1.1rem; border-radius: 30px; box-shadow: var(--shadow); }

/* ---------- Testimonial / trust strip ---------- */
.trust-strip { background: var(--sage-tint); padding: 2.2rem 0; }
.trust-strip .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; text-align: center; }
.trust-item { font-size: 12.5px; color: var(--forest); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terracotta); padding: 3rem 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 26px; margin-bottom: 0.8rem; }
.cta-band p { color: var(--terra-light); font-size: 15px; margin-bottom: 1.6rem; }
.cta-band .btn-dark { background: var(--white); color: var(--terracotta) !important; }
.cta-band .btn-dark:hover { background: var(--cream); }

/* ---------- Contact ---------- */
.contact-section { padding: 4.5rem 0; background: var(--forest); }
.contact-section .section-label { color: var(--warm-mid); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-h { color: var(--cream); font-size: 28px; font-weight: 500; margin-bottom: 1rem; }
.contact-sub { font-size: 15px; color: #B7C9BE; font-weight: 300; line-height: 1.7; margin-bottom: 1.8rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-mid); margin-bottom: 0.2rem; }
.contact-item-value { font-size: 15.5px; color: var(--cream); }
.contact-item-value a:hover { color: var(--white); text-decoration: underline; }

.contact-form { background: var(--cream); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--warm-mid); border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: 14.5px; color: var(--ink); background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--forest); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.form-note { font-size: 11.5px; color: var(--stone); margin-top: 0.9rem; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 2.8rem 0 1.5rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #3A3527; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-brand-text { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--white); }
.footer-desc { font-size: 13px; color: #A79F8C; line-height: 1.7; max-width: 280px; }
.footer h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-mid); margin-bottom: 1rem; font-weight: 600; font-family: 'Source Sans 3', sans-serif; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { font-size: 13.5px; color: #C9C2AF; }
.footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.3rem; font-size: 12px; color: #8A8371; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; width: 100%; padding-top: 0; border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .home-hero .wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .process, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 1.5rem; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 1.2rem 1.5rem; gap: 1.1rem; border-bottom: 1px solid var(--warm-mid); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .services-grid, .process, .values-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 32px; }
  .topbar .wrap { flex-direction: column; gap: 0.3rem; padding: 0.6rem 1.5rem; text-align: center; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; }
}
