/* ============================================================
   AMPED Business Consulting — static rebuild
   Clean hand-written CSS replacing the WordPress/Elementor build.
   Design tokens extracted from the original Elementor kit.
   ============================================================ */

:root {
  --navy: #1F3667;        /* primary */
  --white: #FFFFFF;       /* secondary */
  --ink: #1B1A1A;         /* body text */
  --orange: #FF530D;      /* accent */
  --gray: #878787;
  --light: #EDEDED;
  --blue: #3165B0;
  --footer-gray: #545454;
  --topbar-gray: #EEEEEE;
  --font: "Raleway", sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); transition: color .3s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--white); color: var(--navy); padding: .5em 1em;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Header
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--topbar-gray);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 8px;
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
  min-height: 35px;
}
.btn-contact {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2;
  color: var(--orange); fill: var(--orange); text-decoration: none;
  padding: 8px 16px 7px; transition: background .3s, color .3s;
}
.btn-contact svg { width: 1em; height: 1em; fill: inherit; }
.btn-contact:hover, .btn-contact:focus { background: var(--orange); color: var(--white); fill: var(--white); }

.navbar { position: relative; z-index: 999; margin-bottom: -80px; }
.navbar-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 0 0 1em;
  display: flex; align-items: center; justify-content: flex-start;
}
.logo { display: flex; justify-content: center; padding: 1em 0; width: 20%; min-width: 120px; }
.nav { flex: 1; }
.logo img { width: 145px; }

/* main nav */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block; position: relative;
  font-size: 1.2vw; font-weight: 700; letter-spacing: -1px; line-height: 1;
  color: var(--white); text-decoration: none;
  padding: 12px 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 100%; bottom: 6px;
  height: 1px; background: var(--orange); transition: right .3s;
}
.nav a:hover, .nav a:focus, .nav li.active > a { color: var(--orange); }
.nav a:hover::after { right: 15px; }
.nav li.active > a::after { display: none; }

/* dropdown */
.nav .has-sub { position: relative; }
.nav .has-sub > a .caret { display: inline-block; width: .6em; height: .6em; margin-left: .35em; fill: currentColor; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,.15);
  display: none; flex-direction: column;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a {
  color: var(--navy); font-size: 16px; letter-spacing: .1px;
  padding: 15px 10px;
}
.nav .sub a::after { display: none; }
.nav .sub a:hover, .nav .sub a:focus { color: var(--orange); background: var(--white); }

/* mobile toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--white); fill: var(--white); padding: .5em 1em;
}
.nav-toggle svg { width: 25px; height: 25px; fill: inherit; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav a { font-size: 16px; letter-spacing: 0; padding: 5px 10px; }
}
@media (max-width: 767px) {
  .navbar-inner { padding: 0; }
  .logo { padding: 1em 0 1em 1em; }
  .logo img { width: 100%; max-width: 130px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,.2);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { color: var(--navy); font-size: 16px; padding: 20px; }
  .nav a::after { display: none; }
  .nav .sub { position: static; display: flex; box-shadow: none; }
  .nav .sub a { padding: 20px 20px 20px 36px; font-weight: 500; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 85vh;
  background-color: var(--footer-gray);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("../img/svg-intro-overlay.svg") center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px;
  text-align: center;
  padding: 0 1rem 16%;
}
.hero-title {
  margin: 0;
  font-size: 4.7vw; font-weight: 600; line-height: 1; letter-spacing: -3.3px;
  color: var(--white);
}
.hero-sub {
  margin: 0;
  font-size: 2.7vw; font-weight: 500; line-height: 1.1; letter-spacing: .5px;
  color: var(--white);
}
.rule--hero {
  border: 0; border-top: 6px solid var(--white);
  width: 12%; margin: 22px auto;
}
.hero--whatwedo { background-image: url("../img/whatwedo.jpg"); }
.hero--process  { background-image: url("../img/problemsolution.jpg"); }
.hero--people   { background-image: url("../img/team2.jpg"); background-position: top center; }

/* flat hero (legal / 404) */
.hero--flat { background: var(--navy); min-height: 50vh; }
.hero--flat::before { display: none; }
.hero--flat .hero-inner { padding-bottom: 6%; }
.hero--flat .hero-title { font-weight: 700; letter-spacing: -1px; }

@media (max-width: 1024px) {
  .hero { min-height: 416px; }
  .hero--flat { min-height: 416px; }
}
@media (max-width: 767px) {
  .hero { min-height: 375px; padding: 0 1rem; }
  .hero--flat { min-height: 375px; }
  .hero-inner { padding-bottom: 3rem; }
  .hero-title { font-size: 6vw; letter-spacing: -1px; }
  .hero-sub { font-size: 4.5vw; }
}

/* ============================================================
   Content sections
   ============================================================ */
.section { padding: clamp(48px, 9vw, 120px) 0; }
.section--alt { background: var(--light); }

.split { display: flex; gap: 30px; }
.split > .col { flex: 1; min-width: 0; }

.section-title { font-size: 2rem; font-weight: 600; line-height: 1.05; margin: 0 0 16px; }
.section-title--accent, .accent { color: var(--orange); }
.section-title--light { font-size: 2rem; font-weight: 300; color: var(--ink); line-height: 1.05; margin-bottom: 0; }

.rule {
  border: 0; border-top: 5px solid var(--blue);
  width: 50%; margin: 15px 0;
}

.prose h2 { font-size: 2rem; font-weight: 500; line-height: 1.2; margin: .25em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1em 0 .5em; }
.prose > :last-child { margin-bottom: 0; }

