:root {
  --accent: #49c5b6;
  --ink: #111111;
  --muted: #666666;
  --line: #e7e7e7;
  --light: #f7f7f7;
  --dark: #202020;
  --white: #ffffff;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Poppins, Roboto, "Open Sans", sans-serif;
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

p {
  margin: 0 0 18px;
  text-align: justify;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 27px 0 25px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: 720px;
  display: grid;
  place-items: center start;
  padding: 220px 0 120px;
  color: var(--white);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 38%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0.04) 100%),
    url("../images/home-main.jpg") center top/cover no-repeat;
}

.hero h1 {
  width: min(690px, calc(100vw - 40px));
  margin: 0 0 0 max(20px, calc((100vw - var(--container)) / 2));
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero h1 {
    width: min(500px, calc(100vw - 40px));
    font-size: clamp(34px, 4.1vw, 48px);
  }
}

.page-hero {
  --page-hero-image: url("../images/page-header.jpg");
  --page-hero-position: center;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 100px 0;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.36)),
    var(--page-hero-image) var(--page-hero-position)/cover no-repeat;
}

.page-hero-about {
  --page-hero-image: url("../images/about-hero.jpg");
}

.page-hero-services {
  --page-hero-image: url("../images/services-hero.jpg");
  --page-hero-position: center top;
}

.page-hero-industries {
  --page-hero-image: url("../images/industries-hero.jpg");
}

.page-hero-contact {
  --page-hero-image: url("../images/contact-hero.jpg");
}

.page-hero-faq {
  --page-hero-image: url("../images/faq-hero.jpg");
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.1;
  font-weight: 600;
}

.page-hero .lead {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.section {
  padding: 82px 0;
}

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

.section.tight {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 38px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 58px;
}

.two-col.reverse {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
}

.image-panel {
  min-height: 360px;
  border: 12px solid var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  background: center/cover no-repeat;
}

.image-panel.advisory {
  aspect-ratio: 7 / 8;
  min-height: 0;
  background-image: url("../images/advisory.jpg");
}

.image-panel.growth {
  aspect-ratio: 1 / 1;
  min-height: 300px;
  background-image: url("../images/growth.jpg");
}

.image-panel.risk {
  aspect-ratio: 5 / 8;
  min-height: 0;
  background-image: url("../images/risk.jpg");
}

.quote {
  margin: 0;
  padding: 34px 34px 34px 34px;
  background: #ffffff;
  border-left: 4px solid var(--accent);
  color: #222222;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-list {
  display: grid;
  gap: 30px;
}

.service-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
}

.service-item .marker {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  margin-top: 3px;
}

.service-item .marker::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.service-item h2,
.content-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.faq-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  border-bottom: 0;
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border: 0;
  background: #1a1a1a;
  color: #ffffff;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* Chevron arrow on the left */
.faq-question::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::before {
  transform: rotate(45deg);
}

/* Plus / minus on the right */
.faq-question::after {
  content: "+";
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: none;
  padding: 28px;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
}

.contact-list .icon {
  color: var(--accent);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(73, 197, 182, 0.28);
  border-color: var(--accent);
}

.btn {
  justify-self: start;
  border: 0;
  background: var(--accent);
  color: var(--white);
  padding: 14px 26px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: #222222;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
}

.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 60px;
  font-size: 15px;
  line-height: 1.9;
}

.footer h3 {
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer p {
  text-align: left;
  margin: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover,
.footer a:focus {
  color: var(--accent);
}

.contact-list-footer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list-footer li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
}

.contact-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  display: inline-flex;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.quick-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.quick-links li i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 20px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 560px;
    place-items: end start;
    padding: 240px 0 62px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.86) 100%),
      url("../images/home-main.jpg") center top/cover no-repeat;
  }

  .hero h1 {
    width: min(560px, calc(100vw - 32px));
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.18;
  }

  .page-hero {
    min-height: 300px;
    padding: 76px 0;
  }

  .two-col,
  .two-col.reverse,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .image-panel {
    order: -1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .logo {
    max-width: calc(100% - 58px);
    font-size: 18px;
    line-height: 1.2;
    white-space: normal;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .menu-toggle {
    flex: 0 0 40px;
  }

  .main-nav {
    top: 66px;
  }

  .hero h1 {
    width: min(100% - 28px, 380px);
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.2;
  }

  .section {
    padding: 58px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote {
    font-size: 17px;
    padding: 24px 24px 24px 24px;
  }
}
