/* ═══════════════════════════════════════════════════════════════
   Adams, Cameron & Co., Realtors — Careers Site
   Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --navy:     #0168a1;
  --navy-dk:  #014f7a;
  --navy-lt:  #e8f3fa;
  --gold:     #c9a84c;
  --gold-lt:  #e8c96b;
  --cream:    #f8f5ef;
  --charcoal: #1e2a35;
  --mid:      #4a5a6a;
  --light:    #e8edf2;
  --white:    #ffffff;
  --ff-head:  'Playfair Display', Georgia, serif;
  --ff-body:  'DM Sans', sans-serif;
  --ease:     cubic-bezier(.16,1,.3,1);
  --radius:   4px;
  --shadow:   0 4px 24px rgba(1,104,161,.10);
  --shadow-lg:0 12px 48px rgba(0,0,0,.18);
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--ff-body); color: var(--charcoal); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; }

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dk);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 2rem;
}
.topbar a { color: var(--gold-lt); }

/* ── NAV ──────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(1,104,161,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
}
.nav-logo img { height: 46px; }
.nav-links     { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color .2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover  { color: var(--navy); border-color: var(--gold); }
.nav-links a.active { color: var(--navy); border-color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
  padding: .5rem 1.2rem !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-hamburger { display: none; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--charcoal); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 200;
  flex-direction: column;
  padding: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; font-size: 2rem; background: none; border: none; color: white; cursor: pointer; }
.mobile-nav a {
  display: block;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ── SECTION UTILITIES ────────────────────────────────────────── */
.section    { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.container  { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-label::before { content:''; display:inline-block; width:24px; height:2px; background:var(--gold); }
.section-label.light { color: var(--gold); }
.section-label.light::before { background: var(--gold); }

h2.section-title {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
h2.section-title.light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.75;
}
.section-intro.light { color: rgba(255,255,255,.65); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.btn-secondary:hover { background: var(--navy-dk); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: .88rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-ghost-dk {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .88rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.btn-ghost-dk:hover { background: var(--navy); color: white; }

/* ── PROMISE STRIP ────────────────────────────────────────────── */
.promise-strip {
  background: var(--navy);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.promise-strip-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.promise-strip-text {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--white);
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
}

/* ── STATS BAR ────────────────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.5rem 2rem; text-align: center; border-right: 1px solid var(--light); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--ff-head); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .3rem; }
.stat-lbl { font-size: .78rem; color: var(--mid); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }

/* ── CARD GRIDS ───────────────────────────────────────────────── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(1,104,161,.12); transform: translateY(-3px); }
.card-icon  { font-size: 2rem; margin-bottom: 1rem; }
.card h3    { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; color: var(--charcoal); margin-bottom: .5rem; }
.card p     { font-size: .9rem; color: var(--mid); line-height: 1.7; }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.testimonial:hover { box-shadow: 0 8px 32px rgba(1,104,161,.12); transform: translateY(-3px); }
.testimonial-quote {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.65;
  flex-grow: 1;
}
.testimonial-quote::before { content:'\201C'; color:var(--gold); font-size:2.5rem; line-height:.5; display:block; margin-bottom:.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.testimonial-avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid var(--light); }
.testimonial-name   { font-weight: 700; font-size: .9rem; color: var(--charcoal); }
.testimonial-role   { font-size: .78rem; color: var(--mid); }
.stars              { color: var(--gold); font-size: .85rem; letter-spacing: 2px; margin-bottom: .3rem; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
.form-heading { font-family: var(--ff-head); font-size: 1.6rem; font-weight: 700; color: var(--charcoal); margin-bottom: .4rem; }
.form-sub     { font-size: .88rem; color: var(--mid); margin-bottom: 1.8rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group   { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--light);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1,104,161,.08); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s var(--ease);
  margin-top: .5rem;
}
.form-submit:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,.3); }
.form-privacy { font-size: .72rem; color: var(--mid); text-align: center; margin-top: .8rem; }

/* ── SPLIT LAYOUT ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-image { position: relative; }
.split-image img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.split-image-accent {
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.split-image-badge {
  position: absolute;
  bottom: 2rem; right: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.split-image-badge-num { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.split-image-badge-txt { font-size: .7rem; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }

/* ── ECO CARDS (dark bg) ──────────────────────────────────────── */
.eco-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.08); margin-top: 4rem; }
.eco-card {
  background: var(--charcoal);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.eco-card::before {
  content:'';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.eco-card:hover { background: rgba(255,255,255,.04); }
.eco-card:hover::before { transform: scaleX(1); }
.eco-number { font-family: var(--ff-head); font-size: 4rem; font-weight: 700; color: rgba(201,168,76,.12); line-height: 1; position: absolute; top: 1.5rem; right: 1.5rem; }
.eco-icon   { font-size: 2rem; margin-bottom: 1rem; }
.eco-heading { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 600; color: var(--white); margin-bottom: .25rem; }
.eco-goal   { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eco-desc   { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; line-height: 1.7; }
.eco-tools  { display: flex; flex-wrap: wrap; gap: .4rem; }
.eco-tool   { font-size: .73rem; padding: .28rem .7rem; border: 1px solid rgba(201,168,76,.3); color: rgba(255,255,255,.65); border-radius: 3px; }

/* ── PAGE HERO (inner pages) ──────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .25;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,78,122,.85) 0%, rgba(30,42,53,.7) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-hero-eyebrow::before { content:''; display:inline-block; width:24px; height:2px; background:var(--gold); }
.page-hero h1 { font-family: var(--ff-head); font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 700; color: var(--white); margin-bottom: 1.2rem; }
.page-hero p  { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 580px; font-weight: 300; line-height: 1.75; }

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb { background: var(--cream); padding: .75rem 2rem; font-size: .78rem; color: var(--mid); }
.breadcrumb a { color: var(--navy); }
.breadcrumb span { color: var(--mid); margin: 0 .5rem; }

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content:'';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.cta-banner h2 { font-family: var(--ff-head); font-size: clamp(1.8rem,3vw,2.6rem); color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2rem; font-weight: 300; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
}
.footer-main {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img  { height: 44px; margin-bottom: 1.2rem; opacity: .85; }
.footer-brand p    { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-brand-socials { display: flex; gap: .75rem; margin-top: 1.2rem; }
.footer-brand-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.footer-brand-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col a  { display: block; font-size: .83rem; color: rgba(255,255,255,.55); margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-col p  { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .8s var(--ease) both; }
.delay-1   { animation-delay: .1s; }
.delay-2   { animation-delay: .25s; }
.delay-3   { animation-delay: .4s; }
.delay-4   { animation-delay: .55s; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .split        { grid-template-columns: 1fr; gap: 3rem; }
  .split.reverse{ direction: ltr; }
  .eco-grid     { grid-template-columns: 1fr; }
  .card-grid-3,
  .card-grid-4  { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-main  { grid-template-columns: 1fr 1fr; }
  .promise-strip{ flex-direction: column; gap: 1rem; padding: 2rem; }
  .promise-strip-text { border-left: none; padding-left: 0; border-top: 2px solid var(--gold); padding-top: 1rem; }
  nav           { padding: 0 1.5rem; }
  .nav-links    { display: none; }
  .nav-hamburger{ display: block; }
}
@media (max-width: 600px) {
  .card-grid-3,
  .card-grid-4,
  .card-grid-2  { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-main  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .page-hero    { min-height: 320px; }
  .topbar       { display: none; }
  .footer-bottom{ flex-direction: column; gap: .75rem; text-align: center; }
}