/* buttons (link style with bottom border, as original) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(14px, 1.2vw, 18px); font-weight: 500;
  letter-spacing: .5px; line-height: 1;
  color: var(--blue); fill: var(--blue); text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding: 12px 16px 11px;
  transition: background .3s, color .3s;
  margin-top: 1em;
}
.btn svg { width: 1em; height: 1em; fill: inherit; }
.btn:hover, .btn:focus { background: var(--blue); color: var(--white); fill: var(--white); }

/* angled photo sections (city / about) */
.angle {
  position: relative; overflow: hidden;
  min-height: 60vh;
  display: flex; align-items: stretch;
  background: url("../img/cityhome.jpg") center / cover no-repeat;
}
.angle--fixed { background-attachment: fixed; }
.angle::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/svg-angle-window-1.svg") top right / cover no-repeat;
}
.angle-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 30px;
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px;
}
.angle-inner > .col { flex: 1; min-width: 0; }
.col--panel { padding: 3em 1em 1em; }
.angle--about {
  min-height: 504px;
  background: var(--white) url("../img/aboutus.jpg") left center / cover no-repeat;
}
.angle--about .col--panel { padding: 3em 60px 3em 0; }
@media (max-width: 767px) {
  .angle { min-height: 0; background-attachment: scroll; }
  .angle::before { background-image: url("../img/whitedot.png"); background-size: auto; background-repeat: repeat; background-position: center; }
  .angle-inner { flex-direction: column; }
  .col--empty { display: none; }
}

@media (max-width: 880px) {
  .split { flex-direction: column; gap: 0; }
  .section { padding: 48px 0; }
}

/* who-we-are: white card overlapping the hero */
.section--card {
  position: relative; z-index: 3;
  margin-top: -160px;
  padding: 0 20px clamp(48px, 9vw, 120px);
}
.card {
  max-width: 600px; margin: 0 auto;
  background: var(--white);
  padding: 48px 36px 36px;
  box-shadow: 0 10px 30px 1px rgba(0, 0, 0, .5);
}
.card .section-title { margin-bottom: 0; }
.card .prose + .section-title { margin-top: 40px; }
.card .section-title + .rule, .card .section-title--light + .rule { margin-top: 20px; }
.card .rule { margin-bottom: 24px; }
@media (max-width: 767px) {
  .section--card { margin-top: -60px; }
  .card { padding: 32px 24px 24px; }
}

/* legal page */
.legal-body { max-width: 900px; }
.legal-body h2 { margin-top: 1.6em; }
.legal-body h3 { margin-top: 1.4em; }

/* 404 */
.hero--404 { min-height: 85vh; }
.hero--404 .hero-inner { padding-bottom: 0; align-self: center; }
.error-code {
  font-size: clamp(160px, 22vw, 299px); font-weight: 700; line-height: 1;
  color: var(--orange); margin: 0;
}
.error-msg {
  font-size: clamp(18px, 2.5vw, 31px); font-weight: 700;
  text-transform: uppercase; color: var(--white); margin: .5em 0 1.5em;
}
.hero--404 .btn { color: var(--white); fill: var(--white); border-color: var(--white); }
.hero--404 .btn:hover { background: var(--white); color: var(--navy); fill: var(--navy); }

/* ============================================================
   Footer
   ============================================================ */
.footer-main {
  position: relative;
  background: var(--footer-gray);
  min-height: 143px;
  padding: 12px 80px 100px;
}
.footer-shape {
  position: absolute; left: 0; right: 0; bottom: -1px;
  line-height: 0; direction: ltr;
  transform: rotate(180deg);
}
.footer-shape svg { width: 100%; height: 100px; fill: var(--blue); display: block; }
.footer-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
}
.footer-logo { width: 13%; min-width: 110px; display: flex; justify-content: center; }
.footer-logo img { width: 100%; }
.footer-nav { flex: 1; display: flex; justify-content: flex-start; padding: 1em 0 1em 1em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-nav a {
  display: block;
  font-size: 15px; font-weight: 700; letter-spacing: -.5px; line-height: 1;
  color: var(--white); text-decoration: none;
  padding: 4px 10px; margin: 0 5px;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--orange); }

.footer-bottom { background: var(--blue); padding: 30px 0; }
.footer-bottom-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 80px;
  display: flex; align-items: center;
}
.copyright {
  margin: 0; width: 40%;
  font-size: 14px; font-weight: 600; color: var(--white);
}
.footer-links { width: 60%; display: flex; align-items: center; }
.footer-links > * { width: 33.33%; text-align: center; }
.footer-links a {
  font-size: 14px; font-weight: 600; color: var(--white);
  text-decoration: none; padding: 1em;
  display: block;
}
.footer-links a:hover, .footer-links a:focus { color: var(--orange); }

@media (max-width: 767px) {
  .footer-main { min-height: 40vh; padding: 1em 1em 4em; }
  .footer-inner { flex-direction: column; align-items: center; gap: 1em; }
  .footer-logo { width: auto; }
  .footer-logo img { width: 160px; }
  .footer-nav { padding: 0; }
  .footer-nav ul { flex-direction: column; text-align: center; }
  .footer-nav a { font-size: 16px; padding: 10px; }
  .footer-bottom-inner { flex-direction: column; }
  .footer-bottom-inner > * { width: 100%; }
  .copyright { text-align: center; line-height: 2; padding: 1em 0; font-size: 13px; }
}

/* statcounter noscript image — keep out of layout */
.statcounter { position: absolute; left: -9999px; }

/* ---- Motion (subtle fade-ins, replacing Elementor animations) ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
  .hero-title, .hero-sub, .rule--hero { animation: fadeUp .9s ease both; }
  .rule--hero { animation-delay: .25s; }
  .hero-sub { animation-delay: .45s; }
}
