:root {
  --color-white: #ffffff;
  --color-charcoal: #1b191a;
  --color-muted-bg: #f7f7f8;
  --color-text: #2e2d2e;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 36px rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
}

.bg-light-subtle {
  background-color: var(--color-muted-bg) !important;
}

.section-space {
  padding: 5rem 0;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

#mainNav {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1rem 0;
}

#mainNav .navbar-brand,
#mainNav .nav-link {
  color: #f4f4f4;
  transition: color 0.3s ease;
}

.brand-logo {
  width: 20rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

#mainNav .nav-link {
  font-weight: 500;
}

#mainNav .nav-link:hover {
  color: var(--color-white);
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

#mainNav .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

#mainNav.navbar-scrolled {
  background-color: rgba(27, 25, 26, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 0.65rem 0;
}

.hero-section {
  min-height: 100vh;
  background: url("../images/header.jpg") center center / cover no-repeat;
  position: relative;
  padding: 8rem 0 6rem;
}

.about-header {
  min-height: 62vh;
  background: url("../images/header.jpg") center center / cover no-repeat;
  position: relative;
  padding: 7rem 0 4rem;
}

.about-top-image {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

.project-page-header {
  padding-top: 9rem;
}

.project-header-media-wrap {
  width: 80%;
}

.project-header-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.project-header-image {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.project-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 25, 26, 0.58);
}

.project-header-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
}

.project-header-content p {
  max-width: 760px;
  margin: 0 auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 25, 26, 0.58);
}

.hero-text {
  max-width: 760px;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.service-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 25, 26, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background-color: rgba(27, 25, 26, 0.08);
  color: var(--color-charcoal);
  font-size: 1.2rem;
}

.service-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #4f4d4e;
}

.service-list li {
  margin-bottom: 0.35rem;
}

.service-list li:last-child {
  margin-bottom: 0;
}

.uniform-card-grid > .col,
.uniform-card-grid > [class*="col-"] {
  display: flex;
}

.uniform-card-grid .project-card,
.uniform-card-grid .service-card,
.uniform-card-grid .value-card {
  width: 100%;
}

.what-we-do-parallax {
  position: relative;
  background-image: url("../images/header.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.what-we-do-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 25, 26, 0.62);
}

.what-we-do-parallax .container {
  position: relative;
  z-index: 1;
}

.what-we-do-parallax .service-card {
  min-height: 365px;
}

.project-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 25, 26, 0.08);
  border-top: 4px solid var(--color-charcoal);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-list-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 25, 26, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-list-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-list-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background-color: #f3f3f4;
  padding: 0.75rem;
  display: block;
}

.project-list-content {
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-card {
  background-color: var(--color-white);
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 25, 26, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background-color: rgba(27, 25, 26, 0.08);
  color: var(--color-charcoal);
  font-size: 1.25rem;
}

.value-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.values-inline .value-card {
  min-height: 240px;
  padding: 1.4rem;
}

.values-inline .value-card p {
  font-size: 0.94rem;
  line-height: 1.55;
}

.values-inline .value-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}

.section-dark {
  background-color: var(--color-charcoal);
}

.commitment-text,
.cta-text {
  max-width: 760px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-grid-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 25, 26, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-grid-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background-color: #f3f3f4;
  padding: 0.6rem;
  display: block;
}

.blog-grid-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-detail-page {
  padding-top: 9rem;
}

.blog-detail-content {
  padding: 2rem;
}

.blog-detail-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-detail-image {
  width: 100%;
  max-height: 260px;
  border-radius: 1rem;
  border: 1px solid rgba(27, 25, 26, 0.08);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  object-position: center;
  background-color: #f3f3f4;
  padding: 0.6rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #676566;
}

.blog-meta i {
  margin-right: 0.3rem;
}

.blog-excerpt {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contact-info-card,
.contact-form-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  border: 1px solid rgba(27, 25, 26, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.contact-link {
  color: var(--color-charcoal);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-input {
  border-radius: 0.75rem;
  border-color: rgba(27, 25, 26, 0.2);
  padding: 0.7rem 0.85rem;
}

.contact-input:focus {
  border-color: var(--color-charcoal);
  box-shadow: 0 0 0 0.2rem rgba(27, 25, 26, 0.12);
}

.social-link-dark {
  color: var(--color-charcoal);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link-dark:hover {
  color: #454344;
  transform: translateY(-2px);
}

.amc-banner {
  margin-top: 73px;
  background-color: #0f0f10;
  padding: 2.5rem 0;
}

.amc-banner-logo {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.amc-info-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  border: 1px solid rgba(27, 25, 26, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.amc-link-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  border: 1px solid rgba(27, 25, 26, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.amc-link-card p {
  color: #5a5859;
  transition: color 0.25s ease;
}

.amc-read-more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c52026;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.amc-link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #c52026;
  background-color: #fff7f7;
  color: #9f1a1f;
}

.amc-link-card:hover p {
  color: #6a3335;
}

.amc-link-card:hover .amc-read-more {
  color: #9f1a1f;
  transform: translateX(3px);
}

.site-footer {
  background-color: var(--color-charcoal);
}

.footer-logo {
  width: 15rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.social-link {
  color: var(--color-white);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #d6d6d6;
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  #mainNav {
    background-color: rgba(27, 25, 26, 0.94);
  }

  #mainNav .navbar-collapse {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(27, 25, 26, 0.96);
  }

  .values-inline .value-card {
    min-height: 220px;
  }

  .what-we-do-parallax .service-card {
    min-height: 100%;
  }

  .blog-detail-page {
    padding-top: 8rem;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 6.5rem;
  }

  .project-page-header {
    padding-top: 7.5rem;
  }

  .blog-detail-page {
    padding-top: 7.5rem;
  }

  .amc-banner {
    text-align: center;
  }

  .project-header-media-wrap {
    width: 100%;
  }

  .what-we-do-parallax {
    background-attachment: scroll;
  }

  .footer-logo {
    width: 12rem;
  }
}
