:root {
  /* Brand palette derived from the BDA Engineering logo */
  --espresso-900: #18110a;  /* deepest brown — footer / hero base */
  --espresso-800: #2a1f14;  /* dark brown — headings */
  --espresso-700: #4f3a20;  /* medium brown */
  --bronze: #9a6a28;        /* primary gold/bronze (logo "Engineering, Inc.") */
  --bronze-light: #b98a3f;  /* lighter bronze for hovers */
  --gold: #c1a67c;          /* light gold */
  --cream: #d5c9aa;         /* cream / tan (logo emblem) */
  --ink: #241b12;           /* warm near-black body text */
  --slate: #6e604d;         /* warm taupe body text */
  --slate-light: #9c8b74;
  --paper: #faf6ed;         /* warm cream section background */
  --white: #ffffff;
  --line: #ece1cd;          /* warm border */
  --shadow-sm: 0 4px 16px rgba(67, 47, 22, 0.08);
  --shadow-md: 0 18px 50px rgba(67, 47, 22, 0.16);
  --radius: 16px;
  --maxw: 1180px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--espresso-800); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #7d551f, var(--bronze));
  color: #fff; box-shadow: 0 10px 30px rgba(154, 106, 40, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(154, 106, 40, 0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #f4ecd9;
  border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(24, 17, 10, 0.0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 120px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  display: block; height: 96px; width: auto;
  background: #ffffff; padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-menu a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.97rem;
  color: #f0e3c9; transition: color .25s ease; position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--bronze-light); transition: width .25s ease;
}
.nav-menu a:hover::after { width: 100%; }
.site-header.scrolled .nav-menu a { color: var(--slate); }
.site-header.scrolled .nav-menu a:hover { color: var(--espresso-800); }

.nav-cta {
  background: linear-gradient(135deg, #7d551f, var(--bronze));
  color: #fff !important; padding: 9px 20px; border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(154, 106, 40, 0.4); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 2.5px; background: #f4ecd9; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--espresso-800); }
.nav-open .nav-toggle span { background: var(--espresso-800); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  margin-top: -120px; padding-top: 120px; overflow: hidden;
  background: linear-gradient(180deg, var(--espresso-900) 0%, var(--espresso-800) 45%, var(--espresso-700) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(193, 166, 124, 0.22), transparent 70%),
    radial-gradient(50% 50% at 85% 15%, rgba(154, 106, 40, 0.20), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(24, 17, 10, 0.65), transparent 75%);
}
.hero-content { position: relative; z-index: 5; color: #f4ecd9; padding: 120px 24px 160px; max-width: 860px; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.eyebrow-dark { color: var(--bronze); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff, #e7d4ad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #ddcdb0; max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats dt { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats dd { font-size: 0.92rem; color: #c3b291; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; line-height: 0; }
.hero-wave svg { width: 100%; height: 110px; }
.hero-wave path { fill: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--espresso-800); margin-bottom: 18px; }
.section-lead { color: var(--slate); font-size: 1.08rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--cream));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(154, 106, 40, 0.16), rgba(193, 166, 124, 0.26));
  color: var(--espresso-700);
}
.service-card h3 { font-size: 1.18rem; color: var(--espresso-800); margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 0.96rem; }

/* ---------- Careers ---------- */
.section-careers { background: var(--paper); }
.career-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.career-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--bronze); padding: 32px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: flex-start;
}
.career-card h3 { font-size: 1.3rem; color: var(--espresso-800); margin-bottom: 14px; }
.career-card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 16px; }
.career-card .career-benefits { color: var(--espresso-700); }
.career-card .btn { margin-top: auto; }
@media (max-width: 760px) {
  .career-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.section-about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--espresso-800); margin-bottom: 22px; }
.about-copy p { color: var(--slate); margin-bottom: 18px; }
.about-highlights { display: grid; gap: 18px; }
.highlight {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--bronze);
  border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.highlight h3 { font-size: 1.05rem; color: var(--espresso-800); margin-bottom: 6px; }
.highlight p { color: var(--slate); font-size: 0.93rem; }

/* ---------- Team ---------- */
.team-grid {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px;
}
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--espresso-700), var(--bronze));
}
.team-card h3 { font-size: 1.08rem; color: var(--espresso-800); margin-bottom: 4px; }
.team-card p { color: var(--bronze); font-weight: 600; font-size: 0.88rem; font-family: var(--font-head); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #f4ecd9;
  background: linear-gradient(135deg, var(--espresso-900), var(--espresso-700));
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.9; }
.cta-inner { position: relative; z-index: 3; max-width: 760px; padding: 110px 24px; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 18px; color: #fff; }
.cta-inner p { color: #ddcdb0; font-size: 1.1rem; margin-bottom: 32px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.section-contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--espresso-800); margin-bottom: 16px; }
.contact-list { list-style: none; margin-top: 34px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.2rem; color: var(--espresso-700);
  background: linear-gradient(135deg, rgba(154, 106, 40, 0.16), rgba(193, 166, 124, 0.26));
}
.contact-list strong { font-family: var(--font-head); color: var(--espresso-800); }
.contact-list a { color: var(--slate); transition: color .2s ease; }
.contact-list a:hover { color: var(--bronze); }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--espresso-800); margin-bottom: 8px; }
.optional { color: var(--slate-light); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fdfbf6;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(154, 106, 40, 0.15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.92rem; color: var(--bronze); font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-900); color: #cdba9a; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.brand-footer { color: #fff; margin-bottom: 16px; gap: 0; }
.brand-text { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 800; }
.footer-brand p { font-size: 0.95rem; color: #b6a487; max-width: 360px; }
.footer-nav h3, .footer-contact h3 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: #b6a487; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact address { font-style: normal; color: #b6a487; line-height: 1.9; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 24px; font-size: 0.85rem; color: #9c8a6f;
}

/* ---------- Floating call button ---------- */
.call-fab {
  position: fixed; right: 22px; top: 140px; z-index: 120;
  display: inline-flex; align-items: center; gap: 0;
  height: 60px; padding: 0; border-radius: 999px; overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #7d551f, var(--bronze));
  box-shadow: 0 12px 32px rgba(154, 106, 40, 0.45);
  transition: transform .28s ease, box-shadow .28s ease, padding .28s ease;
}
.call-fab-icon {
  flex: 0 0 auto; width: 60px; height: 60px; padding: 17px;
  animation: callPulse 2.2s ease-in-out infinite;
}
.call-fab-label {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  max-width: 0; opacity: 0; white-space: nowrap;
  transition: max-width .3s ease, opacity .25s ease, padding .3s ease;
}
.call-fab:hover, .call-fab:focus-visible {
  transform: translateY(-3px); outline: none;
  box-shadow: 0 16px 40px rgba(154, 106, 40, 0.6);
}
.call-fab:hover .call-fab-label, .call-fab:focus-visible .call-fab-label {
  max-width: 180px; opacity: 1; padding-right: 24px;
}
@keyframes callPulse {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}
@media (max-width: 760px) {
  .call-fab { right: 16px; top: 124px; height: 56px; }
  .call-fab-icon { width: 56px; height: 56px; padding: 16px; }
  .call-fab-label { max-width: 150px; opacity: 1; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab-icon { animation: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -20px 0 50px rgba(24, 17, 10, 0.18);
  }
  .nav-open .nav-menu { transform: translateX(0); }
  .nav-menu a { color: var(--espresso-800); font-size: 1.15rem; }
  .nav-cta { color: #fff !important; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .nav-inner { height: 88px; }
  .brand-logo { height: 64px; padding: 8px 14px; border-radius: 12px; }
  .hero { margin-top: -88px; padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
